luyoumin-ui 0.0.71 → 0.0.72
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/dist/components/LymBadge.vue.d.ts +1 -1
- package/dist/components/LymBubbleContainer.vue.d.ts +1 -1
- package/dist/components/LymButton.vue.d.ts +2 -2
- package/dist/components/LymCarousel.vue.d.ts +1 -1
- package/dist/components/LymCheckBox.vue.d.ts +2 -2
- package/dist/components/LymCheckBoxGroup.vue.d.ts +1 -1
- package/dist/components/LymColorPicker.vue.d.ts +1 -1
- package/dist/components/LymDialog.vue.d.ts +1 -1
- package/dist/components/LymDivider.vue.d.ts +1 -1
- package/dist/components/LymDrawer.vue.d.ts +1 -1
- package/dist/components/LymInput.vue.d.ts +3 -3
- package/dist/components/LymLink.vue.d.ts +2 -2
- package/dist/components/LymPagination.vue.d.ts +2 -2
- package/dist/components/LymProgress.vue.d.ts +1 -1
- package/dist/components/LymRate.vue.d.ts +3 -3
- package/dist/components/LymSelect.vue.d.ts +2 -2
- package/dist/components/LymSlider.vue.d.ts +1 -1
- package/dist/components/LymSteps.vue.d.ts +1 -1
- package/dist/components/LymSwitch.vue.d.ts +2 -2
- package/dist/components/LymTag.vue.d.ts +2 -2
- package/dist/components/date/LymTimePicker.vue.d.ts +2 -2
- package/dist/components/generic-img/LymGenericImg.vue.d.ts +10 -6
- package/dist/components/loading/LymLoading.vue.d.ts +3 -3
- package/dist/components/notification/LymNotification.vue.d.ts +2 -2
- package/dist/components/table/LymTable.vue.d.ts +1 -1
- package/dist/components/table/LymTableColumn.vue.d.ts +3 -3
- package/dist/components/tabs/LymTabs.vue.d.ts +2 -2
- package/dist/components/tree/LymTree.vue.d.ts +1 -1
- package/dist/components/tree/LymTreeSelect.vue.d.ts +2 -2
- package/dist/luyoumin-ui.es.js +6 -3
- package/dist/luyoumin-ui.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/string_utils.d.ts +1 -1
- package/package.json +1 -1
package/dist/luyoumin-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LuyouminUi={},e.Vue)}(this,(function(e,t){"use strict";var n=Object.defineProperty,i=(e,t,i)=>(((e,t,i)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);function a(e){return"[object String]"===Object.prototype.toString.call(e)}function r(e){return"[object Number]"===Object.prototype.toString.call(e)}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}const l=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},s=l(t.defineComponent({__name:"LymBadge",props:{value:{type:[String,Number],default:!1},max:{type:Number,default:99},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},type:{type:String,default:"default"},position:{type:String,default:"top-right"},showZero:{type:Boolean,default:!1},bgColor:{type:String,default:""},offset:{type:Array,default:()=>[0,0]}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref(),o=t.ref({w:0,h:0}),l={default:"#606266",primary:"#409eff",success:"#529b2e",info:"#73767a",warning:"#b88230",danger:"#c45656"},s=t.ref("");t.watch((()=>i.value),((e,t)=>{e!==t&&function(){const e=(r(i.value),Number(i.value));let t="";t=isNaN(e)||0===e?i.showZero?"0":"":e>i.max?i.max+"+":e;s.value=t+""}()}),{immediate:!0});const c=t.computed((()=>{let e="";return e+=`background-color: ${i.bgColor?i.bgColor:l[i.type]};`,"top-right"===i.position?e+="top: 0;right: 0;transform: translate(50%, -50%);":"top-left"===i.position?e+="top: 0;left: 0;transform: translate(-50%, -50%);":"bottom-right"===i.position?e+="bottom: 0;right: 0;transform: translate(50%, 50%);":"bottom-left"===i.position&&(e+="bottom: 0;left: 0;transform: translate(-50%, 50%);"),2===i.offset.length&&(e=e.replace("bottom: 0;left: 0;",""),e+=`top: ${i.offset[0]}px;right: ${i.offset[1]}px;`),e}));return t.onMounted((()=>{o.value.h=a.value.offsetHeight,o.value.w=a.value.offsetWidth})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymBadgeRef",ref:a,class:"lym-badge"},[t.renderSlot(n.$slots,"default",{},void 0,!0),e.hidden||e.isDot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-badge__content",style:t.normalizeStyle(c.value)},t.toDisplayString(s.value),5)),!e.hidden&&e.isDot?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-badge__dot",style:t.normalizeStyle(c.value)},null,4)):t.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-be7eac2d"]]),c=Object.freeze(Object.defineProperty({__proto__:null,default:s},Symbol.toStringTag,{value:"Module"})),u=l(t.defineComponent({__name:"LymBubbleContainer",props:{modelValue:{type:Boolean,default:!1},positionTarget:{type:HTMLElement,default:()=>null},direction:{type:String,default:"bottom"},bgColor:{type:String,default:"#fff"},maxW:{type:String,default:"auto"},zIndex:{type:[Number,String],default:2300},offsetX:{type:[Number,String],default:0},offsetY:{type:[Number,String],default:0},fontSize:{type:[Number,String],default:""},color:{type:String,default:"#000"},borderColor:{type:String,default:"#dcdfe6"},triangleBgColor:{type:String,default:"#fff"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a="lymBubbleContainer-"+Math.random().toString(36).substring(2),r=t.ref(!1),o=t.ref(0),l=t.ref(0),s=t.ref(0),c=t.ref(""),u=t.ref(!1),d=t.ref({x:0,y:0,w:0,h:0}),h=t.ref({w:0,h:0}),p=t.ref(null);t.watch((()=>i.modelValue),((e,n)=>{null!==p.value&&(clearTimeout(p.value),p.value=null),e?function(){const e=i.positionTarget;d.value.x=e.offsetLeft,d.value.y=e.offsetTop,d.value.w=e.clientWidth,d.value.h=e.clientHeight,g(),u.value=!1,r.value=!0,t.nextTick((()=>{const e=document.getElementById(a);h.value.w=e.clientWidth,h.value.h=e.clientHeight}))}():(u.value=!0,p.value=setTimeout((()=>{u.value=!1,r.value=e}),150))}),{immediate:!0});const m=t.computed((()=>{let e="";if(e+=`z-index: ${i.zIndex};`,d.value.w>0)switch(i.direction){case"top":e+=`left: ${d.value.x+(d.value.w-h.value.w)/2+l.value}px;`,e+=`top: ${d.value.y-h.value.h-10+s.value}px;`;break;case"top-start":e+=`left: ${d.value.x+l.value}px;`,e+=`top: ${d.value.y-h.value.h-10+s.value}px;`;break;case"top-end":e+=`left: ${d.value.x+d.value.w-h.value.w+l.value}px;`,e+=`top: ${d.value.y-h.value.h-10+s.value}px;`;break;case"bottom":default:e+=`left: ${d.value.x+(d.value.w-h.value.w)/2+l.value}px;`,e+=`top: ${d.value.y+d.value.h+10+s.value}px;`;break;case"bottom-start":e+=`left: ${d.value.x+l.value}px;`,e+=`top: ${d.value.y+d.value.h+10+s.value}px;`;break;case"bottom-end":e+=`left: ${d.value.x+d.value.w-h.value.w+l.value}px;`,e+=`top: ${d.value.y+d.value.h+10+s.value}px;`;break;case"left":e+=`left: ${d.value.x-h.value.w-10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)/2+s.value}px;`;break;case"left-start":e+=`left: ${d.value.x-h.value.w-10+l.value}px;`,e+=`top: ${d.value.y+s.value}px;`;break;case"left-end":e+=`left: ${d.value.x-h.value.w-10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)+s.value}px;`;break;case"right":e+=`left: ${d.value.x+d.value.w+10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)/2+s.value}px;`;break;case"right-start":e+=`left: ${d.value.x+d.value.w+10+l.value}px;`,e+=`top: ${d.value.y+s.value}px;`;break;case"right-end":e+=`left: ${d.value.x+d.value.w+10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)+s.value}px;`}return e})),f=t.computed((()=>{let e="";return c.value&&(e+=`font-size: ${c.value};`,e+=`line-height: ${c.value};`),e+=`color: ${i.color};`,e+=`border-color: ${i.borderColor};`,e+=`background: ${i.bgColor};`,e})),v=t.computed((()=>{let e="";if(e+=`color: ${i.color};`,e+=`border-color: ${i.borderColor};`,e+=`background: ${i.triangleBgColor};`,d.value.w>0)switch(i.direction){case"top":e+=`left: ${h.value.w/2-4.4}px;`,e+=`top: ${h.value.h-4.8}px;`,e+="transform: rotate(-135deg);";break;case"top-start":e+=`left: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+=`top: ${h.value.h-4.8}px;`,e+="transform: rotate(-135deg);";break;case"top-end":e+=`right: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+=`top: ${h.value.h-4.8}px;`,e+="transform: rotate(-135deg);";break;case"bottom":default:e+=`left: ${h.value.w/2-4.4}px;`,e+="top: -4.8px;",e+="transform: rotate(45deg);";break;case"bottom-start":e+=`left: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+="top: -4.8px;",e+="transform: rotate(45deg);";break;case"bottom-end":e+=`right: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+="top: -4.8px;",e+="transform: rotate(45deg);";break;case"left":e+="right: -4.8px;",e+=`top: ${(h.value.h-9.6)/2}px;`,e+="transform: rotate(135deg);";break;case"left-start":e+="right: -4.8px;",e+=`top: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(135deg);";break;case"left-end":e+="right: -4.8px;",e+=`bottom: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(135deg);";break;case"right":e+="left: -4.8px;",e+=`top: ${(h.value.h-9.6)/2}px;`,e+="transform: rotate(-45deg);";break;case"right-start":e+="left: -4.8px;",e+=`top: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(-45deg);";break;case"right-end":e+="left: -4.8px;",e+=`bottom: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(-45deg);"}return e}));function g(){o.value=_(i.zIndex),l.value=_(i.offsetX),s.value=_(i.offsetY),i.fontSize&&(c.value=function(e){let t=e;"number"==typeof t&&(t+="px");return t}(i.fontSize))}function _(e){let t=e;return"string"==typeof t&&(t=t.replace("px",""),t=parseInt(t)),t}return t.onMounted((()=>{g()})),(n,i)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:a,class:t.normalizeClass(["lym-bubble-container",[u.value?"lym-bubble-hide":"lym-bubble-show"]]),style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{class:"lym-bubble-content",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{style:t.normalizeStyle([{maxWidth:e.maxW},{"white-space":"pre-wrap","word-break":"break-all","box-sizing":"border-box"}])},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)],4),t.createElementVNode("div",{class:"lym-bubble-triangle",style:t.normalizeStyle(v.value)},null,4)],6)):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-bb31571b"]]),d=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),h={},p={width:"0",height:"0"},m=[t.createElementVNode("defs",null,[t.createElementVNode("symbol",{id:"qq",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512.009337 0C229.23422 0 0 229.23422 0 511.990663c0 282.775117 229.23422 512.009337 512.009337 512.009337 282.775117 0 512.009337-229.23422 512.009337-512.009337C1024 229.23422 794.76578 0 512.009337 0zM801.26464 668.859701c-21.737567 18.637536-49.955319-61.346999-54.007769-49.040249-9.879014 29.935842-14.529061 49.936644-43.643208 82.505644-1.550016 1.736764 33.670819 14.473036 43.643208 41.62632 9.542867 26.03279 28.143053 67.285613-93.486477 80.227308-71.375413 7.582004-122.936772-38.022067-128.09104-37.592545-9.524192 0.84037-5.284993 0-15.51883 0-8.366349 0-8.926595 0.616271-16.807397 0-2.166287-0.168074-25.883391 37.592545-131.975416 37.592545-82.225521 0-103.514891-51.748108-86.987617-80.227308 16.545949-28.460526 44.128755-36.752175 40.244378-41.252822-19.141758-22.185764-32.363577-45.921544-40.244378-67.360312-1.942188-5.341017-3.585578-10.532635-4.874145-15.51883-2.987982-11.447705-25.883391 67.229588-50.459541 49.040249-24.576149-18.170664-22.391188-64.40968-6.480185-108.687834 16.060402-44.614302 56.491529-87.585213 56.939726-97.072055 1.624715-35.295534-3.473529-41.159448 0-50.422191 7.750078-20.766473 17.19957-12.792297 17.19957-23.567706 0-135.729068 100.863057-245.761494 225.293819-245.761494 124.412088 0 225.275145 110.032426 225.275145 245.761494 0 5.210293 13.520617 0 19.982128 23.567706 1.325917 4.874145 2.259661 23.66108 0.672296 50.422191-0.746995 12.848321 34.268415 28.497875 52.364379 97.072055C828.436598 628.764722 810.321959 661.109624 801.26464 668.859701z","p-id":"7598"})]),t.createElementVNode("symbol",{id:"zhifubao",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M230.404452 576.536487C218.3168 586.264487 205.360974 600.466922 201.598887 618.520487 196.478887 643.18553 200.530365 674.061357 224.327235 698.281183 253.155061 727.64327 296.964452 735.679443 315.886191 737.059617 367.286539 740.777183 422.070539 715.288487 463.364452 686.215791 479.548104 674.795965 507.262887 651.86727 533.753322 616.494748 474.383583 585.84153 400.277148 551.938226 321.050713 555.255096 280.580452 556.946922 251.5968 565.33927 230.404452 576.536487ZM983.262609 712.080696C1009.463652 650.573913 1024 582.967652 1024 512 1024 229.687652 794.334609 0 512 0 229.665391 0 0 229.687652 0 512 0 794.334609 229.665391 1024 512 1024 682.384696 1024 833.491478 940.27687 926.630957 811.876174 838.633739 768.133565 693.604174 696.141913 604.271304 652.577391 561.641739 701.17287 498.621217 749.879652 427.430957 771.072 382.70887 784.361739 342.394435 789.437217 300.232348 780.822261 258.493217 772.274087 227.750957 752.729043 209.830957 733.139478 200.704 723.144348 190.21913 710.433391 182.628174 695.318261 183.340522 697.232696 183.830261 698.368 183.830261 698.368 183.830261 698.368 179.46713 690.843826 176.128 678.867478 174.413913 673.079652 173.256348 667.046957 172.78887 660.72487 172.432696 656.584348 172.343652 652.221217 172.588522 647.68 172.210087 639.977739 172.521739 631.897043 174.258087 623.616 178.44313 603.38087 187.080348 579.806609 209.430261 557.924174 258.493217 509.885217 324.207304 507.302957 358.244174 507.503304 408.665043 507.792696 496.283826 529.853217 570.056348 555.942957 590.491826 512.422957 603.603478 465.875478 612.062609 434.843826L305.307826 434.843826 305.307826 401.67513 462.825739 401.67513 462.825739 335.337739 272.13913 335.337739 272.13913 302.169043 462.825739 302.169043 462.825739 235.853913C462.825739 226.749217 464.62887 219.269565 479.410087 219.269565L554.028522 219.269565 554.028522 302.169043 761.321739 302.169043 761.321739 335.337739 554.028522 335.337739 554.028522 401.67513 719.849739 401.67513C719.849739 401.67513 703.198609 494.502957 651.130435 585.99513 766.686609 627.266783 929.257739 690.843826 983.262609 712.080696Z","p-id":"7751"})]),t.createElementVNode("symbol",{id:"weibo",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M411.270737 607.649684c-17.973895-7.504842-41.189053 0.229053-52.264421 17.542737-11.223579 17.394526-5.955368 38.103579 11.870316 46.201263 18.108632 8.232421 42.132211 0.417684 53.342316-17.421474C435.253895 635.944421 429.446737 615.370105 411.270737 607.649684zM455.545263 589.352421c-6.885053-2.721684-15.508211 0.579368-19.550316 7.329684-3.920842 6.790737-1.751579 14.524632 5.146947 17.367579 7.019789 2.883368 16.006737-0.458105 20.048842-7.370105C465.071158 599.740632 462.551579 591.912421 455.545263 589.352421zM427.52 469.315368c-115.968 11.439158-203.924211 82.216421-196.378947 158.073263 7.531789 75.910737 107.654737 128.161684 223.649684 116.749474 115.994947-11.439158 203.924211-82.216421 196.392421-158.140632C643.664842 510.140632 543.541895 457.889684 427.52 469.315368zM529.300211 648.299789c-23.673263 53.355789-91.769263 81.798737-149.530947 63.232-55.754105-17.933474-79.373474-72.811789-54.945684-122.246737 23.956211-48.464842 86.352842-75.870316 141.541053-61.561263C523.506526 542.437053 552.663579 596.143158 529.300211 648.299789zM512 0C229.241263 0 0 229.227789 0 512c0 282.758737 229.241263 512 512 512 282.772211 0 512-229.241263 512-512C1024 229.227789 794.772211 0 512 0zM455.531789 794.974316c-145.354105 0-293.941895-70.197895-293.941895-185.667368 0-60.362105 38.386526-130.182737 104.474947-196.069053 88.252632-87.929263 191.164632-127.986526 229.874526-89.397895 17.084632 17.003789 18.741895 46.457263 7.760842 81.623579-5.726316 17.690947 16.666947 7.895579 16.666947 7.936 71.343158-29.763368 133.564632-31.514947 156.321684 0.862316 12.139789 17.246316 10.954105 41.472-0.215579 69.510737-5.173895 12.921263 1.589895 14.928842 11.466105 17.879579 40.178526 12.422737 84.924632 42.455579 84.924632 95.380211C772.837053 684.638316 646.090105 794.974316 455.531789 794.974316zM718.672842 427.802947c4.715789-14.457263 1.765053-30.962526-9.202526-43.061895-10.954105-12.072421-27.136-16.666947-42.037895-13.527579l0-0.026947c-12.463158 2.694737-24.724211-5.268211-27.392-17.664-2.667789-12.463158 5.281684-24.697263 17.744842-27.338105 30.531368-6.467368 63.595789 2.937263 85.989053 27.715368 22.447158 24.764632 28.456421 58.489263 18.849684 88.064-3.907368 12.099368-16.936421 18.728421-29.062737 14.848-12.139789-3.920842-18.782316-16.922947-14.874947-28.995368L718.672842 427.816421zM853.261474 471.134316c-0.013474 0.013474-0.013474 0.080842-0.013474 0.107789-4.567579 14.026105-19.712 21.706105-33.778526 17.165474-14.133895-4.554105-21.854316-19.590737-17.300211-33.670737l0-0.013474c13.999158-43.169684 5.12-92.429474-27.567158-128.565895-32.714105-36.122947-80.949895-49.92-125.507368-40.488421-14.484211 3.085474-28.752842-6.130526-31.838316-20.574316-3.098947-14.403368 6.144-28.631579 20.641684-31.717053l0.026947 0c62.625684-13.271579 130.519579 6.117053 176.545684 56.966737C860.483368 341.113263 872.892632 410.381474 853.261474 471.134316z","p-id":"7904"})]),t.createElementVNode("symbol",{id:"github",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M511.54488889 16.27022222C230.17244445 16.15644445 2.27555555 243.93955555 2.27555555 525.08444445 2.27555555 747.40622222 144.83911111 936.39111111 343.38133333 1005.79555555c26.73777778 6.71288889 22.64177778-12.288 22.64177778-25.25866666v-88.17777778c-154.39644445 18.09066667-160.65422222-84.08177778-171.008-101.14844444C174.08 755.48444445 124.58666667 746.38222222 139.37777778 729.31555555c35.15733333-18.09066667 70.99733333 4.55111111 112.52622222 65.87733334 30.03733333 44.48711111 88.63288889 36.97777778 118.32888889 29.58222222 6.48533333-26.73777778 20.36622222-50.63111111 39.48088889-69.17688889-159.97155555-28.672-226.64533333-126.29333333-226.64533333-242.34666667 0-56.32 18.54577778-108.08888889 54.95466666-149.84533333-23.21066667-68.83555555 2.16177778-127.77244445 5.57511111-136.53333333 66.10488889-5.91644445 134.82666667 47.33155555 140.17422223 51.54133333 37.54666667-10.12622222 80.44088889-15.47377778 128.4551111-15.47377777 48.24177778 0 91.24977778 5.57511111 129.13777778 15.8151111 12.85688889-9.78488889 76.57244445-55.52355555 138.01244445-49.94844444 3.29955555 8.76088889 28.10311111 66.33244445 6.25777777 134.25777778 36.864 41.87022222 55.63733333 94.09422222 55.63733334 150.528 0 116.28088889-67.12888889 214.016-227.55555556 242.23288889 26.73777778 26.39644445 43.34933333 63.03288889 43.34933334 103.53777777v128c0.91022222 10.24 0 20.36622222 17.06666666 20.36622223 201.50044445-67.92533333 346.56711111-258.27555555 346.56711112-482.53155556 0-281.25866667-228.01066667-508.928-509.15555556-508.928z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"weixin",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1024C229.23 1024 0 794.77 0 512S229.23 0 512 0s512 229.23 512 512-229.23 512-512 512z m107.91-626.371H640c-20.09-94.744-115.566-162.962-225.304-162.962-124.002 0-222.696 86.04-222.696 198.607 0 65.097 34.572 115.492 89.43 156.94l-23.114 71.12 77.995-41.448a354.748 354.748 0 0 0 77.97 11.8h20.114a133.608 133.608 0 0 1-5.851-47.47 193.122 193.122 0 0 1 57.466-134.412 181.37 181.37 0 0 1 133.096-52.175h0.804z m-115.273-56.296c15.848 0 28.696 14.288 28.696 31.915s-12.848 31.915-28.696 31.915c-17.652 1.95-33.402-12.313-35.304-31.94 0-22.284 17.457-31.89 34.719-31.89h0.585z m-171.032 63.878c-17.555 1.463-33.012-12.653-34.938-31.89 1.926-19.212 17.383-33.329 34.938-31.89 16.042 0 29.062 14.287 29.062 31.915 0 17.603-13.02 31.89-29.062 31.89zM832 574.805c0-92.233-90.136-169.472-192-169.472-107.764 0-192 77.24-192 169.448 0 92.257 84.456 169.496 192 169.496a264.24 264.24 0 0 0 66.828-11.873L767.586 768l-17.408-59.538c49.42-35.596 81.017-83.286 81.017-133.852l0.805 0.195zM573.562 554.52c-10.435 0-18.895-9.484-18.895-21.187s8.46-21.211 18.895-21.211c11.727-1.39 22.308 7.997 23.771 21.114-1.39 13.214-11.97 22.698-23.771 21.284z m128 0.098c-10.435 0-18.895-9.509-18.895-21.212 0-11.751 8.46-21.26 18.895-21.26 11.727-1.414 22.308 7.997 23.771 21.139-2.194 12.921-12.58 22.04-24.259 21.333h0.488z","p-id":"8210"})]),t.createElementVNode("symbol",{id:"close",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M940.75107555 1009.1026963c-17.39859437 0-34.79718875-6.83516208-48.46751288-19.88410785l-857.50215112-857.50215112c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578 26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0l857.50215112 857.50215112c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578-13.67032415 13.04894578-31.06891852 19.88410785-48.4675129 19.88410785z","p-id":"3376"}),t.createElementVNode("path",{d:"M83.24892445 1009.1026963c-17.39859437 0-34.79718875-6.83516208-48.4675129-19.88410785-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l857.50215112-857.50215112c26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0 26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578l-857.50215112 857.50215112c-13.67032415 13.04894578-31.06891852 19.88410785-48.46751288 19.88410785z","p-id":"3377"})]),t.createElementVNode("symbol",{id:"close-circle-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 929.959184c-230.4 0-417.959184-187.559184-417.959184-417.959184s187.559184-417.959184 417.959184-417.959184 417.959184 187.559184 417.959184 417.959184-187.559184 417.959184-417.959184 417.959184z m0-794.122449c-207.412245 0-376.163265 168.75102-376.163265 376.163265s168.75102 376.163265 376.163265 376.163265 376.163265-168.75102 376.163265-376.163265-168.75102-376.163265-376.163265-376.163265z","p-id":"4262"}),t.createElementVNode("path",{d:"M355.265306 689.632653c-5.22449 0-10.44898-2.089796-14.628571-6.269388-8.359184-8.359184-8.359184-21.420408 0-29.779592l313.469387-313.469387c8.359184-8.359184 21.420408-8.359184 29.779592 0 8.359184 8.359184 8.359184 21.420408 0 29.779592l-313.469387 313.469387c-4.702041 4.179592-9.926531 6.269388-15.151021 6.269388z","p-id":"4263"}),t.createElementVNode("path",{d:"M668.734694 689.632653c-5.22449 0-10.44898-2.089796-14.628572-6.269388l-313.469387-313.469387c-8.359184-8.359184-8.359184-21.420408 0-29.779592 8.359184-8.359184 21.420408-8.359184 29.779592 0l313.469387 313.469387c8.359184 8.359184 8.359184 21.420408 0 29.779592-4.702041 4.179592-9.926531 6.269388-15.15102 6.269388z","p-id":"4264"})]),t.createElementVNode("symbol",{id:"close-circle-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64z m238.4 641.6l-45.6 45.6L512 557.6 318.4 750.4l-45.6-45.6L467.2 512 273.6 318.4l45.6-45.6L512 467.2l193.6-193.6 45.6 45.6L557.6 512l192.8 193.6z","p-id":"5094"})]),t.createElementVNode("symbol",{id:"arrow-left",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M667.648 1014.44266667c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626667l-433.08373333-433.08373333c-11.4688-11.4688-17.47626667-26.76053333-17.47626667-42.5984 0-15.83786667 6.5536-31.1296 17.47626667-42.5984l433.08373333-433.08373334c23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0 23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968l-390.48533333 390.48533334 390.48533333 390.48533333c23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968-12.01493333 12.01493333-27.30666667 17.47626667-42.5984 17.47626667z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"arrow-top",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M947.8144 795.98933333c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626666l-389.9392-391.03146667L124.24533333 777.4208c-23.48373333 23.48373333-61.71306667 23.48373333-85.1968 0-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968l433.62986667-432.5376c23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0l432.5376 433.62986667c23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968-12.01493333 12.01493333-27.30666667 17.47626667-42.5984 17.47626666z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"arrow-right",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M338.3296 1014.44266667c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626667-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968l390.48533333-390.48533333-389.9392-389.9392c-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968 23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0L814.01173333 479.232c11.4688 11.4688 17.47626667 26.76053333 17.47626667 42.5984 0 15.83786667-6.5536 31.1296-17.47626667 42.5984L380.928 996.9664c-11.4688 12.01493333-27.30666667 17.47626667-42.5984 17.47626667z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"arrow-bottom",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M515.2768 795.98933333c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626666L39.59466667 346.5216c-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968 23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0l391.03146666 389.9392L905.216 260.23253333c23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0 23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968l-432.5376 433.62986667c-11.4688 11.4688-27.30666667 16.93013333-42.5984 16.93013333z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"double-arrow-right",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M491.49451378 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751289-19.88410785-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l376.55529244-376.55529245-373.44840058-373.44840058c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502579 26.71926992-26.71926992 70.21575585-26.71926992 96.93502577 0l421.91591348 421.91591349c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578l-425.02280533 425.02280533c-13.67032415 13.67032415-31.06891852 19.88410785-48.46751289 19.88410785z","p-id":"3376"}),t.createElementVNode("path",{d:"M126.74541037 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751289-19.88410785-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l376.55529244-376.55529245-373.44840059-373.44840058c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502579 26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0l421.91591348 421.91591349c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578l-425.02280534 425.02280533c-13.67032415 13.67032415-31.06891852 19.88410785-48.46751288 19.88410785z","p-id":"3377"})]),t.createElementVNode("symbol",{id:"double-arrow-left",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M539.3406483 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751289-19.88410785l-425.02280533-425.02280533c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l421.91591347-421.91591349c26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0 26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502579l-374.06977896 374.06977895 376.55529245 376.55529245c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578-13.04894578 13.04894578-30.44754015 19.26272948-47.84613452 19.26272948z","p-id":"3376"}),t.createElementVNode("path",{d:"M904.0897517 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751288-19.88410785l-425.02280534-425.02280533c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l421.91591349-421.91591349c26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0 26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502579l-374.06977897 374.06977895 376.55529244 376.55529245c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578-13.04894578 13.04894578-30.44754015 19.26272948-47.84613452 19.26272948z","p-id":"3377"})]),t.createElementVNode("symbol",{id:"double-triangle",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M805.29059082 365.35470459l-254.76513185-320.63123911c-20.50548622-26.09789155-60.27370192-26.09789155-81.40056652 0L213.73838222 365.35470459c-26.71926992 34.17581037-2.48551348 84.50745837 41.01097245 84.50745838h510.15164208c43.49648592 0 67.73024237-50.331648 40.38959407-84.50745838zM805.29059082 658.64529541l-254.76513185 320.63123911c-20.50548622 26.09789155-60.27370192 26.09789155-81.40056652 0l-254.76513186-320.63123911c-27.3406483-34.17581037-3.10689185-84.50745837 40.38959408-84.50745838h510.15164208c43.49648592 0 67.73024237 50.331648 40.38959407 84.50745838z","p-id":"3530"})]),t.createElementVNode("symbol",{id:"triangle-top",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M972.78591523 711.15323455l-400.25895178-503.74053444c-32.21596439-41.00213652-94.69541053-41.00213652-127.88761631 0l-400.25895181 503.74053444c-42.95461922 53.69327404-4.88120672 132.76882302 63.45568751 132.76882301h801.49414493c68.3368942 0 106.4103067-79.07554901 63.45568746-132.76882301z","p-id":"3683"})]),t.createElementVNode("symbol",{id:"triangle-bottom",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M970.97740884 312.84676545l-400.25895181 503.74053444c-32.21596439 41.00213652-94.69541053 41.00213652-127.8876163 0L41.59564757 312.84676545c-41.97837786-53.69327404-3.9049654-132.76882302 64.43192883-132.76882301h801.49414495c68.3368942 0 106.4103067 79.07554901 63.45568749 132.76882301z","p-id":"3989"})]),t.createElementVNode("symbol",{id:"playing",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"4142"}),t.createElementVNode("path",{d:"M360.53902222 281.89582222h69.90506667v466.03377778H360.53902222zM593.55591111 281.89582222h69.90506667v466.03377778h-69.90506667z","p-id":"4143"})]),t.createElementVNode("symbol",{id:"playing-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 68.266667C266.24 68.266667 68.266667 266.24 68.266667 512s197.973333 443.733333 443.733333 443.733333 443.733333-197.973333 443.733333-443.733333S757.76 68.266667 512 68.266667z m-68.266667 610.986666c0 20.48-17.066667 37.546667-37.546666 37.546667s-37.546667-17.066667-37.546667-37.546667v-327.68c0-20.48 17.066667-37.546667 37.546667-37.546666s37.546667 17.066667 37.546666 37.546666v327.68z m211.626667-6.826666c0 20.48-17.066667 37.546667-37.546667 37.546666s-37.546667-17.066667-37.546666-37.546666v-327.68c0-20.48 17.066667-37.546667 37.546666-37.546667s37.546667 17.066667 37.546667 37.546667v327.68z","p-id":"4417"})]),t.createElementVNode("symbol",{id:"success-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M462.52032 668.12131555c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-121.16878223-121.16878222c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l96.11946667 96.11946666L679.80856889 366.36444445c13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888L487.56963555 657.63555555c-6.99050667 6.99050667-15.72864 10.48576-25.04931555 10.48576z","p-id":"4450"}),t.createElementVNode("path",{d:"M523.1047111 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.9863111-500.98631111s224.86129778-500.98631111 500.9863111-500.98631111 500.98631111 224.86129778 500.98631112 500.98631111-224.86129778 500.98631111-500.98631112 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124443 431.08124445s193.40401778 431.08124445 431.08124443 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"4451"})]),t.createElementVNode("symbol",{id:"success-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M510.645654 959.349561c-247.25636 0-447.691345-200.446241-447.691345-447.700555 0-247.24715 200.436008-447.692369 447.691345-447.692369 247.25636 0 447.693392 200.445218 447.693392 447.692369C958.339046 758.90332 757.902014 959.349561 510.645654 959.349561zM784.191774 354.236883l-14.387685-14.387685c-7.949043-7.949043-20.826328-7.949043-28.77537 0L442.600909 632.086006 333.044724 517.430686c-3.597945-3.596921-12.958126-0.060375-20.908192 7.888667l-14.387685 14.389732c-7.949043 7.949043-11.465123 17.309224-7.869225 20.895913L436.064029 713.574948c3.576455 3.597945 12.936637 0.049119 20.886703-7.888667l14.368242-14.388708c2.542916-2.523473 4.411473-5.136997 5.960759-7.710612l306.913065-300.56345C792.142863 375.083677 792.142863 362.185926 784.191774 354.236883z","p-id":"5410"})]),t.createElementVNode("symbol",{id:"error-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M523.65084445 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631112-500.98631111s224.86129778-500.98631111 500.98631112-500.98631111 500.98631111 224.86129778 500.9863111 500.98631111-224.86129778 500.98631111-500.9863111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124444-431.08124445-193.40401778-431.08124445-431.08124444-431.08124445z","p-id":"4758"}),t.createElementVNode("path",{d:"M688.51029333 711.81198222c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576L334.32462222 372.18986667c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l329.71889778 329.71889777c13.39847111 13.39847111 13.39847111 35.53507555 0 49.5160889-6.99050667 6.40796445-16.31118222 9.90321778-25.04931556 9.90321777z","p-id":"4759"}),t.createElementVNode("path",{d:"M358.79139555 711.81198222c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889L663.46097778 322.67377778c13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889L383.84071111 701.32622222c-6.99050667 6.99050667-15.72864 10.48576-25.04931556 10.48576z","p-id":"4760"})]),t.createElementVNode("symbol",{id:"error-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64z m215 612.05a36.11 36.11 0 0 1 0 50.95 36.11 36.11 0 0 1-50.91 0L512 562.91 348 727a36.11 36.11 0 0 1-51 0 36.11 36.11 0 0 1 0-50.91l164-164L297 348a36.11 36.11 0 0 1 0-51 36.11 36.11 0 0 1 51 0l164 164.09 164-164a36.11 36.11 0 0 1 51-0.09 36.11 36.11 0 0 1 0 51L562.91 512z","p-id":"6575"})]),t.createElementVNode("symbol",{id:"location-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M517.46133333 556.20266667c-84.10453333 0-152.91733333-68.8128-152.91733333-152.91733333s68.8128-152.91733333 152.91733333-152.91733334 152.91733333 68.8128 152.91733334 152.91733334-68.8128 152.91733333-152.91733334 152.91733333z m0-240.29866667c-48.05973333 0-87.38133333 39.3216-87.38133333 87.38133334s39.3216 87.38133333 87.38133333 87.38133333 87.38133333-39.3216 87.38133334-87.38133333-39.3216-87.38133333-87.38133334-87.38133334z","p-id":"5068"}),t.createElementVNode("path",{d:"M519.64586667 993.10933334c-6.00746667 0-12.56106667-1.6384-17.47626667-5.46133334-16.384-9.8304-388.84693333-252.85973333-388.84693333-560.3328 0-223.91466667 182.40853333-406.3232 406.3232-406.3232 223.91466667 0 406.3232 182.40853333 406.3232 406.3232 0 312.9344-373.00906667 551.04853333-388.84693334 560.87893334-5.46133333 3.2768-11.4688 4.9152-17.47626666 4.9152z m0-906.58133334C331.776 86.528 178.85866667 239.44533334 178.85866667 427.3152c0 236.47573333 268.6976 442.91413333 340.7872 493.70453334 72.0896-50.24426667 340.24106667-252.85973333 340.24106666-493.70453334 0-187.86986667-152.91733333-340.7872-340.24106666-340.7872z","p-id":"5069"})]),t.createElementVNode("symbol",{id:"location-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M516.320553 65.913723C327.473365 66.759049 174.512778 221.085162 175.350878 409.954025c0.787526 177.21493 282.974557 496.596289 315.154731 532.417865a39.737529 39.737529 0 0 0 59.440119-0.2601c31.862273-36.110576 311.202653-357.991787 310.415127-535.213942-0.838101-188.861638-155.178664-341.822225-344.040302-340.984125z m2.196402 492.860961c-76.483906 0.339575-139.009102-61.614845-139.348677-138.105976-0.339575-76.491131 61.629295-139.001877 138.105976-139.334227 76.512806-0.3468 139.023552 61.60762 139.363127 138.091526 0.339575 76.498356-61.614845 139.001877-138.120426 139.348677z","p-id":"7595"})]),t.createElementVNode("symbol",{id:"menu-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M468.50351408 468.50351408H170.2418963c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V170.2418963c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h136.70324148c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v298.26161778zM170.2418963 83.24892445c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v136.70324148c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h223.69621333V170.2418963c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185H170.2418963zM853.7581037 468.50351408h-298.26161778V170.2418963c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h136.70324148c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v136.70324148c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z m-223.69621333-74.56540445h223.69621333c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185V170.2418963c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-136.70324148c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v223.69621333zM306.94513778 1015.31648H170.2418963c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763v-136.70324148c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h298.26161778v298.26161778c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z m-136.70324148-385.25458963c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v136.70324148c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h136.70324148c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185v-223.69621333H170.2418963zM853.7581037 1015.31648h-136.70324148c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763v-298.26161778h298.26161778c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v136.70324148c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z m-223.69621333-385.25458963v223.69621333c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h136.70324148c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185v-136.70324148c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-223.69621333z","p-id":"5376"})]),t.createElementVNode("symbol",{id:"menu-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M306.94513778 8.68352H170.2418963c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.5583763v136.70324148c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h260.97891555c20.50548622 0 37.28270222-16.777216 37.28270223-37.28270223V170.2418963c0-88.85710697-72.70126933-161.5583763-161.5583763-161.5583763zM853.7581037 8.68352h-136.70324148c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.5583763v260.97891555c0 20.50548622 16.777216 37.28270222 37.28270223 37.28270223h260.97891555c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763V170.2418963c0-88.85710697-72.70126933-161.5583763-161.5583763-161.5583763zM431.22081185 555.49648592H170.2418963c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.5583763v136.70324148c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h136.70324148c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763v-260.97891555c0-20.50548622-16.777216-37.28270222-37.28270223-37.28270223zM853.7581037 555.49648592h-260.97891555c-20.50548622 0-37.28270222 16.777216-37.28270223 37.28270223v260.97891555c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h136.70324148c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763v-136.70324148c0-88.85710697-72.70126933-161.5583763-161.5583763-161.5583763z","p-id":"5529"})]),t.createElementVNode("symbol",{id:"compass-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M331.41191111 727.54062222c-9.32067555 0-18.05880889-3.49525333-24.46677333-10.48576-9.32067555-9.32067555-12.23338667-22.71914667-8.73813333-34.95253333l85.05116444-276.12501334c3.49525333-11.06830222 12.23338667-19.80643555 23.30168889-23.30168888l276.12501333-85.05116445c12.23338667-4.07779555 25.63185778-0.58254222 34.95253334 8.73813333 9.32067555 9.32067555 12.23338667 22.71914667 8.73813333 34.95253334l-85.05116445 276.12501333c-3.49525333 11.06830222-12.23338667 19.80643555-23.30168888 23.30168889l-276.12501334 85.05116444c-3.49525333 1.16508445-6.99050667 1.74762667-10.48576 1.74762667z m113.01319111-283.11552l-60.00184889 195.15164445 195.15164445-60.00184889 60.00184889-195.15164445-195.15164445 60.00184889z m163.11182223 163.11182223z","p-id":"5682"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"5683"})]),t.createElementVNode("symbol",{id:"compass-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m108.544 620.544l-398.336 181.248 181.248-398.336 398.336-181.248z","p-id":"10207"}),t.createElementVNode("path",{d:"M512 512m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z","p-id":"10208"})]),t.createElementVNode("symbol",{id:"share-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M820.74737778 365.19936c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889L886.57464889 214.90346667l-90.87658667-90.87658667c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0L960.55751111 190.43669333c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889L845.21415111 354.7136c-6.40796445 6.99050667-15.72864 10.48576-24.46677333 10.48576z","p-id":"5990"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253333s-15.72864 34.95253333-34.95253333 34.95253333c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333c0 276.12501333-224.86129778 500.98631111-500.98631111 500.98631111z","p-id":"5991"}),t.createElementVNode("path",{d:"M512 599.38133333h-2.33016889c-19.22389333-1.16508445-33.78744889-17.47626667-32.62236444-36.70016 8.15559111-136.31488 53.01134222-238.84231111 133.40216888-305.25212444 117.67352889-96.70200889 266.80433778-78.06065778 273.21230223-76.89557334 19.22389333 2.33016889 32.62236445 20.38897778 29.70965333 39.61287112-2.33016889 19.22389333-20.38897778 32.62236445-39.03032889 29.70965333-1.74762667 0-126.41166222-15.14609778-220.20096 62.33201778-64.66218667 53.59388445-100.77980445 139.22759111-107.77031111 254.57095111-0.58254222 18.05880889-15.72864 32.62236445-34.36999111 32.62236444z","p-id":"5992"})]),t.createElementVNode("symbol",{id:"share-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M511 64C263.5 64 63 264.5 63 512c0 247.4 200.6 448 448 448s448-200.6 448-448c0-247.5-200.6-448-448-448z m-66.8 448c0 10.2-2.1 20-5.8 28.9L561.6 623c12-8.5 26.7-13.5 42.5-13.5 40.9 0 74.1 33.2 74.1 74.1 0 40.9-33.2 74.1-74.1 74.1-40.9 0-74.1-33.2-74.1-74.1 0-5.7 0.7-11.2 1.9-16.6l-131.4-87.6c-9.3 4.2-19.6 6.6-30.5 6.6-40.9 0-74.1-33.2-74.1-74.1 0-40.9 33.2-74.1 74.1-74.1 10.9 0 21.2 2.4 30.5 6.6l131.4-87.6c-1.2-5.3-1.9-10.9-1.9-16.6 0-40.9 33.2-74.1 74.1-74.1 40.9 0 74.1 33.2 74.1 74.1s-33.2 74.1-74.1 74.1c-15.8 0-30.5-5-42.5-13.5l-123.2 82.1c3.7 9.1 5.8 18.8 5.8 29.1z","p-id":"19089"})]),t.createElementVNode("symbol",{id:"superpose-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M521.68248888 1007.16088889c-276.12501333 0-500.98631111-224.86129778-500.9863111-500.98631111s224.86129778-500.98631111 500.9863111-500.98631111 500.98631111 224.86129778 500.98631112 500.98631111-224.86129778 500.98631111-500.98631112 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124444 431.08124445-193.40401778 431.08124445-431.08124444-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"6301"}),t.createElementVNode("path",{d:"M706.93091555 726.37553778c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576L311.38474666 345.39292445c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.5160889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l370.49685333 370.49685334c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889-6.40796445 6.99050667-15.14609778 10.48576-24.46677333 10.48576z","p-id":"6302"})]),t.createElementVNode("symbol",{id:"superpose-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M830.5664 626.55488l91.0336 47.9232-408.96512 212.992L102.4 674.39616l91.36128-47.9232 318.8736 165.56032 317.92128-165.4784z m0-160.5632l91.0336 47.9232-408.96512 212.992L102.4 513.8432l91.36128-47.9232 318.8736 165.57056 317.92128-165.4784zM512.63488 136.52992L921.6 351.6928l-408.96512 212.992L102.4 351.6928l410.24512-215.16288z","p-id":"23547"})]),t.createElementVNode("symbol",{id:"praise-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M743.85180445 1019.97681778c-53.59388445 0-300.59178667-1.74762667-481.17987556-3.49525333-65.24472889-0.58254222-121.75132445-1.16508445-157.2864-1.16508445-38.44778667-0.58254222-69.32252445-31.45728-69.32252444-69.90506667V435.68696889c0-38.44778667 31.45728-69.90506667 69.90506666-69.90506667h136.89742222c3.49525333 0 94.37184 2.91271111 135.73233778-125.24657777C423.45358222 101.30773333 438.59968 64.60757333 442.09493333 55.86944c3.49525333-9.32067555 19.22389333-43.69066667 58.83676445-54.75896889 39.61287111-11.06830222 85.63370667 5.24288 138.06250667 48.93354667 94.95438222 68.73998222 34.36999111 240.00739555 33.78744888 241.75502222-3.49525333 9.90321778-12.23338667 41.94304-23.88423111 86.79879111h263.30908445l2.91271111 0.58254222c5.24288 1.16508445 53.01134222 11.06830222 77.47811555 52.4288 10.48576 18.05880889 20.38897778 49.51608889 5.24288 93.78929778-27.37948445 79.80828445-117.09098667 379.81752889-124.66403555 405.44938667-6.99050667 32.62236445-41.36049778 89.12896-129.32437333 89.12896zM105.38552889 435.68696889v510.30698666c36.11761778 0 92.62421333 0.58254222 157.2864 1.16508445 180.00554667 1.16508445 427.00344889 3.49525333 480.59733333 3.49525333 49.51608889 0 58.83676445-26.79694222 60.58439111-33.78744888v-2.91271112l0.58254222-1.16508444c4.66033778-13.39847111 97.86709333-325.05856 126.99420445-409.52718222 5.24288-15.14609778 5.24288-27.37948445 0.58254222-35.53507556-5.82542222-10.48576-20.38897778-16.31118222-27.37948444-18.64135111h-286.02823111c-14.56355555 0-27.96202667-6.40796445-36.70016-18.05880889-8.73813333-11.06830222-12.23338667-26.2144-8.73813334-40.19541333 11.06830222-45.43829333 26.2144-104.27505778 33.20490667-122.91640889 12.23338667-33.20490667 32.03982222-132.23708445-9.32067555-161.36419556l-2.3301689-1.74762666c-46.60337778-39.61287111-68.73998222-37.86524445-74.56540444-36.11761778-8.15559111 2.33016889-11.65084445 9.90321778-12.81592889 12.23338666l-0.58254222 2.3301689-0.58254222 1.16508444c-0.58254222 0.58254222-12.23338667 27.96202667-60.58439111 177.67537778C388.50104889 435.68696889 256.84650667 436.26951111 239.37024 435.68696889h-133.98471111z","p-id":"6610"}),t.createElementVNode("path",{d:"M202.67008 499.18407111h69.90506667v399.04142222h-69.90506667V499.18407111z","p-id":"6611"})]),t.createElementVNode("symbol",{id:"praise-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M978.03377778 446.75527111c-17.39859437-29.20478341-50.95302637-38.52545897-60.8950803-41.01097244h-297.6402394l8.07791881-32.31167526c13.04894578-49.08889125 21.12686459-79.53643141 24.85513481-90.09986371 2.48551348-6.2137837 53.43853985-157.83010608-24.85513481-214.99691615l-0.62137837-0.62137837-0.62137837-0.62137836c-37.28270222-31.06891852-70.21575585-46.60337778-97.55640415-46.60337779-6.2137837 0-12.42756741 0.62137837-18.01997275 2.48551349-29.20478341 8.07791882-40.38959408 34.17581037-42.25372917 39.7682157l-1.24275675 1.86413511c-16.15583763 40.38959408-43.49648592 122.41153897-63.38059378 183.92799764-44.1178643 137.94599822-141.67426845 144.7811603-160.93699792 144.78116028H103.75441067c-24.85513482 0-44.73924267 19.88410785-44.73924267 44.73924267V953.17864297c0 24.85513482 19.26272948 44.1178643 44.1178643 44.73924266 29.82616178 0 74.56540445 0.62137837 126.13980918 0.62137837l32.93305363 0.62137837c188.27764622 1.86413511 433.10072415 3.72827022 485.91788564 3.72827022 87.61435022 0 103.77018785-62.13783703 105.01294458-69.59437748v-2.48551348c9.32067555-31.06891852 98.79916089-329.95191467 126.13980919-410.73110281 13.67032415-35.41856711 6.83516208-59.65232355-1.24275674-73.32264771z","p-id":"6764"}),t.createElementVNode("path",{d:"M174.59154489 474.71729778h78.29367466v445.52829155H174.59154489V474.71729778z","p-id":"6765"})]),t.createElementVNode("symbol",{id:"amplify-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M462.12209778 926.77006222c-253.98840889 0-460.79089778-206.80248889-460.79089778-460.79089777C1.3312 211.99075555 208.13368889 5.18826667 462.12209778 5.18826667s460.79089778 206.80248889 460.79089778 460.79089778c0 253.98840889-206.80248889 460.79089778-460.79089778 460.79089777z m0-851.67672889C246.58147556 75.09333333 71.23626667 250.43854222 71.23626667 465.97916445s175.34520889 390.88583111 390.88583111 390.8858311c215.54062222 0 390.88583111-175.34520889 390.88583111-390.8858311S677.66272 75.09333333 462.12209778 75.09333333z","p-id":"6918"}),t.createElementVNode("path",{d:"M973.59416889 1024.05461333c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-214.95808-214.95808c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l214.95808 214.95808c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888-6.99050667 6.99050667-15.72864 10.48576-25.04931556 10.48576zM462.12209778 704.23893333c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333V262.67192889c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253334 34.95253334V669.2864c0 19.22389333-15.72864 34.95253333-34.95253334 34.95253333z","p-id":"6919"}),t.createElementVNode("path",{d:"M665.42933334 500.93169778H258.81486222c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253334H665.42933334c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253334s-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"6920"})]),t.createElementVNode("symbol",{id:"amplify-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM618.666667 512H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 0 42.666667z","p-id":"25411"})]),t.createElementVNode("symbol",{id:"dustbin-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M738.38819555 1021.5302637H303.4233363c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.55837629V188.88324741c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270223h683.51620741c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270223v671.08864c0 88.85710697-72.70126933 161.5583763-161.5583763 161.55837629zM216.43036444 226.16594963v633.80593778c0 47.84613452 39.14683733 86.99297185 86.99297186 86.99297184h434.96485925c47.84613452 0 86.99297185-39.14683733 86.99297186-86.99297184V226.16594963H216.43036444z","p-id":"7073"}),t.createElementVNode("path",{d:"M524.01265778 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270223-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM359.34738963 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM688.67792592 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270223 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222zM986.9395437 226.16594963H54.87198815c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h932.06755555c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270223s-16.777216 37.28270222-37.28270222 37.28270222z","p-id":"7074"}),t.createElementVNode("path",{d:"M713.53306074 226.16594963H328.27847111c-13.04894578 0-24.85513482-6.83516208-31.69029689-17.39859438-6.83516208-10.5634323-7.45654045-24.23375645-1.86413511-36.03994547l71.45851259-149.13080889c6.2137837-13.04894578 19.26272948-21.12686459 33.554432-21.12686459h242.33756445c14.29170252 0 27.3406483 8.07791882 33.554432 21.12686459l71.45851259 149.13080889c5.59240533 11.80618903 4.97102697 24.85513482-1.86413511 36.03994547-6.83516208 10.5634323-18.64135111 17.39859437-31.69029689 17.39859438zM387.3094163 151.60054518h267.19269925l-35.41856711-74.56540443H423.34936178l-36.03994548 74.56540443z","p-id":"7075"})]),t.createElementVNode("symbol",{id:"dustbin-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M986.9395437 151.60054518h-249.79410489L676.25035851 23.59660089c-6.2137837-13.04894578-19.26272948-21.12686459-33.554432-21.12686459h-242.33756443c-14.29170252 0-27.3406483 8.07791882-33.554432 21.12686459L304.66609303 151.60054518H54.87198815c-20.50548622 0-37.28270222 16.777216-37.28270223 37.28270223s16.777216 37.28270222 37.28270223 37.28270222h86.99297185v633.80593778c0 88.85710697 72.70126933 161.5583763 161.5583763 161.55837629h434.96485925c88.85710697 0 161.5583763-72.70126933 161.5583763-161.55837629V226.16594963h86.99297185c20.50548622 0 37.28270222-16.777216 37.28270222-37.28270222s-16.777216-37.28270222-37.28270222-37.28270223z","p-id":"7228"}),t.createElementVNode("path",{d:"M524.01265778 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270223-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM359.34738963 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM688.67792592 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270223 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222z","p-id":"7229"})]),t.createElementVNode("symbol",{id:"reply-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M514.33016889 1016.84337778c-78.06065778 0-154.95623111-18.05880889-224.27875556-53.01134223-27.37948445 7.57304889-69.90506667 18.05880889-110.68302222 28.54456889-22.13660445 5.82542222-44.27320889 11.06830222-64.07964444 16.31118222-22.71914667 5.82542222-46.60337778-0.58254222-64.07964445-16.31118222-16.89372445-16.31118222-24.46677333-39.61287111-19.80643555-62.91456 10.48576-50.09863111 18.64135111-101.36234667 26.2144-142.14030222 2.91271111-17.47626667 5.82542222-33.78744889 8.15559111-47.18592-39.61287111-79.22574222-57.67168-168.93724445-51.84625778-258.06620444 15.72864-256.90112 231.85180445-461.95598222 489.33546667-467.19886223 137.47996445-2.91271111 266.22179555 49.51608889 363.50634666 146.80064s149.13080889 226.02638222 146.80064 363.50634667l-33.78744888-0.58254222 33.78744888 0.58254222c-4.66033778 258.64874667-210.88028445 473.60682667-467.78140444 489.91800889-10.48576 1.16508445-20.97152 1.74762667-31.45728 1.74762667z m-224.27875556-121.16878223c10.48576 0 20.97152 2.33016889 30.87473778 7.57304889 68.15744 33.78744889 145.05301333 49.51608889 221.36604444 44.27320889 222.53112889-13.98101333 400.20650667-200.39452445 404.28430223-423.50819555 2.33016889-118.83861333-42.52558222-230.68672-126.41166223-313.99025778S625.01319111 81.28056888 506.17457778 83.61073778c-223.69621333 3.49525333-409.52718222 180.58808889-424.09073778 403.11921777-5.24288 77.47811555 10.48576 154.37368889 44.85575111 222.53112889 6.99050667 13.39847111 9.32067555 28.54456889 6.40796444 43.10812444-2.33016889 12.81592889-5.24288 29.12711111-8.1555911 46.60337778-6.99050667 41.36049778-15.72864 93.20675555-26.2144 143.88792889 19.80643555-5.24288 41.94304-11.06830222 64.07964444-16.31118222 40.19541333-10.48576 82.13845333-20.38897778 108.93539556-27.96202667 5.24288-2.33016889 11.65084445-2.91271111 18.05880888-2.91271111z","p-id":"7382"}),t.createElementVNode("path",{d:"M513.74762667 814.11868444c-136.31488 0-246.99790222-110.68302222-246.99790222-246.99790222h68.15744c0 99.03217778 79.80828445 178.84046222 178.84046222 178.84046222s178.84046222-79.80828445 178.84046222-178.84046222h68.15744c0 136.31488-110.68302222 246.99790222-246.99790222 246.99790222z","p-id":"7383"})]),t.createElementVNode("symbol",{id:"reply-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M864.321536 166.09871644c-93.82813392-93.82813392-218.103808-145.40253867-349.83602252-145.40253866h-10.5634323c-256.62926697 4.97102697-470.38342637 208.78313245-486.539264 463.5482643-6.2137837 87.61435022 11.80618903 176.47145718 51.57440474 256.00788858l3.72827023 6.83516208-1.24275674 7.45654044c-0.62137837 5.59240533-1.86413511 11.18481067-3.10689186 17.39859437-1.86413511 9.94205392-3.72827022 20.50548622-5.59240533 31.69029689-1.86413511 11.18481067-4.34964859 22.36962133-6.2137837 34.79718874-6.2137837 34.79718875-13.04894578 74.56540445-21.1268646 113.71224178-3.10689185 16.15583763 1.86413511 31.69029689 13.67032416 43.49648592 9.32067555 8.07791882 21.12686459 12.42756741 32.93305362 12.42756742 3.72827022 0 7.45654045-0.62137837 11.18481067-1.24275675l67.108864-17.39859437c53.43853985-13.04894578 90.72124208-22.9909997 114.95499852-29.2047834l8.69929719-2.48551348 8.07791881 4.34964858c68.35162075 34.17581037 145.40253867 52.19578311 222.45345659 52.19578312 9.94205392 0 19.88410785-0.62137837 29.82616177-1.86413512h1.24275675c256.00788859-16.15583763 459.81999408-229.90999703 464.16964267-486.539264 2.48551348-135.46048475-49.08889125-263.46442903-145.40253867-359.77807644z","p-id":"7536"}),t.createElementVNode("path",{d:"M513.86413511 827.86668088c-141.67426845 0-257.25064533-114.95499852-257.25064533-257.25064533h70.83713422c0 102.52743111 83.26470163 186.41351111 186.41351111 186.41351111s186.41351111-83.26470163 186.41351111-186.41351111h70.83713423c0 141.67426845-115.57637689 257.25064533-257.25064534 257.25064533z","p-id":"7537"})]),t.createElementVNode("symbol",{id:"notice-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M276.0704 773.19964445h-151.46097778c-51.26371555 0-93.20675555-41.94304-93.20675555-93.20675556v-349.52533333c0-51.26371555 41.94304-93.20675555 93.20675555-93.20675556h151.46097778c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253334v466.03377778c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z m-151.46097778-466.03377778c-12.81592889 0-23.30168889 10.48576-23.30168889 23.30168889v349.52533333c0 12.81592889 10.48576 23.30168889 23.30168889 23.30168889h116.50844445v-396.12871111h-116.50844445z","p-id":"7690"}),t.createElementVNode("path",{d:"M567.34151111 965.43857778c-6.40796445 0-13.39847111-1.74762667-19.22389333-5.82542222l-291.27111111-189.32622222c-9.90321778-6.40796445-15.72864-17.47626667-15.72864-29.12711112V275.12604445c0-11.65084445 5.82542222-22.71914667 15.72864-29.12711111l291.27111111-195.15164445c10.48576-6.99050667 24.46677333-8.15559111 36.11761777-1.74762667 11.65084445 5.82542222 18.64135111 18.05880889 18.64135112 30.87473778v850.51164445c0 12.81592889-6.99050667 24.46677333-18.05880889 30.87473777-5.82542222 2.91271111-11.65084445 4.07779555-17.47626667 4.07779556z m-256.31857778-243.50264889l221.36604445 143.88792889V145.21912889l-221.36604445 148.54826667v428.16853333zM797.44568889 840.192c-11.65084445 0-22.71914667-5.82542222-29.70965334-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100444 96.11946667-61.16693333 153.20860445-165.44199111 153.20860445-279.03772445s-57.08913778-217.87079111-153.20860445-279.03772444a34.89427911 34.89427911 0 0 1-10.48576-48.35100445c10.48576-16.31118222 32.03982222-20.97152 48.35100445-10.48576 115.92590222 73.98286222 185.24842667 200.39452445 185.24842667 337.87448889s-69.32252445 263.89162667-185.24842667 338.45703111c-5.82542222 3.49525333-12.23338667 5.24288-18.64135111 5.24288z","p-id":"7691"}),t.createElementVNode("path",{d:"M705.98656 706.20728889c-11.65084445 0-22.71914667-5.82542222-29.70965333-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100445 50.09863111-32.03982222 79.80828445-86.21624889 79.80828444-145.05301333s-29.70965333-113.59573333-79.80828444-145.05301333a34.89427911 34.89427911 0 0 1-10.48576-48.35100444c10.48576-16.31118222 32.03982222-20.97152 48.35100444-10.48576 69.90506667 44.85575111 111.84810667 121.16878222 111.84810667 204.47232s-41.94304 159.61656889-111.84810667 204.47232c-5.82542222 2.91271111-12.23338667 4.66033778-18.64135111 4.66033777z","p-id":"7692"})]),t.createElementVNode("symbol",{id:"notice-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M583.65269333 49.09966222c-11.65084445-5.82542222-25.04931555-5.24288-36.11761778 1.74762667l-277.87264 186.41351111H124.60942222c-51.26371555 0-93.20675555 41.94304-93.20675555 93.20675556v349.52533333c0 51.26371555 41.94304 93.20675555 93.20675555 93.20675556H261.50684445l287.19331555 186.41351111c5.82542222 3.49525333 12.23338667 5.82542222 19.22389333 5.82542222 5.82542222 0 11.65084445-1.16508445 16.89372445-4.07779556 11.06830222-5.82542222 18.05880889-18.05880889 18.05880889-30.87473777v-850.51164445c-0.58254222-12.81592889-7.57304889-24.46677333-19.22389334-30.87473778zM797.44568889 840.192c-11.65084445 0-22.71914667-5.82542222-29.70965334-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100444 96.11946667-61.16693333 153.20860445-165.44199111 153.20860445-279.03772445s-57.08913778-217.87079111-153.20860445-279.03772444a34.89427911 34.89427911 0 0 1-10.48576-48.35100445c10.48576-16.31118222 32.03982222-20.97152 48.35100445-10.48576 115.92590222 73.98286222 185.24842667 200.39452445 185.24842667 337.87448889s-69.32252445 263.89162667-185.24842667 338.45703111c-5.82542222 3.49525333-12.23338667 5.24288-18.64135111 5.24288z","p-id":"7845"}),t.createElementVNode("path",{d:"M705.98656 706.20728889c-11.65084445 0-22.71914667-5.82542222-29.70965333-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100445 50.09863111-32.03982222 79.80828445-86.21624889 79.80828444-145.05301333s-29.70965333-113.59573333-79.80828444-145.05301333a34.89427911 34.89427911 0 0 1-10.48576-48.35100444c10.48576-16.31118222 32.03982222-20.97152 48.35100444-10.48576 69.90506667 44.85575111 111.84810667 121.16878222 111.84810667 204.47232s-41.94304 159.61656889-111.84810667 204.47232c-5.82542222 2.91271111-12.23338667 4.66033778-18.64135111 4.66033777z","p-id":"7846"})]),t.createElementVNode("symbol",{id:"link-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M380.928 749.09468445c-33.78744889 0-65.82727111-13.39847111-89.71150222-37.28270223-49.51608889-49.51608889-49.51608889-129.90691555 0-178.84046222l59.41930667-59.41930667c13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889l-59.41930666 59.41930667c-22.13660445 22.13660445-22.13660445 58.25422222 0 80.39082666 10.48576 10.48576 25.04931555 16.89372445 40.19541333 16.89372445 15.14609778 0 29.12711111-5.82542222 40.19541333-16.89372445l106.02268445-106.02268444c10.48576-10.48576 16.89372445-25.04931555 16.89372444-40.19541333 0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253334 34.95253333c0 33.78744889-13.39847111 65.82727111-37.28270222 89.71150222l-106.02268445 106.02268445c-24.46677333 23.30168889-55.92405333 36.70016-89.71150222 36.70016z","p-id":"7999"}),t.createElementVNode("path",{d:"M671.61656889 560.93354667c-8.73813333 0-18.05880889-3.49525333-24.46677334-10.48576-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889l59.41930667-59.41930667c10.48576-10.48576 16.89372445-25.04931555 16.89372445-40.19541333 0-15.14609778-5.82542222-29.12711111-16.89372445-40.19541333-10.48576-10.48576-25.04931555-16.89372445-40.19541333-16.89372445-15.14609778 0-29.12711111 5.82542222-40.19541334 16.89372445l-106.02268444 106.02268444c-11.06830222 11.06830222-16.89372445 25.63185778-16.31118222 41.36049778 0.58254222 19.22389333-14.56355555 35.53507555-33.78744889 36.11761778h-1.16508445c-18.64135111 0-34.36999111-15.14609778-34.95253333-33.7874489-1.16508445-34.36999111 12.81592889-68.73998222 37.28270223-93.20675555l106.02268444-106.02268445c23.88423111-23.88423111 55.92405333-37.28270222 89.71150222-37.28270222 33.78744889 0 65.82727111 13.39847111 89.71150222 37.28270222s37.28270222 55.92405333 37.28270222 89.71150223c0 33.78744889-13.39847111 65.82727111-37.28270222 89.71150222l-59.41930666 59.41930667c-7.57304889 6.99050667-16.89372445 10.48576-25.63185778 10.48576z","p-id":"8000"}),t.createElementVNode("path",{d:"M523.65084445 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631112-500.98631111s224.86129778-500.98631111 500.98631112-500.98631111 500.98631111 224.86129778 500.9863111 500.98631111-224.86129778 500.98631111-500.9863111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124444-431.08124445-193.40401778-431.08124445-431.08124444-431.08124445z","p-id":"8001"})]),t.createElementVNode("symbol",{id:"link-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1024C229.228 1024 0 794.772 0 512S229.228 0 512 0s512 229.228 512 512-229.228 512-512 512z m54.545-565.02l-1.798-1.764a102.207 102.207 0 0 0-11.002-9.523l-35.453 35.442c4.176 2.446 8.078 5.393 11.605 8.92l1.866 1.763a58.277 58.277 0 0 1 0 82.341l-96.904 96.882a58.334 58.334 0 0 1-82.341 0l-1.832-1.798a58.243 58.243 0 0 1 0-82.306l43.816-43.828a149.675 149.675 0 0 1-10.866-58.732l-67.812 67.72c-41.836 41.825-41.836 110.251 0 152.053l1.787 1.798c41.836 41.79 110.228 41.79 152.052 0l96.882-96.916c41.757-41.825 41.757-110.25 0-152.052z m141.38-141.37l-1.82-1.797c-41.802-41.825-110.228-41.825-152.053 0l-96.882 96.916c-41.824 41.79-41.824 110.216 0 152.053l1.798 1.763c3.505 3.425 7.225 6.576 11.002 9.523l35.454-35.476a57.845 57.845 0 0 1-11.583-8.92l-1.798-1.763a58.311 58.311 0 0 1 0-82.375l96.905-96.882a58.197 58.197 0 0 1 82.284 0l1.798 1.797a58.277 58.277 0 0 1 0 82.341l-43.76 43.828c7.612 18.796 11.196 38.81 10.844 58.766l67.789-67.755c41.824-41.79 41.824-110.216 0.022-152.007z","p-id":"39234"})]),t.createElementVNode("symbol",{id:"eidt-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M39.75243852 1018.42337185c-9.94205392 0-19.26272948-3.72827022-26.09789155-11.18481067-8.69929718-8.69929718-12.42756741-21.74824297-9.94205394-33.554432l64.00197215-317.52434726c1.24275675-7.45654045 4.97102697-13.67032415 10.5634323-19.26272947l622.62112711-617.65010015c14.29170252-14.29170252 37.90408059-14.29170252 52.81716149 0l256.00788859 254.14375348c6.83516208 6.83516208 11.18481067 16.777216 11.18481066 26.71926992s-3.72827022 19.26272948-11.18481066 26.71926993L385.86019082 943.85796741c-4.97102697 4.97102697-11.80618903 8.69929718-19.26272949 9.94205392l-320.00986074 63.38059378c-1.86413511 1.24275675-4.34964859 1.24275675-6.83516207 1.24275674z m98.17778251-336.16569837l-50.95302636 251.65824 254.14375348-50.331648 587.82393837-583.47428978-203.19072711-201.326592-587.82393838 583.47428978z m221.83207822 235.50240237z","p-id":"8309"}),t.createElementVNode("path",{d:"M787.27061808 501.4365677c-9.32067555 0-19.26272948-3.72827022-26.09789156-10.56343229l-231.15275377-229.90999704c-14.91308089-14.29170252-14.91308089-37.90408059 0-52.81716148 14.29170252-14.91308089 37.90408059-14.91308089 52.81716147 0l231.15275378 229.90999703c14.91308089 14.29170252 14.91308089 37.90408059 0 52.81716149-8.07791882 6.83516208-17.39859437 10.5634323-26.71926992 10.56343229zM984.24756148 1020.28750697h-468.51929126c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270223H984.24756148c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270223s-16.777216 37.28270222-37.28270222 37.28270222z","p-id":"8310"})]),t.createElementVNode("symbol",{id:"eidt-line-frame",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M325.30233936 563.73071538c-0.64703814 0.82587375-1.29407507 1.6890035-1.58219924 2.73221283l-49.88523011 182.89429709c-2.91353153 10.64693487 0.07203135 22.11974349 7.94949616 30.21081805 5.89909439 5.75503292 13.66727187 8.92067294 21.93966512 8.92067294 2.73345437 0 5.46690875-0.32413984 8.16434745-1.04445087l181.59649617-49.52631737c0.28936571 0 0.43342841 0.25210849 0.64827969 0.2521085 2.08517469 0 4.13681801-0.75508395 5.68424312-2.33976748l485.58989858-485.51786724c14.42235582-14.43974227 22.33583631-34.11415555 22.33583631-55.51482956 0-24.25956185-10.28677936-48.5004957-28.30696206-66.46727627l-45.85894342-45.92973201c-17.98168272-18.0201827-42.26111655-28.32434851-66.50329195-28.32434852-21.39819091 0-41.07260419 7.9134805-55.53345877 22.3172071L326.02140763 562.04047034C325.51967372 562.50618736 325.66249366 563.19048272 325.30233936 563.73071538M937.89292074 202.76447611l-48.23224229 48.19746816-78.19219338-79.43410786 47.55043123-47.54918848c7.51606777-7.55208343 22.08124351-6.45423043 30.71503504 2.21184971l45.89123326 45.93097356c4.78633923 4.78385493 7.51855206 11.14866878 7.51855206 17.44269282C943.11020407 194.72680368 941.27341204 199.40261281 937.89292074 202.76447611M411.66012052 571.35607171l350.3900942-350.40996497 78.2294506 79.48751001L490.53660926 650.15804481 411.66012052 571.35607171zM347.81825282 713.42614847l25.32015764-92.93993059 67.54650006 67.5477416L347.81825282 713.42614847z","p-id":"2224"}),t.createElementVNode("path",{d:"M968.64645454 395.17059786c-18.38033821 0-33.4509725 14.94395926-33.52052077 33.57516442l0 452.66301384c0 23.7379584-19.27948364 43.0162005-43.05469924 43.01620049L126.33393895 924.42497661c-23.7379584 0-43.08947339-19.27700055-43.08947338-43.01620049L83.24446557 142.57383743c0-23.75782915 19.35151499-43.05345772 43.08947338-43.05345772l493.17923924 0c18.48590094 0 33.48698817-15.01474907 33.48698818-33.50437584 0-18.44988526-15.00108846-33.48450509-33.48698818-33.48450509L121.22718572 32.53149878c-57.87074196 0-104.97035833 47.06360069-104.97035833 104.97035833L16.25682739 886.51677089c0 57.90675763 47.09961637 104.95172912 104.97035833 104.95172911l775.91478637 0c57.90924193 0 104.99022909-47.04497149 104.99022907-104.95172911L1002.13220116 428.52966946C1002.05644519 410.11455833 987.02555121 395.17059786 968.64645454 395.17059786","p-id":"2225"})]),t.createElementVNode("symbol",{id:"eidt-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M954.4213997 254.74935467l-220.58932148-219.34656475c-14.29170252-14.29170252-37.90408059-14.29170252-52.81716147 0l-599.63012742 595.28047883c-4.97102697 4.97102697-8.69929718 11.80618903-10.5634323 19.26272947l-55.30267495 273.40648296c-2.48551348 12.42756741 1.24275675 24.85513482 9.94205392 33.554432 6.83516208 6.83516208 16.777216 11.18481067 26.09789155 11.18481067 2.48551348 0 4.97102697 0 7.45654045-0.62137837l275.89199645-54.68129659c7.45654045-1.24275675 13.67032415-4.97102697 19.26272947-9.94205392l599.63012741-595.28047882c6.83516208-6.83516208 11.18481067-16.777216 11.18481067-26.71926993s-3.72827022-19.26272948-10.5634323-26.09789155z","p-id":"8463"}),t.createElementVNode("path",{d:"M836.35950933 566.68129659c-9.32067555 0-19.26272948-3.72827022-26.09789155-10.56343229L443.64837925 191.36876089c-14.29170252-14.29170252-14.91308089-37.90408059 0-52.81716148 14.29170252-14.29170252 37.90408059-14.91308089 52.8171615 0l366.6132385 364.12772504c14.29170252 14.29170252 14.91308089 37.90408059 0 52.81716147-7.45654045 7.45654045-16.777216 11.18481067-26.71926992 11.18481067z","p-id":"8464"}),t.createElementVNode("path",{d:"M965.60621037 1001.64615585H497.08691911c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270222H965.60621037c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270222s-16.777216 37.28270222-37.28270222 37.28270222z","p-id":"8465"})]),t.createElementVNode("symbol",{id:"upload-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M636.66403555 634.33386667c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-90.87658667-90.87658667L430.44408889 623.84810667c-13.39847111 13.39847111-35.53507555 13.39847111-49.51608889 0s-13.39847111-35.53507555 0-49.51608889L496.85390222 459.5712c13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l115.34336 115.34336c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889-6.99050667 6.40796445-16.31118222 9.90321778-25.04931556 9.90321778z","p-id":"8618"}),t.createElementVNode("path",{d:"M809.09653333 838.22364445h-1.74762666c-19.22389333 0-34.95253333-15.72864-34.95253334-34.95253334s15.72864-34.95253333 34.95253334-34.95253333h1.74762666c79.22574222-0.58254222 143.88792889-66.40981333 143.88792889-145.63555556 0-80.39082667-65.24472889-145.63555555-145.63555555-145.63555555-10.48576 0.58254222-20.38897778-2.91271111-27.96202667-10.48576-6.99050667-7.57304889-10.48576-18.05880889-9.32067555-27.96202667 1.16508445-8.73813333 1.74762667-17.47626667 1.74762666-26.79694222 0-139.81013333-113.59573333-253.40586667-253.40586666-253.40586667S265.00209778 271.41006222 265.00209778 411.22019555c0 9.32067555 0.58254222 18.05880889 1.74762667 26.79694223 1.16508445 9.90321778-1.74762667 19.80643555-8.15559112 26.79694222-6.40796445 7.57304889-15.72864 11.65084445-25.63185778 11.65084445-78.6432 1.16508445-142.72284445 66.99235555-142.72284444 145.63555555 0 79.22574222 64.07964445 144.47047111 143.30538667 145.63555555h2.91271111c4.66033778 0 8.73813333 1.16508445 12.23338666 2.3301689 4.66033778 1.74762667 8.73813333 4.66033778 12.23338667 8.1555911 4.07779555 4.07779555 6.99050667 9.90321778 8.73813333 15.72864 0.58254222 2.33016889 1.16508445 5.24288 1.16508445 8.15559112 0 6.99050667-1.74762667 13.39847111-5.24288 18.64135111-1.16508445 1.74762667-2.33016889 3.49525333-4.07779555 5.24288-6.40796445 6.40796445-14.56355555 10.48576-24.46677334 10.48576h-7.57304889c-115.92590222-2.91271111-209.7152-99.03217778-209.7152-215.54062223 0-104.27505778 75.73048889-192.82147555 175.34520889-212.04536888 0-178.25792 145.05301333-322.72839111 323.31093334-322.72839112 177.67537778 0 322.14584889 143.88792889 323.31093333 321.56330667 102.52743111 16.31118222 181.17063111 105.44014222 181.17063111 212.62791111 0 120.00369778-95.53692445 216.70570667-213.79299556 217.87079112 0.58254222 0 0 0 0 0z","p-id":"8619"}),t.createElementVNode("path",{d:"M521.32067555 931.4304c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-367.0016c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253334 34.95253334v367.0016c0 19.22389333-15.72864 34.95253333-34.95253334 34.95253333z","p-id":"8620"})]),t.createElementVNode("symbol",{id:"upload-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M1024 693.248q0 25.6-8.704 48.128t-24.576 40.448-36.864 30.208-45.568 16.384l1.024 1.024-17.408 0-4.096 0-4.096 0-675.84 0q-5.12 1.024-16.384 1.024-39.936 0-74.752-15.36t-60.928-41.472-40.96-60.928-14.848-74.752 14.848-74.752 40.96-60.928 60.928-41.472 74.752-15.36l1.024 0q-1.024-8.192-1.024-15.36l0-16.384q0-72.704 27.648-137.216t75.776-112.128 112.128-75.264 136.704-27.648 137.216 27.648 112.64 75.264 75.776 112.128 27.648 137.216q0 37.888-8.192 74.24t-22.528 69.12q5.12-1.024 10.752-1.536t10.752-0.512q27.648 0 52.736 10.752t43.52 29.696 29.184 44.032 10.752 53.76zM665.6 571.392q20.48 0 26.624-4.608t-8.192-22.016q-14.336-18.432-31.744-48.128t-36.352-60.416-38.4-57.344-37.888-38.912q-18.432-13.312-27.136-14.336t-25.088 12.288q-18.432 15.36-35.84 38.912t-35.328 50.176-35.84 52.224-36.352 45.056q-18.432 18.432-13.312 32.768t25.6 14.336l16.384 0q9.216 0 19.968 0.512t20.992 0.512l17.408 0q14.336 1.024 18.432 9.728t4.096 24.064q0 17.408-0.512 30.72t-0.512 25.6-0.512 25.6-0.512 30.72q0 7.168 1.536 15.36t5.632 15.36 12.288 11.776 21.504 4.608l23.552 0q9.216 0 27.648 1.024 24.576 0 28.16-12.288t3.584-38.912q0-23.552 0.512-42.496t0.512-51.712q0-23.552 4.608-36.352t19.968-12.8q11.264 0 32.256-0.512t32.256-0.512z","p-id":"40427"})]),t.createElementVNode("symbol",{id:"switch-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1009.12924445c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631112 500.98631111 224.86129778 500.98631111 500.98631112-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124444 431.08124445-193.40401778 431.08124445-431.08124444-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"8928"}),t.createElementVNode("path",{d:"M733.36604445 467.36497778H290.05141333c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253333h357.68092445l-57.08913778-55.92405334c-13.98101333-13.39847111-13.98101333-35.53507555-0.58254222-49.51608889 13.39847111-13.98101333 35.53507555-13.98101333 49.51608889-0.58254222l118.25607111 115.92590222c9.90321778 9.90321778 13.39847111 25.04931555 8.15559111 38.44778667S747.34705778 467.36497778 733.36604445 467.36497778zM408.30748445 756.88846222c-8.73813333 0-17.47626667-3.49525333-24.46677334-9.90321777l-118.25607111-115.92590223c-9.90321778-9.90321778-13.39847111-25.04931555-8.15559111-38.44778666s18.05880889-21.55406222 32.62236444-21.55406222H733.36604445c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253333s-15.72864 34.95253333-34.95253333 34.95253333H375.68512l57.08913778 55.92405334c13.98101333 13.39847111 13.98101333 35.53507555 0.58254222 49.51608888-6.99050667 6.40796445-16.31118222 10.48576-25.04931555 10.48576z","p-id":"8929"})]),t.createElementVNode("symbol",{id:"switch-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M511.48 22.62c-270.42 0-489.62 218.96-489.62 489.09s219.2 489.09 489.62 489.09 489.61-218.96 489.61-489.09S781.89 22.62 511.48 22.62zM211.83 435.56c-0.11-0.19-0.11-0.49-0.23-0.71l-0.3-1.2c0-0.23-0.11-0.42-0.11-0.6l-0.3-1.32c0-0.3-0.11-0.49-0.11-0.68-0.08-0.42-0.08-0.94-0.19-1.32 0-0.3-0.12-0.53-0.12-0.83 0-0.37-0.11-0.79-0.11-1.2-0.07-0.26-0.07-0.68-0.07-1.01v0.04c0-0.3-0.11-0.6 0-1.13-0.11-0.6-0.11-1.32-0.11-2 0-0.71 0.11-1.32 0.11-2.03l0.07-0.98 0.11-1.02c0-0.41 0-0.83 0.12-1.2 0-0.3 0.11-0.53 0.11-0.83 0.01-0.43 0.08-0.86 0.19-1.28 0-0.34 0.11-0.53 0.11-0.71l0.3-1.31c0-0.23 0-0.42 0.11-0.6l0.3-1.2c0.11-0.19 0.11-0.49 0.22-0.68 0.07-0.34 0.3-0.75 0.41-1.13l0.3-0.83c0.11-0.3 0.3-0.68 0.38-0.98l0.38-0.9c0.07-0.3 0.26-0.6 0.37-0.91 0.08-0.3 0.23-0.71 0.45-1.02 0.19-0.22 0.26-0.53 0.38-0.68 0.11-0.45 0.3-0.75 0.53-1.13 0.17-0.17 0.31-0.38 0.41-0.6 0.19-0.42 0.42-0.71 0.64-1.13 0.16-0.17 0.28-0.36 0.38-0.56 0.22-0.42 0.53-0.75 0.75-1.13 0.08-0.22 0.3-0.42 0.42-0.6l0.83-1.13 0.49-0.6c0.23-0.3 0.41-0.6 0.72-0.9 0.22-0.3 0.53-0.49 0.75-0.79 0.22-0.19 0.42-0.53 0.6-0.71l1.47-1.51 99.24-96.46c16.73-16.11 43.23-16.11 59.96 0 16.57 16.1 16.57 42.14 0 58.24l-26.93 26.15h413.09c23.5 0 42.44 18.51 42.44 41.23 0 22.84-19.06 41.27-42.44 41.27H252.39c-0.6 0-1.32-0.12-2.07-0.12l-0.9-0.11-1.06-0.07c-0.42 0.01-0.84-0.02-1.24-0.11-0.3 0-0.53-0.11-0.83-0.11-0.44-0.02-0.89-0.08-1.32-0.19-0.34 0-0.53-0.11-0.76-0.11l-1.32-0.3c-0.34-0.08-0.53-0.08-0.75-0.19l-1.2-0.3c-0.23-0.11-0.56-0.11-0.76-0.23l-1.13-0.37-0.83-0.34-1.06-0.38-0.9-0.3-0.94-0.42c-0.3-0.08-0.71-0.19-1.02-0.42-0.22-0.19-0.53-0.26-0.75-0.37-0.38-0.11-0.76-0.3-1.13-0.53-0.19-0.16-0.41-0.29-0.64-0.38l-1.13-0.6c-0.19-0.16-0.41-0.29-0.64-0.37-0.38-0.23-0.72-0.53-1.13-0.76-0.23-0.08-0.41-0.3-0.6-0.37l-1.13-0.83-0.64-0.45-0.94-0.75c-0.3-0.19-0.49-0.49-0.79-0.68l-0.75-0.6c-0.49-0.53-1.02-0.91-1.55-1.43-0.53-0.49-0.94-1.02-1.43-1.5-0.22-0.19-0.42-0.49-0.6-0.72-0.23-0.3-0.57-0.49-0.75-0.79-0.23-0.3-0.53-0.6-0.72-0.91l-0.53-0.6c-0.3-0.37-0.64-0.71-0.86-1.13-0.07-0.19-0.27-0.37-0.38-0.56-0.22-0.41-0.53-0.75-0.75-1.13-0.19-0.22-0.3-0.41-0.38-0.6l-0.64-1.09-0.41-0.64c-0.11-0.37-0.3-0.68-0.53-1.05-0.19-0.22-0.3-0.52-0.41-0.75-0.07-0.3-0.3-0.68-0.41-0.98-0.08-0.3-0.3-0.6-0.42-0.9l-0.3-0.94-0.42-1.02-0.3-0.75c-0.22-0.35-0.3-0.76-0.41-1.14z m600.83 166.18l-0.07 1.02-0.11 1.02c0 0.38 0 0.79-0.11 1.2 0 0.3-0.12 0.49-0.12 0.79-0.01 0.44-0.08 0.89-0.19 1.32 0 0.3-0.11 0.49-0.11 0.68l-0.3 1.32c0 0.23 0 0.41-0.11 0.6l-0.3 1.2c-0.12 0.23-0.12 0.53-0.23 0.72-0.08 0.34-0.3 0.71-0.41 1.09-0.08 0.34-0.19 0.53-0.3 0.83l-0.38 1.02-0.37 0.9c-0.07 0.3-0.27 0.61-0.38 0.91-0.08 0.3-0.22 0.68-0.45 0.98-0.19 0.22-0.26 0.53-0.37 0.71-0.12 0.38-0.3 0.71-0.53 1.13-0.19 0.19-0.3 0.38-0.42 0.56-0.19 0.41-0.41 0.75-0.64 1.13-0.19 0.22-0.3 0.42-0.38 0.6-0.22 0.38-0.53 0.71-0.75 1.13-0.08 0.19-0.3 0.38-0.42 0.56-0.3 0.41-0.49 0.75-0.83 1.13l-0.49 0.6c-0.23 0.3-0.42 0.6-0.76 0.91-0.3 0.3-0.49 0.6-0.83 0.9-0.22 0.19-0.41 0.53-0.6 0.71l-1.47 1.51-99.28 96.46c-16.53 16.1-43.31 16.1-59.88 0s-16.57-42.14 0-58.24l26.89-26.15h-413.2c-23.46 0-42.41-18.51-42.41-41.23 0-22.84 19.06-41.27 42.41-41.27h515.68c0.6 0 1.32 0.11 2.07 0.11 0.3 0 0.6 0.11 0.94 0.11l1.02 0.08c0.42 0 0.87 0 1.24 0.11 0.3 0 0.53 0.12 0.83 0.12 0.44 0.01 0.89 0.08 1.32 0.19 0.38 0 0.57 0.11 0.76 0.11l1.32 0.3c0.37 0.07 0.56 0.07 0.75 0.19l1.24 0.3c0.23 0.12 0.53 0.12 0.76 0.23l1.13 0.37 0.79 0.34 1.06 0.38 0.94 0.3 0.9 0.41c0.34 0.08 0.75 0.19 1.02 0.42 0.22 0.19 0.57 0.26 0.75 0.37 0.42 0.12 0.76 0.3 1.13 0.53 0.19 0.16 0.41 0.29 0.64 0.38l1.13 0.6c0.23 0.19 0.41 0.3 0.64 0.38 0.38 0.22 0.72 0.53 1.13 0.75 0.19 0.08 0.42 0.3 0.64 0.38l1.13 0.83 0.61 0.45c0.3 0.22 0.64 0.45 0.94 0.75 0.3 0.19 0.53 0.49 0.79 0.68l0.75 0.6 1.55 1.43 1.47 1.51c0.23 0.19 0.42 0.49 0.6 0.71 0.23 0.3 0.53 0.49 0.71 0.79l0.76 0.91 0.49 0.6c0.34 0.38 0.64 0.71 0.86 1.13 0.08 0.19 0.3 0.38 0.38 0.56 0.22 0.42 0.53 0.75 0.75 1.13 0.17 0.17 0.31 0.38 0.41 0.6 0.19 0.42 0.42 0.71 0.64 1.09 0.19 0.22 0.26 0.42 0.38 0.64 0.11 0.38 0.3 0.68 0.53 1.05 0.19 0.22 0.3 0.53 0.41 0.75l0.42 0.98c0.11 0.3 0.3 0.6 0.38 0.9l0.37 0.94 0.38 1.02 0.34 0.75c0.19 0.35 0.31 0.73 0.37 1.13 0.11 0.19 0.11 0.49 0.23 0.71l0.3 1.2c0 0.23 0 0.41 0.11 0.61l0.3 1.32c0 0.3 0.11 0.49 0.11 0.68 0.11 0.42 0.11 0.94 0.19 1.32 0 0.3 0.12 0.53 0.12 0.83 0 0.37 0.11 0.79 0.11 1.2 0.11 0.3 0.11 0.68 0.11 0.98 0.07 0.41 0.07 0.71 0.07 1.01 0.11 0.6 0.11 1.28 0.11 2.03 0.01 0.66-0.11 1.26-0.11 1.97z","p-id":"41414"})]),t.createElementVNode("symbol",{id:"calendar-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M828.90296889 996.67512889H176.45568c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V275.87621925c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837628h652.44728889c88.85710697 0 161.5583763 72.70126933 161.55837629 161.55837628v559.24053334c0 88.85710697-72.70126933 161.5583763-161.55837629 161.5583763zM176.45568 188.88324741c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297184v559.24053334c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297186h652.44728889c47.84613452 0 86.99297185-39.14683733 86.99297186-86.99297186V275.87621925c0-47.84613452-39.14683733-86.99297185-86.99297186-86.99297184H176.45568z","p-id":"9236"}),t.createElementVNode("path",{d:"M331.80027259 282.09000297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V58.39378963c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270223 37.28270222v186.41351112c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222zM331.80027259 630.06189037H244.80730075c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM555.49648592 630.06189037H468.50351408c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM779.19269925 630.06189037h-86.99297184c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM331.80027259 791.62026667H244.80730075c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM555.49648592 791.62026667H468.50351408c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM779.19269925 791.62026667h-86.99297184c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM692.19972741 282.09000297c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V58.39378963c0-20.50548622 16.777216-37.28270222 37.28270223-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v186.41351112c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM953.17864297 437.43459555H52.18000592c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270222h900.99863705c20.50548622 0 37.28270222 16.777216 37.28270221 37.28270222s-16.777216 37.28270222-37.28270221 37.28270222z","p-id":"9237"})]),t.createElementVNode("symbol",{id:"calendar-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M0 941.611997A82.388003 82.388003 0 0 0 82.388003 1024h858.980243A82.388003 82.388003 0 0 0 1023.756249 941.611997V363.433468H0z m694.69174-429.490121h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m-219.376339 0h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m0 221.813854h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m-219.376339-221.813854h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m0 221.813854h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446zM1023.756249 155.757201a82.388003 82.388003 0 0 0-82.388003-82.388003H804.37991V41.194001a40.95025 40.95025 0 0 0-82.388003 0v32.175197H301.764342V41.194001a40.95025 40.95025 0 0 0-82.388003 0v32.175197H82.388003A82.388003 82.388003 0 0 0 0 155.757201v128.213282h1023.756249z","p-id":"49114"})]),t.createElementVNode("symbol",{id:"search-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M471.80458667 926.77006222c-253.98840889 0-460.79089778-206.80248889-460.79089778-460.79089777C11.01368889 211.99075555 217.81617778 5.18826667 471.80458667 5.18826667c253.98840889 0 460.79089778 206.80248889 460.79089778 460.79089778 0 253.98840889-206.80248889 460.79089778-460.79089778 460.79089777z m0-851.67672889C256.26396445 75.09333333 80.91875555 250.43854222 80.91875555 465.97916445s175.34520889 390.88583111 390.88583112 390.8858311 390.88583111-175.34520889 390.88583111-390.8858311S687.34520889 75.09333333 471.80458667 75.09333333z","p-id":"9544"}),t.createElementVNode("path",{d:"M983.27665778 1024.05461333c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-214.95808-214.95808c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0l214.95808 214.95808c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888-6.99050667 6.99050667-15.72864 10.48576-25.04931555 10.48576zM714.14215111 471.80458667c-17.47626667 0-32.62236445-12.81592889-34.36999111-30.87473778-11.06830222-93.20675555-83.88608-168.35470222-177.09283555-181.75317334-19.22389333-2.91271111-32.62236445-20.38897778-29.70965334-39.6128711s20.38897778-32.62236445 39.61287111-29.70965334c124.66403555 18.05880889 221.94858667 117.67352889 236.51214223 242.33756444 2.33016889 19.22389333-11.65084445 36.70016-30.29219556 39.0303289-1.74762667 0-3.49525333 0.58254222-4.66033778 0.58254222z","p-id":"9545"})]),t.createElementVNode("symbol",{id:"search-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M858.7 803.7l-113-112.9C859.2 552.3 851.3 347.6 722 218.4c-137.7-137.7-360.9-137.7-498.6 0-137.7 137.7-137.7 360.9 0 498.6 129.3 129.3 333.9 137.1 472.4 23.7l112.9 112.9c6.2 6.2 16.3 6.2 22.5 0l27.4-27.4c6.3-6.2 6.3-16.2 0.1-22.5zM574 300.7L545.5 275c-6.6-5.9-7.1-16.1-1.2-22.7l25.7-28.5c5.9-6.6 16.1-7.1 22.7-1.2l28.5 25.7c6.6 5.9 7.1 16.1 1.2 22.7l-25.7 28.5c-6 6.6-16.1 7.1-22.7 1.2z m92.9 337.6c-6 6.8-16.8 6.8-23.2 0.4l-27.3-27.4c-6-6-5.9-15.4-0.4-21.9 29.6-34.6 45.7-78.2 45.7-124.2S645.6 375.6 616 341c-5.5-6.5-5.6-15.9 0.4-21.9l27.3-27.4c6.4-6.4 17.2-6.4 23.2 0.4 42.2 47.8 65.3 108.7 65.3 173.1 0 64.4-23.1 125.2-65.3 173.1z","p-id":"59968"})]),t.createElementVNode("symbol",{id:"setting-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 669.2864c-89.71150222 0-163.11182222-73.40032-163.11182222-163.11182222s73.40032-163.11182222 163.11182222-163.11182223 163.11182222 73.40032 163.11182222 163.11182223-73.40032 163.11182222-163.11182222 163.11182222z m0-256.31857778c-51.26371555 0-93.20675555 41.94304-93.20675555 93.20675556s41.94304 93.20675555 93.20675555 93.20675555 93.20675555-41.94304 93.20675555-93.20675555-41.94304-93.20675555-93.20675555-93.20675556z","p-id":"9853"}),t.createElementVNode("path",{d:"M385.58833778 989.10208c-5.24288 0-11.06830222-0.58254222-16.31118223-2.33016889-74.56540445-22.13660445-144.47047111-62.33201778-201.55960888-116.50844444-22.71914667-21.55406222-23.88423111-57.08913778-2.91271112-79.80828445 22.13660445-24.46677333 26.2144-60.00184889 9.32067556-88.54641777-16.31118222-28.54456889-49.51608889-43.10812445-81.55591111-36.11761778-30.29219555 6.40796445-60.58439111-12.81592889-67.57489778-42.52558222-8.73813333-37.86524445-13.39847111-76.89557333-13.39847111-116.50844445s4.66033778-78.6432 13.39847111-116.50844445c6.99050667-30.29219555 37.28270222-49.51608889 67.57489778-42.52558222 32.03982222 6.99050667 65.24472889-7.57304889 81.55591111-36.11761778 16.31118222-28.54456889 12.81592889-64.66218667-9.32067556-88.54641777-20.97152-22.71914667-19.22389333-58.83676445 2.91271112-79.80828445 57.08913778-53.59388445 126.41166222-93.78929778 201.55960888-116.50844444C398.98680889 16.83911111 430.44408889 33.73283555 439.76476445 63.44248889c9.90321778 31.45728 39.03032889 52.4288 72.23523555 52.4288s61.74947555-20.97152 72.23523555-52.4288c9.90321778-30.29219555 40.77795555-46.60337778 71.07015112-37.86524444 74.56540445 22.13660445 144.47047111 62.33201778 201.55960888 116.50844444 22.71914667 21.55406222 23.88423111 57.08913778 2.91271112 79.80828444-22.13660445 24.46677333-26.2144 60.00184889-9.32067556 88.54641778 16.31118222 28.54456889 49.51608889 43.10812445 81.55591111 36.11761778 30.29219555-6.40796445 60.58439111 12.81592889 67.57489778 42.52558222 8.73813333 37.86524445 13.39847111 76.89557333 13.39847111 116.50844444s-4.66033778 78.6432-13.39847111 116.50844445c-6.99050667 30.29219555-37.86524445 49.51608889-67.57489778 42.52558222-32.03982222-6.99050667-65.24472889 7.57304889-81.55591111 36.11761778-16.31118222 28.54456889-12.81592889 64.66218667 9.32067556 88.54641778 20.97152 22.71914667 19.22389333 58.83676445-2.91271112 79.80828444-57.08913778 53.59388445-126.41166222 93.78929778-201.55960888 116.50844445-30.29219555 8.73813333-61.16693333-7.57304889-71.07015112-37.86524445-9.90321778-31.45728-39.03032889-52.4288-72.23523555-52.4288s-61.74947555 20.97152-72.23523555 52.4288c-7.57304889 25.63185778-30.29219555 41.36049778-54.17642667 41.36049778zM512 826.5728c59.41930667 0 111.84810667 35.53507555 134.56725333 89.12896 56.50659555-18.64135111 108.93539555-48.93354667 153.20860445-88.54641778-35.53507555-46.60337778-39.61287111-109.51793778-9.90321778-160.78165333s86.21624889-79.22574222 144.47047111-71.65269334c5.82542222-29.12711111 9.32067555-58.83676445 9.32067556-88.54641777s-2.91271111-59.41930667-9.32067556-88.54641778c-58.25422222 7.57304889-114.76081778-20.38897778-144.47047111-71.65269333-29.70965333-51.26371555-25.04931555-114.76081778 9.90321778-160.78165334-44.27320889-39.61287111-96.70200889-69.90506667-153.20860445-88.54641778C623.84810667 150.24128 571.41930667 185.77635555 512 185.77635555s-111.84810667-35.53507555-134.56725333-89.12896c-56.50659555 18.64135111-108.93539555 48.93354667-153.20860445 88.54641778 35.53507555 46.60337778 39.61287111 109.51793778 9.90321778 160.78165334S147.91111111 425.20120889 89.65688889 417.62816c-5.82542222 29.12711111-9.32067555 58.83676445-9.32067556 88.54641778s2.91271111 59.41930667 9.32067556 88.54641777c58.25422222-7.57304889 114.76081778 20.38897778 144.47047111 71.65269334 29.70965333 51.26371555 25.04931555 114.76081778-9.90321778 160.78165333 44.27320889 39.61287111 96.70200889 69.90506667 153.20860445 88.54641778 22.71914667-53.59388445 75.14794667-89.12896 134.56725333-89.12896zM191.60177778 167.71754667z","p-id":"9854"})]),t.createElementVNode("symbol",{id:"setting-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M992 416c-4.266667-27.733333-21.333333-46.933333-42.666667-46.933333h-4.266666c-70.4 0-128-57.6-128-130.133334 0-23.466667 10.666667-49.066667 10.666666-49.066666 12.8-23.466667 4.266667-55.466667-17.066666-70.4h-2.133334l-123.733333-68.266667H682.666667c-6.4-2.133333-14.933333-4.266667-23.466667-4.266667-17.066667 0-34.133333 6.4-44.8 19.2-14.933333 14.933333-61.866667 55.466667-100.266667 55.466667-38.4 0-85.333333-40.533333-100.266666-57.6-10.666667-14.933333-29.866667-21.333333-46.933334-21.333333-8.533333 0-17.066667 2.133333-23.466666 4.266666H341.333333l-128 70.4h-2.133333c-19.2 17.066667-27.733333 49.066667-17.066667 72.533334 0 0 10.666667 25.6 10.666667 49.066666 0 70.4-57.6 130.133333-128 130.133334h-2.133333c-19.2 0-36.266667 19.2-42.666667 46.933333 0 2.133333-10.666667 55.466667-10.666667 96 0 42.666667 10.666667 96 10.666667 98.133333 4.266667 27.733333 21.333333 46.933333 42.666667 46.933334h4.266666c70.4 0 128 57.6 128 130.133333 0 23.466667-10.666667 49.066667-10.666666 49.066667-12.8 23.466667-4.266667 53.333333 17.066666 68.266666h2.133334l119.466666 68.266667h2.133334c6.4 4.266667 14.933333 4.266667 23.466666 4.266667 17.066667 0 34.133333-6.4 46.933334-19.2 14.933333-14.933333 64-59.733333 102.4-59.733334 40.533333 0 87.466667 44.8 102.4 61.866667 10.666667 12.8 27.733333 19.2 46.933333 19.2 8.533333 0 17.066667-2.133333 23.466667-4.266667h2.133333l123.733333-70.4h2.133334c21.333333-14.933333 29.866667-46.933333 19.2-70.4 0 0-10.666667-25.6-10.666667-49.066666 0-70.4 57.6-130.133333 128-130.133334h4.266667c19.2 0 36.266667-17.066667 42.666666-46.933333 0-2.133333 10.666667-55.466667 10.666667-98.133333-2.133333-38.4-12.8-91.733333-12.8-93.866667zM512 682.666667c-93.866667 0-170.666667-76.8-170.666667-170.666667s76.8-170.666667 170.666667-170.666667 170.666667 76.8 170.666667 170.666667-76.8 170.666667-170.666667 170.666667z","p-id":"61173"}),t.createElementVNode("path",{d:"M512 381.866667c-70.4 0-130.133333 57.6-130.133333 130.133333 0 72.533333 57.6 130.133333 130.133333 130.133333 70.4 0 130.133333-57.6 130.133333-130.133333 0-72.533333-59.733333-130.133333-130.133333-130.133333z","p-id":"61174"})]),t.createElementVNode("symbol",{id:"bell-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M739.19146667 675.11182222c-5.82542222 0-11.65084445-1.74762667-16.89372445-4.66033777l-227.19146667-128.1592889c-11.06830222-6.40796445-18.05880889-18.05880889-18.05880888-30.29219555V244.03057778c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v247.58044444l209.13265778 118.25607111c16.89372445 9.32067555 22.71914667 30.87473778 13.39847111 47.76846222-6.40796445 11.06830222-18.05880889 17.47626667-30.29219555 17.47626667z","p-id":"10316"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"10317"})]),t.createElementVNode("symbol",{id:"bell-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 62.3c247.3 0 448.7 201.4 448.7 448.7S759.4 959.7 512 959.7 63.3 758.3 63.3 511 264.7 62.3 512 62.3z m0 175.1c-17.5 0-32.8 15.3-32.8 32.8v247.3c2.2 10.9 8.8 21.9 19.7 26.3L674 627l2.2 2.2c15.3 6.6 32.8-2.2 41.6-17.5l2.2-2.2c6.6-15.3-2.2-32.8-17.5-41.6L547 495.7V268c-4.3-17.5-17.5-30.6-35-30.6z","p-id":"64116"})]),t.createElementVNode("symbol",{id:"tip-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M517.82542222 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"10624"}),t.createElementVNode("path",{d:"M517.82542222 631.42115555c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-361.17617777c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253333 34.95253334v361.17617777c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333zM517.82542222 803.27111111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-34.95253333c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253333 34.95253334v34.95253333c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"10625"})]),t.createElementVNode("symbol",{id:"tip-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A513.498143 513.498143 0 0 0 512 0z m-45.962261 294.404322c0-25.602881 13.963462-39.566343 44.176013-39.566343a45.501294 45.501294 0 0 1 32.651837 9.315377 42.255318 42.255318 0 0 1 11.639419 32.651836v314.091458a42.255318 42.255318 0 0 1-11.639419 32.651836 45.597329 45.597329 0 0 1-32.651837 6.991335c-30.250966 0-44.176014-13.963462-44.176013-39.566343z m79.132685 498.036538a50.610346 50.610346 0 1 1 13.963462-34.899051 47.36437 47.36437 0 0 1-13.963462 34.899051z","p-id":"67096"})]),t.createElementVNode("symbol",{id:"narrow-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M471.80458667 926.77006222c-253.98840889 0-460.79089778-206.80248889-460.79089778-460.79089777C11.01368889 211.99075555 217.81617778 5.18826667 471.80458667 5.18826667c253.98840889 0 460.79089778 206.80248889 460.79089778 460.79089778 0 253.98840889-206.80248889 460.79089778-460.79089778 460.79089777z m0-851.67672889C256.26396445 75.09333333 80.91875555 250.43854222 80.91875555 465.97916445s175.34520889 390.88583111 390.88583112 390.8858311 390.88583111-175.34520889 390.88583111-390.8858311S687.34520889 75.09333333 471.80458667 75.09333333z","p-id":"10932"}),t.createElementVNode("path",{d:"M983.27665778 1024.05461333c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-214.95808-214.95808c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0l214.95808 214.95808c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888-6.99050667 6.99050667-15.72864 10.48576-25.04931555 10.48576zM675.11182222 500.93169778H268.49735111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253334H675.11182222c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253334s-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"10933"})]),t.createElementVNode("symbol",{id:"narrow-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M443.744 68.256c207.36 0 375.456 168.128 375.456 375.488 0 100.064-39.168 191.04-103.008 258.336l215.2 215.168a32 32 0 0 1 0 45.248l-3.008 3.04a32 32 0 0 1-45.28 0l-218.24-218.304a373.76 373.76 0 0 1-221.12 71.968c-207.36 0-375.488-168.096-375.488-375.456S236.384 68.256 443.744 68.256zM582.4 409.6H305.056a32 32 0 0 0-32 32v4.256a32 32 0 0 0 32 32H582.4a32 32 0 0 0 32-32V441.6a32 32 0 0 0-32-32z","p-id":"68114"})]),t.createElementVNode("symbol",{id:"collect-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M738.0992 975.6672c-18.56853333 0-37.13706667-4.36906667-54.61333333-13.65333333l-147.456-77.55093334c-14.7456-7.64586667-32.768-7.64586667-48.05973334 0l-147.456 77.55093334c-39.86773333 20.75306667-86.8352 17.47626667-122.88-8.73813334-36.0448-26.2144-54.0672-70.4512-46.42133333-114.14186666l28.39893333-163.84c2.73066667-16.93013333-2.73066667-33.86026667-14.7456-45.32906667l-119.05706666-116.3264c-32.22186667-31.1296-43.14453333-77.0048-29.4912-119.6032 13.65333333-42.5984 50.24426667-73.18186667 94.48106666-79.73546667l164.93226667-24.02986666c16.93013333-2.18453333 31.1296-13.1072 38.77546667-28.39893334L408.23466667 112.77653333C427.89546667 72.36266667 468.30933333 47.78666667 513.09226667 47.78666667s85.1968 25.12213333 104.8576 64.98986666l73.728 149.0944c7.64586667 15.29173333 21.84533333 25.66826667 38.77546666 28.39893334l164.93226667 24.02986666c44.2368 6.5536 80.82773333 37.13706667 94.48106667 79.73546667s2.73066667 88.4736-29.4912 119.6032L839.68 629.41866667c-12.01493333 12.01493333-17.47626667 28.94506667-14.7456 45.32906666l27.8528 163.84c7.64586667 44.2368-10.37653333 87.92746667-46.42133333 114.14186667-19.6608 15.29173333-43.69066667 22.9376-68.26666667 22.9376zM512 813.4656c18.56853333 0 37.13706667 4.36906667 54.61333333 13.65333333l147.456 77.55093334c17.47626667 9.28426667 37.6832 7.64586667 54.0672-3.82293334 16.384-12.01493333 24.02986667-30.58346667 20.20693334-50.24426666l-27.8528-163.84c-6.5536-37.6832 6.00746667-76.45866667 33.86026666-103.2192l119.05706667-116.3264c14.19946667-14.19946667 19.11466667-33.86026667 13.1072-52.4288s-21.84533333-32.22186667-41.50613333-34.95253334l-164.93226667-24.02986666c-38.22933333-5.46133333-70.99733333-29.4912-87.92746667-63.8976l-73.728-149.0944c-8.73813333-18.0224-26.2144-28.39893333-45.8752-28.39893334-20.20693333 0-37.13706667 10.92266667-45.8752 28.39893334L392.3968 290.816A116.3264 116.3264 0 0 1 304.46933333 354.7136l-164.93226666 24.02986667c-19.6608 2.73066667-35.49866667 15.83786667-41.50613334 34.95253333-6.00746667 19.11466667-1.09226667 38.77546667 13.1072 52.4288l119.05706667 116.3264c27.30666667 26.76053333 40.41386667 65.536 33.86026667 103.2192l-28.39893334 163.84c-3.2768 19.6608 4.36906667 38.22933333 20.20693334 50.24426667 16.384 11.4688 36.59093333 13.1072 54.0672 3.82293333l147.456-77.55093333c17.47626667-8.192 36.0448-12.56106667 54.61333333-12.56106667z","p-id":"11241"}),t.createElementVNode("path",{d:"M697.1392 497.2544c-2.18453333 0-4.36906667 0-6.5536-0.54613333l-7.09973333-1.6384c-81.37386667-16.384-152.3712-70.99733333-188.96213334-145.8176-8.192-16.384-1.09226667-36.0448 15.29173334-43.69066667 16.384-8.192 36.0448-1.09226667 43.69066666 15.29173333 27.8528 56.79786667 81.37386667 97.75786667 143.08693334 110.86506667l7.09973333 1.6384c18.0224 3.82293333 29.4912 20.75306667 25.66826667 38.77546667-3.2768 14.19946667-16.93013333 25.12213333-32.22186667 25.12213333z","p-id":"11242"})]),t.createElementVNode("symbol",{id:"collect-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M932.3008 478.2592c42.6496-41.5744 19.1488-114.0736-39.8336-122.624l-180.9408-26.3168c-23.3984-3.3792-43.6736-18.1248-54.1184-39.3216l-80.896-163.9424c-26.368-53.4528-102.5536-53.4528-128.9216 0L366.592 289.9968c-10.496 21.1968-30.72 35.9424-54.1184 39.3216l-180.9408 26.3168c-58.9824 8.5504-82.5344 81.0496-39.8336 122.624l130.9184 127.6416c16.9472 16.5376 24.6784 40.2944 20.6848 63.6416l-30.9248 180.224c-10.0864 58.7264 51.5584 103.5264 104.2944 75.776l161.8432-85.0944c20.9408-11.008 45.9776-11.008 66.9184 0l161.8432 85.0944c52.736 27.7504 114.3808-17.0496 104.2944-75.776l-30.9248-180.224c-3.9936-23.3472 3.7376-47.104 20.6848-63.6416l130.9696-127.6416z m-160.9728-38.144a29.89056 29.89056 0 0 1-29.6448 26.2656c-1.2288 0-2.4576-0.0512-3.6864-0.2048l-94.0544-11.52a102.85568 102.85568 0 0 1-77.8752-53.1456l-45.1072-83.6096a29.88544 29.88544 0 0 1 12.1344-40.4992 29.88544 29.88544 0 0 1 40.4992 12.1344l45.1072 83.6096a42.92608 42.92608 0 0 0 32.5632 22.2208l94.0544 11.52c16.384 1.9456 28.0064 16.8448 26.0096 33.2288z","p-id":"71213"})]),t.createElementVNode("symbol",{id:"like-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M719.4 204.488c0 10.090 7.568 25.226 25.226 25.226 58.019 0 88.291 35.317 105.949 85.767 5.045 15.136 17.658 22.703 32.794 20.181 12.612-2.523 25.226-15.136 22.703-30.271v0c-15.136-73.155-78.201-138.742-158.923-131.174-15.136 2.523-30.271 10.090-27.748 30.271zM575.614 196.921c7.567 0 12.612-5.045 22.703-15.136l17.658-15.136c88.291-83.245 221.988-90.813 305.234-2.523 219.465 224.51-166.491 570.105-325.414 665.962-5.045 7.567-12.612 10.090-20.181 10.090-7.568 0-15.136-2.523-20.181-10.090-158.923-95.857-544.879-441.453-325.414-665.962 83.245-88.291 216.943-80.723 305.233 2.523l17.658 15.136c10.090 10.090 15.136 15.136 22.703 15.136zM959.047 128.81c-103.426-108.471-274.962-105.949-383.434-5.045-108.471-100.903-280.007-103.426-383.434 5.045-242.169 247.213 118.562 612.989 355.685 754.253 7.567 5.045 17.658 7.567 27.748 7.567 10.090 0 20.181-2.523 27.748-7.567 237.124-141.265 597.853-507.040 355.685-754.253z","p-id":"79480"})]),t.createElementVNode("symbol",{id:"like-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M959.165 127.999c-103.551-107.387-276.137-103.551-383.523-3.835-107.387-99.715-279.972-103.551-383.523 3.835-241.619 245.454 118.892 613.637 352.84 755.54 11.506 3.835 19.176 7.671 30.682 7.671 11.506 0 19.176-3.835 26.847-7.671 237.785-141.903 598.296-510.085 356.676-755.54zM729.050 197.033c0-19.176 15.34-26.847 30.682-30.682 80.54-7.671 145.738 61.363 157.244 130.398v0c3.835 19.176-7.671 30.682-23.012 34.517-11.506 0-26.847-7.671-30.682-23.012-19.176-49.858-49.858-84.375-107.387-84.375-15.34 0-26.847-15.34-26.847-26.847z","p-id":"79642"})]),t.createElementVNode("symbol",{id:"file-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M841.3305363 996.67512889H188.88324741c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V182.6694637c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837629h288.94094222c32.93305363 0 63.38059378 14.29170252 85.12883674 39.14683734L636.27567408 144.76538311c7.45654045 8.07791882 17.39859437 13.04894578 28.58340503 13.04894578H841.3305363c88.85710697 0 161.5583763 72.70126933 161.55837629 161.55837629v515.74404741c0 88.85710697-72.70126933 161.5583763-161.55837629 161.5583763zM188.88324741 95.67649185c-47.84613452 0-86.99297185 39.14683733-86.99297186 86.99297185v652.44728889c0 47.84613452 39.14683733 86.99297185 86.99297186 86.99297186h652.44728889c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297186V319.37270518c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-176.47145719c-32.93305363 0-63.38059378-14.29170252-85.12883674-38.52545896L506.40759467 108.72543763c-7.45654045-8.07791882-17.39859437-13.04894578-28.58340504-13.04894578H188.88324741z","p-id":"11857"}),t.createElementVNode("path",{d:"M580.35162075 487.14486518H269.66243555c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270221s16.777216-37.28270222 37.28270222-37.28270222h310.6891852c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270222s-16.777216 37.28270222-37.28270222 37.28270221zM772.97891555 673.5583763H269.66243555c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270223h503.31648c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222z","p-id":"11858"})]),t.createElementVNode("symbol",{id:"file-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M383.285 92c41.5 0 77.11 25.2 92.347 61.126V149.5h260.02c81.791 0 148.269 65.52 149.59 146.87l0.02 2.47 0.002 6.747C924.87 325.726 952 366.847 952 414.301V809.6c0 73.675-59.759 133.4-133.475 133.4h-619.05C125.76 943 66 883.275 66 809.6V230c0-76.215 61.82-138 138.078-138h179.207zM183.362 671.445l-0.706 0.008c-16.197 0.371-29.218 13.607-29.218 29.885 0 16.348 13.12 29.635 29.414 29.903l0.495 0.004 612.157 0.155 0.706-0.008c16.197-0.37 29.219-13.607 29.219-29.884 0-16.349-13.12-29.636-29.415-29.904l-0.495-0.004-612.157-0.155z m0.017-213.9l-0.706 0.008c-16.197 0.362-29.222 13.59-29.235 29.868-0.014 16.348 13.103 29.642 29.397 29.92l0.495 0.004 379.714 0.31 0.707-0.008c16.196-0.362 29.221-13.59 29.235-29.868 0.013-16.348-13.104-29.642-29.398-29.92l-0.495-0.004-379.714-0.31z m396.817-165.144H825.2c-3.275-45.952-41.319-82.333-88.062-83.089l-1.485-0.012-251.175 0.001c6.57 46.96 46.921 83.1 95.718 83.1z","p-id":"87810"})]),t.createElementVNode("symbol",{id:"camera-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M853.7581037 1015.31648H176.45568c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V336.14992118c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837629h144.15978192c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270222s-16.777216 37.28270222-37.28270223 37.28270222H176.45568c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185V853.7581037c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h677.3024237c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185V336.14992118c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-150.37356562c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270222H853.7581037c88.85710697 0 161.5583763 72.70126933 161.5583763 161.55837629V853.7581037c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z","p-id":"12165"}),t.createElementVNode("path",{d:"M703.38453808 249.15694933c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V176.45568c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185H444.891136c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v35.41856711c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222s-37.28270222-16.777216-37.28270222-37.28270222V176.45568c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h134.217728c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v35.41856711c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM810.26161778 406.36567703c-2.48551348 0-4.97102697 0-7.45654045-0.62137836-2.48551348-0.62137837-4.97102697-1.24275675-6.83516208-1.86413512-2.48551348-1.24275675-4.34964859-1.86413511-6.2137837-3.10689185-1.86413511-1.24275675-3.72827022-3.10689185-5.59240533-4.97102695-6.83516208-6.83516208-11.18481067-16.777216-11.18481067-26.09789157 0-2.48551348 0-4.97102697 0.62137837-7.45654043 0.62137837-2.48551348 1.24275675-4.97102697 1.86413511-6.83516208 0.62137837-2.48551348 1.86413511-4.34964859 3.10689186-6.2137837 1.24275675-1.86413511 3.10689185-3.72827022 4.97102696-5.59240534 8.69929718-8.69929718 21.74824297-12.42756741 33.554432-9.94205393 2.48551348 0.62137837 4.97102697 1.24275675 6.83516207 1.86413512 2.48551348 0.62137837 4.34964859 1.86413511 6.21378371 3.10689185 1.86413511 1.24275675 3.72827022 3.10689185 5.59240534 4.97102696 1.86413511 1.86413511 3.10689185 3.72827022 4.97102695 5.59240534 1.24275675 1.86413511 2.48551348 4.34964859 3.10689186 6.2137837 0.62137837 2.48551348 1.86413511 4.34964859 1.86413511 6.83516208 0.62137837 2.48551348 0.62137837 4.97102697 0.62137836 7.45654043 0 2.48551348 0 4.97102697-0.62137836 7.45654045-0.62137837 2.48551348-1.24275675 4.97102697-1.86413511 6.83516207-1.24275675 2.48551348-1.86413511 4.34964859-3.10689186 6.21378371-1.24275675 1.86413511-3.10689185 3.72827022-4.97102695 5.59240534-1.86413511 1.86413511-3.72827022 3.10689185-5.59240534 4.97102695-1.86413511 1.24275675-4.34964859 2.48551348-6.21378371 3.10689185-2.48551348 0.62137837-4.34964859 1.86413511-6.83516207 1.86413512-1.86413511 0.62137837-4.34964859 0.62137837-6.83516207 0.62137836zM515.10689185 787.27061808c-106.25570133 0-192.62729482-86.37159348-192.62729482-192.62729483s86.37159348-192.62729482 192.62729482-192.6272948 192.62729482 86.37159348 192.62729482 192.6272948-86.37159348 192.62729482-192.62729482 192.62729483z m0-310.68918519c-65.24472889 0-118.06189037 52.81716148-118.06189037 118.06189036s52.81716148 118.06189037 118.06189037 118.06189038 118.06189037-52.81716148 118.06189037-118.06189038-52.81716148-118.06189037-118.06189037-118.06189036z","p-id":"12166"})]),t.createElementVNode("symbol",{id:"camera-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M622.871273 162.909091a46.545455 46.545455 0 0 1 41.634909 25.739636l20.805818 41.611637A46.545455 46.545455 0 0 0 726.970182 256H837.818182a93.090909 93.090909 0 0 1 93.090909 93.090909v418.909091a93.090909 93.090909 0 0 1-93.090909 93.090909H186.181818a93.090909 93.090909 0 0 1-93.090909-93.090909V349.090909a93.090909 93.090909 0 0 1 93.090909-93.090909h110.871273a46.545455 46.545455 0 0 0 41.634909-25.739636l20.805818-41.611637A46.545455 46.545455 0 0 1 401.152 162.909091h221.719273zM512 325.818182c-128.535273 0-232.727273 104.192-232.727273 232.727273s104.192 232.727273 232.727273 232.727272 232.727273-104.192 232.727273-232.727272-104.192-232.727273-232.727273-232.727273z m0 69.818182a162.909091 162.909091 0 1 1 0 325.818181 162.909091 162.909091 0 0 1 0-325.818181z m256-69.818182a46.545455 46.545455 0 1 0 0 93.090909 46.545455 46.545455 0 0 0 0-93.090909z","p-id":"91220"})]),t.createElementVNode("symbol",{id:"empty-img-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M55.70180742 794.72715852c-9.32067555 0-19.26272948-3.72827022-26.09789157-11.18481067-14.29170252-14.29170252-14.29170252-37.90408059 0-52.81716148L254.54288592 505.7862163c14.29170252-14.29170252 37.90408059-14.29170252 52.8171615 0l123.03291733 123.03291733L701.93531259 356.65540741c14.29170252-14.29170252 37.90408059-14.29170252 52.81716149 0l228.66724029 228.66724029c14.29170252 14.29170252 14.29170252 37.90408059 0 52.81716148-14.29170252 14.29170252-37.90408059 14.29170252-52.81716148 0l-201.94797037-201.94797036-272.16372622 272.16372621c-14.29170252 14.29170252-37.90408059 14.29170252-52.81716148 0l-123.03291733-123.03291733-198.84107852 198.84107852c-6.83516208 6.83516208-16.777216 10.5634323-26.09789155 10.5634323z","p-id":"12319"}),t.createElementVNode("path",{d:"M832.42477037 996.67512889H179.97748149c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V182.6694637c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837629h652.44728888c88.85710697 0 161.5583763 72.70126933 161.5583763 161.55837629v652.44728889c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763zM179.97748149 95.67649185c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v652.44728889c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297186h652.44728888c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297186V182.6694637c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185H179.97748149z","p-id":"12320"}),t.createElementVNode("path",{d:"M279.39802075 331.80027259c-4.34964859 0-8.69929718-0.62137837-13.67032416-1.24275674-4.34964859-0.62137837-8.69929718-2.48551348-13.04894577-3.72827022-4.34964859-1.86413511-8.07791882-3.72827022-11.80618904-6.21378371-3.72827022-2.48551348-7.45654045-5.59240533-10.56343229-8.69929717-3.10689185-3.10689185-6.2137837-6.83516208-8.69929719-10.5634323-2.48551348-3.72827022-4.34964859-7.45654045-6.21378371-11.80618904-1.86413511-4.34964859-3.10689185-8.69929718-3.72827022-13.04894578 0-4.34964859-0.62137837-8.69929718-0.62137837-13.04894578s0.62137837-8.69929718 1.24275675-13.67032415c0.62137837-4.34964859 1.86413511-8.69929718 3.72827022-13.04894578 1.86413511-4.34964859 3.72827022-8.07791882 6.2137837-11.80618903 2.48551348-3.72827022 5.59240533-7.45654045 8.69929718-10.5634323 16.15583763-15.53445925 39.7682157-22.9909997 61.51645867-18.64135111 4.34964859 0.62137837 8.69929718 1.86413511 13.04894578 3.72827022 4.34964859 1.86413511 8.07791882 3.72827022 11.80618904 6.21378371 3.72827022 2.48551348 7.45654045 5.59240533 10.5634323 8.69929718 3.10689185 3.10689185 6.2137837 6.83516208 8.69929718 10.5634323 2.48551348 3.72827022 4.34964859 7.45654045 6.2137837 11.80618903 1.86413511 4.34964859 3.10689185 8.69929718 3.72827023 13.04894578 0.62137837 4.34964859 1.24275675 8.69929718 1.24275674 13.67032415s-0.62137837 8.69929718-1.24275674 13.04894578c-0.62137837 4.34964859-2.48551348 8.69929718-3.72827023 13.04894578-1.86413511 4.34964859-3.72827022 8.07791882-6.2137837 11.80618904-2.48551348 3.72827022-5.59240533 7.45654045-8.69929718 10.5634323-3.10689185 3.10689185-6.83516208 6.2137837-10.5634323 8.69929717-3.72827022 2.48551348-7.45654045 4.34964859-11.80618904 6.21378371-4.34964859 1.86413511-8.69929718 3.10689185-13.04894578 3.72827022-4.34964859 0.62137837-8.69929718 1.24275675-13.04894577 1.24275674z","p-id":"12321"})]),t.createElementVNode("symbol",{id:"empty-img-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M279.39802075 331.80027259c-4.34964859 0-8.69929718-0.62137837-13.67032416-1.24275674-4.34964859-0.62137837-8.69929718-2.48551348-13.04894577-3.72827022-4.34964859-1.86413511-8.07791882-3.72827022-11.80618904-6.21378371-3.72827022-2.48551348-7.45654045-5.59240533-10.56343229-8.69929717-3.10689185-3.10689185-6.2137837-6.83516208-8.69929719-10.5634323-2.48551348-3.72827022-4.34964859-7.45654045-6.21378371-11.80618904-1.86413511-4.34964859-3.10689185-8.69929718-3.72827022-13.04894578 0-4.34964859-0.62137837-8.69929718-0.62137837-13.04894578s0.62137837-8.69929718 1.24275675-13.67032415c0.62137837-4.34964859 1.86413511-8.69929718 3.72827022-13.04894578 1.86413511-4.34964859 3.72827022-8.07791882 6.2137837-11.80618903 2.48551348-3.72827022 5.59240533-7.45654045 8.69929718-10.5634323 16.15583763-15.53445925 39.7682157-22.9909997 61.51645867-18.64135111 4.34964859 0.62137837 8.69929718 1.86413511 13.04894578 3.72827022 4.34964859 1.86413511 8.07791882 3.72827022 11.80618904 6.21378371 3.72827022 2.48551348 7.45654045 5.59240533 10.5634323 8.69929718 3.10689185 3.10689185 6.2137837 6.83516208 8.69929718 10.5634323 2.48551348 3.72827022 4.34964859 7.45654045 6.2137837 11.80618903 1.86413511 4.34964859 3.10689185 8.69929718 3.72827023 13.04894578 0.62137837 4.34964859 1.24275675 8.69929718 1.24275674 13.67032415s-0.62137837 8.69929718-1.24275674 13.04894578c-0.62137837 4.34964859-2.48551348 8.69929718-3.72827023 13.04894578-1.86413511 4.34964859-3.72827022 8.07791882-6.2137837 11.80618904-2.48551348 3.72827022-5.59240533 7.45654045-8.69929718 10.5634323-3.10689185 3.10689185-6.83516208 6.2137837-10.5634323 8.69929717-3.72827022 2.48551348-7.45654045 4.34964859-11.80618904 6.21378371-4.34964859 1.86413511-8.69929718 3.10689185-13.04894578 3.72827022-4.34964859 0.62137837-8.69929718 1.24275675-13.04894577 1.24275674z","p-id":"12474"}),t.createElementVNode("path",{d:"M832.42477037 21.11108741H179.97748149c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.55837629v652.44728889c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h652.44728888c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763V182.6694637c0-88.85710697-72.70126933-161.5583763-161.5583763-161.55837629zM179.97748149 95.67649185h652.44728888c47.84613452 0 86.99297185 39.14683733 86.99297185 86.99297185v338.65121185L754.75247408 356.65540741c-14.29170252-14.29170252-37.90408059-14.29170252-52.81716149 0l-272.16372622 272.16372622L307.36004742 505.7862163c-14.29170252-14.29170252-37.90408059-14.29170252-52.8171615 0l-161.55837628 161.55837629V182.6694637c0-47.84613452 39.14683733-86.99297185 86.99297185-86.99297185z","p-id":"12475"})]),t.createElementVNode("symbol",{id:"fail-img-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M131.50435555 65.93422222c-70.18951111 0-127.22631111 57.0368-127.2263111 127.22631111V829.32622222c0 70.18951111 57.0368 127.22631111 127.2263111 127.22631111h365.79555556l36.68195556-79.51928888 58.74346666-127.22631112s-61.49688889-83.7632-130.19591111-180.03057778c-26.29404445 39.65155555-44.7488 68.7104-44.7488 68.7104s-110.8992-127.22631111-143.13244444-127.2263111-190.85084445 238.54648889-190.85084445 238.54648888V177.2544c0-17.60142222 14.21084445-31.81226667 31.81226667-31.81226667h233.89297778c27.78453333-43.47448889 52.37191111-79.51928889 52.37191111-79.51928888H131.50435555z m477.11573334 890.61831111h286.27626666c70.18951111 0 127.22631111-57.0368 127.22631112-127.22631111V193.16053333c0-70.18951111-57.0368-127.22631111-127.22631112-127.22631111H513.20604445s-22.90346667 36.26097778-49.4136889 79.51928889h447.01013334c17.60142222 0 31.81226667 14.21084445 31.81226666 31.81226667v572.54115555S682.21155555 352.21048889 640.44373333 352.21048889c-19.71768889 0-70.82666667 64.04551111-118.96604444 131.6864C607.99431111 602.64675555 704.05688889 734.11697778 704.05688889 749.80693333c0 15.48515555-28.41031111 75.70773333-54.28337778 127.22631112-21.42435555 42.83733333-41.15342222 79.51928889-41.15342222 79.51928888zM242.83591111 193.16053333c-35.20284445 0-63.61315555 28.41031111-63.61315556 63.61315556v31.81226666c0 35.20284445 28.41031111 63.61315555 63.61315556 63.61315556h31.81226667c11.24124445 0 22.05013333-2.9696 31.17511111-8.27164444-18.65955555-28.84266667-30.53795555-49.19751111-31.17511111-55.34151112-1.27431111-11.8784 15.90613333-45.37457778 37.95626667-82.90986666-10.60408889-7.85066667-23.74542222-12.51555555-37.95626667-12.51555556h-31.81226667z","p-id":"3406"})]),t.createElementVNode("symbol",{id:"download-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M509.66983111 943.08124445c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-115.34336-115.34336c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.5160889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l90.87658666 90.87658667 90.87658667-90.87658667c13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.5160889L535.30168889 932.59548445c-7.57304889 6.99050667-16.89372445 10.48576-25.63185778 10.48576z","p-id":"12628"}),t.createElementVNode("path",{d:"M797.44568889 838.22364445h-1.74762667c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253334s15.72864-34.95253333 34.95253333-34.95253333h1.74762667c79.22574222-0.58254222 143.88792889-66.40981333 143.88792889-145.63555556 0-80.39082667-65.24472889-145.63555555-145.63555556-145.63555555-10.48576 0.58254222-20.38897778-2.91271111-27.96202667-10.48576-6.99050667-7.57304889-10.48576-18.05880889-9.32067555-27.96202667 1.16508445-8.73813333 1.74762667-17.47626667 1.74762667-26.79694222 0-139.81013333-113.59573333-253.40586667-253.40586667-253.40586667S253.35125333 271.41006222 253.35125333 411.22019555c0 9.32067555 0.58254222 18.05880889 1.74762667 26.79694223 1.16508445 9.90321778-1.74762667 19.80643555-8.15559111 26.79694222-6.40796445 7.57304889-15.72864 11.65084445-25.63185778 11.65084445-78.6432 1.16508445-142.72284445 66.99235555-142.72284444 145.63555555 0 79.22574222 64.07964445 144.47047111 143.30538666 145.63555555h2.91271112c4.66033778 0 8.73813333 1.16508445 12.23338666 2.3301689 4.66033778 1.74762667 8.73813333 4.66033778 12.23338667 8.1555911 4.07779555 4.07779555 6.99050667 9.90321778 8.73813333 15.72864 0.58254222 2.33016889 1.16508445 5.24288 1.16508444 8.15559112 0 6.99050667-1.74762667 13.39847111-5.24288 18.64135111-1.16508445 1.74762667-2.33016889 3.49525333-4.07779555 5.24288-6.40796445 6.40796445-14.56355555 10.48576-24.46677333 10.48576h-7.57304889c-115.92590222-2.91271111-209.7152-99.03217778-209.7152-215.54062223 0-104.27505778 75.73048889-192.82147555 175.34520889-212.04536888 0-178.25792 145.05301333-322.72839111 323.31093333-322.72839112 177.67537778 0 322.14584889 143.88792889 323.31093333 321.56330667 102.52743111 16.31118222 181.17063111 105.44014222 181.17063112 212.62791111 0 120.00369778-95.53692445 216.70570667-213.79299556 217.87079112 0.58254222 0 0 0 0 0z","p-id":"12629"}),t.createElementVNode("path",{d:"M509.66983111 890.65244445c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253334V488.69831111c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253334 34.95253333v367.0016c0 19.22389333-15.72864 34.95253333-34.95253334 34.95253334z","p-id":"12630"})]),t.createElementVNode("symbol",{id:"download-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M514 211c137.83 0 252.148 100.666 273.442 232.485C883.34 450.367 959 530.348 959 628c0 97.52-75.454 177.415-171.166 184.49A8.143 8.143 0 0 1 785 813H279a7.98 7.98 0 0 1-2.928-0.553C157.582 804.275 64 705.567 64 585c0-118.254 90.027-215.481 205.282-226.882C315.826 270.592 407.954 211 514 211z m30.73 213h-64a8 8 0 0 0-8 8v143H397c-5.523 0-10 4.477-10 10a10 10 0 0 0 2.745 6.882l115.23 121.47c3.801 4.007 10.13 4.174 14.137 0.373a10 10 0 0 0 0.373-0.373l115.23-121.47c3.801-4.007 3.634-10.336-0.373-14.137A10 10 0 0 0 627.46 575h-74.73V432a8 8 0 0 0-8-8z","p-id":"92272"})]),t.createElementVNode("symbol",{id:"note-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"12938"}),t.createElementVNode("path",{d:"M512 803.27111111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333V407.1424c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v361.17617778c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333zM512 302.2848c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-34.95253334c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v34.95253334c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"12939"})]),t.createElementVNode("symbol",{id:"note-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M513.536 45.056C258.048 45.056 51.2 252.416 51.2 507.904c0 255.488 206.848 462.336 462.336 462.336s462.336-206.848 462.336-462.336-206.848-462.848-462.336-462.848z m51.2 702.464c0 28.16-23.04 51.2-51.2 51.2s-51.2-23.04-51.2-51.2V428.544c0-28.16 23.04-51.2 51.2-51.2s51.2 23.04 51.2 51.2V747.52z m-51.2-428.544c-28.16 0-51.2-23.04-51.2-51.2s23.04-51.2 51.2-51.2 51.2 23.04 51.2 51.2-23.04 51.2-51.2 51.2z","p-id":"93260"})]),t.createElementVNode("symbol",{id:"stop-play-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M404.22968889 774.144c-5.24288 0-10.48576-1.16508445-15.14609778-3.49525333-12.23338667-5.82542222-19.80643555-18.05880889-19.80643556-31.45728V284.80853333c0-13.39847111 7.57304889-25.63185778 19.80643556-31.45728 12.23338667-5.82542222 26.2144-4.07779555 36.70016 4.07779556l285.44568889 227.19146666c8.15559111 6.40796445 13.39847111 16.89372445 13.39847111 27.37948445s-4.66033778 20.97152-13.39847111 27.37948445l-285.44568889 227.19146666c-6.40796445 5.24288-13.98101333 7.57304889-21.55406222 7.57304889z m34.95253333-417.10023111v309.32992l194.56910223-154.95623111-194.56910223-154.37368889z","p-id":"13246"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"13247"})]),t.createElementVNode("symbol",{id:"stop-paly-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 93.09A418.91 418.91 0 1 0 930.91 512 418.91 418.91 0 0 0 512 93.09z m188.742 442.183L452.189 693.527a30.487 30.487 0 0 1-46.545-25.6V344.902a30.72 30.72 0 0 1 46.545-25.833c66.793 42.822 186.182 124.044 249.018 165.935a30.487 30.487 0 0 1-0.465 50.269z","p-id":"94259"})]),t.createElementVNode("symbol",{id:"question-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M517.82542222 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"13554"}),t.createElementVNode("path",{d:"M517.82542222 803.27111111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-34.95253333c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253333 34.95253334v34.95253333c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333zM517.82542222 631.42115555c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-67.57489777c0-5.82542222 1.16508445-11.65084445 4.07779556-16.31118223l2.9127111-5.24288c5.82542222-11.65084445 18.05880889-18.64135111 30.87473778-18.64135111 61.16693333 0 110.68302222-49.51608889 110.68302222-110.68302222s-49.51608889-110.68302222-110.68302222-110.68302222-110.68302222 49.51608889-110.68302222 110.68302222c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333s-34.95253333-15.72864-34.95253333-34.95253333c0-99.61472 80.97336889-180.58808889 180.58808888-180.58808889s180.58808889 80.97336889 180.58808889 180.58808889c0 88.54641778-64.07964445 162.52928-148.54826667 177.67537778v40.77795555c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"13555"})]),t.createElementVNode("symbol",{id:"question-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 81.408a422.4 422.4 0 1 0 422.4 422.4A422.4 422.4 0 0 0 512 81.408z m26.624 629.76a45.056 45.056 0 0 1-31.232 12.288 42.496 42.496 0 0 1-31.232-12.8 41.984 41.984 0 0 1-12.8-30.72 39.424 39.424 0 0 1 12.8-30.72 42.496 42.496 0 0 1 31.232-12.288 43.008 43.008 0 0 1 31.744 12.288 39.424 39.424 0 0 1 12.8 30.72 43.008 43.008 0 0 1-13.312 31.744z m87.04-235.52a617.472 617.472 0 0 1-51.2 47.104 93.184 93.184 0 0 0-25.088 31.232 80.896 80.896 0 0 0-9.728 39.936v10.24h-64v-10.24a119.808 119.808 0 0 1 12.288-57.344A311.296 311.296 0 0 1 555.52 460.8l10.24-11.264a71.168 71.168 0 0 0 16.896-44.032A69.632 69.632 0 0 0 563.2 358.4a69.632 69.632 0 0 0-51.2-17.92 67.072 67.072 0 0 0-58.88 26.112 102.4 102.4 0 0 0-16.384 61.44h-61.44a140.288 140.288 0 0 1 37.888-102.4 140.8 140.8 0 0 1 104.96-38.4 135.68 135.68 0 0 1 96.256 29.184 108.032 108.032 0 0 1 36.352 86.528 116.736 116.736 0 0 1-25.088 73.216z","p-id":"95262"})]),t.createElementVNode("symbol",{id:"add-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M510.0581926 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"13862"}),t.createElementVNode("path",{d:"M510.0581926 779.96942222c-19.22389333 0-34.95253333-15.72864-34.95253334-34.95253333V278.98311111c0-19.22389333 15.72864-34.95253333 34.95253334-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v466.03377778c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"13863"}),t.createElementVNode("path",{d:"M743.07508149 546.95253333H277.04130371c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253333h466.03377778c19.22389333 0 34.95253333 15.72864 34.95253334 34.95253333s-15.72864 34.95253333-34.95253334 34.95253333z","p-id":"13864"})]),t.createElementVNode("symbol",{id:"add-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M808.448 217.088c-79.36-78.848-184.32-122.368-296.448-122.368S294.912 138.24 215.552 217.088c-79.36 78.848-122.88 183.808-122.88 294.912 0 111.616 43.52 216.576 122.88 294.912 79.36 78.848 184.32 122.368 296.448 122.368s217.088-43.52 296.448-122.368c79.36-78.848 122.88-183.808 122.88-294.912 0-111.616-44.032-216.064-122.88-294.912z m-82.944 327.168h-181.76v181.76c0 17.92-14.336 32.256-32.256 32.256s-32.256-14.336-32.256-32.256v-181.76H298.496c-17.92 0-32.256-14.336-32.256-32.256s14.336-32.256 32.256-32.256h181.76V298.496c0-17.92 14.336-32.256 32.256-32.256s32.256 14.336 32.256 32.256v181.76h181.76c17.92 0 32.256 14.336 32.256 32.256s-15.36 31.744-33.28 31.744z","p-id":"96289"})]),t.createElementVNode("symbol",{id:"message-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M100.14264889 962.88768c-12.81592889 0-25.63185778-4.07779555-36.11761778-12.81592889-16.89372445-13.39847111-25.04931555-34.95253333-21.55406222-55.92405333l30.87473778-171.84995556c-40.77795555-67.57489778-61.74947555-143.88792889-61.74947556-221.36604444 0-253.98840889 224.86129778-460.20835555 500.98631111-460.20835556s500.98631111 206.21994667 500.98631111 460.20835556-224.86129778 460.20835555-500.98631111 460.20835555c-86.21624889 0-170.68487111-20.38897778-245.25027555-58.83676444l-143.88792889 56.50659556c-8.15559111 2.33016889-15.72864 4.07779555-23.30168889 4.07779555z m168.93724444-134.56725333c5.82542222 0 11.65084445 1.74762667 16.89372445 4.66033778 67.57489778 37.86524445 145.63555555 57.67168 226.02638222 57.67168 237.67722667 0 431.08124445-175.34520889 431.08124445-390.3032889s-193.40401778-390.30328889-431.08124445-390.30328888-431.08124445 175.34520889-431.08124445 390.30328888c0 68.73998222 19.80643555 136.31488 58.25422223 195.73418667 4.66033778 7.57304889 6.40796445 16.31118222 5.24288 25.04931556l-29.12711111 165.44199111 141.55776-55.34151111c3.49525333-2.33016889 7.57304889-2.91271111 12.23338666-2.91271111z","p-id":"14172"}),t.createElementVNode("path",{d:"M284.80853333 564.4288c-4.07779555 0-8.15559111-0.58254222-12.81592888-1.16508445-4.07779555-0.58254222-8.15559111-2.33016889-12.23338667-3.49525333-4.07779555-1.74762667-7.57304889-3.49525333-11.06830223-5.82542222-3.49525333-2.33016889-6.99050667-5.24288-9.90321777-8.15559111-11.65084445-12.23338667-18.64135111-28.54456889-18.64135111-45.43829334 0-4.07779555 0.58254222-8.15559111 1.16508444-12.81592888 0.58254222-4.07779555 2.33016889-8.15559111 3.49525334-12.23338667 1.74762667-4.07779555 3.49525333-7.57304889 5.82542222-11.06830222 2.33016889-3.49525333 5.24288-6.99050667 8.15559111-9.90321778 11.65084445-11.65084445 28.54456889-18.64135111 45.43829333-18.64135111 16.89372445 0 33.20490667 6.99050667 45.43829334 18.64135111 2.91271111 2.91271111 5.82542222 6.40796445 8.1555911 9.90321778 2.33016889 3.49525333 4.07779555 6.99050667 5.82542223 11.06830222 1.74762667 4.07779555 2.91271111 8.15559111 3.49525333 12.23338667 1.16508445 4.07779555 1.16508445 8.15559111 1.16508444 12.81592888 0 16.89372445-6.99050667 33.20490667-18.6413511 45.43829334-2.91271111 2.91271111-6.40796445 5.82542222-9.90321778 8.15559111-3.49525333 2.33016889-6.99050667 4.07779555-11.06830222 5.82542222-4.07779555 1.74762667-8.15559111 2.91271111-12.23338667 3.49525333-3.49525333 0.58254222-7.57304889 1.16508445-11.65084445 1.16508445zM517.82542222 564.4288c-4.07779555 0-8.15559111-0.58254222-12.81592889-1.16508445-4.07779555-0.58254222-8.15559111-2.33016889-12.23338666-3.49525333-4.07779555-1.74762667-7.57304889-3.49525333-11.06830222-5.82542222-3.49525333-2.33016889-6.99050667-5.24288-9.90321778-8.15559111-2.91271111-2.91271111-5.82542222-6.40796445-8.15559112-9.90321778-2.33016889-3.49525333-4.07779555-6.99050667-5.82542222-11.06830222-1.74762667-4.07779555-2.91271111-8.15559111-3.49525333-12.23338667 0-4.07779555-0.58254222-8.15559111-0.58254222-12.23338667s0.58254222-8.15559111 1.16508444-12.81592888c0.58254222-4.07779555 2.33016889-8.15559111 3.49525333-12.23338667 1.74762667-4.07779555 3.49525333-7.57304889 5.82542223-11.06830222 2.33016889-3.49525333 5.24288-6.99050667 8.15559111-9.90321778s6.40796445-5.82542222 9.90321778-8.15559111c3.49525333-2.33016889 6.99050667-4.07779555 11.06830222-5.82542222 4.07779555-1.74762667 8.15559111-2.91271111 12.23338666-3.49525334 8.15559111-1.74762667 16.89372445-1.74762667 25.04931556 0 4.07779555 0.58254222 8.15559111 2.33016889 12.23338667 3.49525334 4.07779555 1.74762667 7.57304889 3.49525333 11.06830222 5.82542222 3.49525333 2.33016889 6.99050667 5.24288 9.90321778 8.15559111 2.91271111 2.91271111 5.82542222 6.40796445 8.15559111 9.90321778 2.33016889 3.49525333 4.07779555 6.99050667 5.82542222 11.06830222 1.74762667 4.07779555 2.91271111 8.15559111 3.49525334 12.23338667 1.16508445 4.07779555 1.16508445 8.15559111 1.16508444 12.81592888s-0.58254222 8.15559111-1.16508444 12.23338667c-0.58254222 4.07779555-1.74762667 8.15559111-3.49525334 12.23338667-1.74762667 4.07779555-3.49525333 7.57304889-5.82542222 11.06830222-2.33016889 3.49525333-5.24288 6.99050667-8.15559111 9.90321778-2.91271111 2.91271111-6.40796445 5.82542222-9.90321778 8.15559111-3.49525333 2.33016889-6.99050667 4.07779555-11.06830222 5.82542222-4.07779555 1.74762667-8.15559111 2.91271111-12.23338667 3.49525333-4.66033778 0.58254222-8.73813333 1.16508445-12.81592889 1.16508445zM750.84231111 564.4288c-4.07779555 0-8.15559111-0.58254222-12.81592889-1.16508445-4.07779555-0.58254222-8.15559111-2.33016889-12.23338667-3.49525333-4.07779555-1.74762667-7.57304889-3.49525333-11.06830222-5.82542222-3.49525333-2.33016889-6.99050667-5.24288-9.90321778-8.15559111-11.65084445-12.23338667-18.64135111-28.54456889-18.6413511-45.43829334 0-4.07779555 0.58254222-8.15559111 1.16508444-12.81592888 0.58254222-4.07779555 2.33016889-8.15559111 3.49525333-12.23338667 1.74762667-4.07779555 3.49525333-7.57304889 5.82542223-11.06830222 2.33016889-3.49525333 5.24288-6.99050667 8.1555911-9.90321778s6.40796445-5.82542222 9.90321778-8.15559111c3.49525333-2.33016889 6.99050667-4.07779555 11.06830222-5.82542222 4.07779555-1.74762667 8.15559111-2.91271111 12.23338667-3.49525334 8.15559111-1.74762667 16.89372445-1.74762667 25.04931556 0 4.07779555 0.58254222 8.15559111 2.33016889 12.23338667 3.49525334 4.07779555 1.74762667 7.57304889 3.49525333 11.06830222 5.82542222 3.49525333 2.33016889 6.99050667 5.24288 9.90321778 8.15559111 2.91271111 2.91271111 5.82542222 6.40796445 8.1555911 9.90321778 2.33016889 3.49525333 4.07779555 6.99050667 5.82542223 11.06830222 1.74762667 4.07779555 2.91271111 8.15559111 3.49525333 12.23338667 1.16508445 4.07779555 1.16508445 8.15559111 1.16508444 12.81592888s-0.58254222 8.15559111-1.16508444 12.23338667c-0.58254222 4.07779555-1.74762667 8.15559111-3.49525333 12.23338667-1.74762667 4.07779555-3.49525333 7.57304889-5.82542223 11.06830222-2.33016889 3.49525333-5.24288 6.99050667-8.1555911 9.90321778-2.91271111 2.91271111-6.40796445 5.82542222-9.90321778 8.15559111-3.49525333 2.33016889-6.99050667 4.07779555-11.06830222 5.82542222-4.07779555 1.74762667-8.15559111 2.91271111-12.23338667 3.49525333-4.07779555 0.58254222-8.15559111 1.16508445-12.23338667 1.16508445z","p-id":"14173"})]),t.createElementVNode("symbol",{id:"message-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 0C229.69344 0 0 196.66944 0 438.42048c0 144.384 82.28352 278.33344 220.77952 360.46848l0 203.73504c0 8.21248 4.71552 15.744 12.18048 19.28704 2.92352 1.42848 6.08256 2.08896 9.19552 2.08896 4.80256 0 9.57952-1.62304 13.46048-4.80256l181.59104-147.456c26.79296 3.41504 51.36896 5.07904 74.79296 5.07904 282.28096 0 512-196.69504 512-438.42048S794.28096 0 512 0zM266.50624 487.78752c-27.1872 0-49.2288-22.0416-49.2288-49.2288s22.0416-49.2288 49.2288-49.2288 49.2288 22.0416 49.2288 49.2288S293.69344 487.78752 266.50624 487.78752zM512 487.78752c-27.1872 0-49.2288-22.0416-49.2288-49.2288s22.0416-49.2288 49.2288-49.2288 49.2288 22.0416 49.2288 49.2288S539.1872 487.78752 512 487.78752zM757.22752 487.68c-27.1872 0-49.2288-22.0416-49.2288-49.2288 0-27.1872 22.0416-49.2288 49.2288-49.2288s49.2288 22.0416 49.2288 49.2288C806.4512 465.6384 784.41472 487.68 757.22752 487.68z","p-id":"102378"})]),t.createElementVNode("symbol",{id:"password-show",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 184.32C215.4496 184.32 20.48 481.96266667 20.48 481.96266667S164.6592 839.68 512 839.68s491.52-357.71733333 491.52-357.71733333S808.5504 184.32 512 184.32z m0 535.7568A213.53813333 213.53813333 0 0 1 293.54666667 512a213.53813333 213.53813333 0 0 1 218.45333333-208.0768A213.53813333 213.53813333 0 0 1 730.45333333 512a213.53813333 213.53813333 0 0 1-218.45333333 208.0768zM512 402.77333333a109.22666667 109.22666667 0 1 0 109.22666667 109.22666667 109.22666667 109.22666667 0 0 0-109.22666667-109.22666667z","p-id":"1917"})]),t.createElementVNode("symbol",{id:"password-hide",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M731.15232646 760.06529217c-14.87625845 0-29.38429271-7.58541892-37.58832831-21.25390193l-87.46061662-145.91989372c-12.43124965-20.75311701-5.68538195-47.61875605 15.0530061-60.07946363 20.73838803-12.43124965 47.61875605-5.67065298 60.0500057 15.05300609l87.4606166 145.91989369c12.43124965 20.75311701 5.68538195 47.61875605-15.05300607 60.07946365a43.61689524 43.61689524 0 0 1-22.4616774 6.20089585zM964.35608914 614.14539849c-11.20874525 0-22.41749049-4.27140094-30.96029237-12.8289318l-116.62397479-116.74180655c-17.08560379-17.12979069-17.07087482-44.83498096 0.02945792-61.93531373 17.10033275-17.04141689 44.80552302-17.07087482 61.90585579 0.02945795l116.62397481 116.74180654c17.08560379 17.12979069 17.07087482 44.83498096-0.02945796 61.93531371a43.68612141 43.68612141 0 0 1-30.9455634 12.79947388zM292.83294457 760.06529217c-7.65906378 0-15.4212303-1.98841078-22.4616774-6.24508275-20.75311701-12.43124965-27.46952676-39.2968887-15.05300608-60.05000572l87.4606166-145.91989369c12.43124965-20.72365907 39.31161767-27.49898471 60.05000572-15.02354814 20.75311701 12.43124965 27.46952676 39.2968887 15.05300609 60.0500057l-87.46061661 145.91989369c-8.20403561 13.68321198-22.71206986 21.26863091-37.58832832 21.26863091zM59.64391086 614.14539849c-11.19401627 0-22.38803254-4.27140094-30.93083445-12.79947388-17.10033275-17.10033275-17.11506173-44.80552302-0.02945794-61.93531371l116.6239748-116.74180654c17.10033275-17.10033275 44.80552302-17.07087482 61.9058558-0.02945795 17.10033275 17.10033275 17.11506173 44.80552302 0.02945792 61.93531373l-116.6239748 116.74180655c-8.55753086 8.55753086-19.76627611 12.82893181-30.97502133 12.8289318z","p-id":"2070"}),t.createElementVNode("path",{d:"M526.12508107 584.96731133c-121.98531942 0-301.44307504-41.78608442-463.80049788-240.86282644-1.87057904-2.31244811-3.31401797-4.10938229-4.37450373-5.33188671-16.05457598-15.93674422-17.42437006-41.78608442-2.56284058-59.3430152 15.61270692-18.47012684 43.22952336-20.75311701 61.68492125-5.15513907 1.85585006 1.56127069 6.49547523 6.37764349 13.10878221 14.4785763 140.61746495 172.46149543 292.92973109 208.65057172 395.94413873 208.65057174 177.76392419 0 380.11049728-183.53767997 400.06824997-212.70103816 13.37390365-19.47169673 40.28372961-25.76096639 60.2414823-13.02040838 19.91356579 12.71110005 26.71834937 38.01546843 14.68478188 58.34144531-20.7089301 34.93711395-248.56607712 254.9437206-474.99451415 254.94372061z","p-id":"2071"})]),t.createElementVNode("symbol",{id:"rotate-left",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M0.62577778 341.53813333V85.84533333l110.2848 110.2848c94.52657778-120.03555555 241.10648889-197.08586667 406.12977777-195.49297778 268.89102222 2.60551111 495.42257778 222.1056 505.94702223 490.81457778C1034.39928889 783.23484445 801.24586667 1023.37422222 512 1023.37422222c-189.16693333 0-353.95128889-102.99164445-442.40213333-255.6928h49.81191111C212.32071111 910.07431111 380.24533333 999.03715555 567.33013333 977.57866667c213.56088889-24.48497778 386.7648-198.3488 410.46471112-412.00071112C1009.152 282.70364445 788.54826667 43.23555555 512 43.23555555c-151.22204445 0-284.88817778 72.23751111-370.57422222 183.42115556l114.88142222 114.88142222H0.62577778z","p-id":"3619"})]),t.createElementVNode("symbol",{id:"rotate-right",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M1023.37422222 341.53813333V85.84533333l-110.2848 110.2848C818.57422222 76.10595555 671.99431111-0.95573333 506.97102222 0.64853333 238.06862222 3.24266667 11.54844445 222.75413333 1.024 491.45173333-10.39928889 783.23484445 222.75413333 1023.37422222 512 1023.37422222c189.16693333 0 353.95128889-102.99164445 442.40213333-255.6928h-49.81191111C811.67928889 910.07431111 643.75466667 999.03715555 456.66986667 977.57866667c-213.56088889-24.48497778-386.7648-198.3488-410.46471112-412.00071112C14.848 282.70364445 235.45173333 43.23555555 512 43.23555555c151.22204445 0 284.88817778 72.23751111 370.57422222 183.42115556L767.6928 341.53813333h255.68142222z","p-id":"3925"})]),t.createElementVNode("symbol",{id:"loading-line1",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M782.065 901.684c10.893 18.387 4.797 42.97-14.29 53.363-18.687 10.893-42.47 4.497-53.064-14.29-11.392-18.388-4.796-42.471 13.691-53.364 19.387-10.792 42.77-4.197 53.663 14.29z m-230.342 83.243c0 21.285-17.588 39.073-39.673 39.073-21.285 0-39.073-17.388-39.073-39.073v-27.382c0-21.785 17.887-39.173 39.073-39.173 21.785 0 39.673 17.388 39.673 39.173v27.382z m-241.135-44.17c-11.093 19.287-35.176 25.383-53.664 14.49-18.987-10.693-25.682-34.576-14.49-53.663l29.08-50.866c11.193-18.687 35.176-25.182 54.163-14.49 18.388 10.893 25.183 35.176 13.99 53.664l-29.08 50.865zM123.416 782.765c-18.987 10.593-43.27 4.197-53.664-14.49-11.092-18.388-4.796-42.77 13.99-53.664l78.147-45.269c18.688-10.392 42.971-4.496 53.664 14.49 10.592 18.388 4.097 42.771-14.49 53.664l-77.647 45.269zM40.272 551.823c-21.785 0-39.073-17.588-39.073-39.074 0-21.785 17.288-39.373 39.073-39.373H161.99c21.785 0 39.074 17.588 39.074 39.074 0 21.785-17.289 39.373-39.074 39.373H40.272z m43.57-241.535c-18.986-10.593-25.182-34.576-13.99-53.364 10.393-18.987 34.577-25.382 53.664-14.49l132.31 76.848c18.686 10.692 24.882 34.576 14.49 53.063-11.093 18.987-35.177 25.083-53.564 14.49l-132.91-76.547z m158.592-187.072l92.137 159.99c11.193 18.688 35.176 25.383 53.863 14.29 18.688-10.592 24.883-34.876 13.99-53.663l-92.536-159.69c-10.593-18.488-34.576-25.183-53.064-14.29-18.987 10.892-25.082 34.975-14.39 53.363z m230.643-82.644c0-21.285 17.887-39.373 39.073-39.373 21.785 0 39.673 17.688 39.673 39.373v184.274c0 21.785-17.588 39.373-39.673 39.673-21.286 0-39.073-17.288-39.073-39.673V40.572z m241.135 43.57c11.192-18.987 34.876-25.182 53.663-14.49 18.987 10.593 25.683 34.577 14.49 53.664l-92.337 159.99c-10.393 18.688-34.976 25.283-53.663 14.49-18.687-10.892-24.883-35.176-14.29-53.963l92.137-159.69z m187.671 158.292l-160.19 92.337c-18.687 10.593-25.183 34.577-14.49 53.663 11.092 18.388 35.176 24.584 53.663 14.29l160.29-92.336c18.388-10.593 25.183-34.577 13.991-53.364-10.793-18.987-34.876-25.782-53.264-14.59z m82.344 230.942c21.985 0 39.373 17.588 39.073 39.373 0 21.486-16.988 39.074-39.073 39.074H799.753c-21.285 0-39.173-17.588-39.173-39.373 0-21.486 17.888-39.074 39.173-39.074h184.474z","p-id":"4660"})]),t.createElementVNode("symbol",{id:"tick-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M380.64 755.386L950.847 185.18c17.573-17.573 46.066-17.573 63.64 0 17.573 17.574 17.573 46.066 0 63.64l-582.59 582.59c-28.308 28.308-74.205 28.308-102.512 0L9.18 511.205c-17.573-17.573-17.573-46.066 0-63.64 17.574-17.573 46.066-17.573 63.64 0l307.82 307.821z","p-id":"4747"})]),t.createElementVNode("symbol",{id:"warning-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 85.333333C276.48 85.333333 85.333333 276.48 85.333333 512S276.48 938.666667 512 938.666667 938.666667 747.52 938.666667 512 747.52 85.333333 512 85.333333zM483.555556 307.2c0-15.928889 12.515556-28.444444 28.444444-28.444444s28.444444 12.515556 28.444444 28.444444v238.933333c0 15.928889-12.515556 28.444444-28.444444 28.444445s-28.444444-12.515556-28.444444-28.444445V307.2zM512 722.488889c-21.617778 0-39.822222-18.204444-39.822222-39.822222s18.204444-39.822222 39.822222-39.822223 39.822222 18.204444 39.822222 39.822223-18.204444 39.822222-39.822222 39.822222z","p-id":"5294"})]),t.createElementVNode("symbol",{id:"message-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64C265.6 64 64 265.6 64 512s201.6 448 448 448 448-201.6 448-448S758.4 64 512 64z m32 704h-64V384h64v384z m0-448h-64V256h64v64z","p-id":"16512"})]),t.createElementVNode("symbol",{id:"error-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 97.52381c228.912762 0 414.47619 185.563429 414.47619 414.47619s-185.563429 414.47619-414.47619 414.47619S97.52381 740.912762 97.52381 512 283.087238 97.52381 512 97.52381z m129.29219 233.447619l-129.267809 129.29219-129.316571-129.29219-51.736381 51.736381 129.316571 129.267809-129.316571 129.316571 51.736381 51.736381L512 563.687619l129.29219 129.316571 51.736381-51.73638L563.687619 512l129.316571-129.29219-51.73638-51.736381z","p-id":"17496"})]),t.createElementVNode("symbol",{id:"circular-progress-bar",viewBox:"0 0 100 100"},[t.createElementVNode("path",{class:"el-progress-circle__track",d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",stroke:"#f5f7fa","stroke-linecap":"round","stroke-width":"4.8",fill:"none",style:{"stroke-dasharray":"295.31px, 295.31px","stroke-dashoffset":"0px"}}),t.createElementVNode("path",{class:"el-progress-circle__path",d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",stroke:"#20a0ff",fill:"none",opacity:"1","stroke-linecap":"round","stroke-width":"4.8",style:{"stroke-dasharray":"73.8274px, 295.31px","stroke-dashoffset":"0px",transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s, opacity 0.6s ease 0s"}})]),t.createElementVNode("symbol",{id:"ellipsis",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M221 592c-44.183 0-80-35.817-80-80s35.817-80 80-80 80 35.817 80 80-35.817 80-80 80z m291 0c-44.183 0-80-35.817-80-80s35.817-80 80-80 80 35.817 80 80-35.817 80-80 80z m291 0c-44.183 0-80-35.817-80-80s35.817-80 80-80 80 35.817 80 80-35.817 80-80 80z","p-id":"4273"})]),t.createElementVNode("symbol",{id:"fast-forward",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M240 800c-12.288 0-24.576-4.672-33.92-14.08-18.752-18.752-18.752-49.152 0-67.904l222.08-222.08L206.08 273.92c-18.752-18.752-18.752-49.152 0-67.904s49.152-18.752 67.904 0l256 256c18.752 18.752 18.752 49.152 0 67.904l-256 256C264.576 795.328 252.288 800 240 800z","p-id":"6141"}),t.createElementVNode("path",{d:"M560 800c-12.288 0-24.576-4.672-33.92-14.08-18.752-18.752-18.752-49.152 0-67.904l222.08-222.08L526.08 273.92c-18.752-18.752-18.752-49.152 0-67.904s49.152-18.752 67.904 0l256 256c18.752 18.752 18.752 49.152 0 67.904l-256 256C584.576 795.328 572.288 800 560 800z","p-id":"6142"})]),t.createElementVNode("symbol",{id:"star-half",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M1020.53613 415.3c9.5-9.3 4.3-25.4-8.9-27.3l-326.5-47.5c-5.2-0.8-9.7-4-12-8.8l-146-295.9c-2.9-5.9-8.6-8.9-14.3-8.9s-11.4 3-14.3 8.9l-146 295.9c-2.3 4.7-6.8 8-12 8.8L13.73613 388c-13.1 1.9-18.4 18-8.9 27.3l236.3 230.3c3.8 3.7 5.5 9 4.6 14.2L190.03613 985c-1.8 10.3 6.4 18.7 15.8 18.7 2.5 0 5-0.6 7.5-1.9l292.1-153.5c2.3-1.2 4.9-1.8 7.5-1.8s5.1 0.6 7.5 1.8l292.1 153.5c2.5 1.3 5 1.9 7.5 1.9 9.3 0 17.5-8.4 15.8-18.7L779.73613 659.8c-0.9-5.2 0.8-10.5 4.6-14.2l236.2-230.3zM716.63613 670.6L755.93613 900l-206-108.3c-1.7-0.9-3.5-1.7-5.2-2.5V216.3l71 143.8c11.7 23.6 34.2 40 60.2 43.8l230.3 33.5-166.6 162.4c-18.9 18.3-27.5 44.8-23 70.8z","p-id":"4289"})]),t.createElementVNode("symbol",{id:"star-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512.73613 151.4l103 208.7c11.7 23.6 34.2 40 60.2 43.8l230.3 33.5-166.6 162.4c-18.9 18.4-27.5 44.9-23 70.8L755.93613 900l-206-108.3c-11.4-6-24.3-9.2-37.2-9.2-12.9 0-25.8 3.2-37.2 9.2L269.53613 900l39.3-229.4c4.5-26-4.2-52.4-23-70.8L119.23613 437.3l230.3-33.5c26.1-3.8 48.6-20.1 60.2-43.8l103-208.6M512.73613 27c-5.7 0-11.4 3-14.3 8.9l-146 295.9c-2.3 4.7-6.8 8-12 8.8L13.73613 388c-13.1 1.9-18.4 18-8.9 27.3l236.3 230.3c3.8 3.7 5.5 9 4.6 14.2L190.03613 985c-1.8 10.3 6.4 18.7 15.8 18.7 2.5 0 5-0.6 7.4-1.9l292.1-153.5c2.3-1.2 4.9-1.8 7.4-1.8s5.1 0.6 7.4 1.8l292.1 153.5c2.5 1.3 5 1.9 7.4 1.9 9.3 0 17.5-8.4 15.8-18.7l-55.8-325.2c-0.9-5.2 0.8-10.5 4.6-14.2l236.3-230.3c9.5-9.3 4.3-25.4-8.9-27.3l-326.5-47.4c-5.2-0.8-9.7-4-12-8.8l-146-295.9c-3-6-8.7-8.9-14.4-8.9z","p-id":"4457"})]),t.createElementVNode("symbol",{id:"star-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M784.16441 645.6c-3.8 3.7-5.5 9-4.6 14.2L835.36441 985c1.8 10.3-6.4 18.7-15.8 18.7-2.5 0-5-0.6-7.5-1.9L520.16441 848.3c-2.3-1.2-4.9-1.8-7.5-1.8s-5.1 0.6-7.5 1.8l-292.1 153.5c-2.5 1.3-5 1.9-7.5 1.9-9.3 0-17.5-8.4-15.8-18.7L245.66441 659.8c0.9-5.2-0.8-10.5-4.6-14.2L4.86441 415.3C-4.63559 406 0.56441 389.9 13.66441 388l326.5-47.5c5.2-0.8 9.7-4 12-8.8l146-295.9c2.9-5.9 8.6-8.9 14.3-8.9s11.4 3 14.3 8.9l146 295.9c2.3 4.7 6.8 8 12 8.8L1011.66441 388c13.1 1.9 18.4 18 8.9 27.3L784.16441 645.6z","p-id":"4625"})]),t.createElementVNode("symbol",{id:"previous-song",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M339.712 557.056l506.368 272.6912a51.2 51.2 0 0 0 75.52-45.056V239.3088a51.2 51.2 0 0 0-75.4688-45.056L339.7632 466.944a51.2 51.2 0 0 0 0 90.112zM179.2 153.6A76.8 76.8 0 0 0 102.4 230.4v563.2a76.8 76.8 0 0 0 153.6 0v-563.2A76.8 76.8 0 0 0 179.2 153.6z","p-id":"10294"})]),t.createElementVNode("symbol",{id:"next-song",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M684.288 557.056l-506.368 272.6912A51.2 51.2 0 0 1 102.4 784.6912V239.3088a51.2 51.2 0 0 1 75.4688-45.056l506.368 272.6912a51.2 51.2 0 0 1 0 90.112z","p-id":"8796"}),t.createElementVNode("path",{d:"M768 153.6m76.8 0l0 0q76.8 0 76.8 76.8l0 563.2q0 76.8-76.8 76.8l0 0q-76.8 0-76.8-76.8l0-563.2q0-76.8 76.8-76.8Z","p-id":"8797"})]),t.createElementVNode("symbol",{id:"play",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 942C274.9 942 82 749.11 82 512 82 274.9 274.9 82 512 82c237.11 0 430 192.9 430 430 0 237.11-192.89 430-430 430z m0-800c-204.02 0-370 165.98-370 370s165.98 370 370 370 370-165.98 370-370-165.98-370-370-370z","p-id":"8309"}),t.createElementVNode("path",{d:"M432 700.93c-4.87 0-9.75-1.19-14.2-3.57a29.991 29.991 0 0 1-15.8-26.43V353.08c0-11.04 6.07-21.2 15.8-26.43 9.72-5.22 21.55-4.71 30.76 1.42l240 158.92A29.972 29.972 0 0 1 702 512c0 10.06-5.04 19.45-13.44 25.02l-240 158.93c-5 3.3-10.77 4.98-16.56 4.98z m30-292v206.15L617.66 512 462 408.93z","p-id":"8310"})]),t.createElementVNode("symbol",{id:"pause",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64c126.72 3.328 232.192 47.168 316.48 131.456C912.832 279.872 956.672 385.344 960 512c-3.328 126.72-47.168 232.192-131.52 316.48C744.192 912.832 638.72 956.672 512 960c-126.72-3.328-232.192-47.168-316.544-131.52C111.232 744.192 67.392 638.72 64 512c3.328-126.72 47.168-232.192 131.456-316.544C279.872 111.232 385.344 67.392 512 64z m0 832c108.672-2.688 199.168-40.192 271.488-112.512S893.312 620.672 896 512c-2.688-108.672-40.192-199.168-112.512-271.488S620.672 130.688 512 128c-108.672 2.688-199.168 40.192-271.488 112.512S130.688 403.328 128 512c2.688 108.672 40.192 199.168 112.512 271.488S403.328 893.312 512 896zM416 352c21.312 0 32 10.688 32 32v256c0 21.312-10.688 32-32 32-21.312 0-32-10.688-32-32V384c0-21.312 10.688-32 32-32z m192 0c21.312 0 32 10.688 32 32v256c0 21.312-10.688 32-32 32-21.312 0-32-10.688-32-32V384c0-21.312 10.688-32 32-32z","p-id":"7266"})]),t.createElementVNode("symbol",{id:"fullscreen",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M847.104 967.104H176.896a120.170667 120.170667 0 0 1-120-120V176.896c0-66.133333 53.866667-120 120-120h670.208c66.133333 0 120 53.866667 120 120v670.208c0 66.133333-53.866667 120-120 120zM176.896 136.896a40.064 40.064 0 0 0-40 40v670.208c0 22.058667 17.941333 40 40 40h670.208a40.064 40.064 0 0 0 40-40V176.896a40.064 40.064 0 0 0-40-40H176.896z","p-id":"13273"}),t.createElementVNode("path",{d:"M251.562667 483.562667a39.936 39.936 0 0 1-40-40c0-22.144 17.856-40 40-40h96l-115.84-115.84a39.914667 39.914667 0 0 1 0-56.533334c7.744-7.808 17.962667-11.733333 28.288-11.733333 10.218667 0 20.437333 3.925333 28.266666 11.733333l115.306667 115.328-0.021333-94.954666c0-22.144 17.856-40 40-40 22.122667 0 40 17.856 40 40v192a39.936 39.936 0 0 1-40 40h-192zM580.437333 812.437333a39.936 39.936 0 0 1-40-40v-192c0-21.077333 16.213333-38.272 36.885334-39.872l3.114666-0.128h192c22.144 0 40 17.877333 40 40a39.936 39.936 0 0 1-40 40H676.48l115.904 115.84c15.637333 15.637333 15.637333 40.96 0 56.533334a39.914667 39.914667 0 0 1-56.533333 0l-115.392-115.328v94.954666a39.936 39.936 0 0 1-40 40z","p-id":"13274"})]),t.createElementVNode("symbol",{id:"exit-fullscreen",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M731.6 255.9H560c-15.7 0-28.5 12.6-28.8 28.2-0.3 16.2 13.1 29.4 29.4 29.4h102.7L560 416.8c-11.2 11.2-11.2 29.5 0 40.7 11.2 11.2 29.5 11.2 40.7 0L703.2 355v103.2c0 15.7 12.6 28.5 28.2 28.8 16.2 0.3 29.4-13.1 29.4-29.4V285.1c0-16-13.1-29.2-29.2-29.2zM448.9 710.3H346.2L449.6 607c11.2-11.2 11.2-29.5 0-40.7-11.2-11.2-29.5-11.2-40.7 0L306.4 668.8V565.5c0-15.7-12.6-28.5-28.2-28.8-16.2-0.3-29.4 13.1-29.4 29.4v172.5c0 16.2 13.1 29.4 29.4 29.4h171.4c15.7 0 28.5-12.6 28.8-28.2 0.2-16.3-13.2-29.5-29.5-29.5z m0 0","p-id":"9198"}),t.createElementVNode("path",{d:"M765.6 211.1c22.1 0 40 17.9 40 40v521.6c0 22.1-17.9 40-40 40H244c-22.1 0-40-17.9-40-40V251.1c0-22.1 17.9-40 40-40h521.6m0-57.6H244c-13.1 0-25.9 2.6-38 7.7-11.6 4.9-22.1 11.9-31 20.9-9 9-16 19.4-20.9 31-5.1 12.1-7.7 24.9-7.7 38v521.6c0 13.1 2.6 25.9 7.7 38 4.9 11.6 11.9 22.1 20.9 31 9 9 19.4 16 31 20.9 12.1 5.1 24.9 7.7 38 7.7h521.6c13.1 0 25.9-2.6 38-7.7 11.6-4.9 22.1-11.9 31-20.9 9-9 16-19.4 20.9-31 5.1-12.1 7.7-24.9 7.7-38V251.1c0-13.1-2.6-25.9-7.7-38-4.9-11.6-11.9-22.1-20.9-31-9-9-19.4-16-31-20.9-12.1-5.1-24.9-7.7-38-7.7z m0 0","p-id":"9199"})]),t.createElementVNode("symbol",{id:"picture-in-picture",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M898.752 554.688A2.688 2.688 0 0 0 896 552H554.752a2.688 2.688 0 0 0-2.688 2.688v256c0 1.472 1.216 2.688 2.688 2.688H896a2.688 2.688 0 0 0 2.688-2.688v-256z m-0.064-213.312v-128A2.688 2.688 0 0 0 896 210.688H128a2.688 2.688 0 0 0-2.688 2.688v597.312c0 1.472 1.216 2.688 2.688 2.688h213.312a40 40 0 1 1 0 80H128a82.688 82.688 0 0 1-82.688-82.688V213.376c0-45.696 36.992-82.688 82.688-82.688h768c45.632 0 82.688 36.992 82.688 82.688v128a40.064 40.064 0 0 1-80.064 0z m80 469.312c0 45.632-36.992 82.688-82.624 82.688H554.752a82.688 82.688 0 0 1-82.688-82.688v-256c0-45.696 36.992-82.688 82.688-82.688H896c45.632 0 82.688 36.992 82.688 82.688v256z","p-id":"6723"})]),t.createElementVNode("symbol",{id:"settings",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M588.8 128l12 83.2 4.8 34.4 31.2 14.4c12.8 6.4 26.4 13.6 38.4 21.6l28 18.4 31.2-12 81.6-32 76 127.2-67.2 51.2-28 21.6 3.2 35.2c0.8 7.2 0.8 14.4 0.8 20.8s0 13.6-0.8 20.8l-3.2 35.2 28 21.6 67.2 51.2-75.2 127.2-82.4-32-31.2-12-28 18.4c-12.8 8.8-25.6 16-38.4 21.6l-31.2 14.4-4.8 33.6-12 84H435.2l-12-83.2-4.8-34.4-31.2-14.4c-12.8-6.4-26.4-13.6-38.4-21.6l-28-18.4-31.2 12L208 768l-76-127.2 67.2-51.2 28-21.6-3.2-35.2c-0.8-7.2-0.8-14.4-0.8-20.8s0-13.6 0.8-20.8l3.2-35.2-28-21.6-67.2-51.2L207.2 256l82.4 32 31.2 12 28-18.4c12.8-8.8 25.6-16 38.4-21.6l31.2-14.4 4.8-33.6L435.2 128h153.6m8.8-64H426.4c-27.2 0-49.6 19.2-53.6 44.8L360 201.6c-16 7.2-31.2 16-47.2 26.4l-90.4-35.2c-6.4-2.4-12.8-3.2-19.2-3.2-19.2 0-37.6 9.6-46.4 26.4L71.2 360c-13.6 22.4-8 52 12.8 68l76 57.6c-0.8 9.6-1.6 18.4-1.6 26.4s0 16.8 1.6 26.4l-76 57.6c-20.8 16-26.4 44-12.8 68l84.8 143.2c9.6 16.8 28 27.2 47.2 27.2 6.4 0 12-0.8 18.4-3.2L312 796c15.2 10.4 31.2 19.2 47.2 26.4l13.6 92c3.2 25.6 26.4 45.6 53.6 45.6h171.2c27.2 0 49.6-19.2 53.6-44.8l13.6-92.8c16-7.2 31.2-16 47.2-26.4l90.4 35.2c6.4 2.4 12.8 3.2 19.2 3.2 19.2 0 37.6-9.6 46.4-26.4l85.6-144.8c12.8-23.2 7.2-51.2-13.6-67.2l-76-57.6c0.8-8 1.6-16.8 1.6-26.4 0-9.6-0.8-18.4-1.6-26.4l76-57.6c20.8-16 26.4-44 12.8-68l-84.8-143.2c-9.6-16.8-28-27.2-47.2-27.2-6.4 0-12 0.8-18.4 3.2L712 228c-15.2-10.4-31.2-19.2-47.2-26.4l-13.6-92c-4-26.4-26.4-45.6-53.6-45.6zM512 384c70.4 0 128 57.6 128 128s-57.6 128-128 128-128-57.6-128-128 57.6-128 128-128m0-64c-105.6 0-192 86.4-192 192s86.4 192 192 192 192-86.4 192-192-86.4-192-192-192z","p-id":"4850"})]),t.createElementVNode("symbol",{id:"volume",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M257.493333 322.4l215.573334-133.056c24.981333-15.413333 57.877333-7.914667 73.493333 16.746667 5.301333 8.373333 8.106667 18.048 8.106667 27.914666v555.989334C554.666667 819.093333 530.784 842.666667 501.333333 842.666667c-9.994667 0-19.786667-2.773333-28.266666-8L257.493333 701.6H160c-41.237333 0-74.666667-33.013333-74.666667-73.738667V396.138667c0-40.725333 33.429333-73.738667 74.666667-73.738667h97.493333z m26.133334 58.4a32.298667 32.298667 0 0 1-16.96 4.8H160c-5.888 0-10.666667 4.714667-10.666667 10.538667v231.733333c0 5.813333 4.778667 10.538667 10.666667 10.538667h106.666667c5.994667 0 11.872 1.664 16.96 4.8L490.666667 770.986667V253.013333L283.626667 380.8zM800.906667 829.653333a32.288 32.288 0 0 1-45.248-0.757333 31.317333 31.317333 0 0 1 0.768-44.693333c157.653333-150.464 157.653333-393.962667 0-544.426667a31.317333 31.317333 0 0 1-0.768-44.682667 32.288 32.288 0 0 1 45.248-0.757333c183.68 175.306667 183.68 460.010667 0 635.317333z m-106.901334-126.186666a32.288 32.288 0 0 1-45.248-1.216 31.328 31.328 0 0 1 1.237334-44.672c86.229333-80.608 86.229333-210.56 0-291.178667a31.328 31.328 0 0 1-1.237334-44.672 32.288 32.288 0 0 1 45.248-1.216c112.885333 105.546667 112.885333 277.418667 0 382.965333z",fill:"#000000","p-id":"4793"})]),t.createElementVNode("symbol",{id:"lyrics",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M728.615385 472.615385v216.615384a16.935385 16.935385 0 0 1-1.378462 7.089231 108.307692 108.307692 0 1 1-38.006154-100.430769V452.923077a19.692308 19.692308 0 0 1 19.692308-19.692308h59.076923a19.692308 19.692308 0 0 1 0 39.384616zM236.307692 157.538462a78.769231 78.769231 0 0 0-78.76923 78.76923v551.384616a78.769231 78.769231 0 0 0 78.76923 78.76923h551.384616a78.769231 78.769231 0 0 0 78.76923-78.76923V236.307692a78.769231 78.769231 0 0 0-78.76923-78.76923z m0-39.384616h551.384616a118.153846 118.153846 0 0 1 118.153846 118.153846v551.384616a118.153846 118.153846 0 0 1-118.153846 118.153846H236.307692a118.153846 118.153846 0 0 1-118.153846-118.153846V236.307692a118.153846 118.153846 0 0 1 118.153846-118.153846z m384 630.153846a68.923077 68.923077 0 1 0-68.923077-68.923077 68.923077 68.923077 0 0 0 68.923077 68.923077zM571.076923 354.461538a19.692308 19.692308 0 0 1-19.692308 19.692308H295.384615a19.692308 19.692308 0 0 1 0-39.384615h256a19.692308 19.692308 0 0 1 19.692308 19.692307z m-137.846154 177.23077a19.692308 19.692308 0 0 1-19.692307 19.692307h-118.153847a19.692308 19.692308 0 0 1 0-39.384615h118.153847a19.692308 19.692308 0 0 1 19.692307 19.692308z","p-id":"6101"})]),t.createElementVNode("symbol",{id:"floating-play",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M653.604571 182.857143c64.987429 0 96.841143 6.144 129.938286 23.844571a169.472 169.472 0 0 1 70.326857 70.326857c17.700571 33.097143 23.844571 64.950857 23.844572 129.938286V438.857143a36.571429 36.571429 0 0 1-73.142857 0v-31.890286c0-53.942857-3.949714-74.386286-15.213715-95.451428a96.365714 96.365714 0 0 0-40.301714-40.301715C727.990857 259.949714 707.547429 256 653.604571 256h-283.209142c-53.942857 0-74.386286 3.949714-95.451429 15.213714a96.365714 96.365714 0 0 0-40.301714 40.301715C223.378286 332.580571 219.428571 353.024 219.428571 406.966857v210.066286c0 53.942857 3.949714 74.386286 15.213715 95.451428 9.325714 17.481143 22.820571 30.976 40.301714 40.301715 21.065143 11.264 41.508571 15.213714 95.451429 15.213714H475.428571a36.571429 36.571429 0 0 1 0 73.142857h-105.033142c-64.987429 0-96.841143-6.144-129.938286-23.844571a169.472 169.472 0 0 1-70.326857-70.326857C152.429714 713.874286 146.285714 682.057143 146.285714 617.033143v-210.066286c0-64.987429 6.144-96.841143 23.844572-129.938286a169.472 169.472 0 0 1 70.326857-70.326857C273.554286 189.001143 305.371429 182.857143 370.395429 182.857143h283.209142z","p-id":"3995"}),t.createElementVNode("path",{d:"M856.795429 837.632l-2.304 0.987429a36.315429 36.315429 0 0 1-4.827429 1.536c-0.182857 0-0.329143 0.073143-0.475429 0.109714a36.425143 36.425143 0 0 1-10.24 0.914286L658.285714 841.142857a36.571429 36.571429 0 0 1 0-73.142857h94.537143l-156.964571-157.001143a36.571429 36.571429 0 0 1 51.712-51.712L804.571429 716.251429V621.714286a36.571429 36.571429 0 0 1 32.292571-36.315429L841.142857 585.142857a36.571429 36.571429 0 0 1 36.571429 36.571429v182.857143a35.84 35.84 0 0 1-16.018286 30.281142l-1.462857 0.914286a31.195429 31.195429 0 0 1-2.998857 1.645714l-0.438857 0.219429z","p-id":"3996"})]),t.createElementVNode("symbol",{id:"loading-circular",viewBox:"-10, -10, 50, 50"},[t.createElementVNode("path",{d:"\n M 30 15\n L 28 17\n M 25.61 25.61\n A 15 15, 0, 0, 1, 15 30\n A 15 15, 0, 1, 1, 27.99 7.5\n L 15 15\n ",style:{"stroke-width":"4px",fill:"rgba(0, 0, 0, 0)"}})]),t.createElementVNode("symbol",{id:"test-icon",viewBox:"2 2 20 20"},[t.createElementVNode("path",{d:"M12 2 C17.5228 2 22 6.4772 22 12 C22 17.5228 17.5228 22 12 22 C6.4772 22 2 17.5228 2 12 C2 6.4772 6.4772 2 12 2 Z"}),t.createElementVNode("path",{d:"M11 7 H13 V17 H11 Z",fill:"white"}),t.createElementVNode("path",{d:"M7 11 H17 V13 H7 Z",fill:"white"})])],-1)];const f=l(h,[["render",function(e,n){return t.openBlock(),t.createElementBlock("svg",p,m)}]]),v=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"})),g=e=>(t.pushScopeId("data-v-505039f6"),e=e(),t.popScopeId(),e),_=["src"],x=["fill"],y=["href"],S=["href"],b={key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAACCxJREFUeF7tnW2a3CYMgJmTpHuS1idJ9yTpnqTTk7A5SZOTtI9cPPV4bCMJgZCR/2TzDBiQXoQQH74Ff4aWwG3o1nvjgwMwOAQOgAMwuAQGb75bAAdgcAkM3ny3AA4ATQIxxt9DCL+EEL6knPC39vNjmqZ3aiVijFD3P6n5Okz/I4TwM4TwGUIAWcD/UQ/KAiRBfQsh/JaUj3p5w0Qf0zT9QS0vxgh5oF1XewAEkAn8e/pkAYgxQg+BXt/r8zlN00StXIwRYI7UfMbSAwDvZxbhEAAjAgJz98ZRSozx706tGac5uTwAwX0v0S4ARpQP7XHTn1P9/79/hBDuW2vwAoAh5XNNPzh+0PtHfF46zBMAydmzIpw3ire7aDvGCOM+jP+jPk8QbAGwMi5yTT84s1eY9pXC++g8DwAMTYlYjp8x61aq4Fz+x/A5A2BMOFzTf9U5f07ZR7/PclwAoAgH5pZ/pagTt3B2Ps64v4KcXa6BjODcfiXEbGBG8L4AgA32zJkMCGPYKqZQPUQ3MSH6twWAfxASY429iPd6EmEJEKK37zfC+M/yvIXb5q9DSCBZAcxs5wMAwMbEHQCE8HtIQujUdwAAOzd2AHrQLqIOBAA+AQDsDKAYgM1egm00blnD/r4Xs0a025MkCXQHwGrjBSUE6zMOJtJdAUDwMbbNLbY4TPmZz9YNAISKvAh9mqbsZhXzmqrUAILc6/oABP/Ce78gDF0AQKjEtukecCqEgSD7ehbAx/5CLRZk7wUA7PRy3VTv/QWKX7L2AgB2gWndZPf8RwbAPX8B7dP2d1T1AagWwHu/jP4pG3wcACGZd/Uaqz6AWwAhjHoBALvKuDQbFoPglBf6YKOQvC73ml4A4BzAcCsggGMXAEA7mOfvWLt+BeR2mVf0BABYATiJg9mguCjArUAhit0AkKwARARhuzIFAvAFsmfbC+V02exdAZAggI0gEBfAQuAOYQGe3QGwilGDNfg1gbAHAyh+PnjiFoBPQLcA8JvUX8602glWDaBFXcfSqhUOQGVJH2x0ObyFo3J1Xl7vAFSUeObUTRczGAegEgDII1fqEDgAFQAg7m9UhcABEAaAcHpqXbJaRNMBEASgYG+jWizDARACgCDIoxJVICDUu96GECEdqL5G6Eax3fv5ajbMARCQLtLjx5bU1Cl0ALBqOUjHdPpypTZb4HIAcqo4+Z0gPE4pTWYGhDa4D7DVInMTCxaGJk6hA4BVxyadkNOXK726P+AA5FSw83ulcf+oJlUhcACIABAERnzzafJq/gChPe4DgIqEp3xYSKr5Aw4AVgUpXRIYdfMqsZTd5FWGAgeAoRriah+jhMMs4vEBB4CpHkUIRP0BUwCkysLeOtg5jP7cGVPH2WyV4wBH5We/7pWt+CqBGQBOllqbL6As8ruCP2ACAMQ6u2ivIPYgzvU2lCKO0ooMBd0DQKhgtalSTluNooLbaoi0lyDf9nEAQuXWwmm+5dryUECQsQoA3M+2aUBAveMgZ1iwvxe1tVsABMxqkWCw0l+nszg17BIAQUGSo2dpoQc+lca6fURpasi+Lb07ABAeP7VzoiFYCQOdZ1sZa/5AVwAQKlMFgs2wUwKBmakhQeb1nUCBcf8MjFOf4MDysOfagsMYBXby1LAbABots+5CcCIEskA3TqHG95VJlqsLABrvsHnp1ZneShLoBgDqbSeU3n6WFm251AEgVEBKOPCeh4CQTid7Gbb3oYAg/zo+QOVx/wiah2mPMaK+hFpyMaXS1BBluVQBUOodCxTLHUMQwcM87AUnxalh1nKpAYA0vRjFtEyD6lV7FVKCPevEqgBAKLSlcrFloR2snSCRRnzgFFqCLuR8AKVxH6vgXLpsrzp7gZI/cBgDaQ6AkinMKZX6e8lQoLFqeAhtUwAIhVEVopG+BIJuhgKCTsqHACXzVxOOEn9AI0r4MhQ0A+Aipn8LE9sfWN0eir0TWQLkl/o2AcDolA8rcNNDQXUACAVgBd5jumzA5ajSSsPiA1qCfng+gPEpHxa20qEA9j62fmb/pSoAFzf9W4WVbMtSmxVUAyCEcA8hgKc70sPyBxTXCuZTVUg90YaA9LEHWA8f7WFNDRVnSVP6VlNOTyQAYExsOb3JVb7l76yvmhNMsXRbwAJgVkRJAEhX0tL7rAGAla0DgJQU60CK4hCAbFZwABCSYvV+eK+B6bIDgACgZBbQ+4zJAcgAUNL7NeIACJ6fkjgAGYmxen8y/5iNqVSFSad3AE4kevXeD013AE4AKOn9GvsCONbBATiS2jRNN45Eja2VOAAHSh6h9z+GAI0NjZzO1TIPN/YPofLep35rOd5vxkxWCwhKej/3/qMW7dor48MBeBXLKL0fWv4xOzpKW5i0qD8rt2TqB9fdYlbgemr3f55uo4scemr4UV24iz7Wxn5o/wz7AoA7gkkgHEqNdqDZ13nMdX0YCCznT3HTB4fVdZ7Z11kDMLIVKBn7rXn+s/MHvR/+eIp2DWwFRur9T7BvAQBnRuPbOaXmrCT/aL3/6cDLS7xbcTtziRJL8o7U+1/aurvgoXTIsUSJ7LwFiz7Wxv7do26HK16DWAJu74ezERpHv7igH55zzC55pgsfv130TAA37GtlvT8LeBaABbkEwtcEwhUOiGSFs9fdDGz1hkMh32G3D+Z6fDQAa2EkHwEgWED4wrVNivkAAPL3AxIAPbX3J4R1kxxRSl/LnAWAotK8aGEJOADCArX2OgfAmsaE6+sACAvU2uscAGsaE66vAyAsUGuvcwCsaUy4vg6AsECtve5fPhUx/ddNvIkAAAAASUVORK5CYII="},M={key:3,class:"preview-img no-select"},E={class:"flex-cc",style:{height:"100%"}},w=["src"],T=[g((()=>t.createElementVNode("svg",{fill:"white",width:"20",height:"20"},[t.createElementVNode("use",{href:"#close"})],-1)))],C=[g((()=>t.createElementVNode("svg",{fill:"white",width:"20",height:"20"},[t.createElementVNode("use",{href:"#arrow-left"})],-1)))],A=[g((()=>t.createElementVNode("svg",{fill:"white",width:"20",height:"20"},[t.createElementVNode("use",{href:"#arrow-right"})],-1)))],N={class:"opt flex-cc"},R={class:"flex-c"},L=[g((()=>t.createElementVNode("use",{href:"#amplify-line"},null,-1)))],P=[g((()=>t.createElementVNode("use",{href:"#narrow-line"},null,-1)))],q=[g((()=>t.createElementVNode("use",{href:"#rotate-left"},null,-1)))],I=[g((()=>t.createElementVNode("use",{href:"#rotate-right"},null,-1)))],z=l(t.defineComponent({__name:"LymGenericImg",props:{src:{type:String,default:""},type:{type:String,default:"img"},size:{type:[String,Array,Number],default:"20"},hoverSize:{type:[String,Array,Number],default:"20"},fillColor:{type:String,default:"#000000"},hoverColor:{type:String,default:"#000000"},hoverUrl:{type:String,default:""},isHttps:{type:Boolean,default:!1},ossPath:{type:String,default:""},ossType:{type:String,default:"h3"},canPreview:{type:Boolean,default:!1},previewImgs:{type:Array,default:[]},needChangeHoverCusor:{type:Boolean,default:!1}},setup(e){const n=e,i=t.ref(!1),l=t.ref(!1),s=t.ref(!0),c=t.ref(""),u=t.ref(!1),d=t.ref([]),h=t.ref(0),p=t.ref({scale:1,rotate:0}),m=t.ref(!1),v=t.ref({x:0,y:0}),g=t.ref({x:0,y:0}),z=t.ref("leave");t.watch((()=>n.src),((e,t)=>{i.value=!1,e!==t&&(n.ossPath&&n.ossType||(c.value=e),"svgicon"===n.type?c.value=`#${e}`:(s.value=!1,l.value=!0))}),{immediate:!0});const k=t.computed((()=>{let e="",t=n.size,i="",l="";return a(t)?(t=t.toString(),i=l=t+(t.includes("px")?"":"px")):o(t)?2===t.length?(i=t[0]+"px",l=t[1]+"px"):i=l="20px":r(t)&&(i=l=t+"px"),n.needChangeHoverCusor&&n.hoverUrl&&"enter"===z.value&&(t=n.hoverSize,a(t)?(t=t.toString(),i=l=t+(t.includes("px")?"":"px")):o(t)?2===t.length?(i=t[0]+"px",l=t[1]+"px"):i=l="20px":r(t)&&(i=l=t+"px")),e+=`width: ${i};height: ${l};`,n.needChangeHoverCusor&&(e+="cursor: pointer;"),e}));function B(){i.value=!0,s.value=!0,setTimeout((()=>{l.value=!1}),300)}function D(){i.value=!1,s.value=!0,setTimeout((()=>{l.value=!1}),300)}function U(){n.canPreview&&(n.previewImgs&&n.previewImgs.length?n.previewImgs.forEach((e=>{d.value.push(e)})):d.value.push(c.value),u.value=!0)}function V(){u.value=!1,d.value=[],p.value.rotate=0,p.value.scale=1,g.value.x=0,g.value.y=0}function O(e){1===e?p.value.scale<3&&(p.value.scale+=.1):2===e?p.value.scale>.4&&(p.value.scale-=.1):3===e?p.value.rotate+=90:4===e&&(p.value.rotate-=90)}function F(e){m.value=!0,v.value.x=e.layerX,v.value.y=e.layerY}function H(e){if(m.value){const t=e.layerX-v.value.x,n=e.layerY-v.value.y;v.value.x=e.layerX,v.value.y=e.layerY,g.value.x+=t,g.value.y+=n}}function G(){m.value=!1}function W(){h.value>0&&(h.value-=1)}function X(){h.value<d.value.length-1&&(h.value+=1)}function j(){z.value="enter"}function $(){z.value="leave"}return(n,a)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-generic-img",style:t.normalizeStyle(k.value),onMouseenter:j,onMouseleave:$},["img"==e.type?(t.openBlock(),t.createElementBlock("img",{key:0,src:c.value,style:t.normalizeStyle({width:i.value?"0":"100%",height:i.value?"0":"100%"}),onLoad:D,onError:B},null,44,_)):t.createCommentVNode("",!0),"svgicon"==e.type?(t.openBlock(),t.createElementBlock("svg",{key:1,fill:e.needChangeHoverCusor&&"enter"===z.value?e.hoverColor:e.fillColor},[e.needChangeHoverCusor&&"enter"===z.value?(t.openBlock(),t.createElementBlock("use",{key:0,href:e.hoverUrl,rel:"external nofollow",class:t.normalizeClass([e.hoverUrl.replace("#","")])},null,10,y)):(t.openBlock(),t.createElementBlock("use",{key:1,href:c.value,rel:"external nofollow",class:t.normalizeClass([c.value.replace("#","")])},null,10,S))],8,x)):t.createCommentVNode("",!0),"img"==e.type?(t.openBlock(),t.createElementBlock("div",{key:2,class:"load-status",onClick:U},[i.value?(t.openBlock(),t.createElementBlock("img",b)):t.createCommentVNode("",!0),l.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["loader",[s.value?"load-status2":"load-status1"]])},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),u.value?(t.openBlock(),t.createElementBlock("div",M,[t.createElementVNode("div",E,[t.createElementVNode("img",{src:d.value[h.value],onMousedown:F,onMousemove:H,onMouseup:G,onMouseleave:G,onDragstart:a[0]||(a[0]=t.withModifiers((()=>{}),["prevent"])),style:t.normalizeStyle({scale:p.value.scale,transform:"rotate("+p.value.rotate+"deg) translate("+g.value.x+"px, "+g.value.y+"px)",transitionDuration:m.value?"0s":".3s"})},null,44,w)]),t.createElementVNode("div",{class:"close-preview opt-btn flex-cc",onClick:V},T),d.value.length>1&&h.value>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"previous-img opt-btn flex-cc",onClick:W},C)):t.createCommentVNode("",!0),d.value.length>1&&h.value<d.value.length-1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"next-img opt-btn flex-cc",onClick:X},A)):t.createCommentVNode("",!0),t.createElementVNode("div",N,[t.createElementVNode("div",R,[(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"21",height:"21",onClick:a[1]||(a[1]=e=>O(1))},L)),(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"21",height:"21",onClick:a[2]||(a[2]=e=>O(2))},P)),(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"19",height:"19",onClick:a[3]||(a[3]=e=>O(3))},q)),(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"19",height:"19",onClick:a[4]||(a[4]=e=>O(4))},I))])])])):t.createCommentVNode("",!0),t.createVNode(f)],36))}}),[["__scopeId","data-v-505039f6"]]),k=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),B=l(t.defineComponent({__name:"LymButton",props:{type:{type:String,default:"default"},fontSize:{type:String,default:"14px"},fontWeight:{type:String,default:"normal"},padding:{type:String,default:"8px 15px"},borderRadius:{type:String,default:"4px"},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},circlePadding:{type:String,default:"9px"},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{type:String,default:""},iconSize:{type:[String,Number],default:"14"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"loading-line1"},iconSpace:{type:String,default:"0"},loadingIconSpace:{type:String,default:"0"}},emits:["update:modelValue","click"],setup(e,{emit:n}){const i=e,a=n,r={default:{color:"#606266",disabledColor:"#a8abb2",disabledPlainColor:"#a8abb2",plainColor:"#606266",hoverColor:"#409eff",plainHoverColor:"#409eff",plainHoverActiveColor:"#409eff"},primary:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#a0cfff",plainColor:"#409eff",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},success:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#b3e19d",plainColor:"#67c23a",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},info:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#c8c9cc",plainColor:"#909399",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},warning:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#f3d19e",plainColor:"#e6a23c",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},danger:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#fab6b6",plainColor:"#f56c6c",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"}},o=t.ref("leave"),l=t.inject("formDisabled",null),s=t.computed((()=>{let e=i.borderRadius;i.round&&(e="200px"),i.circle&&(e="50%");let t=i.padding;return i.circle&&(t=i.circlePadding),"font-size: "+i.fontSize+";font-weight: "+i.fontWeight+";padding: "+t+";border-radius: "+e+";"})),c=t.computed((()=>{let e="#606266";return e=i.plain?"leave"===o.value?u.value?r[i.type].disabledPlainColor:r[i.type].plainColor:u.value?r[i.type].disabledPlainColor:i.loading?r[i.type].plainColor:r[i.type].plainHoverColor:"leave"===o.value?u.value?r[i.type].disabledColor:r[i.type].color:u.value?r[i.type].disabledColor:i.loading?r[i.type].color:r[i.type].hoverColor,e})),u=t.computed((()=>!(!i.disabled&&!l)&&l.value));function d(){o.value="enter"}function h(){o.value="leave"}function p(){o.value="down"}function m(){o.value="up"}function f(){u.value||i.loading||a("click")}return t.onMounted((()=>{})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-button",["lym-"+e.type+"-button"+(e.plain?"-plain":"")+(u.value?"-disabled":e.loading?"-loading":"")]]),style:t.normalizeStyle(s.value),onMouseenter:d,onMouseleave:h,onMousedown:p,onMouseup:m,onClick:f},[e.loading?(t.openBlock(),t.createBlock(z,{key:0,src:e.loadingIcon,type:"svgicon","fill-color":c.value,size:e.iconSize+"",class:t.normalizeClass({"lym-button-icon-rotate-anim":e.loading}),style:t.normalizeStyle({marginRight:e.loadingIconSpace,stroke:c.value})},null,8,["src","fill-color","size","class","style"])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),e.icon?(t.openBlock(),t.createBlock(z,{key:1,src:e.icon,type:"svgicon","fill-color":c.value,size:e.iconSize+"",style:t.normalizeStyle({marginLeft:e.iconSpace})},null,8,["src","fill-color","size","style"])):t.createCommentVNode("",!0)],38))}}),[["__scopeId","data-v-1225bd6d"]]),D=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),U={key:0,class:"lym-card-header"},V={class:"lym-card-body"},O={key:1,class:"lym-card-footer"},F=l(t.defineComponent({__name:"LymCard",props:{shadow:{type:String,default:"always"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref("leave"),r=t.ref(!!t.useSlots().header),o=t.ref(!!t.useSlots().footer),l=t.computed((()=>{let e="";return"always"===i.shadow?e+="box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);":"hover"===i.shadow&&(e+=`box-shadow: ${"enter"===a.value?"0px 0px 12px rgba(0, 0, 0, .12)":"none"};`),e}));function s(){a.value="enter"}function c(){a.value="leave"}return t.onMounted((()=>{})),t.onUpdated((()=>{r.value=!!t.useSlots().header,o.value=!!t.useSlots().footer})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-card",style:t.normalizeStyle(l.value),onMouseenter:s,onMouseleave:c},[r.value?(t.openBlock(),t.createElementBlock("div",U,[t.renderSlot(e.$slots,"header",{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",V,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),o.value?(t.openBlock(),t.createElementBlock("div",O,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],36))}}),[["__scopeId","data-v-1b312b9f"]]),H=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),G=["onMouseenter","onClick"],W=l(t.defineComponent({__name:"LymCarousel",props:{data:{type:Array,default:()=>[]},height:{type:String,default:"200px"},width:{type:String,default:"100%"},initialIndex:{type:Number,default:0},trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,default:""},indicatorActiveColor:{type:String,default:"rgba(255, 255, 255, 1)"},indicatorColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},arrow:{type:String,default:"hover"},type:{type:String,default:""},loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=t.ref(),r=t.ref([]),o=t.ref([]),l=t.ref("leave"),s=t.ref(!1),c=t.ref(i.initialIndex),u=t.ref(i.initialIndex),d=t.ref({w:0,h:0,top:0,left:0}),h=t.ref(null),p=t.ref(null),m=t.ref(.5),f=t.ref(.5),v=t.ref(!1),g={horizontal:"transiferX",vertical:"transiferY"};t.watch((()=>i.data),((e,n)=>{!function(){(c.value<0||c.value>i.data.length-1)&&(c.value=0);t.nextTick((()=>{if(d.value.w=a.value.offsetWidth,d.value.h=a.value.offsetHeight,d.value.top=a.value.offsetTop,d.value.left=a.value.offsetLeft,r.value=i.data.map(((e,t)=>({...e,index:t,active:t===c.value,carouselId:Math.random().toString(36).substring(2),carouseBgColor:R(),transiferX:(t-c.value)*d.value.w,transiferY:(t-c.value)*d.value.h}))),i.loop&&r.value.length>1){const e="horizontal"===i.direction?d.value.w:d.value.h;if(o.value=JSON.parse(JSON.stringify(r.value)),0===c.value)o.value.forEach(((t,n)=>{t.carouselId=t.carouselId+"_loop",t[g[i.direction]]=(n-o.value.length)*e}));else{const t=r.value[r.value.length-1].transiferX,n=r.value[r.value.length-1].transiferY,a="horizontal"===i.direction?t:n;o.value.forEach(((t,n)=>{t.carouselId=t.carouselId+"_loop",t[g[i.direction]]=a+(n+1)*e}))}}A()}))}()}),{immediate:!0}),t.watch((()=>c.value),((e,t)=>{if(e!==t){const n=Number(e),a=Number(t);u.value=e,function(e,t){const n="horizontal"===i.direction?d.value.w:d.value.h;if(i.loop){if(e<t&&!v.value){const a=t-e;0===e?s.value?(o.value.forEach((e=>{e[g[i.direction]]+=a*n})),m.value=0,r.value.forEach(((e,t)=>{e[g[i.direction]]=(t-r.value.length)*n})),setTimeout((()=>{m.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]+=a*n})),f.value=0,o.value.forEach(((e,t)=>{e[g[i.direction]]=(t-o.value.length)*n})),setTimeout((()=>{f.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]+=a*n})),o.value.forEach((e=>{e[g[i.direction]]+=a*n})))}if(e>t&&!v.value){const a=e-t;e===r.value.length-1?s.value?(o.value.forEach((e=>{e[g[i.direction]]-=a*n})),m.value=0,r.value.forEach(((e,t)=>{e[g[i.direction]]=(t+1)*n})),setTimeout((()=>{m.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]-=a*n})),f.value=0,o.value.forEach(((e,t)=>{e[g[i.direction]]=(t+1)*n})),setTimeout((()=>{f.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]-=a*n})),o.value.forEach((e=>{e[g[i.direction]]-=a*n})))}e===r.value.length-1&&0===t&&v.value&&(s.value=!s.value,r.value.forEach((e=>{e[g[i.direction]]+=n})),o.value.forEach((e=>{e[g[i.direction]]+=n}))),0===e&&t===r.value.length-1&&v.value&&(s.value=!s.value,r.value.forEach((e=>{e[g[i.direction]]-=n})),o.value.forEach((e=>{e[g[i.direction]]-=n})))}else r.value.forEach(((t,a)=>{t[g[i.direction]]=(a-e)*n}))}(n,a)}}),{immediate:!0}),t.watch((()=>i.initialIndex),((e,t)=>{e!==t&&T(e)}));const _=t.computed((()=>{let e=!1;return"never"!==i.arrow&&r.value.length>1&&(e=i.loop||!i.loop&&0!==c.value,e="hover"===i.arrow?e&&"enter"===l.value:e),e})),x=t.computed((()=>{let e=!1;return"never"!==i.arrow&&r.value.length>1&&(e=i.loop||!i.loop&&c.value!==r.value.length-1,e="hover"===i.arrow?e&&"enter"===l.value:e),e})),y=t.computed((()=>{let e="",t=0,n=0;return"horizontal"===i.direction?(t=d.value.top+d.value.h,t+="outside"===i.indicatorPosition?0:-26,n=d.value.left+d.value.w/2):(t=d.value.top+d.value.h/2,n=d.value.left+d.value.w,n+="outside"===i.indicatorPosition?0:-26),"horizontal"===i.direction?e+=`top: ${t}px;left: ${n}px;transform: translateX(-50%);`:e+=`top: ${t}px;left: ${n}px;transform: translateY(-50%);`,e})),S=t.computed((()=>e=>{let t="";return t+=`margin: ${0===e?"0":"horizontal"===i.direction?"0 0 0 8px":"8px 0 0 0"};`,t+=`width: ${"horizontal"===i.direction?"20px":"26px"};`,t+=`height: ${"horizontal"===i.direction?"26px":"20px"};`,t})),b=t.computed((()=>e=>{let t="";return t+=`background-color: ${e===u.value?i.indicatorActiveColor:i.indicatorColor};`,t+=`width: ${"horizontal"===i.direction?"100%":"2px"};`,t+=`height: ${"horizontal"===i.direction?"2px":"100%"};`,t}));function M(){l.value="enter"}function E(){l.value="leave"}function w(e=!1){(i.autoplay||i.loop||c.value!==r.value.length-1)&&(e||x.value)&&(e||(N(),C()),c.value+1>r.value.length-1?(v.value=!0,c.value=0):(v.value=!1,c.value+=1))}function T(e){e<0||e>r.value.length-1||(v.value=!1,N(),C(),c.value=e)}function C(){p.value&&(clearTimeout(p.value),p.value=null),p.value=setTimeout((()=>{A()}),3e3)}function A(){i.autoplay&&r.value.length>1&&(N(),h.value=setInterval((()=>{w(!0)}),i.interval))}function N(){h.value&&(clearInterval(h.value),h.value=null)}function R(){return"rgba("+Math.floor(256*Math.random())+", "+Math.floor(256*Math.random())+", "+Math.floor(256*Math.random())+", 0.2)"}return(n,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCarouselRef",ref:a,class:"lym-carousel",style:t.normalizeStyle({height:i.height,width:i.width}),onMouseenter:M,onMouseleave:E},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(i=>(t.openBlock(),t.createElementBlock("div",{key:i.carouselId,class:"lym-carousel__item",style:t.normalizeStyle({transform:"horizontal"===e.direction?`translateX(${i.transiferX}px)`:`translateY(${i.transiferY}px)`,transitionDuration:`${m.value}s`})},[t.renderSlot(n.$slots,"default",{item:i},void 0,!0)],4)))),128)),e.loop?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.value,(i=>(t.openBlock(),t.createElementBlock("div",{key:i.carouselId,class:"lym-carousel__item",style:t.normalizeStyle({transform:"horizontal"===e.direction?`translateX(${i.transiferX}px)`:`translateY(${i.transiferY}px)`,transitionDuration:`${f.value}s`})},[t.renderSlot(n.$slots,"default",{item:i},void 0,!0)],4)))),128)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["lym-carousel-prev-icon lym-carousel-arrow-icon lym-flex-cc",["horizontal"===i.direction?"lym-carousel-H-prev-icon-"+(_.value?"show":"hide"):"lym-carousel-V-prev-icon-"+(_.value?"show":"hide")]]),onClick:l[0]||(l[0]=e=>function(e=!1){(i.autoplay||i.loop||0!==c.value)&&(e||_.value)&&(e||(N(),C()),c.value-1<0?(v.value=!0,c.value=r.value.length-1):(v.value=!1,c.value-=1))}(!1))},[t.createVNode(z,{type:"svgicon",src:"horizontal"===e.direction?"arrow-left":"arrow-top",size:"12","fill-color":"white"},null,8,["src"])],2),t.createElementVNode("div",{class:t.normalizeClass(["lym-carousel-next-icon lym-carousel-arrow-icon lym-flex-cc",["horizontal"===i.direction?"lym-carousel-H-next-icon-"+(x.value?"show":"hide"):"lym-carousel-V-next-icon-"+(x.value?"show":"hide")]]),onClick:l[1]||(l[1]=e=>w(!1))},[t.createVNode(z,{type:"svgicon",src:"horizontal"===e.direction?"arrow-right":"arrow-bottom",size:"12","fill-color":"white"},null,8,["src"])],2),"none"!==e.indicatorPosition?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["lym-carousel__indicator-box",["horizontal"===e.direction?"lym-flex-c":"lym-flex-column-c"]]),style:t.normalizeStyle(y.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,((e,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:"lym-carousel__indicator-item lym-flex-cc",style:t.normalizeStyle(S.value(n)),onMouseenter:e=>function(e){"hover"===i.trigger&&T(e)}(n),onClick:t.withModifiers((e=>T(n)),["stop"])},[t.createElementVNode("div",{style:t.normalizeStyle(b.value(n))},null,4)],44,G)))),128))],6)):t.createCommentVNode("",!0)],36))}}),[["__scopeId","data-v-9bc32bbe"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),j=l(t.defineComponent({__name:"LymCheckBox",props:{modelValue:{type:Boolean,default:!1},size:{type:Number,default:14},label:{type:String,default:""},labelSpace:{type:String,default:"5px"},labelFontSize:{type:String,default:"14px"},disabled:{type:Boolean,default:!1},isCircle:{type:Boolean,default:!1},value:{type:String,default:""},isIndeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","update:disabled","change"],setup(e,{expose:n,emit:i}){const a=e,r=i,o=t.ref(!1),l=t.ref(""),s=t.inject("getRef",null),c=t.inject("checkChange",null),u=t.ref(),d=t.inject("formDisabled",null),h=t.ref(!1);t.watch((()=>a.modelValue),((e,t)=>{o.value=e})),t.watch((()=>a.value),((e,t)=>{l.value=e}));const p=t.computed((()=>!!(a.disabled||h.value||d)&&d.value));function m(){if(!p.value){const e=!o.value;r("update:modelValue",e),r("change",e),null!==c&&c instanceof Function&&c(a.value)}}function f(e){if(a.value){const t=e.findIndex((e=>e===a.value));o.value=-1!==t,r("update:modelValue",-1!==t)}}function v(e){h.value=e,r("update:disabled",e)}return t.onMounted((()=>{o.value=a.modelValue,t.nextTick((()=>{null!==s&&s instanceof Function&&s(u,f,v,a.value)}))})),n({setCheck:f}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCheckboxRef",ref:u,class:"lym-checkbox lym-flex-c",style:t.normalizeStyle({cursor:p.value?"not-allowed":"pointer"}),onClick:m},[t.createElementVNode("span",{class:t.normalizeClass(["lym-checkbox-inner",[p.value?"lym-checkbox-inner-disabled":o.value||e.isIndeterminate?"lym-checkbox-inner-checked":"lym-checkbox-inner-unchecked"]]),style:t.normalizeStyle({borderRadius:e.isCircle?"50%":"2px",width:e.size+"px",height:e.size+"px"})},[o.value&&!e.isIndeterminate?(t.openBlock(),t.createElementBlock("span",{key:0,class:"lym-checkbox-inner-checked-mark",style:t.normalizeStyle({width:e.size/4.67+"px",height:e.size/2+"px",left:(e.size-e.size/4.67-e.size/14*2)/2+"px",top:(e.size-e.size/2-e.size/14*2)/2-e.size/14+"px",borderWidth:e.size/14+"px",borderColor:p.value?"#a8abb2":"white"})},null,4)):t.createCommentVNode("",!0),e.isIndeterminate?(t.openBlock(),t.createElementBlock("span",{key:1,class:"lym-checkbox-inner-indeterminate",style:t.normalizeStyle({height:e.size/14+"px",backgroundColor:p.value?"#a8abb2":"white",top:(e.size-e.size/14)/2-1+"px"})},null,4)):t.createCommentVNode("",!0)],6),t.createElementVNode("span",{class:"lym-checkbox-label",style:t.normalizeStyle({color:p.value?"#a8abb2":o.value||e.isIndeterminate?"#409eff":"#606266",marginLeft:e.labelSpace,fontSize:e.labelFontSize})},t.toDisplayString(e.label),5)],4))}}),[["__scopeId","data-v-10909607"]]),$=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),K=t.defineComponent({__name:"LymCheckBoxGroup",props:{modelValue:{type:Array,default:()=>[]},max:{type:Number,default:-1},singleCheck:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),o=t.ref([]),l=t.ref();function s(){o.value.forEach((e=>{e.fn(r.value)}))}function c(){for(let e=0;e<l.value.children.length;e++)0!==e&&(l.value.children[e].style.marginLeft="15px")}return t.provide("getRef",(function(e,t,n,i){null!=e.value&&e.value.parentElement===l.value&&o.value.push({value:i,fn:t,disableFn:n})})),t.provide("checkChange",(function(e){const t=r.value.findIndex((t=>t===e));i.singleCheck?r.value=[e]:-1!==t?r.value.splice(t,1):r.value.push(e);a("update:modelValue",[...r.value]),a("change",[...r.value]),s(),i.singleCheck||(i.max>0&&r.value.length===i.max?o.value.forEach((e=>{-1===r.value.findIndex((t=>t===e.value))&&e.disableFn(!0)})):o.value.forEach((e=>{e.disableFn(!1)})))})),t.watch((()=>i.modelValue),((e,t)=>{r.value=e,s()})),t.onMounted((()=>{r.value=[...i.modelValue],c(),setTimeout((()=>{s()}))})),t.onUpdated((()=>{c()})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCheckboxGroupRef",ref:l,class:"lym-checkbox-group lym-flex-wrap-c"},[t.renderSlot(e.$slots,"default")],512))}}),Y=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));function J(e){let t=0,n=0;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}}function Z(e,n=""){return new Promise(((i,a)=>{let r=0;const o=window.getComputedStyle(e),l=document.getElementById("app");let s=document.getElementById("lym-calculate-text-w-h-div");s||(s=document.createElement("div"),s.id="lym-calculate-text-w-h-div",s.style.position="fixed",s.style.top="-99999px",s.style.left="-99999px",s.style.whiteSpace="pre-wrap",s.style.wordBreak="break-all"),s.style.fontSize=o.fontSize,s.style.fontFamily=o.fontFamily,s.style.lineHeight=o.lineHeight,s.style.padding=o.padding,s.style.border=o.border,s.style.boxSizing=o.boxSizing,s.style.width=o.width,s.innerText=n,l.appendChild(s),t.nextTick((()=>{s.offsetWidth,r=s.offsetHeight,i(r)}))}))}function Q(e){return new Promise(((n,i)=>{let a=0,r=0;const o=document.getElementById("app");let l=document.getElementById("lym-calculate-text-w-h-div");l||(l=document.createElement("div"),l.id="lym-calculate-text-w-h-div",l.style.position="fixed",l.style.top="-99999px",l.style.left="-99999px",l.style.whiteSpace="pre-wrap",l.style.wordBreak="break-all",l.style.boxSizing="border-box"),l.style.fontSize=e.fontSize+"px",l.style.fontWeight=e.fontWeight||"normal",l.style.padding=e.padding,l.style.border=e.border||"none",l.style.width=e.width+"px",l.innerText=e.content,o.appendChild(l),t.nextTick((()=>{a=l.offsetWidth,r=l.offsetHeight,n(e.isGetW?a:r)}))}))}function ee(e,t){let n=!1;const i=function(e){let n=t.drag;n&&n(e)},a=function(e){let r=t.end;document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,n=!1,r(e)},r=function(e){n||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),document.addEventListener("touchmove",i),document.addEventListener("touchend",a),n=!0)};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}function te(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]}function ne(e,t){var n;"string"==typeof(n=e)&&n.includes(".")&&1===Number.parseFloat(n)&&(e="100%");const i=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),i&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)}const ie={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"};function ae(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${ie[t]||t}${ie[n]||n}`}function re({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`${ae(e)}${ae(t)}${ae(n)}`}const oe={A:10,B:11,C:12,D:13,E:14,F:15};function le(e){return 2===e.length?16*(oe[e[0].toUpperCase()]||+e[0])+(oe[e[1].toUpperCase()]||+e[1]):oe[e[1].toUpperCase()]||+e[1]}function se(e,t,n){e=ne(e,255),t=ne(t,255),n=ne(n,255);const i=Math.max(e,t,n),a=Math.min(e,t,n);let r;const o=i,l=i-a,s=0===i?0:l/i;if(i===a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:360*r,s:100*s,v:100*o}}function ce(e,t,n){e=6*ne(e,360),t=ne(t,100),n=ne(n,100);const i=Math.floor(e),a=e-i,r=n*(1-t),o=n*(1-a*t),l=n*(1-(1-a)*t),s=i%6,c=[n,o,r,r,l,n][s],u=[l,n,n,o,r,r][s],d=[r,r,l,n,n,o][s];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*d)}}let ue=class{constructor(e={}){i(this,"_hue"),i(this,"_saturation"),i(this,"_value"),i(this,"_alpha"),i(this,"enableAlpha"),i(this,"format"),i(this,"value"),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)this.option=e[t];e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!=typeof e)this[`_${e}`]=t,this.doOnChange();else for(const n in e)this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return ce(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,n)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]+""):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:i,v:a}=function(e,t,n){n/=100;let i=t/=100;const a=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,{h:e,s:100*(0===n?2*i/(a+i):2*t/(n+t)),v:(n+t)/2*100}}(n[0],n[1],n[2]);t(e,i,a)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]+""):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]+""):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:i,v:a}=se(n[0],n[1],n[2]);t(e,i,a)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let i="",a="",r="";3===n.length?(i=le(n[0]+n[0]),a=le(n[1]+n[1]),r=le(n[2]+n[2])):6!==n.length&&8!==n.length||(i=le(n.slice(0,2)),a=le(n.slice(2,4)),r=le(n.slice(4,6))),8===n.length?this._alpha=le(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:o,s:l,v:s}=se(i,a,r);t(o,l,s)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:i,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":const a=te(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*a[1])}%, ${Math.round(100*a[2])}%, ${this.get("alpha")/100})`;break;case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${re(ce(e,t,n))}${ae(255*i/100)}`;break;default:const{r:r,g:o,b:l}=ce(e,t,n);this.value=`rgba(${r}, ${o}, ${l}, ${this.get("alpha")/100})`}else switch(a){case"hsl":const i=te(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*i[1])}%, ${Math.round(100*i[2])}%)`;break;case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":const{r:a,g:r,b:o}=ce(e,t,n);this.value=`rgb(${a}, ${r}, ${o})`;break;default:this.value=re(ce(e,t,n))}}};const de=e=>(t.pushScopeId("data-v-52cfed2c"),e=e(),t.popScopeId(),e),he={class:"color-box"},pe={class:"lym-flex-df",style:{height:"183px"}},me=de((()=>t.createElementVNode("div",{class:"lym-color-svpanel__white"},null,-1))),fe=de((()=>t.createElementVNode("div",{class:"lym-color-svpanel__black"},null,-1))),ve=[de((()=>t.createElementVNode("div",null,null,-1)))],ge={class:"lym-hue-slider"},_e={key:0,style:{margin:"12px 24px 0 0"}},xe={key:1,class:"lym-color-predefine"},ye={class:"lym-color-predefine__colors"},Se=["onClick"],be={class:"lym-flex-cb",style:{"margin-top":"10px"}},Me={class:"lym-flex-c"},Ee=l(t.defineComponent({__name:"LymColorPicker",props:{modelValue:{type:String,default:""},showAlpha:{type:Boolean,default:!1},predefine:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(""),o=t.ref(""),l=t.ref(!1),s=t.ref(!1),c=t.ref(""),u=t.ref(""),d=t.ref(),h=t.ref(),p=t.ref(),m=t.ref(0),f=t.ref({x:0,y:0}),v=t.ref(),g=t.ref(""),_=t.ref(0),x=t.ref(),y=t.ref(),S=t.ref({x:0,y:0}),b=new ue,M=t.ref([]),E=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,t)=>{r.value=e})),t.watch((()=>i.predefine),((e,t)=>{q()}));const w=t.computed((()=>!(!i.disabled&&!E)&&E.value));function T(){w.value||(l.value?(s.value=!0,setTimeout((()=>{s.value=!1,l.value=!1}),150)):(l.value=!0,t.nextTick((()=>{!function(){const e={drag:e=>{C(e)},end:e=>{C(e)}};ee(h.value,e),ee(p.value,e);const t={drag:e=>{N(e)},end:e=>{N(e)}};if(ee(v.value,t),i.showAlpha){const e={drag:e=>{A(e)},end:e=>{A(e)}};ee(x.value,e),ee(y.value,e)}r.value?b.fromString(r.value):b.fromString("#FF0000");R()}()}))))}function C(e){if(!h.value||!p.value)return;const{clientY:t}=J(e);let n;const i=h.value.getBoundingClientRect();let a=t-i.top;a=Math.min(a,i.height-p.value.offsetHeight/2),a=Math.max(p.value.offsetHeight/2,a),n=Math.round((a-p.value.offsetHeight/2)/(i.height-p.value.offsetHeight)*360),b.set("hue",n),R()}function A(e){if(!x.value)return;const{clientX:t}=J(e),n=x.value.getBoundingClientRect();let i=t-n.left;i=Math.max(y.value.offsetWidth/2,i),i=Math.min(i,n.width-y.value.offsetWidth/2),b.set("alpha",Math.round((i-y.value.offsetWidth/2)/(n.width-y.value.offsetWidth)*100)),R()}function N(e){const t=v.value.getBoundingClientRect(),{clientX:n,clientY:i}=J(e);let a=n-t.left,r=i-t.top;a=Math.max(0,a),a=Math.min(a,t.width),r=Math.max(0,r),r=Math.min(r,t.height),b.set("saturation",a/t.width*100),b.set("value",100-r/t.height*100),R()}function R(){u.value=`hsl(${b.get("hue")}, 100%, 50%)`;const e=b.get("saturation"),t=b.get("value");f.value.x=e*v.value.clientWidth/100,f.value.y=(100-t)*v.value.clientHeight/100;const n=b.get("hue");if(m.value=n*(h.value.offsetHeight-p.value.offsetHeight/2)/360,i.showAlpha){const e=b.get("alpha");_.value=Math.round(e*(x.value.offsetWidth-y.value.offsetWidth/2)/100);const{r:t,g:n,b:i}=b.toRgb();g.value=`linear-gradient(to right, rgba(${t}, ${n}, ${i}, 0) 0%, rgba(${t}, ${n}, ${i}, 1) 100%)`,r.value=c.value=`rgba(${t}, ${n}, ${i}, ${e/100})`}else r.value=c.value=`#${b.value}`}function L(){c.value&&(r.value=c.value,o.value=r.value),a("update:modelValue",r.value),T()}function P(){r.value=o.value="",c.value="",T()}function q(){M.value=[];const e=new ue;e.format="rgb",i.predefine.forEach((t=>{let n=!1;e.fromString(t);const i=e.get("alpha");100!=i&&(n=!0),t=100==i?e.value:e.value.replace(")",`, ${i/100})`),M.value.push({color:t,isAlpha:n,selected:!1})}))}function I(){const e=new ue;e.format="rgb",e.fromString(c.value),"FF0000"!==e.value&&(b.fromString(c.value),R())}return t.onMounted((()=>{window.addEventListener("mousedown",(e=>{S.value.x=e.clientX,S.value.y=e.clientY})),window.addEventListener("mouseup",(e=>{if(d.value){const t=d.value.getBoundingClientRect(),n=S.value.x<t.left||S.value.x>t.right||S.value.y<t.top||S.value.y>t.bottom,i=e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom;n&&i&&l.value&&(s.value=!0,setTimeout((()=>{s.value=!1,l.value=!1}),150),r.value=o.value)}})),b.set("hue",0),o.value=r.value=i.modelValue,q()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-color-picker",{"lym-color-picker-disabled":w.value}])},[t.createElementVNode("div",{class:"trigger-box",style:t.normalizeStyle({borderColor:l.value?"#409eff":"",cursor:w.value?"not-allowed":"pointer"}),onClick:t.withModifiers(T,["stop"])},[t.createElementVNode("span",he,[t.createElementVNode("span",{class:"color-inner",style:t.normalizeStyle({background:r.value})},[r.value?(t.openBlock(),t.createBlock(z,{key:0,src:"arrow-bottom",type:"svgicon","fill-color":"white",size:"8"})):(t.openBlock(),t.createBlock(z,{key:1,src:"close",type:"svgicon","fill-color":"#909399",size:"8"}))],4)])],4),l.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"lymChooseColorPopRef",ref:d,class:t.normalizeClass(["lym-choose-color-pop",[s.value?"lym-hide-pop":"lym-show-pop"]]),onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",pe,[t.createElementVNode("div",{ref_key:"lymColorSvpanelRef",ref:v,class:"lym-color-svpanel",style:t.normalizeStyle({backgroundColor:u.value})},[me,fe,t.createElementVNode("div",{class:"lym-color-svpanel__cursor",style:t.normalizeStyle({left:f.value.x+"px",top:f.value.y+"px"})},ve,4)],4),t.createElementVNode("div",ge,[t.createElementVNode("div",{ref_key:"lymHueSliderBarRef",ref:h,class:"lym-hue-slider__bar"},null,512),t.createElementVNode("div",{ref_key:"lymHueSliderThumbRef",ref:p,class:"lym-hue-slider__thumb",style:t.normalizeStyle({top:m.value+"px"})},null,4)])]),e.showAlpha?(t.openBlock(),t.createElementBlock("div",_e,[t.createElementVNode("div",{ref_key:"lymColorAlphaSliderRef",ref:x,class:"lym-color-alpha-slider"},[t.createElementVNode("div",{class:"lym-color-alpha-slider__bar",style:t.normalizeStyle({background:g.value})},null,4),t.createElementVNode("div",{ref_key:"lymColorAlphaSliderThumbRef",ref:y,class:"lym-color-alpha-slider__thumb",style:t.normalizeStyle({left:_.value+"px"})},null,4)],512)])):t.createCommentVNode("",!0),M.value.length?(t.openBlock(),t.createElementBlock("div",xe,[t.createElementVNode("div",ye,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(M.value,((e,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(["lym-color-predefine__color-selector",{"lym-alpha-bg":e.isAlpha,"lym-color-predefine__selected":e.selected}]),onClick:t.withModifiers((e=>function(e){M.value.forEach((e=>{e.selected=!1})),M.value[e].selected=!0,b.fromString(M.value[e].color),R()}(n)),["stop"])},[t.createElementVNode("div",{style:t.normalizeStyle({backgroundColor:e.color})},null,4)],10,Se)))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",be,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),maxlength:"20",class:"input-color",onBlur:I},null,544),[[t.vModelText,c.value]]),t.createElementVNode("div",Me,[t.createVNode(B,{type:"danger",plain:"",padding:"5px 10px",fontSize:"12px",onClick:P},{default:t.withCtx((()=>[t.createTextVNode("Clear")])),_:1}),t.createVNode(B,{type:"primary",plain:"",padding:"5px 10px",fontSize:"12px",style:{"margin-left":"12px"},onClick:L},{default:t.withCtx((()=>[t.createTextVNode("OK")])),_:1})])])],2)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-52cfed2c"]]),we=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),Te={class:"text-screen-number"},Ce=500,Ae=l(t.defineComponent({__name:"LymCountTo",props:{modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref(0),r=t.ref(0),o=t.ref(0),l=t.ref(0),s=t.ref(10),c=t.ref(null),u=t.ref(!0);return t.watch((()=>i.modelValue),((e,t)=>{e!==t&&(u.value=e>t,o.value=e>t?e-t:t-e,a.value=t,r.value=0,s.value=10,l.value=1,function(){c.value&&(clearInterval(c.value),c.value=null);o.value<10?l.value=Ce/o.value:l.value=49;const e=()=>{r.value++,u.value?a.value++:a.value--,clearInterval(c.value),r.value>o.value-10&&s.value<Ce&&(s.value=Math.min(s.value+l.value,Ce)),r.value>=o.value?(clearInterval(c.value),c.value=null):c.value=setInterval(e,s.value)};c.value=setInterval(e,10)}())})),t.onMounted((()=>{a.value=i.modelValue})),(e,n)=>(t.openBlock(),t.createElementBlock("div",Te,t.toDisplayString(a.value),1))}}),[["__scopeId","data-v-f439a3ce"]]),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Ae},Symbol.toStringTag,{value:"Module"})),Re=l(t.defineComponent({__name:"LymDialog",props:{modelValue:{type:Boolean,default:!1},zIndex:{type:Number,default:2200},width:{type:String,default:"500px"},padding:{type:String,default:"16px"},title:{type:String,default:""},isTitleCenter:{type:Boolean,default:!0},isFooterCenter:{type:Boolean,default:!1},canCloseByClickCover:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},bodyMaxH:{type:String,default:""},alignTop:{type:Boolean,default:!1},top:{type:String,default:"15vh"},modal:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(!1),o=t.ref(!1),l=t.ref(!1),s=t.ref(!1);t.watch((()=>i.modelValue),((e,t)=>{e?(r.value=e,o.value=!0,l.value=!0):d()}));const c=t.computed((()=>{let e=`z-index: ${i.zIndex};`;return e+=i.modal?"background-color: rgba(0, 0, 0, .5);":"background-color: transparent;",e})),u=t.computed((()=>{let e=`width: ${i.width};padding: ${i.padding};`;return i.alignTop&&(e+=`margin-top: ${i.top};`),e}));function d(){o.value=!1,l.value=!1,setTimeout((()=>{r.value=!1,a("update:modelValue",!1),a("close")}),200)}function h(){i.canCloseByClickCover&&d()}function p(){s.value=!1}function m(){s.value=!0}return t.onMounted((()=>{})),(n,i)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-dialog-cover",["lym-dialog-conver"+(o.value?"-show":"-hide"),e.alignTop?"lym-flex-column-c":"lym-flex-cc"]]),style:t.normalizeStyle(c.value),onClick:h},[t.createElementVNode("div",{class:t.normalizeClass(["lym-dialog-content",["lym-dialog-content"+(l.value?"-show":"-hide")]]),style:t.normalizeStyle(u.value),onClick:i[0]||(i[0]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-dialog-content-head",style:t.normalizeStyle({textAlign:e.isTitleCenter?"center":"left",padding:e.isTitleCenter?"0 35px 16px 35px":"0 35px 16px 0"})},[t.renderSlot(n.$slots,"header",{closeFn:d},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),!0)],4),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-dialog-close lym-flex-cc",onMouseleave:p,onMouseenter:m,onClick:d},[t.createVNode(z,{src:"close",type:"svgicon","fill-color":s.value?"#409eff":"#909399",size:"10"},null,8,["fill-color"])],32)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"lym-dialog-content-body lym-custom-scrollbar",style:t.normalizeStyle({maxHeight:e.bodyMaxH})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4),t.createElementVNode("div",{class:"lym-dialog-content-footer",style:t.normalizeStyle({textAlign:e.isFooterCenter?"center":"right"})},[t.renderSlot(n.$slots,"footer",{},void 0,!0)],4)],6)],6)):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-ed019f02"]]),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"})),Pe=l(t.defineComponent({__name:"LymDivider",props:{direction:{type:String,default:"horizontal"},contentPosition:{type:String,default:"center"},fontSize:{type:String,default:"14px"},lineColor:{type:String,default:"#dcdfe6"},lineStyle:{type:String,default:"solid"},lineW:{type:String,default:"100%"},lineH:{type:String,default:"24px"},lineWide:{type:String,default:"1px"},linePadding:{type:String,default:"0"}},setup:e=>(n,i)=>(t.openBlock(),t.createElementBlock("div",null,["horizontal"===e.direction?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-divider-horizontal",["center"===e.contentPosition?"lym-flex-cc":"left"===e.contentPosition?"lym-flex-cl":"lym-flex-cr"]]),style:t.normalizeStyle({width:e.lineW})},[t.createElementVNode("div",{class:"lym-divider-line-horizontal",style:t.normalizeStyle({borderColor:e.lineColor,borderStyle:e.lineStyle,borderTopWidth:e.lineWide})},null,4),t.createElementVNode("div",{class:"lym-divider-text",style:t.normalizeStyle({margin:"center"===e.contentPosition?"0 0":"left"===e.contentPosition?"0 0 0 20px":"0 20px 0 0",fontSize:e.fontSize})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)],6)):(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({height:e.lineH,width:"1px",padding:e.linePadding})},[t.createElementVNode("div",{class:"lym-divider-line-vertical",style:t.normalizeStyle({borderColor:e.lineColor,borderStyle:e.lineStyle,borderLeftWidth:e.lineWide})},null,4)],4))]))}),[["__scopeId","data-v-8c9d2fcf"]]),qe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"})),Ie={class:"lym-dialog-content-body lym-custom-scrollbar"},ze=l(t.defineComponent({__name:"LymDrawer",props:{modelValue:{type:Boolean,default:!1},direction:{type:String,default:"rtl"},zIndex:{type:Number,default:2200},size:{type:String,default:"500px"},padding:{type:String,default:"16px"},title:{type:String,default:""},isTitleCenter:{type:Boolean,default:!0},isFooterCenter:{type:Boolean,default:!1},canCloseByClickCover:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},beforeClose:{type:Function,default:null}},emits:["update:modelValue","close","beforeClose"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(!1),o=t.ref(!1),l=t.ref(!1),s=t.ref(!1);t.useAttrs();t.watch((()=>i.modelValue),((e,t)=>{e?(r.value=e,o.value=!0,l.value=!1,setTimeout((()=>{l.value=!0}))):d()}));const c=t.computed((()=>{let e=`z-index: ${i.zIndex};`;return e+=i.modal?"background-color: rgba(0, 0, 0, .5);":"background-color: transparent;",e})),u=t.computed((()=>{let e=`width: ${i.size};padding: ${i.padding};`;switch(i.direction){case"ltr":e+="top: 0;bottom: 0;left: 0;height: 100%;width: "+i.size;break;case"rtl":e+="top: 0;bottom: 0;right: 0;height: 100%;width: "+i.size;break;case"ttb":e+="left: 0;right: 0;top: 0;width: 100%;height: "+i.size;break;case"btt":e+="left: 0;right: 0;bottom: 0;width: 100%;height: "+i.size;break;default:e+="top: 0;bottom: 0;right: 0;width: "+i.size}return e}));function d(){if(i.beforeClose&&"function"==typeof i.beforeClose){(0,i.beforeClose)(h)}else h()}function h(){o.value=!1,l.value=!1,setTimeout((()=>{r.value=!1,a("update:modelValue",!1),a("close")}),200)}function p(){i.canCloseByClickCover&&d()}function m(){s.value=!1}function f(){s.value=!0}return(n,i)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-dialog-cover",["lym-dialog-conver"+(o.value?"-show":"-hide")]]),style:t.normalizeStyle(c.value),onClick:p},[t.createElementVNode("div",{class:t.normalizeClass(["lym-dialog-content lym-flex-column",["lym-drawer-"+e.direction+(l.value?"-show":"-hide")]]),style:t.normalizeStyle(u.value),onClick:i[0]||(i[0]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-dialog-content-head",style:t.normalizeStyle({textAlign:e.isTitleCenter?"center":"left",padding:e.isTitleCenter?"0 35px 16px 35px":"0 35px 16px 0"})},[t.renderSlot(n.$slots,"header",{closeFn:d},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),!0)],4),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-dialog-close lym-flex-cc",onMouseleave:m,onMouseenter:f,onClick:d},[t.createVNode(z,{src:"close",type:"svgicon","fill-color":s.value?"#409eff":"#909399",size:"10"},null,8,["fill-color"])],32)):t.createCommentVNode("",!0),t.createElementVNode("div",Ie,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),t.createElementVNode("div",{class:"lym-dialog-content-footer",style:t.normalizeStyle({textAlign:e.isFooterCenter?"center":"right"})},[t.renderSlot(n.$slots,"footer",{},void 0,!0)],4)],6)],6)):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-69c0f05e"]]),ke=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"})),Be=t.defineComponent({__name:"LymForm",props:{model:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"left"},labelAlignType:{type:String,default:"right"},labelWidth:{type:[Number,String],default:""},showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{expose:n,emit:i}){const r=e,l=t.ref(),s=t.ref([]),c=t.ref(!1);return t.provide("getRef",(function(e,t,n,i,a,o,c,u){if(null!=e.value&&e.value.parentElement===l.value){const l={refInstance:e,prop:t,setErrorText:i,setRule:n,rule:{},setLabelWidth:a,setLabelPosition:o,setLabelAlignType:c,setShowMessage:u};r.rules[t]&&(n(r.rules[t]),l.rule=r.rules[t]),a(r.labelWidth),o(r.labelPosition),c(r.labelAlignType),u(r.showMessage),s.value.push(l)}})),t.provide("removeRef",(function(){const e=[];for(let t=0;t<s.value.length;t++){const n=s.value[t];if(n.refInstance){const t=n.refInstance.getAttribute("data-custom-atrribute");if(t!==n.prop){const e=s.value.findIndex((e=>e.prop===t));n.prop=s.value[e].prop,n.rule=s.value[e].rule,n.setRule(n.rule)}e.push(n)}}s.value=e})),t.provide("formDisabled",c),t.watch((()=>r.rules),((e,t)=>{const n=Object.keys(e);s.value.forEach((t=>{n.includes(t.prop)?t.rule=e[t.prop]:t.rule={},t.setRule(t.rule)}))}),{deep:!0}),t.watch((()=>r.labelPosition),((e,t)=>{s.value.forEach((t=>{t.setLabelPosition(e)}))}),{immediate:!0}),t.watch((()=>r.labelWidth),((e,t)=>{s.value.forEach((t=>{t.setLabelWidth(e)}))}),{immediate:!0}),t.watch((()=>r.labelAlignType),((e,t)=>{s.value.forEach((t=>{t.setLabelAlignType(e)}))}),{immediate:!0}),t.watch((()=>r.showMessage),((e,t)=>{s.value.forEach((t=>{t.setShowMessage(e)}))}),{immediate:!0}),t.watch((()=>r.disabled),((e,t)=>{c.value=e}),{immediate:!0}),t.computed((()=>0)),n({validate:function(e){let t=0;for(let i=0;i<s.value.length;i++){const e=s.value[i],l=e.rule;if(Object.keys(l).length)if(l.validator)l.validator(r.model[e.prop],((n="")=>{e.setErrorText(n),0===t&&n.length&&(t=1),r.scrollToError&&n.length&&0===t&&(t=1,e.refInstance.scrollIntoView({behavior:"smooth"}))}));else{const i=r.model[e.prop];let s=!i||a(i)&&!i||o(i)&&!i.length||(n=i,"[object Object]"===Object.prototype.toString.call(n)&&!Object.keys(i).length);e.setErrorText(s?l.message:""),0===t&&s&&(t=1),r.scrollToError&&Object.keys(l).length>0&&s&&0===t&&(t=1,e.refInstance.scrollIntoView({behavior:"smooth"}))}}var n;e(0===t)},validateField:function(){},resetFields:function(){},scrollToField:function(){},clearValidate:function(){s.value.forEach((e=>{e.setErrorText("")}))}}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymFormRef",ref:l,class:t.normalizeClass(["lym-form",[e.inline?"lym-form-inline":"",c.value?"lym-form-disabled":""]])},[t.renderSlot(n.$slots,"default")],2))}}),De=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));const Ue=["data-custom-atrribute"],Ve={key:0,style:{color:"red"}},Oe={key:0,style:{color:"red"}},Fe=t.defineComponent({__name:"LymFormItem",props:{prop:{type:String,default:"",required:!0},label:{type:String,default:""},labelWidth:{type:[Number,String],default:""},labelPosition:{type:String,default:"left"},labelAlignType:{type:String,default:"right"},required:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},trigger:{type:String,default:"change"}},emits:["update:modelValue"],setup(e,{expose:n,emit:i}){const o=e,l=t.ref(),s=t.ref(""),c=t.ref(0),u=t.ref(!1),d=t.ref(o.labelPosition),h=t.ref(o.labelAlignType),p=t.ref(o.showMessage),m=t.ref({x:0,y:0}),f=t.inject("getRef",null),v=t.inject("removeRef",null);function g(e){const n=function(e){let t=0;if(r(e)&&!isNaN(e)&&(t=e),a(e)){const n=e.replace(/\bpx\b/g,"");t=isNaN(Number(n))?0:Number(n)}return t}(e);n>0&&(c.value=n),t.nextTick((()=>{setTimeout((()=>{n<=0&&("right"===d.value?c.value=l.value.children[0].children[1].offsetWidth+1:c.value=l.value.children[0].children[0].offsetWidth+1),m.value.x=l.value.offsetLeft+c.value,m.value.y=l.value.offsetTop+l.value.children[0].offsetHeight+1}))}))}function _(e){d.value=e,g("")}function x(e){h.value=e}function y(e){p.value=e}function S(e){u.value=Object.keys(e).length>0}function b(e){s.value=e}return t.watch((()=>o.labelWidth),((e,t)=>{g(e)}),{immediate:!0}),t.watch((()=>o.labelPosition),((e,t)=>{d.value=e}),{immediate:!0}),t.watch((()=>o.labelAlignType),((e,t)=>{h.value=e}),{immediate:!0}),t.watch((()=>o.showMessage),((e,t)=>{p.value=e}),{immediate:!0}),t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==f&&f instanceof Function&&f(l,o.prop,S,b,g,_,x,y)}))})),t.onUnmounted((()=>{null!==v&&v instanceof Function&&v()})),n({setRule:S}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymFormItemRef",ref:l,class:"lym-form-item","data-custom-atrribute":e.prop},[t.createElementVNode("div",{class:t.normalizeClass(["lym-form-item-content",["top"===d.value?"lym-flex-column-l":"lym-flex-c"]])},["right"!==d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-form-item-label",style:t.normalizeStyle({width:c.value>0?c.value+"px":"auto",textAlign:h.value,paddingBottom:"top"===d.value?"10px":"0"})},[e.required||u.value?(t.openBlock(),t.createElementBlock("span",Ve,"*")):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),!0)],4)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"default",{},void 0,!0),"right"===d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-form-item-label",style:t.normalizeStyle({width:c.value>0?c.value+"px":"auto",textAlign:h.value})},[e.required||u.value?(t.openBlock(),t.createElementBlock("span",Oe,"*")):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),!0)],4)):t.createCommentVNode("",!0)],2),p.value&&s.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-form-item-error",style:t.normalizeStyle({top:m.value.y+"px",left:m.value.x+"px"})},t.toDisplayString(s.value),5)):t.createCommentVNode("",!0)],8,Ue))}}),He=l(Fe,[["__scopeId","data-v-b3ae8614"]]),Ge=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"})),We={key:0,class:"lym-input-prepend lym-flex-cc"},Xe={key:0,style:{"margin-left":"8px","min-width":"16px"}},je=["id","placeholder","disabled","maxlength"],$e={key:2,style:{flex:"1"}},Ke=["placeholder","disabled","maxlength","type"],Ye={key:3,style:{width:"16px","margin-left":"8px"}},Je={key:4,style:{"margin-left":"8px","min-width":"16px"}},Ze={key:5,style:{"margin-left":"8px","min-width":"16px"}},Qe={key:1,class:"lym-input-append lym-flex-cc"},et=t.defineComponent({__name:"LymInput",props:{modelValue:{type:String,default:""},width:{type:[String,Number],default:"240px"},type:{type:String,default:""},placeholder:{type:String,default:"请输入"},disabled:{type:Boolean,default:!1},maxlength:{type:String,default:"20"},clearable:{type:Boolean,default:!1},formatter:{type:Function,default:null},showPassword:{type:Boolean,default:!1},noSpaces:{type:Boolean,default:!0},rows:{type:Number,default:0},autosize:{type:Boolean,default:!1},autosizeRange:{type:Object,default:()=>null},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},showWordLimit:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},max:{type:Number,default:999999},min:{type:Number,default:0}},emits:["update:modelValue","focuse","blur"],setup(e,{emit:n}){const i=e,o=n,l=t.ref("leave"),s=t.ref(!1),c=t.ref(""),u=t.ref(!1),d=t.ref(""),h=t.ref(0),p=t.ref(!!t.useSlots().prepend),m=t.ref(!!t.useSlots().append),f=t.ref(),v=t.ref(),g=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,t)=>{c.value=e})),t.watch((()=>i.type),((e,t)=>{"textarea"===e&&T()})),t.onMounted((()=>{i.autoFocus&&("textarea"===i.type?v.value.focus():f.value.focus())})),t.onUpdated((()=>{p.value=!!t.useSlots().prepend,m.value=!!t.useSlots().append}));const _=t.computed((()=>{let e="";return a(i.width)?(e=i.width.toString(),e+=e.includes("px")||e.includes("%")?"":"px"):r(i.width)&&(e+="px"),e})),x=t.computed((()=>{let e="";S.value?e="border-color: #e4e7ed;background-color: #f5f7fa;cursor: not-allowed;":(e+="cursor: text;background-color: #ffffff;",s.value?e+="border-color: #409eff;":e+="leave"===l.value?"border-color: #dcdfe6;":"border-color: #c0c4cc;");let t="border-radius: 4px;";return p.value&&(t="border-radius: 0 4px 4px 0;"),m.value&&(t="border-radius: 4px 0 0 4px;"),p.value&&m.value&&(t="border-radius: 0;"),e+=t,"textarea"!==i.type?e+="padding: 1px 11px;":e+=i.showWordLimit?"padding: 5px 11px 25px 11px;":"padding: 5px 11px;",e})),y=t.computed((()=>i.clearable&&c.value&&("enter"===l.value||s.value))),S=t.computed((()=>!(!i.disabled&&!g)&&g.value));function b(){s.value=!0,o("focuse")}function M(){s.value=!1,o("blur")}function E(){l.value="enter"}function w(){l.value="leave"}function T(){t.nextTick((async()=>{const e=document.getElementById(d.value),t=window.getComputedStyle(e),n=parseFloat(t.paddingTop.replace("px",""))+parseFloat(t.paddingBottom.replace("px",""));let a=await Z(e,"1111");if(a-=n,i.autosize)if(null!==i.autosizeRange){const t=a*i.autosizeRange.minRow+n,r=a*i.autosizeRange.maxRow+n,o=await Z(e,e.value);h.value=o<t?t:o>r?r:o}else if(e.value.length){const t=await Z(e,e.value);h.value=t}else h.value=a+n;else i.rows>0?h.value=a*i.rows+n:h.value=a+n}))}function C(){"textarea"===i.type&&T(),t.nextTick((()=>{let e=c.value;i.noSpaces&&(e=function(e){let t=e;return t.replace(/\s/g,"")}(e)),"price"===i.type?e=function(e){let t=e;t=t.replace(/[^\d.]/g,""),t=t.replace(/\.{2,}/g,"."),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t.indexOf(".")<0&&""!==t&&(t=parseFloat(t));t>99999999&&(t=99999999);return t+""}(e):"number"===i.type&&(e=function(e){let t=e;return t.replace(/\D/g,"")}(e),parseFloat(e)>i.max&&(e=`${i.max}`),parseFloat(e)<=i.min&&(e=`${i.min}`),e.length>1&&0===e.indexOf("0")&&(e=e.substring(1,e.length))),i.formatter&&(e=i.formatter(e)),c.value=e,o("update:modelValue",e)}))}function A(){c.value="",o("update:modelValue",c.value)}return t.onMounted((()=>{c.value=i.modelValue,d.value="lymInputtextarea"+Math.random(),"textarea"===i.type&&T()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-input lym-flex-df",style:t.normalizeStyle({width:_.value}),onMouseenter:E,onMouseleave:w},[p.value?(t.openBlock(),t.createElementBlock("div",We,[t.renderSlot(n.$slots,"prepend",{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"lym-input_wrapper lym-flex-c",style:t.normalizeStyle(x.value)},[e.prefixIcon?(t.openBlock(),t.createElementBlock("div",Xe,[t.createVNode(z,{src:e.prefixIcon,type:"svgicon","fill-color":"#a8abb2",size:"16"},null,8,["src"])])):t.createCommentVNode("",!0),"textarea"===e.type?t.withDirectives((t.openBlock(),t.createElementBlock("textarea",{key:1,ref_key:"lymTextareaInner",ref:v,"onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),id:d.value,class:"lym-textarea_inner lym-custom-scrollbar",placeholder:e.placeholder,disabled:S.value,maxlength:e.maxlength,style:t.normalizeStyle({cursor:S.value?"not-allowed":"",height:h.value+"px"}),onFocus:b,onBlur:M,onInput:C},null,44,je)),[[t.vModelText,c.value]]):(t.openBlock(),t.createElementBlock("div",$e,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=e=>c.value=e),ref_key:"lymInputInner",ref:f,class:"lym-input_inner",placeholder:e.placeholder,disabled:S.value,maxlength:e.maxlength,type:e.showPassword&&u.value?"password":"text",style:t.normalizeStyle({cursor:S.value?"not-allowed":""}),onFocus:b,onBlur:M,onInput:C},null,44,Ke),[[t.vModelDynamic,c.value]])])),y.value&&"textarea"!==e.type?(t.openBlock(),t.createElementBlock("div",Ye,[t.createVNode(z,{src:"close-circle-line",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":"",onClick:A})])):t.createCommentVNode("",!0),e.showPassword?(t.openBlock(),t.createElementBlock("div",Je,[t.createVNode(z,{src:u.value?"password-hide":"password-show","hover-url":u.value?"#password-hide":"#password-show",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":"",onClick:i[2]||(i[2]=e=>u.value=!u.value)},null,8,["src","hover-url"])])):t.createCommentVNode("",!0),e.suffixIcon?(t.openBlock(),t.createElementBlock("div",Ze,[t.createVNode(z,{src:e.suffixIcon,type:"svgicon","fill-color":"#a8abb2",size:"16"},null,8,["src"])])):t.createCommentVNode("",!0),e.showWordLimit?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(["lym-word-limit"+("textarea"===e.type?"-textarea":"")])},t.toDisplayString(c.value.length)+"/"+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("",!0)],4),m.value?(t.openBlock(),t.createElementBlock("div",Qe,[t.renderSlot(n.$slots,"append",{},void 0,!0)])):t.createCommentVNode("",!0)],36))}}),tt=l(et,[["__scopeId","data-v-2776b363"]]),nt=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),it=["href","target"],at=t.defineComponent({__name:"LymLink",props:{href:{type:String,default:""},type:{type:String,default:"default"},disabled:{type:Boolean,default:!1},hasUnderline:{type:Boolean,default:!0},customColors:{type:Object,default:{}},target:{type:String,default:"_blank"},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},iconSize:{type:[String,Number],default:"12"},iconSpace:{type:String,default:"0"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref("leave"),r={default:{color:"#606266",hoverColor:"#409eff",disabledColor:"#a8abb2"},primary:{color:"#409eff",hoverColor:"#79bbff",disabledColor:"#a0cfff"},success:{color:"#67c23a",hoverColor:"#95d475",disabledColor:"#b3e19d"},info:{color:"#909399",hoverColor:"#b1b3b8",disabledColor:"#c8c9cc"},warning:{color:"#e6a23c",hoverColor:"#eebe77",disabledColor:"#f3d19e"},danger:{color:"#f56c6c",hoverColor:"#f89898",disabledColor:"#fab6b6"}},o=t.computed((()=>!("leave"===a.value||!i.hasUnderline))),l=t.computed((()=>i.customColors.color?"leave"!==a.value?i.customColors.hoverColor:i.customColors.color:i.disabled?r[i.type].disabledColor:"leave"!==a.value?r[i.type].hoverColor:r[i.type].color)),s=t.computed((()=>i.customColors.color?i.customColors.color:i.disabled?r[i.type].disabledColor:"default"===i.type?r[i.type].hoverColor:r[i.type].color));function c(){a.value="enter"}function u(){a.value="leave"}function d(){a.value="down"}function h(){a.value="up"}function p(e){i.disabled&&e.preventDefault()}return(n,i)=>(t.openBlock(),t.createElementBlock("a",{href:e.href,class:"lym-link",target:e.target,style:t.normalizeStyle({color:l.value,cursor:e.disabled?"not-allowed":""}),onMouseenter:c,onMouseleave:u,onMousedown:d,onMouseup:h,onClick:p},[e.leftIcon?(t.openBlock(),t.createBlock(z,{key:0,src:e.leftIcon,type:"svgicon","fill-color":l.value,size:e.iconSize+"",style:t.normalizeStyle([{marginRight:e.iconSpace},{display:"inline-block"}])},null,8,["src","fill-color","size","style"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),e.rightIcon?(t.openBlock(),t.createBlock(z,{key:1,src:e.rightIcon,type:"svgicon","fill-color":l.value,size:e.iconSize+"",style:t.normalizeStyle([{marginLeft:e.iconSpace},{display:"inline-block"}])},null,8,["src","fill-color","size","style"])):t.createCommentVNode("",!0),o.value&&!e.disabled?(t.openBlock(),t.createElementBlock("div",{key:2,class:"under-line",style:t.normalizeStyle({background:s.value})},null,4)):t.createCommentVNode("",!0)],44,it))}}),rt=l(at,[["__scopeId","data-v-391bbcf0"]]),ot=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),lt={class:"lym-cascader lym-flex-df"},st=["onClick","onMouseenter"],ct={class:"lym-cli-left lym-flex-cc"},ut=t.defineComponent({__name:"LymCascader",props:{modelValue:{type:Array,default:()=>[]},options:{type:Array,required:!0,default:()=>[]},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"label"},levelW:{type:String,default:"200px"},levelH:{type:String,default:"200px"},expandTrigger:{type:String,default:"click"},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},needRefresh:{type:Boolean,default:!1}},emits:["update:modelValue","completed"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),o=t.ref(1),l=t.ref([]),s=t.ref([]),c=t.ref([]),u=t.ref([]),d=t.ref([]),h=t.ref([]),p=t.ref(!1);function m(){l.value=[],o.value=1,l.value[0]=JSON.parse(JSON.stringify(r.value)),f([...r.value]),setTimeout((()=>{for(let e=0;e<o.value-1;e++)l.value.push([]),s.value.push(-1)})),S()}function f(e){const t=e.filter((e=>e.children&&e.children.length));if(t.length){o.value++;let e=[];for(let n=0;n<t.length;n++)e=e.concat(t[n].children);f(e)}}function v(e,t,n){const a=c.value.length&&c.value[c.value.length-1][i.valueKey]==n[i.valueKey],r=s.value[e]==t;let o=!1;if(i.checkStrictly){let e=[];u.value.forEach((t=>{e=Array.from(new Set(e.concat(t)))}));o=-1!==e.findIndex((e=>e[i.valueKey]==n[i.valueKey]))}else o=n.checked;return!!(r||a||o)}function g(e,t){const n=l.value[e][t];if(n.disabled)return;const a=n.children&&n.children.length;if(e!==o.value-1&&a&&(s.value[e]=t),a&&e!==o.value-1){if(JSON.stringify(l.value[e+1])!==JSON.stringify(n.children)){l.value[e+1]=n.children,s.value[e+1]=-1;const t=o.value-1-e-1;for(let n=1;n<=t;n++)l.value[e+1+n]=[],s.value[e+1+n]=-1}}if(c.value.length){const e=c.value[c.value.length-1];a&&n.children.forEach(((t,n)=>{t[i.valueKey]==e[i.valueKey]&&(s.value[c.value.length-1]=n)}))}}function _(e,t,n){let a=[];for(let i=0;i<t;i++)a.push(l.value[i][s.value[i]]);const r=l.value[t][n];r.isIndeterminate&&e&&(l.value[t][n].isIndeterminate=!1),a.push(r);const o=u.value.findIndex((e=>e.map((e=>e[i.valueKey])).join("")==a.map((e=>e[i.valueKey])).join("")));e?-1===o&&u.value.push(a):-1!==o&&u.value.splice(o,1),i.checkStrictly||(x(r,e,a),function(e){for(let t=e.length-2;t>=0;t--){d.value=[],y(e[t]);const n=d.value.filter((e=>!e.checked));n&&(0===n.length?(l.value[t][s.value[t]].isIndeterminate=!1,l.value[t][s.value[t]].checked=!0):n.length>0&&n.length<d.value.length?(l.value[t][s.value[t]].isIndeterminate=!0,l.value[t][s.value[t]].checked=!1):(l.value[t][s.value[t]].isIndeterminate=!1,l.value[t][s.value[t]].checked=!1))}}(a)),setTimeout((()=>{w()}))}function x(e,t,n){e.children&&e.children.forEach((e=>{e.checked=t;const a=[...n];a.push(e);const r=u.value.findIndex((e=>e.map((e=>e[i.valueKey])).join("")==a.map((e=>e[i.valueKey])).join("")));t?-1===r&&u.value.push(a):-1!==r&&u.value.splice(r,1),x(e,t,a)}))}function y(e){e.children&&e.children.forEach((e=>{d.value.push(e),y(e)}))}function S(){if(i.multiple)u.value=[],b(l.value[0],[]),i.checkStrictly||setTimeout((()=>{const e=[];for(let t=0;t<u.value.length;t++){const n=u.value[t].slice(0,u.value[t].length-1),i=M(n);e.push({nodes:n,indexs:i})}for(let t=0;t<e.length;t++){const n=e[t];for(let e=n.nodes.length-1;e>=0;e--){d.value=[],y(n.nodes[e]);const t=d.value.filter((e=>!e.checked));t&&(0===t.length?E(n.indexs.slice(0,e+1),!0,!1):t.length>0&&t.length<d.value.length?E(n.indexs.slice(0,e+1),!1,!0):E(n.indexs.slice(0,e+1),!1,!1))}}}));else{let e=[];e=i.modelValue.map((e=>({value:e})));const t=M(e);let n=[...l.value[0]];t.forEach((e=>{c.value.push(n[e]),n=n[e].children}))}}function b(e,t){e.forEach((e=>{-1!==i.modelValue.findIndex((t=>t[t.length-1]==e[i.valueKey]))&&(e.checked=!0,u.value.push([...t,e])),e.children&&b(e.children,[...t,e])}))}function M(e){let t=[...l.value[0]],n=[];for(let a=0;a<e.length;a++){const r=t.findIndex((t=>t[i.valueKey]==e[a][i.valueKey]));-1!==r&&(n.push(r),t[r].children&&(t=t[r].children))}return n}function E(e,t,n){let i=l.value[0];for(;e.length>0;){if(1===e.length){i[e[0]].isIndeterminate=n,i[e[0]].checked=t;break}i=i[e.shift()].children}}function w(){let e=t.ref([]);i.multiple?(e=i.checkStrictly?[...u.value]:u.value.filter((e=>{if(!e[e.length-1].children)return e})),h.value=e.map((e=>e.map((e=>e[i.valueKey]))))):(e=[...c.value],h.value=e.map((e=>e[i.valueKey]))),p.value=!0,a("update:modelValue",[...h.value]),a("completed")}return t.watch((()=>i.options),((e,t)=>{r.value=[...e],m()})),t.watch((()=>i.modelValue),((e,t)=>{p.value?p.value=!1:i.needRefresh?m():S()}),{deep:!0}),t.computed((()=>0)),t.onMounted((()=>{r.value=[...i.options],m()})),(n,a)=>(t.openBlock(),t.createElementBlock("div",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,(a=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"lym-cascader-level lym-custom-scrollbar",style:t.normalizeStyle({width:l.value[a-1]&&l.value[a-1].length?e.levelW:"0px",maxHeight:e.levelH,borderColor:a-1!=0&&l.value[a-1]&&l.value[a-1].length?"rgba(128, 128, 128, 0.3)":"transparent"})},[l.value[a-1]&&l.value[a-1].length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.value[a-1],((r,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,class:t.normalizeClass(["lym-flex-c",["lym-cascader-level-item"+(r.disabled?"-disabled":"")]]),onClick:e=>function(e,t){"click"===i.expandTrigger&&g(e,t);const n=l.value[e][t];if(!(n.children&&n.children.length||i.multiple)){c.value=[];for(let t=0;t<e;t++)c.value.push(l.value[t][s.value[t]]);c.value.push(l.value[e][t]),s.value[e]=t,w()}}(a-1,o),onMouseenter:e=>function(e,t){"hover"===i.expandTrigger&&g(e,t)}(a-1,o)},[t.createElementVNode("div",ct,[c.value.length&&c.value[c.value.length-1][e.valueKey]==r[e.valueKey]?(t.openBlock(),t.createBlock(z,{key:0,src:"tick-line",type:"svgicon","fill-color":"#409eff",size:"12"})):t.createCommentVNode("",!0),e.multiple?(t.openBlock(),t.createBlock(j,{key:1,modelValue:r.checked,"onUpdate:modelValue":e=>r.checked=e,"is-indeterminate":r.isIndeterminate,onChange:e=>{_(e,a-1,o)}},null,8,["modelValue","onUpdate:modelValue","is-indeterminate","onChange"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"lym-cli-label",style:t.normalizeStyle({fontWeight:v(a-1,o,r)?"bold":"normal",color:v(a-1,o,r)?"#409eff":r.disabled?"#A8ABB2":"#333333"})},[t.renderSlot(n.$slots,"cascaderContent",{cascaderItem:r},(()=>[t.createTextVNode(t.toDisplayString(r.label),1)]),!0)],4),r.children?(t.openBlock(),t.createBlock(z,{key:0,src:"arrow-right",type:"svgicon","fill-color":s.value[a-1]==o?"#409eff":r.disabled?"#A8ABB2":"#333333",size:"10"},null,8,["fill-color"])):t.createCommentVNode("",!0)],42,st)))),128)):t.createCommentVNode("",!0)],4)))),128))]))}}),dt=l(ut,[["__scopeId","data-v-9844dc44"]]),ht=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),pt=e=>(t.pushScopeId("data-v-9e51ab42"),e=e(),t.popScopeId(),e),mt={class:"lym-select__wrapper lym-flex-cb no-select"},ft={style:{flex:"1"}},vt={class:"lym-flex-c lym-select__multiple-item"},gt={style:{flex:"1"}},_t=pt((()=>t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle"},null,-1))),xt={class:"lym-select_dropdown-content lym-flex-wrap",style:{padding:"10px 10px 5px 10px"}},yt={style:{flex:"1"}},St=["placeholder"],bt={key:3,style:{color:"#a8abb2"}},Mt={key:4,style:{color:"#606266"}},Et={class:"lym-select_dropdown-content"},wt={key:0},Tt=["onClick"],Ct={style:{flex:"1"}},At={key:1,style:{width:"11px"}},Nt={key:1,class:"lym-select__no-match-data"},Rt={key:2,class:"lym-flex-cc",style:{padding:"10px 0"}},Lt=pt((()=>t.createElementVNode("span",{style:{"margin-left":"10px",color:"#a8abb2"}},"数据加载中...",-1))),Pt=t.defineComponent({__name:"LymSelect",props:{modelValue:{type:[String,Array],default:""},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},width:{type:[String,Number],default:"240px"},ddbWidth:{type:[String,Number],default:"240px"},fontSize:{type:[String,Number],default:"14px"},padding:{type:String,default:"4px 12px"},scrollMaxH:{type:String,default:"200px"},filterable:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:null},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},isCascader:{type:Boolean,default:!1},cascaderLevelH:{type:String,default:"200px"},cascaderExpandTrigger:{type:String,default:"click"},cascaderMultiple:{type:Boolean,default:!1},cascaderCheckStrictly:{type:Boolean,default:!1},cascaderShowAllLevels:{type:Boolean,default:!0},needIntervalForPoints:{type:Boolean,default:!1}},emits:["update:modelValue","selectCompleted"],setup(e,{expose:n,emit:i}){const o=e,l=i,s=t.ref([]),c=t.ref("leave"),u=t.ref(!1),d=t.ref(!1),h=t.ref(!1),p=t.ref({}),m=t.ref(""),f=t.ref("请选择"),v="selectMultipleBoxId"+1e3*Math.random(),g=t.ref(!1),_=t.ref(!1),x=t.ref(null),y=t.ref(!1),S=t.ref(!1),b=t.ref(!1),M=t.ref(0),E=t.ref(""),w=t.ref([]),T=t.ref(!1),C=t.ref(),A=t.ref({x:0,y:0}),N=t.inject("formDisabled",null);t.watch((()=>o.modelValue),((e,t)=>{e!==t&&(y.value?y.value=!1:I())})),t.watch((()=>o.options),((e,t)=>{s.value=e,b.value&&(S.value=!1,b.value=!1)})),t.watch((()=>o.ddbWidth),((e,t)=>{let n="";a(e)&&(n=e,n=n.replace("px","")),M.value=Number(n)}),{immediate:!0}),t.onMounted((()=>{I()}));const R=t.computed((()=>!(!o.disabled&&!N)&&N.value)),L=t.computed((()=>{let e="",t=o.width;a(t)?e+=`width: ${t};`:r(t)&&(e+=`width: ${t}px;`);let n=o.fontSize;return a(n)?e+=`font-size: ${n};`:r(n)&&(e+=`font-size: ${n}px;`),e+=`padding: ${o.padding};`,e+="border-color: "+(R.value?"#e4e7ed":u.value?"#409eff":"leave"===c.value?"#dcdfe6":"#c0c4cc")+";",e+="background-color: "+(R.value?"#F5F7FA":"white")+";",e+="cursor: "+(R.value?"not-allowed":"pointer")+";",e})),P=t.computed((()=>{let e=!1;return e=o.multiple||o.isCascader?p.value.length>0:!!p.value[o.valueKey],!R.value&&o.clearable&&e&&"enter"===c.value})),q=t.computed((()=>{let e=!1;return e=o.multiple||o.isCascader?!!p.value.length:!!p.value[o.valueKey],e}));function I(){if(s.value=o.options,o.isCascader)p.value=[...o.modelValue],o.cascaderMultiple?E.value=o.cascaderShowAllLevels?p.value.map((e=>e.join(" / "))):p.value.map((e=>e[e.length-1])):(E.value=o.cascaderShowAllLevels?p.value.join(" / "):p.value[p.value.length-1],m.value=E.value),o.filterable&&(w.value=[],$(s.value)),j();else if(s.value.forEach((e=>{e.checked=!1})),o.multiple){p.value=[];const e=[];for(let t=0;t<s.value.length;t++){const n=s.value[t];-1!==o.modelValue.indexOf(n[o.valueKey])&&(n.checked=!0,e.push(n))}p.value=e,j()}else{p.value={};const e=s.value.find((e=>e[o.valueKey]===o.modelValue));p.value=e||{},m.value=e?e[o.labelKey]:""}t.nextTick((()=>{A.value.x=C.value.offsetLeft,A.value.y=C.value.offsetTop+C.value.offsetHeight+15}))}function k(e){const t=e.target,n=[t.offsetLeft,t.offsetLeft+t.offsetWidth],i=[t.offsetTop,t.offsetTop+t.offsetHeight];e.x>n[0]&&e.x<n[1]&&e.y>i[0]&&e.y<i[1]&&(c.value="enter")}function B(){c.value="leave"}function D(){R.value||(u.value=!u.value,V(!0))}function U(){u.value=!1,V(!0)}function V(e=!1){u.value?(o.filterable&&(p.value[o.labelKey]?(m.value="",f.value=p.value[o.labelKey]):f.value="请选择"),g.value=!1,o.filterable&&o.remote&&e||(d.value=!0)):(o.filterable&&(o.isCascader&&o.cascaderMultiple?m.value="":m.value=o.isCascader?E.value||"":p.value[o.labelKey]||""),h.value=!0,setTimeout((()=>{d.value=!1,h.value=!1,T.value&&(T.value=!1,s.value=o.options)}),150))}function O(){if(!m.value)return T.value=!1,void(s.value=o.options);var e;o.remote&&o.remoteMethod&&(e=o.remoteMethod,"[object Function]"===Object.prototype.toString.call(e))?(b.value=!0,S.value=!0,o.remoteMethod(m.value)):o.isCascader?(s.value=w.value.filter((e=>e[o.labelKey].toLowerCase().includes(m.value.toLowerCase()))),s.value.forEach((e=>{const t=p.value.findIndex((t=>JSON.stringify(t)===JSON.stringify(e[o.valueKey])));if(e.checked=-1!==t,!o.cascaderShowAllLevels){const t=e[o.labelKey].split("/");e[o.labelKey]=t[t.length-1]}})),T.value=!0):s.value=o.options.filter((e=>e[o.labelKey].toLowerCase().includes(m.value.toLowerCase()))),t.nextTick((()=>{u.value=!0,V()}))}function F(e){u.value||D()}function H(){R.value||(o.multiple||o.isCascader?(o.multiple&&p.value.forEach((e=>{e.checked=!1})),p.value=[],E.value=[]):p.value={},f.value="请选择",U(),K())}function G(e){R.value||(s.value.forEach((t=>{o.isCascader?JSON.stringify(t[o.valueKey])==JSON.stringify(p.value[e])&&(t.checked=!1):t[o.valueKey]==p.value[e][o.valueKey]&&(t.checked=!1)})),g.value&&(_.value.splice(e-1,1),g.value=!1),p.value.splice(e,1),j(),K())}function W(){null===x.value&&(x.value=setTimeout((()=>{g.value=!1}),300))}function X(){d.value||(x.value&&(clearTimeout(x.value),x.value=null),_.value=o.isCascader?E.value.slice(1,E.value.length):p.value.slice(1,p.value.length),g.value=!0)}function j(){(o.multiple||!o.isCascader||o.cascaderMultiple)&&t.nextTick((()=>{let e=[],t=[];const n=document.getElementById(v);for(let i=0;i<n.children.length;i++){const a=n.children[i];0!==i&&a.offsetTop-t[t.length-1].top>10&&(e.push([...t]),t=[]),t.push({dom:a,top:a.offsetTop}),i===n.children.length-1&&(e.push([...t]),t=[])}e.forEach(((t,n)=>{t.forEach(((i,a)=>{i.dom.style.marginBottom=n===e.length-1?"0px":"5px",i.dom.style.marginRight=a===t.length-1?"0px":"5px"}))}))}))}function $(e,t="",n=[]){for(let i=0;i<e.length;i++){const a=e[i];a.children&&$(a.children,`${t}${a[o.labelKey]}/`,n.concat([a[o.valueKey]])),(o.cascaderCheckStrictly||!o.cascaderCheckStrictly&&!a.children)&&w.value.push({label:`${t}${a[o.labelKey]}`,value:n.concat([a[o.valueKey]])})}}function K(){let e;o.isCascader?(e=[...p.value],o.cascaderMultiple?E.value=o.cascaderShowAllLevels?p.value.map((e=>e.join(" / "))):p.value.map((e=>e[e.length-1])):E.value=o.cascaderShowAllLevels?p.value.join(" / "):p.value[p.value.length-1],j()):e=o.multiple?p.value.map((e=>e[o.valueKey])):p.value[o.valueKey]||"",y.value=!0,l("update:modelValue",e),l("selectCompleted")}return n({setDropdownBoxPoints:function(e,t){A.value.x=e+C.value.offsetLeft,A.value.y=t+C.value.offsetTop+C.value.offsetHeight+15}}),(n,i)=>{const a=t.resolveDirective("lym-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"lymSelectRef",ref:C,class:"lym-select",style:t.normalizeStyle(L.value),onMouseenter:k,onMouseleave:B,onClick:D},[t.createElementVNode("div",mt,[t.createElementVNode("div",{id:v,class:"lym-flex-wrap",style:{flex:"1","margin-right":"10px"}},[!e.multiple&&!e.cascaderMultiple||e.collapseTags?t.createCommentVNode("",!0):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.isCascader?E.value:p.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item"},[t.createElementVNode("div",ft,[t.renderSlot(n.$slots,"selectedContent",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?i:i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>G(a)),["stop"])},null,8,["onClick"])])))),128)),(e.multiple||E.value)&&e.collapseTags&&q.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",vt,[t.createElementVNode("div",gt,[t.renderSlot(n.$slots,"selectedContent",{selectedData:e.isCascader?E.value[0]:p.value[0]},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?E.value[0]:p.value[0][e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:i[0]||(i[0]=t.withModifiers((e=>G(0)),["stop"]))})]),p.value.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-flex-c lym-select__multiple-item",onMouseenter:X,onMouseleave:W},[t.createTextVNode(" +"+t.toDisplayString(p.value.length-1)+" ",1),g.value&&e.collapseTagsTooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-select__multiple-over-items",onMouseenter:X,onMouseleave:W,onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},[_t,t.createElementVNode("div",xt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item",style:{margin:"0 5px 5px 0"}},[t.createElementVNode("div",yt,[t.renderSlot(n.$slots,"selectedcollapseTags",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?i:i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>G(a+1)),["stop"])},null,8,["onClick"])])))),128))])],32)):t.createCommentVNode("",!0)],32)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.filterable?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:2,"onUpdate:modelValue":i[2]||(i[2]=e=>m.value=e),placeholder:f.value,onInput:O,onClick:t.withModifiers(F,["stop"])},null,40,St)),[[t.vModelText,m.value]]):t.createCommentVNode("",!0),e.filterable||q.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bt,t.toDisplayString(f.value),1)),e.filterable||e.multiple||e.cascaderMultiple||!q.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Mt,[t.renderSlot(n.$slots,"selectedContent",{selectedData:p.value},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?E.value:p.value[e.labelKey]),1)]),!0)]))]),P.value?(t.openBlock(),t.createElementBlock("div",{key:0,style:{width:"16px"},onClick:t.withModifiers(H,["stop"])},[t.createVNode(z,{src:"close-circle-line",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":""})])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-select__suffix",style:t.normalizeStyle({transform:"rotate("+(u.value?"180deg":"0")+")"})},[t.createVNode(z,{src:"arrow-bottom",type:"svgicon","fill-color":"#a8abb2",size:"11"})],4))]),d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-select__dropdown-box-"+(h.value?"hide":"show")]),style:t.normalizeStyle({width:e.isCascader?"auto":M.value+"px",minWidth:e.isCascader&&T.value?M.value+"px":"",left:A.value.x+"px",top:A.value.y+"px"}),onClick:i[4]||(i[4]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle",style:t.normalizeStyle({left:3*M.value/4/2+"px"})},null,4),t.createElementVNode("div",Et,[e.isCascader&&!T.value?(t.openBlock(),t.createBlock(dt,{key:0,modelValue:p.value,"onUpdate:modelValue":i[3]||(i[3]=e=>p.value=e),options:s.value,"value-key":e.valueKey,"label-key":e.labelKey,"level-w":3*M.value/4+"px","level-h":e.cascaderLevelH,"expand-trigger":e.cascaderExpandTrigger,multiple:e.cascaderMultiple,"check-strictly":e.cascaderCheckStrictly,"need-refresh":"",onCompleted:K},{cascaderContent:t.withCtx((({cascaderItem:e})=>[t.renderSlot(n.$slots,"selectCascaderContent",{cascaderItem:e},(()=>[t.createTextVNode(t.toDisplayString(e[o.labelKey]),1)]),!0)])),_:3},8,["modelValue","options","value-key","label-key","level-w","level-h","expand-trigger","multiple","check-strictly"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[S.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wt,[t.renderSlot(n.$slots,"optionHeader",{},void 0,!0),t.createElementVNode("div",{class:"lym-custom-scrollbar",style:t.normalizeStyle([{maxHeight:e.scrollMaxH},{"overflow-y":"auto"}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(i=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:t.normalizeClass(["lym-select__dropdown-item lym-flex-c",{"lym-select__dropdown-item-disabled":i.disabled}]),style:t.normalizeStyle({fontWeight:p.value[e.valueKey]==i[e.valueKey]||i.checked?"bold":"normal",color:i.disabled?"#A8ABB2":p.value[e.valueKey]==i[e.valueKey]||i.checked?"#409eff":"#333333"}),onClick:e=>function(e){if(!R.value){if(o.isCascader)if(o.cascaderMultiple){const t=p.value.findIndex((t=>JSON.stringify(t)==JSON.stringify(e[o.valueKey])));-1===t?(e.checked=!0,p.value.push(e[o.valueKey])):(e.checked=!1,p.value.splice(t,1)),j()}else p.value=[...e.value],U(),setTimeout((()=>{T.value=!1,s.value=o.options}),300);else if(o.multiple){const t=p.value.findIndex((t=>t[o.valueKey]==e[o.valueKey]));-1===t?(e.checked=!0,p.value.push(e)):(e.checked=!1,p.value.splice(t,1)),j()}else p.value=e,U();K()}}(i)},[t.createElementVNode("div",Ct,[t.renderSlot(n.$slots,"optionContent",{optionItem:i},(()=>[t.createTextVNode(t.toDisplayString(i[e.labelKey]),1)]),!0)]),i.checked?(t.openBlock(),t.createBlock(z,{key:0,src:"tick-line",type:"svgicon","fill-color":"#409eff",size:"11"})):(t.openBlock(),t.createElementBlock("div",At))],14,Tt)))),128))],4)])),s.value.length||S.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Nt,"没有匹配的数据")),S.value?(t.openBlock(),t.createElementBlock("div",Rt,[S.value?(t.openBlock(),t.createBlock(z,{key:0,src:"loading-line1",type:"svgicon","fill-color":"#409eff",size:"14",class:"lym-icon-rotate-anim"})):t.createCommentVNode("",!0),Lt])):t.createCommentVNode("",!0)],64))])],6)):t.createCommentVNode("",!0)],36)),[[a,U]])}}}),qt=l(Pt,[["__scopeId","data-v-9e51ab42"]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),zt={key:0,style:{"margin-right":"5px"}},kt={class:"content lym-flex-c"},Bt=["onClick","onMouseenter"],Dt={key:0},Ut=t.defineComponent({__name:"LymPagination",props:{modelValue:{type:Object,default:()=>({size:10,current:1,total:0})},background:{type:Boolean,default:!1},maxPageCount:{type:Number,default:8},pageSizeList:{type:Array,default:()=>[{label:"10条/页",value:"10"},{label:"20条/页",value:"20"},{label:"30条/页",value:"30"},{label:"40条/页",value:"40"},{label:"50条/页",value:"50"}]},showPageSizeList:{type:Boolean,default:!0},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},prevText:{type:String,default:"上一页"},prevIcon:{type:String,default:"arrow-left"},nextText:{type:String,default:"下一页"},nextIcon:{type:String,default:"arrow-right"},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:"14px"},iconSize:{type:[Number,String],default:"10px"}},emits:["update:modelValue","change","sizeChange","currentChange","prevClick","nextClick"],setup(e,{emit:n}){const i=e,a=n,o=t.ref(0),l=t.ref(0),s=t.ref(0),c=t.ref(""),u=t.ref(""),d=t.ref(1),h=t.ref(""),p=t.ref(0),m=t.ref([]),f=t.ref(0),v=t.ref(0),g=t.ref(!1),_=t.ref(!1);t.watch((()=>i.modelValue),((e,t)=>{e.current===d.value&&e.size===parseInt(h.value)&&e.total===p.value||(h.value=e.size+"",d.value=e.current,p.value=e.total,S())}),{immediate:!0,deep:!0});const x=t.computed((()=>{let e="";return e+=`width: ${l.value+20}px;height: ${l.value+1.0714*o.value}px;background-color: ${i.background?"#f0f2f5":""};padding: ${.5357*o.value}px 10px;`,e+=`margin: ${i.background?"0 4px":""};`,e})),y=t.computed((()=>e=>{let t="";return t+=`font-size: ${o.value}px;`,i.disabled?(t+=`color: ${d.value===e.name?"#909399":"#a8abb2"};`,t+=`font-weight: ${d.value===e.name?"bold":"normal"};`):t+=`color: ${i.background?d.value===e.name?"white":"":d.value===e.name?"#409eff":""};`,i.disabled?t+=`background-color: ${i.background?d.value===e.name?"#ebedf0":"#f5f7fa":""};`:t+=`background-color: ${i.background?d.value===e.name?"#409eff":"#f0f2f5":""};`,t+=`padding: ${"···"===e.name?"0 6.4px":""};display: ${e.hide?"none":""};`,t+=`margin: ${i.background?"0 4px":""};`,t}));function S(){if(r(i.fontSize)||(o.value=Number(String(i.fontSize).replace("px",""))),r(i.iconSize)||(l.value=Number(String(i.iconSize).replace("px",""))),s.value=Math.ceil(i.modelValue.total/parseInt(h.value)),!(s.value<=0))if(d.value=1,m.value=[],f.value=0,v.value=0,s.value>i.maxPageCount){for(let e=1;e<=s.value;e++)e<i.maxPageCount||e===s.value?m.value.push({id:"pageId"+e,name:e,hide:!1}):(v.value+=1,m.value.push({id:"pageId"+e,name:e,hide:!0}));m.value.splice(1,0,{id:"ellipsis1",name:"···",hide:!0}),m.value.splice(m.value.length-1,0,{id:"ellipsis2",name:"···",hide:!1})}else for(let e=1;e<=s.value;e++)m.value.push({id:"pageId"+e,name:e,hide:!1})}function b(){i.disabled||(c.value="enter")}function M(){c.value="leave"}function E(){i.disabled||(u.value="enter")}function w(){u.value="leave"}function T(){g.value=!1,_.value=!1}function C(e){if(i.disabled)return;const t=m.value.find((t=>t.name===d.value+("prev"===e?-1:1)));t&&A(t)}function A(e){if(!i.disabled&&e.name!==d.value)if("···"===e.name)"ellipsis1"===e.id?N(3):"ellipsis2"===e.id&&R(3);else{const t=m.value.filter((e=>!e.hide)),n=t.findIndex((t=>t.name===e.name)),r=Math.floor(t.length/2)-1;0===n?N(1e4):n===t.length-1?R(1e4):n>r?R(1):N(1),d.value=e.name,a("update:modelValue",{size:parseInt(h.value),current:d.value,total:i.modelValue.total}),a("change")}}function N(e){if(0!==f.value)if(f.value>=e){m.value[m.value.length-2].hide=!1;for(let t=2+f.value-e;t<2+f.value;t++)m.value[t].hide=!1;f.value-=e,0===f.value&&(m.value[1].hide=!0);for(let t=m.value.length-2-v.value-e;t<m.value.length-2-v.value;t++)m.value[t].hide=!0;v.value+=e}else{m.value[m.value.length-2].hide=!1,m.value[1].hide=!0;const e=i.maxPageCount-2;let t=0,n=0;if(f.value>=e){t=2,n=2+e;for(let e=t;e<n;e++)m.value[e].hide=!1;t=m.value.length-2-v.value-e,n=m.value.length-2-v.value;for(let e=t;e<n;e++)m.value[e].hide=!0,v.value+=1}else{t=2,n=2+f.value;for(let e=t;e<n;e++)m.value[e].hide=!1;t=m.value.length-2-v.value-f.value,n=m.value.length-2-v.value;for(let e=t;e<n;e++)m.value[e].hide=!0,v.value+=1}f.value=0}}function R(e){if(0!==v.value)if(v.value>=e){m.value[1].hide=!1;for(let t=m.value.length-2-v.value;t<m.value.length-2-v.value+e;t++)m.value[t].hide=!1;v.value-=e,0===v.value&&(m.value[m.value.length-2].hide=!0);for(let t=2+f.value;t<2+f.value+e;t++)m.value[t].hide=!0;f.value+=e}else{m.value[m.value.length-2].hide=!0,m.value[1].hide=!1;const e=i.maxPageCount-2;let t=0,n=0;if(v.value>=e){t=m.value.length-2-e,n=m.value.length-2;for(let e=t;e<n;e++)m.value[e].hide=!1;t=2+f.value,n=2+f.value+e;for(let e=t;e<n;e++)m.value[e].hide=!0,f.value+=1}else{t=m.value.length-2-v.value,n=m.value.length-2;for(let e=t;e<n;e++)m.value[e].hide=!1;t=2+f.value,n=2+f.value+v.value;for(let e=t;e<n;e++)m.value[e].hide=!0,f.value+=1}v.value=0}}function L(){a("update:modelValue",{size:parseInt(h.value),current:d.value,total:i.modelValue.total}),a("change"),S()}return t.onMounted((()=>{})),(n,a)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-pagination lym-flex-c",style:t.normalizeStyle({cursor:e.disabled?"not-allowed":"pointer",display:m.value.length>1?"":"none"})},[e.showPageSizeList?(t.openBlock(),t.createElementBlock("div",zt,[t.createVNode(qt,{modelValue:h.value,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value=e),options:e.pageSizeList,width:"100px",ddbWidth:"100px",disabled:e.disabled,onSelectCompleted:L},null,8,["modelValue","options","disabled"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"prev-icon",style:t.normalizeStyle(x.value),onMouseenter:b,onMouseleave:M,onClick:a[1]||(a[1]=e=>C("prev"))},[t.createVNode(z,{src:e.prevIcon,type:"svgicon",size:l.value+"px",fillColor:e.disabled?"#a8abb2":"enter"===c.value?"#409eff":"black"},null,8,["src","size","fillColor"])],36),t.createElementVNode("div",kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(n=>(t.openBlock(),t.createElementBlock("div",{key:n.id,class:"content-item",style:t.normalizeStyle(y.value(n)),onClick:e=>A(n),onMouseenter:e=>function(e){i.disabled||("ellipsis1"===e.id?g.value=!0:"ellipsis2"===e.id&&(_.value=!0))}(n),onMouseleave:T},["···"!==n.name?(t.openBlock(),t.createElementBlock("div",Dt,t.toDisplayString(n.name),1)):(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({transform:"ellipsis1"===n.id?"rotate(180deg)":"",padding:.3571*o.value+"px 0px"})},[t.createVNode(z,{type:"svgicon",src:"ellipsis1"===n.id?g.value?"fast-forward":"ellipsis":_.value?"fast-forward":"ellipsis",fillColor:e.disabled?"#a8abb2":"ellipsis1"===n.id?g.value?"#409eff":"black":_.value?"#409eff":"black",size:"15"},null,8,["src","fillColor"])],4))],44,Bt)))),128))]),t.createElementVNode("div",{class:"next-icon",style:t.normalizeStyle(x.value),onMouseenter:E,onMouseleave:w,onClick:a[2]||(a[2]=e=>C("next"))},[t.createVNode(z,{src:e.nextIcon,type:"svgicon",size:l.value+"px",fillColor:e.disabled?"#a8abb2":"enter"===u.value?"#409eff":"black"},null,8,["src","size","fillColor"])],36)],4))}}),Vt=l(Ut,[["__scopeId","data-v-88403e99"]]),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"})),Ft=t.defineComponent({__name:"LymPopover",props:{content:{type:String,default:""},direction:{type:String,default:"bottom"},offsetX:{type:[Number,String],default:0},offsetY:{type:[Number,String],default:0},bubbleMaxW:{type:String,default:"auto"},bubbleZIndex:{type:[Number,String],default:2300},trigger:{type:String,default:"hover"}},setup(e){const n=e,i=t.ref(!1),a="lymTooltip"+Math.random().toString(36).substring(2),r=t.ref(),o=t.ref(null);function l(){"click"!==n.trigger&&(null!==o.value&&(clearTimeout(o.value),o.value=null),i.value=!0)}function s(){"click"!==n.trigger&&null===o.value&&(o.value=setTimeout((()=>{i.value=!1}),300))}function c(){"hover"!==n.trigger&&(i.value=!i.value)}function d(){"hover"!==n.trigger&&(i.value=!1)}return t.onMounted((()=>{r.value=document.getElementById(a)})),(n,o)=>{const h=t.resolveDirective("lym-click-outside");return t.openBlock(),t.createElementBlock("div",{id:a,class:"lym-popover"},[t.withDirectives((t.openBlock(),t.createElementBlock("div",{onMouseenter:l,onMouseleave:s,onClick:c},[t.renderSlot(n.$slots,"reference",{},void 0,!0)],32)),[[h,d]]),t.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),direction:e.direction,"position-target":r.value,"offset-x":e.offsetX,"offset-y":e.offsetY,"max-w":e.bubbleMaxW,"z-index":e.bubbleZIndex,onMouseenter:l,onMouseleave:s},{default:t.withCtx((()=>[t.renderSlot(n.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]),!0)])),_:3},8,["modelValue","direction","position-target","offset-x","offset-y","max-w","z-index"])])}}}),Ht=l(Ft,[["__scopeId","data-v-608882d4"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Ht},Symbol.toStringTag,{value:"Module"})),Wt={key:0,style:{"margin-right":"6px",color:"white"}},Xt={key:0,viewBox:"0 0 100 100",style:{width:"100%",height:"100%"}},jt=["stroke-width"],$t=["stroke","stroke-width","opacity"],Kt={key:1,viewBox:"0 0 100 100",style:{width:"100%",height:"100%"}},Yt=["stroke-width"],Jt=["stroke","stroke-width","opacity"],Zt={class:"lym-progress-circle__text"},Qt={key:1},en={key:2,class:"lym-progress-text"},tn={key:1},nn=t.defineComponent({__name:"LymProgress",props:{percentage:{type:Number,required:!0},type:{type:String,default:"line"},lineSize:{type:Number,default:6},circleSize:{type:Number,default:100},status:{type:String,default:""},indeterminate:{type:Boolean,default:!1},transitionDuration:{type:Number,default:.3},animateDuration:{type:Number,default:6},color:{type:String,default:"#409eff"},bgColor:{type:String,default:"#ebeef5"},lineRadius:{type:Number,default:100},textInside:{type:Boolean,default:!1},fontSize:{type:Number,default:14},striped:{type:Boolean,default:!1},stripedFlow:{type:Boolean,default:!1}},setup(e){const n=e,i=t.ref(0);t.watch((()=>n.percentage),((e,t)=>{i.value=e<0?0:e>100?100:e}),{immediate:!0});const a=t.computed((()=>{let e="";return n.textInside?(e+=`height: ${n.fontSize+6}px;`,e+=`line-height: ${n.fontSize+6}px;`):e+=`height: ${n.lineSize}px;`,"line"===n.type&&(e+="flex: 1;"),e})),r=t.computed((()=>{let e="";return e+=`background-color: ${n.bgColor};`,e+=`border-radius: ${n.lineRadius}px;`,e})),o=t.computed((()=>{let e="";e+=`width: ${i.value}%;`;let t=n.color;return"success"===n.status?t="#67c23a":"exception"===n.status?t="#f56c6c":"warning"===n.status&&(t="#e6a23c"),e+=`background-color: ${t};`,e+=`border-radius: ${n.lineRadius}px;`,e+=`transition-duration: ${n.transitionDuration}s;`,(n.indeterminate||n.stripedFlow)&&(e+=`animation-duration: ${n.animateDuration}s;`),e}));return(n,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-progress",{"lym-flex-c":"line"===e.type}]),style:t.normalizeStyle({fontSize:e.fontSize+"px"})},["line"===e.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-progress-bar",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"lym-progress-bar__outer",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:t.normalizeClass(["lym-progress-bar__inner",{"lym-progress-indeterminate":e.indeterminate,"lym-progress-striped":e.striped,"lym-progress-striped-flow":e.stripedFlow}]),style:t.normalizeStyle(o.value)},[e.textInside?(t.openBlock(),t.createElementBlock("div",Wt,[t.renderSlot(n.$slots,"default",{percentData:{currentPercentage:i.value}},(()=>[t.createTextVNode(t.toDisplayString(i.value)+"%",1)]),!0)])):t.createCommentVNode("",!0)],6)],4)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-progress-circle",style:t.normalizeStyle({width:e.circleSize+"px",height:e.circleSize+"px"})},["circle"===e.type?(t.openBlock(),t.createElementBlock("svg",Xt,[t.createElementVNode("path",{d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",stroke:"#f5f7fa","stroke-linecap":"round","stroke-width":e.lineSize,fill:"none",style:{"stroke-dasharray":"296px, 296px","stroke-dashoffset":"0px"}},null,8,jt),t.createElementVNode("path",{d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",fill:"none","stroke-linecap":"round",stroke:"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"warning"===e.status?"#e6a23c":"#409eff","stroke-width":e.lineSize,style:t.normalizeStyle([{"stroke-dashoffset":"0px",transition:"all 0.6s ease 0s"},{strokeDasharray:296*i.value/100+"px, 296px"}]),opacity:0===i.value?"0":"1"},null,12,$t)])):t.createCommentVNode("",!0),"dashboard"===e.type?(t.openBlock(),t.createElementBlock("svg",Kt,[t.createElementVNode("path",{d:"M 50 50 m 0 47 a 47 47 0 1 1 0 -94 a 47 47 0 1 1 0 94",stroke:"#f5f7fa","stroke-linecap":"round","stroke-width":e.lineSize,fill:"none",style:{"stroke-dasharray":"221px, 296px","stroke-dashoffset":"-36px"}},null,8,Yt),t.createElementVNode("path",{d:"M 50 50 m 0 47 a 47 47 0 1 1 0 -94 a 47 47 0 1 1 0 94",fill:"none","stroke-linecap":"round",stroke:"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"warning"===e.status?"#e6a23c":"#409eff","stroke-width":e.lineSize,style:t.normalizeStyle([{"stroke-dashoffset":"-36px",transition:"all 0.6s ease 0s"},{strokeDasharray:230*i.value/100+"px, 296px"}]),opacity:0===i.value?"0":"1"},null,12,Jt)])):t.createCommentVNode("",!0),t.createElementVNode("div",Zt,[""!==e.status?(t.openBlock(),t.createBlock(z,{key:0,type:"svgicon",size:e.circleSize/9,src:"success"===e.status?"success-line":"exception"===e.status?"error-line":"tip-fill","fill-color":"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"#e6a23c"},null,8,["size","src","fill-color"])):(t.openBlock(),t.createElementBlock("div",Qt,[t.renderSlot(n.$slots,"default",{percentData:{currentPercentage:i.value}},(()=>[t.createTextVNode(t.toDisplayString(i.value)+"%",1)]),!0)]))])],4)),"line"!==e.type||e.textInside?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",en,[""!==e.status?(t.openBlock(),t.createBlock(z,{key:0,type:"svgicon",size:"14",src:"success"===e.status?"success-line":"exception"===e.status?"error-line":"tip-fill","fill-color":"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"#e6a23c"},null,8,["src","fill-color"])):(t.openBlock(),t.createElementBlock("div",tn,[t.renderSlot(n.$slots,"default",{percentData:{currentPercentage:i.value}},(()=>[t.createTextVNode(t.toDisplayString(i.value)+"%",1)]),!0)]))]))],6))}}),an=l(nn,[["__scopeId","data-v-32b4d899"]]),rn=Object.freeze(Object.defineProperty({__proto__:null,default:an},Symbol.toStringTag,{value:"Module"})),on=["onClick"],ln=t.defineComponent({__name:"LymRate",props:{modelValue:{type:Number,default:0},max:{type:Number,default:5},size:{type:Number,default:20},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},thresholds:{type:Array,default:()=>[]},defalutColor:{type:String,default:"#f7ba2a"},disabledDefaultColor:{type:String,default:"#cdd0d6"},icon:{type:String,default:"star"},defaultIcon:{type:String,default:"star-fill"},disabledDefaultIcon:{type:String,default:"star"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),o=t.ref(!1),l=t.ref({x:0,y:0}),s=t.ref(),c=t.ref({w:0,h:0,x:0,y:0}),u=t.ref(0),d=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,n)=>{e!==u.value&&(u.value=e,function(){r.value=[];for(let e=0;e<i.max;e++)u.value>0&&e<u.value?u.value%1>0&&e===Math.ceil(u.value-1)&&i.allowHalf?r.value.push({checked:!1,halfChecked:!0,isHover:!1,isHalf:!1}):r.value.push({checked:!0,halfChecked:!1,isHover:!1,isHalf:!1}):r.value.push({checked:!1,halfChecked:!1,isHover:!1,isHalf:!1});t.nextTick((()=>{s.value&&(c.value.w=s.value.offsetWidth,c.value.h=s.value.offsetHeight,c.value.x=s.value.offsetLeft,c.value.y=s.value.offsetTop)}))}())}),{immediate:!0});const h=t.computed((()=>!(!i.disabled&&!d)&&d.value)),p=t.computed((()=>e=>{let t="star-line";return t=h.value?e.halfChecked?"star-half":e.checked?"star-fill":"star-line":e.isHalf?"star-half":e.isHover?"star-fill":o.value?"star-line":e.halfChecked?"star-half":e.checked?"star-fill":"star-line",t}));function m(e){o.value=!0,l.value.x=e.clientX-c.value.x,l.value.y=e.clientY-c.value.y,g()}function f(){o.value=!1,r.value.forEach((e=>{e.isHover=!1,e.isHalf=!1}))}function v(e){l.value.x=e.clientX-c.value.x,l.value.y=e.clientY-c.value.y,g()}function g(){const e=c.value.w/i.max,t=Math.ceil(l.value.x/e);if(i.allowHalf){const t=Math.floor(l.value.x/e),n=l.value.x%e;n>0&&n<e/2?(r.value[t].isHover=!1,r.value[t].isHalf=!0):n>=e/2&&(r.value[t].isHover=!0,r.value[t].isHalf=!1)}for(let n=0;n<t;n++)r.value[n].isHover=!0;for(let n=t;n<i.max;n++)r.value[n].isHover=!1,r.value[n].isHalf=!1}return(n,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymRateRef",ref:s,class:"lym-rate",style:t.normalizeStyle({cursor:h.value?"not-allowed":"pointer"}),onMouseenter:m,onMouseleave:f,onMousemove:v},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,((n,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,class:"lym-rate-item",onClick:e=>function(e){if(!h.value)for(let t=0;t<r.value.length;t++)t===e?(i.allowHalf?(r.value[t].halfChecked=!!r.value[t].isHalf,r.value[t].checked=!r.value[t].isHalf):r.value[t].checked=!0,u.value=r.value[t].halfChecked?t+1.5:t+1,a("update:modelValue",u.value),a("change")):t<e?(r.value[t].checked=!0,r.value[t].halfChecked=!1):(r.value[t].checked=!1,r.value[t].halfChecked=!1)}(o)},[t.createVNode(z,{type:"svgicon",src:p.value(n),fillColor:h.value?e.disabledDefaultColor:e.defalutColor,size:e.size},null,8,["src","fillColor","size"])],8,on)))),128))],36))}}),sn=l(ln,[["__scopeId","data-v-01ffc8f6"]]),cn=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),un={class:"lym-skeleton"},dn=t.defineComponent({__name:"LymSkeleton",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;return t.inject("global"),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{})),(e,n)=>(t.openBlock(),t.createElementBlock("div",un))}}),hn=l(dn,[["__scopeId","data-v-be55da3e"]]),pn=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"})),mn=e=>(t.pushScopeId("data-v-fb2efe09"),e=e(),t.popScopeId(),e),fn=mn((()=>t.createElementVNode("div",{class:"lym-slider__pop-tip-arrow"},null,-1))),vn=t.defineComponent({__name:"LymSlider",props:{modelValue:{type:Number,default:0},runwayColor:{type:String,default:"#e4e7ed"},barColor:{type:String,default:"#409eff"},thumbColor:{type:String,default:"#ffffff"},disabled:{type:Boolean,default:!1},disabledColor:{type:String,default:"#a8abb2"},runwaySize:{type:[String,Number],default:"6px"},thumbSize:{type:[String,Number],default:"20px"},thumbPadding:{type:[String,Number],default:"8px"},min:{type:Number,default:0},max:{type:Number,default:100},height:{type:String,default:"100%"},width:{type:String,default:"100%"},step:{type:Number,default:1},showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:e=>e},inputSize:{type:String,default:"default"},size:{type:String,default:"default"},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},rangeStartLabel:{type:String,default:""},rangeEndLabel:{type:String,default:""},formatValueText:{type:Function,default:e=>`${e}`},tooltipClass:{type:String,default:""},placement:{type:String,default:"top"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,r=n,o=t.ref(),l=t.ref({w:0,h:0,x:0,y:0}),s=t.ref("leave"),c=t.ref({x:0,y:0}),u=t.ref(i.modelValue);t.watch((()=>i.modelValue),((e,t)=>{e!==Math.floor(u.value)&&(u.value=e)}));const d=t.computed((()=>S(i.runwaySize,6))),h=t.computed((()=>S(i.thumbSize,20))),p=t.computed((()=>S(i.thumbPadding,8))),m=t.computed((()=>(u.value-i.min)/(i.max-i.min))),f=t.computed((()=>{let e="";return i.vertical?e+=`width: ${h.value+2*p.value}px;height: ${i.height};`:e+=`height: ${h.value+2*p.value}px;width: ${i.width};`,i.disabled&&(e+="opacity: 0.3;cursor: not-allowed;"),e})),v=t.computed((()=>{let e="";return i.vertical?e+=`width: ${d.value}px;`:e+=`height: ${d.value}px;`,e+=`background-color: ${i.runwayColor};border-radius: ${d.value}px;`,i.disabled&&(e+="cursor: not-allowed;"),e})),g=t.computed((()=>{let e="";return i.vertical?e+=`top: 0%;left: 0;right: 0;height: ${100*m.value}%;`:e+=`top: 0;bottom: 0;left: 0%;width: ${m.value*(l.value.w-4*h.value/3)}px;`,e+=`background-color: ${i.barColor};border-radius: ${d.value}px;`,i.disabled&&(e+="cursor: not-allowed;"),e})),_=t.computed((()=>{let e="";const t=h.value+2*p.value;return e+=`width: ${t}px;height: ${t}px;padding: ${p.value}px;`,i.vertical?e+=`left: -${(t-d.value)/2}px;top: calc(${m.value*(l.value.h-4*h.value/3)}px - ${t/2}px);`:e+=`top: -${(t-d.value)/2}px;left: calc(${m.value*(l.value.w-4*h.value/3)}px - ${t/2}px);`,e+=`cursor: ${i.disabled?"not-allowed":"down"===s.value?"grabbing":"grab"};`,e})),x=t.computed((()=>{let e="";return e+=`background-color: ${i.thumbColor};width: ${h.value}px;height: ${h.value}px;`,e+=`border: 2px solid ${i.barColor};`,e})),y=t.computed((()=>{let e="";if(i.vertical){const t=l.value.y+(l.value.h-4*h.value/3)*m.value;e+=`left: ${l.value.x+l.value.w/2}px;top: ${t-4}px;transform: translate(-50%, -120%);`}else{const t=l.value.x+(l.value.w-4*h.value/3)*m.value+2*h.value/3;e+=`top: ${l.value.y-4}px;left: ${t}px;transform: translate(-50%, -100%);`}return e}));function S(e,t){let n=e;return a(e)&&(n=n.replace("px","")),n=Number(n),isNaN(n)&&(n=t),n}function b(){"down"===s.value||i.disabled||(s.value="enter")}function M(){"down"!==s.value&&(s.value="up")}function E(e){i.disabled||(e.preventDefault(),s.value="down",c.value.x=e.clientX,c.value.y=e.clientY)}function w(e){s.value="up"}function T(e){if(!i.disabled&&(e.preventDefault(),"down"===s.value)){const t=2*h.value/3;let n=0;if(i.vertical){const a=e.clientY<l.value.y+t,o=e.clientY>l.value.y+l.value.h-t,s=(l.value.h-2*t)*m.value;let d;n=e.clientY-c.value.y,c.value.x=e.clientX,c.value.y=e.clientY,d=a||o?a?0:l.value.h-2*t:s+n<0?0:s+n>=l.value.h-2*t?l.value.h-2*t:s+n;const h=d/(l.value.h-2*t);u.value=i.max*h;const p=Math.floor(u.value);r("update:modelValue",p)}else{const a=e.clientX<l.value.x+t,o=e.clientX>l.value.x+l.value.w-t,s=(l.value.w-2*t)*m.value;let d;n=e.clientX-c.value.x,c.value.x=e.clientX,c.value.y=e.clientY,d=a||o?a?0:l.value.w-2*t:s+n<0?0:s+n>=l.value.w-2*t?l.value.w-2*t:s+n;const h=d/(l.value.w-2*t);u.value=i.max*h;const p=Math.floor(u.value);r("update:modelValue",p)}}}return t.onMounted((()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",w),t.nextTick((()=>{l.value.w=o.value.offsetWidth,l.value.h=o.value.offsetHeight,l.value.x=o.value.offsetLeft,l.value.y=o.value.offsetTop}))})),t.onUnmounted((()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",w)})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymSliderRef",ref:o,class:t.normalizeClass(["lym-slider",[e.vertical?"lym-flex-column-c":"lym-flex-c"]]),style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{style:t.normalizeStyle({width:2*h.value/3+"px",height:2*h.value/3+"px"})},null,4),t.createElementVNode("div",{class:"lym-slider__runway",style:t.normalizeStyle(v.value)},[t.createElementVNode("div",{class:"lym-slider__bar",style:t.normalizeStyle(g.value)},null,4),t.createElementVNode("div",{class:"lym-slider__thumb",style:t.normalizeStyle(_.value),onMousedown:E,onMouseenter:b,onMouseleave:M},[t.createElementVNode("div",{class:"lym-slider__thumb-inner",style:t.normalizeStyle(x.value)},null,4)],36)],4),t.createElementVNode("div",{style:t.normalizeStyle({width:2*h.value/3+"px",height:2*h.value/3+"px"})},null,4),e.showTooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-slider__pop-tip",["enter"===s.value||"down"===s.value?"pop-tip-show":"pop-tip-hide"]]),style:t.normalizeStyle(y.value)},[t.renderSlot(n.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.modelValue),1)]),!0),fn],6)):t.createCommentVNode("",!0)],6))}}),gn=l(vn,[["__scopeId","data-v-fb2efe09"]]),_n=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),xn={class:"lym-steps lym-custom-scrollbar"},yn=t.defineComponent({__name:"LymSteps",props:{modelValue:{type:[String,Number],default:""},valueKey:{type:String,default:"id"},data:{type:Array,default:()=>[]},orientation:{type:String,default:"vertical"},fontSize:{type:[Number,String],default:"14px"},pointSize:{type:[Number,String],default:"12px"},lineSize:{type:[Number,String],default:"2px"},color:{type:String,default:"#303133"},activeColor:{type:String,default:"#409eff"},pointColor:{type:String,default:"#e4e7ed"},center:{type:Boolean,default:!1},contentPd:{type:String,default:"0 0 20px 14px"},contentItemWidth:{type:[String,Number],default:"100px"},noPointAndLine:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,o=t.ref([]),l=t.ref(""),s=t.ref(""),c=t.ref(""),u=t.ref(""),d=t.ref(-1);t.watch((()=>i.modelValue),((e,t)=>{v()})),t.watch((()=>i.data),((e,n)=>{o.value=[...e],v(),t.nextTick((()=>{const e=document.getElementsByClassName("lym-steps");e[0]&&("vertical"===i.orientation?e[0].scrollTop=0:e[0].scrollLeft=0)}))}),{immediate:!0});const h=t.computed((()=>{let e="";return l.value||g(),"vertical"===i.orientation?e+=`width: ${l.value};`:e+=`height: ${l.value};`,e})),p=t.computed((()=>{let e="";return l.value||g(),e+="position: absolute;box-sizing: border-box;z-index: 2;",e+=`width: ${l.value};`,e+=`height: ${l.value};`,"vertical"===i.orientation?e+=i.center?`top: calc(50% - ${l.value}/2);`:"top: 0;":e+=i.center?`left: calc(50% - ${l.value}/2);`:"left: 0;",e})),m=t.computed((()=>e=>{let t="";return s.value||g(),t+="position: absolute;boxsizing: border-box;z-index: 1;transition-duration: .3s;",i.center?t+=`background-color: ${e<=d.value?i.activeColor:i.pointColor};`:t+=`background-color: ${e<d.value?i.activeColor:i.pointColor};`,"vertical"===i.orientation?(i.center?(t+=`width: ${s.value};`,t+=0===e?"height: 0%;bottom: 0;":"height: 100%;top: -50%;"):t+=e===o.value.length-1?"width: 0;height: 100%;":`width: ${s.value};height: 100%;`,t+=`left: calc(50% - ${s.value}/2);`):(i.center?(t+=`height: ${s.value};`,t+=0===e?"width: 0%;right: 0;":"width: 100%;left: -50%;"):t+=e===o.value.length-1?"height: 0;width: 100%;":`height: ${s.value};width: 100%;`,t+=`top: calc(50% - ${s.value}/2);`),t})),f=t.computed((()=>{let e="";return c.value||g(),e+=`padding: ${i.contentPd};`,"vertical"===i.orientation&&(e+="flex: 1;"),e+=`font-size: ${c.value};`,e+=`color: ${i.color};`,"horizontal"===i.orientation&&(e+=`width: ${u.value};`),e}));function v(){if(i.modelValue){const e=o.value.findIndex((e=>e[i.valueKey]==i.modelValue));d.value=-1!==e?e:-1}}function g(){let e=i.pointSize;r(e)&&(e+="px"),a(e)&&(e=e.replace("px",""),isNaN(Number(e))?e="12px":e+="px"),l.value=e;let t=i.lineSize;r(t)&&(t+="px"),a(t)&&(t=t.replace("px",""),isNaN(Number(t))?t="2px":t+="px"),s.value=t;let n=i.fontSize;r(n)&&(n+="px"),a(n)&&(n=n.replace("px",""),isNaN(Number(n))?n="14px":n+="px"),c.value=n;let o=i.contentItemWidth;r(o)&&(o+="px"),a(o)&&(o=o.replace("px",""),isNaN(Number(o))?o="14px":o+="px"),u.value=o}return t.onMounted((()=>{})),(n,i)=>(t.openBlock(),t.createElementBlock("div",xn,[t.createElementVNode("div",{class:t.normalizeClass({"lym-flex-df":"horizontal"===e.orientation}),style:{"box-sizing":"border-box"}},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(["step-item",["vertical"===e.orientation?"lym-flex-df":"lym-flex-column"]])},[e.noPointAndLine?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"line-section",style:t.normalizeStyle(h.value)},[t.createElementVNode("div",{class:"point",style:t.normalizeStyle(p.value)},[t.renderSlot(n.$slots,"point",{row:{item:i,index:a,currentIndex:d.value,pointSize:e.pointSize,pointColor:e.pointColor,activeColor:e.activeColor}},(()=>[t.createElementVNode("div",{class:"default-point",style:t.normalizeStyle({backgroundColor:Number(a)<=Number(d.value)?e.activeColor:e.pointColor})},null,4)]),!0)],4),t.createElementVNode("div",{class:"line",style:t.normalizeStyle(m.value(Number(a)))},null,4)],4)),t.createElementVNode("div",{class:"content-section",style:t.normalizeStyle(f.value)},[t.renderSlot(n.$slots,"default",{row:{item:i,index:a,currentIndex:d.value,color:e.color,activeColor:e.activeColor}},void 0,!0)],4)],2)))),128))],2)]))}}),Sn=l(yn,[["__scopeId","data-v-bb115ead"]]),bn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"})),Mn=t.defineComponent({__name:"LymSwitch",props:{modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},width:{type:[String,Number],default:"40px"},height:{type:[String,Number],default:"20px"},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:"#409EFF"},inactiveColor:{type:String,default:"#C0CCDA"},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeIcon:{type:String,default:""},inactiveIcon:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,o=n,l=t.ref(i.modelValue),s=t.ref(0),c=t.ref(0),u=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,t)=>{e!==t&&(l.value=e)})),t.watch((()=>i.width),((e,t)=>{e!==t&&(r(e)&&(s.value=Number(e)),a(e)&&(s.value=Number(String(e).replace("px",""))))}),{immediate:!0}),t.watch((()=>i.height),((e,t)=>{e!==t&&(r(e)&&(c.value=Number(e)),a(e)&&(c.value=Number(String(e).replace("px",""))))}),{immediate:!0});const d=t.computed((()=>!(!i.disabled&&!u)&&u.value)),h=t.computed((()=>{let e="";return e+=`width: ${s.value}px;height: ${c.value}px;`,e+=`cursor: ${d.value?"not-allowed":"pointer"};`,e+=`opacity: ${d.value?.3:i.loading?.6:1};`,e})),p=t.computed((()=>{let e=!1;return l.value===i.activeValue&&(e=!0),e})),m=t.computed((()=>{let e="";return e+=`background-color: ${p.value?i.activeColor:i.inactiveColor};`,e+=`border-radius: ${c.value}px;`,e})),f=t.computed((()=>{let e="";return e+=`width: ${c.value-4}px;height: ${c.value-4}px;};`,e+=p.value?`left: ${s.value-c.value+2}px;`:"left: 2px;",e})),v=t.computed((()=>{let e="";return e+="color: white;",e+=`width: ${s.value-c.value}px;height: ${c.value-4}px;`,e+=`left: ${p.value?2:c.value-2}px;`,e+=`font-size: ${.6*c.value}px;line-height: ${.84*c.value}px;`,e}));function g(){d.value||i.loading||(l.value=p.value?i.inactiveValue:i.activeValue,o("update:modelValue",l.value))}return t.onMounted((()=>{})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-switch",style:t.normalizeStyle(h.value),onClick:g},[t.createElementVNode("div",{class:"lym-switch__core",style:t.normalizeStyle(m.value)},[e.activeText&&e.inactiveText?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-switch__text lym-ellipsis-line1",style:t.normalizeStyle(v.value)},t.toDisplayString(p.value?e.activeText:e.inactiveText),5)):t.createCommentVNode("",!0),e.activeIcon&&e.inactiveIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-switch__text lym-flex-cc",style:t.normalizeStyle(v.value)},[t.createVNode(z,{type:"svgicon",src:p.value?e.activeIcon:e.inactiveIcon,size:.6*c.value,"fill-color":"#ffffff"},null,8,["src","size"])],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"lym-switch__action",style:t.normalizeStyle(f.value)},[e.loading?(t.openBlock(),t.createBlock(z,{key:0,class:"lym-switch-loading",type:"svgicon",src:"loading-line1",size:c.value-12,"fill-color":e.activeColor},null,8,["size","fill-color"])):t.createCommentVNode("",!0)],4)],4)],4))}}),En=l(Mn,[["__scopeId","data-v-6f687e26"]]),wn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Tn={class:"lym-tag"},Cn=t.defineComponent({__name:"LymTag",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"primary"},padding:{type:String,default:"2px 9px"},fontSize:{type:[Number,String],default:"12px"},round:{type:Boolean,default:!1},effect:{type:String,default:"light"},closable:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(e,{emit:n}){const i=e,a=n,o={primary:{lightColor:"#409eff",lightBgColor:"#ecf5ff",lightBorderColor:"#d9ecff",lightHoverColor:"#409eff",darkColor:"#ffffff",darkBgColor:"#409eff",darkBorderColor:"#409eff",darkHoverColor:"#79bbff",plainColor:"#409eff",plainBgColor:"#ffffff",plainBorderColor:"#a0cfff",plainHoverColor:"#409eff"},success:{lightColor:"#67c23a",lightBgColor:"#f0f9eb",lightBorderColor:"#e1f3d8",lightHoverColor:"#67c23a",darkColor:"#ffffff",darkBgColor:"#67c23a",darkBorderColor:"#67c23a",darkHoverColor:"#95d475",plainColor:"#67c23a",plainBgColor:"#ffffff",plainBorderColor:"#b3e19d",plainHoverColor:"#67c23a"},info:{lightColor:"#909399",lightBgColor:"#f4f4f5",lightBorderColor:"#e9e9eb",lightHoverColor:"#909399",darkColor:"#ffffff",darkBgColor:"#909399",darkBorderColor:"#909399",darkHoverColor:"#909399",plainColor:"#909399",plainBgColor:"#ffffff",plainBorderColor:"#c8c9cc",plainHoverColor:"#909399"},warning:{lightColor:"#e6a23c",lightBgColor:"#fdf6ec",lightBorderColor:"#faecd8",lightHoverColor:"#e6a23c",darkColor:"#ffffff",darkBgColor:"#e6a23c",darkBorderColor:"#e6a23c",darkHoverColor:"#eebe77",plainColor:"#e6a23c",plainBgColor:"#ffffff",plainBorderColor:"#f3d19e",plainHoverColor:"#e6a23c"},danger:{lightColor:"#f56c6c",lightBgColor:"#fef0f0",lightBorderColor:"#fde2e2",lightHoverColor:"#f56c6c",darkColor:"#ffffff",darkBgColor:"#f56c6c",darkBorderColor:"#f56c6c",darkHoverColor:"#f89898",plainColor:"#f56c6c",plainBgColor:"#ffffff",plainBorderColor:"#fab6b6",plainHoverColor:"#f56c6c"}},l=t.ref(12);t.watch((()=>i.modelValue),((e,t)=>{}));const s=t.computed((()=>{let e="";return e+=`background-color: ${o[i.type][i.effect+"BgColor"]};`,e+=`border: 1px solid ${o[i.type][i.effect+"BorderColor"]};`,e+=`color: ${o[i.type][i.effect+"Color"]};`,e+=`padding: ${i.padding};`,e+=`font-size: ${r(i.fontSize)?i.fontSize+"px":i.fontSize};`,e+=`border-radius: ${i.round?"20px":"4px"};`,e}));function c(){a("close")}return t.onMounted((()=>{!function(){if(r(i.fontSize))l.value=Number(i.fontSize);else{const e=String(i.fontSize);l.value=Number(e.replace("px",""))}}()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",Tn,[t.createElementVNode("div",{class:"lym-tag-content lym-flex-c",style:t.normalizeStyle(s.value)},[t.renderSlot(n.$slots,"default",{},void 0,!0),e.closable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-flex-cc",style:t.normalizeStyle([{"margin-left":"4px"},{width:l.value+4+"px",height:l.value+4+"px"}]),onClick:c},[t.createVNode(z,{src:"close","hover-url":"#close-circle-fill",type:"svgicon",size:l.value-4,"fill-color":o[e.type][e.effect+"Color"],"need-change-hover-cusor":"","hover-color":o[e.type][e.effect+"Color"],"hover-size":l.value+4,style:{}},null,8,["size","fill-color","hover-color","hover-size"])],4)):t.createCommentVNode("",!0)],4)]))}}),An=l(Cn,[["__scopeId","data-v-fe0e21c6"]]),Nn=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Rn=t.defineComponent({__name:"LymTooltip",props:{content:{type:String,default:""},direction:{type:String,default:"bottom"},offsetX:{type:[Number,String],default:0},offsetY:{type:[Number,String],default:0},bubbleMaxW:{type:String,default:"auto"},bubbleZIndex:{type:[Number,String],default:2300},trigger:{type:String,default:"hover"}},setup(e){const n=e,i=t.ref(!1),a="lymTooltip"+Math.random().toString(36).substring(2),r=t.ref(),o=t.ref(null);function l(){"click"!==n.trigger&&(null!==o.value&&(clearTimeout(o.value),o.value=null),i.value=!0)}function s(){"click"!==n.trigger&&null===o.value&&(o.value=setTimeout((()=>{i.value=!1}),300))}function c(){"hover"!==n.trigger&&(i.value=!i.value)}function d(){"hover"!==n.trigger&&(i.value=!1)}return t.onMounted((()=>{r.value=document.getElementById(a)})),(n,o)=>{const h=t.resolveDirective("lym-click-outside");return t.openBlock(),t.createElementBlock("div",{id:a,class:"lym-tooltip"},[t.withDirectives((t.openBlock(),t.createElementBlock("div",{onMouseenter:l,onMouseleave:s,onClick:c},[t.renderSlot(n.$slots,"default",{},void 0,!0)],32)),[[h,d]]),t.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),direction:e.direction,"position-target":r.value,"offset-x":e.offsetX,"offset-y":e.offsetY,"max-w":e.bubbleMaxW,"z-index":e.bubbleZIndex,onMouseenter:l,onMouseleave:s},{default:t.withCtx((()=>[t.renderSlot(n.$slots,"content",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]),!0)])),_:3},8,["modelValue","direction","position-target","offset-x","offset-y","max-w","z-index"])])}}}),Ln=l(Rn,[["__scopeId","data-v-e07bd0f3"]]),Pn=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),qn=l(t.defineComponent({__name:"LymCollapse",props:{modelValue:{type:[String,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref([]),r=t.ref();return t.provide("getRef",(function(e,t,n,i){null!=e.value&&e.value.parentElement===r.value&&a.value.push({ref:e,id:t,openFn:n,closeFn:i})})),t.provide("changeOpen",(function(e,t){i.accordion&&t&&a.value.forEach((t=>{t.id!==e&&t.closeFn()}))})),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{setTimeout((()=>{a.value[0].openFn()}),3e3)})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCollapseRef",ref:r,class:"lym-collapse"},[t.renderSlot(e.$slots,"default",{},void 0,!0)],512))}}),[["__scopeId","data-v-4997daf7"]]),In=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),zn={style:{flex:"1"}},kn=l(t.defineComponent({__name:"LymCollapseItem",props:{identifier:{type:[String,Number],default:""},title:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.inject("getRef",null),r=t.inject("changeOpen",null),o=t.ref(),l="lymCollapseItemContentId"+Math.random().toString(36).substring(2),s=t.ref(0),c=t.ref(!1);function u(){c.value=!c.value,t.nextTick((()=>{r(i.identifier,c.value)}))}function d(){c.value=!0}function h(){c.value=!1}return t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==a&&a instanceof Function&&a(o,i.identifier,d,h);const e=document.getElementById(l);s.value=e.offsetHeight+20}))})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCollapseItemRef",ref:o,class:"lym-collapse-item"},[t.createElementVNode("div",{class:"lym-collapse-item-title lym-flex-c",onClick:u},[t.createElementVNode("div",zn,[t.renderSlot(n.$slots,"title",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),!0)]),t.createVNode(z,{type:"svgicon",src:"arrow-right",size:10,"fill-color":"#333",style:t.normalizeStyle([{"margin-right":"10px"},{transform:c.value?"rotate(90deg)":"rotate(0deg)",transitionDuration:"0.3s"}])},null,8,["style"])]),t.createElementVNode("div",{class:"lym-collapse-item-content",style:t.normalizeStyle({height:c.value?s.value+"px":"0"})},[t.createElementVNode("div",{id:l},[t.renderSlot(n.$slots,"default",{},void 0,!0)])],4)],512))}}),[["__scopeId","data-v-4085f023"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:kn},Symbol.toStringTag,{value:"Module"})),Dn={class:"lym-date-picker"},Un=l(t.defineComponent({__name:"LymDatePicker",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;return t.inject("global"),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{})),(e,n)=>(t.openBlock(),t.createElementBlock("div",Dn))}}),[["__scopeId","data-v-0b173540"]]),Vn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),On={class:"lym-date-time-picker"},Fn=l(t.defineComponent({__name:"LymDateTimePicker",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;return t.inject("global"),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{})),(e,n)=>(t.openBlock(),t.createElementBlock("div",On))}}),[["__scopeId","data-v-391d01b4"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Fn},Symbol.toStringTag,{value:"Module"})),Gn=l(t.defineComponent({__name:"LymTimePicker",props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},isRange:{type:Boolean,default:!1},arrowControl:{type:Boolean,default:!1},popperClass:{type:String,default:""},rangeSeparator:{type:String,default:"-"},format:{type:String,default:""},valueFormat:{type:String,default:""},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},clearIcon:{type:String,default:""},disabledHours:{type:Function,default:null},disabledMinutes:{type:Function,default:null},disabledSeconds:{type:Function,default:null}},emits:["update:modelValue","change","blur","focus","clear","visible-change"],setup(e,{emit:n}){const i=e,a=t.ref(""),r=t.ref(!1),o=t.ref(!1);t.ref({x:0,y:0});const l=t.ref({x:0,y:0,w:0,h:0}),s=t.ref();function c(){r.value?(o.value=!0,setTimeout((()=>{r.value=!1,o.value=!1}),150)):r.value=!0}return t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{l.value.x=s.value.offsetLeft,l.value.y=s.value.offsetTop,l.value.w=s.value.offsetWidth,l.value.h=s.value.offsetHeight})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTimePickerRef",ref:s,class:"lym-time-picker"},[t.createVNode(tt,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e),clearable:"",onClicc:c},null,8,["modelValue"]),r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-picker__dropdown-box-"+(o.value?"hide":"show")]),style:t.normalizeStyle({width:"240px",height:"300px",left:l.value.x+"px",top:l.value.y+l.value.h+"px"})},null,6)):t.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-3d25fec6"]]),Wn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Xn={class:"lym-loading__text"},jn=l(t.defineComponent({__name:"LymLoading",props:{target:{type:HTMLElement,default:null},text:{type:String,default:"加载中.."},textColor:{type:String,default:"#409eff"},textSize:{type:Number,default:14},textWeight:{type:String,default:"normal"},textAlign:{type:String,default:"vertical-center"},bgColor:{type:String,default:"rgba(255, 255, 255, 0.9)"},icon:{type:String,default:"loading-line1"},iconSize:{type:Number,default:20},iconColor:{type:String,default:"#409eff"},zIndex:{type:Number,default:2200},duration:{type:Number,default:0}},setup(e){const n=e,i=t.ref(!1),a=t.computed((()=>{let e="";if(e+=`background-color: ${n.bgColor};`,e+=`z-index: ${n.zIndex};`,e+=`color: ${n.textColor};`,e+=`font-size: ${n.textSize}px;`,e+=`font-weight: ${n.textWeight};`,n.target){const t=n.target.offsetLeft;e+=`top: ${n.target.offsetTop}px;left: ${t}px;width: ${n.target.offsetWidth}px;height: ${n.target.offsetHeight}px;`}else e+="top: 0;left: 0;right: 0;bottom: 0;";return e}));return t.onMounted((()=>{i.value=!1,n.duration&&setTimeout((()=>{i.value=!0,setTimeout((()=>{i.value=!1}),300)}),n.duration-300)})),(n,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-loading lym-flex-cc",[i.value?"lym-gradually-display":"lym-gradually-appear"]]),style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:t.normalizeClass(["lym-loading__content",["horizontal-center"===e.textAlign?"lym-flex-cc":"lym-flex-column-cc"]])},[e.icon?(t.openBlock(),t.createBlock(z,{key:0,src:e.icon,type:"svgicon","fill-color":e.iconColor,size:e.iconSize,class:"lym-loading__icon lym-icon-rotate-anim"},null,8,["src","fill-color","size"])):t.createCommentVNode("",!0),t.createElementVNode("div",Xn,t.toDisplayString(e.text),1)],2)],6))}}),[["__scopeId","data-v-9fee0884"]]),$n=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"})),Kn={class:"lym-notification__content"},Yn=l(t.defineComponent({__name:"LymNotification",props:{content:{type:String,default:""},type:{type:String,default:"info"},top:{type:Number,default:60},openDuration:{type:Number,default:3e3},maxWidth:{type:Number,default:400},maxHeight:{type:Number,default:40},fontSize:{type:Number,default:14},padding:{type:String,default:"8px 12px"},isPlain:{type:Boolean,default:!1},callback:{type:Function,default:()=>{}}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a="lym-notification-"+Math.random().toString(36).substring(2,15),r=t.ref(!1),o=t.ref(!1),l=t.ref(),s=t.ref(null),c=t.ref(0),u={success:{color:"#67c23a",icon:"success-line"},warning:{color:"#e6a23c",icon:"warning-icon"},danger:{color:"#f56c6c",icon:"error-icon"},default:{color:"#909399",icon:"message-icon"}},d=t.computed((()=>{let e="";switch(e+=`max-width: ${i.maxWidth}px;`,e+=`max-height: ${i.maxHeight}px;`,e+=`font-size: ${i.fontSize}px;`,e+=`padding: ${i.padding};`,i.type){case"success":i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #67c23a;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #e1f3d8;background-color: #f0f9eb;color: #67c23a;";break;case"warning":i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #e6a23c;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #faecd8;background-color: #fdf6ec;color: #e6a23c;";break;case"danger":i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #f56c6c;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #fde2e2;background-color: #fef0f0;color: #f56c6c;";break;default:i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #909399;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #e9e9eb;background-color: #f4f4f5;color: #909399;"}return e}));function h(){null!==s.value&&(clearTimeout(s.value),s.value=null)}function p(){c.value=c.value-i.maxHeight-10<=0?0:c.value-i.maxHeight-10,l.value.style.top=`${c.value}px`}return t.onMounted((()=>{c.value=i.top,o.value=!1,r.value=!0,l.value.style.top=c.value-20+"px",l.value.style.opacity=0,setTimeout((()=>{l.value.style.top=`${c.value}px`,l.value.style.opacity=1}),10),h(),s.value=setTimeout((()=>{o.value=!0,l.value.style.top=c.value-20+"px",l.value.style.opacity=0}),i.openDuration-300),i.callback(p)})),t.onUnmounted((()=>{h()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{id:a,ref_key:"lymNotification",ref:l,class:"lym-notification",style:t.normalizeStyle(d.value)},[t.createVNode(z,{src:u[e.type].icon,type:"svgicon","fill-color":u[e.type].color,size:"22",style:{"margin-right":"8px"}},null,8,["src","fill-color"]),t.createElementVNode("div",Kn,t.toDisplayString(e.content),1)],4))}}),[["__scopeId","data-v-48e86de8"]]),Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={class:"lym-flex-cr"},Qn=t.defineComponent({__name:"LymNotificationBox",props:{title:{type:String,default:"提示"},content:{type:String,default:""},sureText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},textCenter:{type:Boolean,default:!1},textColor:{type:String,default:"#606266"},showCancel:{type:Boolean,default:!0},sureCallback:{type:Function,default:()=>{}},cancelCallback:{type:Function,default:()=>{}}},setup(e){const n=e,i=t.ref(!1);function a(){i.value=!1,n.sureCallback()}function r(){i.value=!1,n.cancelCallback()}return t.onMounted((()=>{i.value=!0})),(n,o)=>(t.openBlock(),t.createBlock(Re,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),"z-index":999999,"show-close":!1,title:e.title},{footer:t.withCtx((()=>[t.createElementVNode("div",Zn,[t.createVNode(B,{type:"primary",onClick:a},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.sureText),1)])),_:1}),e.showCancel?(t.openBlock(),t.createBlock(B,{key:0,style:{"margin-left":"15px"},onClick:r},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)])),_:1})):t.createCommentVNode("",!0)])])),default:t.withCtx((()=>[t.createElementVNode("div",{class:"lym-notification-box-content",style:t.normalizeStyle({textAlign:e.textCenter?"center":"left",color:e.textColor})},t.toDisplayString(e.content),5)])),_:1},8,["modelValue","title"]))}}),ei=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ti={class:"lym-table-header lym-flex-df"},ni={class:"lym-table-body"},ii=["id"],ai=l(t.defineComponent({__name:"LymTable",props:{modelValue:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},height:{type:[String,Number],default:"auto"},maxHeight:{type:[String,Number],default:""},stripe:{type:Boolean,default:!1},borderHorizontal:{type:Boolean,default:!1},borderVertical:{type:Boolean,default:!1},size:{type:String,default:""},fit:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!1},currentRowKey:{type:String,default:""},rowClassName:{type:[Function,String],default:""},rowStyle:{type:[Function,Object],default:()=>({})},cellClassName:{type:[Function,String],default:""},cellStyle:{type:[Function,Object],default:()=>({})},headerRowClassName:{type:[Function,String],default:""},headerRowStyle:{type:[Function,Object],default:()=>({})},headerCellClassName:{type:[Function,String],default:""},headerCellStyle:{type:[Function,Object],default:()=>({})},rowKey:{type:[Function,String],default:""},emptyText:{type:String,default:"暂无数据"},defaultExpandAll:{type:Boolean,default:!1},expandRowKeys:{type:Array,default:()=>[]},defaultSort:{type:Object,default:()=>({})},tooltipEffect:{type:String,default:"dark"},showSummary:{type:Boolean,default:!1},sumText:{type:String,default:"合计"},summaryMethod:{type:Function,default:null},spanMethod:{type:Function,default:null},selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},lazy:{type:Boolean,default:!1},load:{type:Function,default:null},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},showOverflowTooltip:{type:Boolean,default:!1}},emits:["update:modelValue","select","selectAll","selectionChange","cellMouseEnter","cellMouseLeave","cellClick","cellDblclick","cellContextmenu","rowClick","rowContextmenu","rowDblclick","headerClick","headerContextmenu","sortChange","filterChange","currentChange","headerDragend","expandChange"],setup(e,{emit:n}){const i=e,a=t.ref(),r=t.ref([]),o=t.ref([]),l=t.ref([]),s=t.ref(0),c=t.ref(0);return t.provide("getRef",(function(e,t,n,r){if(null!=e.value&&e.value.parentElement.parentElement.parentElement===a.value){o.value.push({ref:e,setMaxH:r});const t=parseInt(e.value.parentElement.id.replace("lymTableRow",""));n(i.data[t],t)}})),t.provide("getRowH",(function(e){l.value.push(e),function(){if(l.value.length!==s.value)return;const e=[];for(let t=0;t<c.value;t++){const n=l.value.map((e=>e[t])),i=Math.max(...n);e.push(i)}o.value.forEach((t=>{t.setMaxH(e)}))}()})),t.provide("changeStyle",(function(e,t){r.value.forEach((n=>{n.headerName===t&&(n.style=e)}))})),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{l.value=[],r.value=[];let e=[],t=[];for(let n=0;n<i.data.length;n++){c.value++;const a=i.data[n];t=Object.keys(a),t.length>=e.length&&(e=[...t])}for(let n=0;n<e.length;n++){const t=e[n];r.value.push({headerName:t,style:""})}s.value=r.value.length})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTableRef",ref:a,class:"lym-table"},[t.createElementVNode("div",ti,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,((e,n)=>(t.openBlock(),t.createElementBlock("div",{key:"lymTableHeader"+n},t.toDisplayString(e),1)))),128))]),t.createElementVNode("div",ni,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,((e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-table__row lym-flex-df",key:"lymTableRow"+i,id:"lymTableRow"+i},[t.renderSlot(n.$slots,"default",{},void 0,!0)],8,ii)))),128))]),t.renderSlot(n.$slots,"append",{},void 0,!0),t.renderSlot(n.$slots,"empty",{},void 0,!0)],512))}}),[["__scopeId","data-v-e88e724d"]]),ri=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"})),oi={style:{"text-align":"center"}},li=l(t.defineComponent({__name:"LymTableColumn",props:{type:{type:String,default:"default"},index:{type:[Number,Function],default:-1},label:{type:String,default:""},columnKey:{type:String,default:""},prop:{type:String,default:""},width:{type:[Number,String],default:""},minWidth:{type:[Number,String],default:""},fixed:{type:[Boolean,String],default:!1},renderHeader:{type:Function,default:null},sortable:{type:[Boolean,String],default:!1},sortMethod:{type:Function,default:null},sortBy:{type:[Function,String,Object],default:null},sortOrders:{type:Array,default:()=>["ascending",null,"descending"]},resizable:{type:Boolean,default:!0},formatter:{type:Function,default:null},showOverflowTooltip:{type:Boolean,default:!1},align:{type:String,default:"center"},headerAlign:{type:String,default:"center"},className:{type:String,default:""},labelClassName:{type:String,default:""},selectable:{type:Function,default:null},reserveSelection:{type:Boolean,default:!1},filters:{type:Array,default:()=>[]},filterPlacement:{type:String,default:"bottom"},filterMultiple:{type:Boolean,default:!0},filterMethod:{type:Function,default:null},filteredValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{expose:n,emit:i}){const a=e;t.ref([]);const r=t.ref({}),o=t.inject("getRef",null);t.inject("getRowH",null);const l=t.inject("changeStyle",null),s=t.ref(),c=t.ref(-1);function u(e,t){r.value=e,c.value=t}function d(e){}return t.watch((()=>a.headerAlign),((e,t)=>{var n;e!==t&&(n={"text-align":e},null!==l&&l instanceof Function&&l(n,a.prop))}),{immediate:!0}),t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==o&&o instanceof Function&&o(s,a.prop,u,d)}))})),n({setDataList:u}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTableColumnRef",ref:s,class:"lym-table-column"},[t.createElementVNode("div",oi,[t.renderSlot(e.$slots,"default",{rowData:{row:r.value,index:c.value}},(()=>[t.createTextVNode(t.toDisplayString(r.value[a.prop]),1)]),!0)]),t.renderSlot(e.$slots,"filter-icon",{},void 0,!0)],512))}}),[["__scopeId","data-v-718e58a8"]]),si=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"})),ci=t.defineComponent({__name:"LymTabPane",props:{identifier:{type:[String,Number],default:!1},label:{type:String,default:""},closable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.inject("getRef",null),r=t.inject("removeRef",null),o=t.ref();return t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==a&&a instanceof Function&&a(o,i.identifier,i.label,i.disabled)}))})),t.onUnmounted((()=>{null!==r&&r instanceof Function&&r(i.identifier)})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTabPaneRef",ref:o,class:"lym-tab-pane"},[t.renderSlot(e.$slots,"default")],512))}}),ui=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"})),di=["onClick","onMouseover"],hi=l(t.defineComponent({__name:"LymTabs",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:""},tabPosition:{type:String,default:"top"},closable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},stretch:{type:Boolean,default:!1},fontSize:{type:[String,Number],default:"14px"},fontWeight:{type:String,default:"normal"},color:{type:String,default:"#333"},activeColor:{type:String,default:"#409eff"},headerLineColor:{type:String,default:"#e4e7ed"},headerActiveLineColor:{type:String,default:"#409eff"},headerLineHeight:{type:[String,Number],default:"2px"},headerItemPadding:{type:String,default:"5px 10px"},headerItemWidth:{type:[String,Number],default:"auto"},isFirstHeaderItemNoLeftPd:{type:Boolean,default:!1},tabContentPadding:{type:String,default:"10px"}},emits:["update:modelValue","tabChange","tabRemove","tabAdd"],setup(e,{emit:n}){const i=e,r=n,o=t.ref([]),l=t.ref(),s=t.ref(""),c=t.ref(0),u=t.ref(null),d=t.ref("0"),h=t.ref("0"),p=t.ref(0),m=t.ref(0),f=t.ref(-1),v=t.ref(0),g=t.ref(0),_=t.ref([]),x=t.ref(null);t.provide("getRef",(function(e,t,n,i){null!=e.value&&e.value.parentElement.parentElement===l.value&&(e.value.style.display="none",o.value.push({id:t,ref:e,label:n,contentWOrH:0,disabled:i}));x.value&&(clearTimeout(x.value),x.value=null);x.value=setTimeout((()=>{E()}),300)})),t.provide("removeRef",(function(e){const t=o.value.findIndex((t=>t.id==e));-1!==t&&o.value.splice(t,1);s.value==e&&(s.value=o.value.length?o.value[0].id:"",c.value=0,r("update:modelValue",s.value));x.value&&(clearTimeout(x.value),x.value=null);x.value=setTimeout((()=>{E()}),300)})),t.watch((()=>i.modelValue),((e,n)=>{e!==n&&(s.value=e,t.nextTick((()=>{w()})))}));const y=t.computed((()=>{let e="lym-flex-column";return e="left"===i.tabPosition||"right"===i.tabPosition?" lym-flex-df":"lym-flex-column",e})),S=t.computed((()=>(e,t)=>{let n="";n+=`font-size: ${a(i.fontSize)?i.fontSize:i.fontSize+"px"};`,n+=`color: ${e.disabled?"#ccc":s.value==e.id||f.value===t?i.activeColor:i.color};`,n+=`font-weight: ${i.fontWeight};`;const r=i.headerItemPadding.split(" ");m.value=parseInt(r[0].replace("px","")),p.value=parseInt(r[r.length-1].replace("px","")),i.isFirstHeaderItemNoLeftPd?n+=`padding: ${0===t?m.value+"px "+p.value+"px "+m.value+"px 0px":i.headerItemPadding};`:n+=`padding: ${i.headerItemPadding};`,"left"!==i.tabPosition&&"right"!==i.tabPosition||(n+="white-space: wrap;word-break: break-all;"),"card"===i.type&&(n+=`border-top: 1px solid ${i.headerLineColor};`,"right"===i.tabPosition?n+=`border-right: 1px solid ${i.headerLineColor};`:n+=`border-left: 1px solid ${i.headerLineColor};`,t===o.value.length-1&&("left"===i.tabPosition||"right"===i.tabPosition?(n+=`border-bottom: 1px solid ${i.headerLineColor};`,n+="left"===i.tabPosition?"border-bottom-left-radius: 4px;":"border-bottom-right-radius: 4px;"):(n+=`border-right: 1px solid ${i.headerLineColor};`,n+="border-top-right-radius: 4px;")),0===t&&(n+="right"===i.tabPosition?"border-top-right-radius: 4px;":"border-top-left-radius: 4px;")),"border-card"===i.type&&(c.value!==t?(n+="background-color: #F5F7FA;","top"===i.tabPosition?n+=`border-bottom: 1px solid ${i.headerLineColor};`:"bottom"===i.tabPosition?n+=`border-top: 1px solid ${i.headerLineColor};`:"left"===i.tabPosition?n+=`border-right: 1px solid ${i.headerLineColor};`:n+=`border-left: 1px solid ${i.headerLineColor};`):(n+="background-color: white;",0===t?"top"===i.tabPosition||"bottom"===i.tabPosition?n+=`border-right: 1px solid ${i.headerLineColor};`:n+=`border-bottom: 1px solid ${i.headerLineColor};`:"top"===i.tabPosition||"bottom"===i.tabPosition?(n+=`border-right: 1px solid ${i.headerLineColor};`,n+=`border-left: 1px solid ${i.headerLineColor};`):(n+=`border-bottom: 1px solid ${i.headerLineColor};`,n+=`border-top: 1px solid ${i.headerLineColor};`)));let l="auto";return"auto"!==i.headerItemWidth?l=a(i.headerItemWidth)?i.headerItemWidth:i.headerItemWidth+"px":"left"!==i.tabPosition&&"right"!==i.tabPosition||(l="100px"),n+=`width: ${l};`,n})),b=t.computed((()=>{let e="";e+=`background-color: ${i.headerLineColor};`;const t=a(i.headerLineHeight)?i.headerLineHeight:i.headerLineHeight+"px";let n=!1;return"top"===i.tabPosition||"bottom"===i.tabPosition?(e+=`height: ${""===i.type?t:"1px"};`,l.value&&(n=g.value>l.value.clientWidth),n?"top"!==i.tabPosition&&"bottom"!==i.tabPosition||"border-card"!==i.type?e+=`width: ${g.value}px;`:e+="position: absolute;right: 0;top: 1000px;":"border-card"===i.type&&l.value&&("top"===i.tabPosition?e+=`width: ${l.value.clientWidth-g.value-2}px;margin-left: ${g.value+2}px;margin-top: -1px;`:e+=`width: ${l.value.clientWidth-g.value-2}px;position: absolute;right: 0;top: 0;`)):(e+=`width: ${""===i.type?t:"1px"};`,l.value&&(n=g.value>l.value.clientHeight),n?"left"!==i.tabPosition&&"right"!==i.tabPosition||"border-card"!==i.type?e+=`height: ${g.value}px;`:e+="position: absolute;left: 1000px;top: 0;":"border-card"===i.type&&l.value&&("left"===i.tabPosition?e+=`height: ${l.value.clientHeight-g.value-2}px;margin-top: ${g.value+2}px;margin-left: -1px;`:e+=`height: ${l.value.clientHeight-g.value-2}px;position: absolute;left: 0;bottom: 0;`)),e})),M=t.computed((()=>{let e="";e+=`background-color: ${i.headerActiveLineColor};`;const t=a(i.headerLineHeight)?i.headerLineHeight:i.headerLineHeight+"px",n=o.value.length?o.value[c.value].contentWOrH+"px":"0";return"top"===i.tabPosition||"bottom"===i.tabPosition?(e+=`height: ${t};`,e+=`width: ${n};`,e+=`left: ${d.value};`):(e+=`height: ${n};`,e+=`width: ${t};`,e+=`top: ${h.value};`),e}));function E(){s.value=i.modelValue;const e=document.getElementsByClassName("lym-tabs-content");e&&e.length&&(v.value=e[0].children.length),u.value&&(clearInterval(u.value),u.value=null),u.value=setInterval((()=>{o.value.length===v.value&&(s.value||(s.value=o.value[0].id,o.value[0].ref.style.display="block",r("update:modelValue",o.value[0].id)),t.nextTick((()=>{w()})),clearInterval(u.value),u.value=null)}),100)}async function w(){if(!_.value.length){const e=document.getElementsByClassName("lym-tabs-header");e&&e.length&&(_.value=e[0].children)}let e=0;g.value=0;for(let t=0;t<o.value.length;t++){const n=o.value[t],a=1,r=2,l=window.getComputedStyle(_.value[t]),u=Number(l.width.replace("px","")),f=Number(l.height.replace("px",""));"top"===i.tabPosition||"bottom"===i.tabPosition?(g.value+=u,n.contentWOrH=u,n.contentWOrH-=i.isFirstHeaderItemNoLeftPd&&0===t?p.value:2*p.value,n.contentWOrH-=r):(g.value+=f,n.contentWOrH=f,n.contentWOrH-=2*m.value,n.contentWOrH-=r),n.id===s.value&&("top"===i.tabPosition||"bottom"===i.tabPosition?(e+=i.isFirstHeaderItemNoLeftPd&&0===t?0:p.value,e+=a):(e+=m.value,e+=a),c.value=t,o.value[t].ref.style.display="block",h.value=d.value=e+"px");const v=1*p.value+n.contentWOrH+r,x=2*p.value+n.contentWOrH+r,y=2*m.value+n.contentWOrH+r;"top"===i.tabPosition||"bottom"===i.tabPosition?e+=i.isFirstHeaderItemNoLeftPd&&0===t?v:x:e+=y}}return t.onMounted((()=>{})),(n,a)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTabsRef",ref:l,class:t.normalizeClass(["lym-tabs",[y.value]]),style:t.normalizeStyle({border:"border-card"===e.type?"1px solid "+e.headerLineColor:"none"})},["bottom"===e.tabPosition||"right"===e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-tabs-content",style:t.normalizeStyle({padding:e.tabContentPadding})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["top"===i.tabPosition||"bottom"===i.tabPosition?"lym-flex-column lym-custom-scrollbar":"lym-flex-df no-scrollbar"]),style:{overflow:"auto","background-color":"white",position:"relative"}},["right"===e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-tabs-header-line",style:t.normalizeStyle(b.value)},[""===e.type?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(M.value)},null,4)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["lym-tabs-header",["top"===i.tabPosition||"bottom"===i.tabPosition?"lym-flex-c":"lym-flex-column"]]),style:t.normalizeStyle({backgroundColor:"border-card"===e.type?"#F5F7FA":"white"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,((i,l)=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"lym-tabs-item lym-flex-cc",style:t.normalizeStyle(S.value(i,l)),onClick:e=>function(e){o.value[c.value].ref.style.display="none",o.value[e].ref.style.display="block",c.value=e,r("update:modelValue",o.value[e].id),r("tabChange",o.value[e].id)}(l),onMouseover:e=>f.value=l,onMouseleave:a[0]||(a[0]=e=>f.value=-1)},[t.renderSlot(n.$slots,"label",{labelData:{item:i,index:l,checked:c.value===l||f.value===l,actColor:e.activeColor,color:e.color}},(()=>[t.createTextVNode(t.toDisplayString(i.label),1)]),!0)],44,di)))),128))],6),"right"!==e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-tabs-header-line",style:t.normalizeStyle(b.value)},[""===e.type?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(M.value)},null,4)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)],2),"top"===e.tabPosition||"left"===e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-tabs-content",style:t.normalizeStyle({padding:e.tabContentPadding})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-0987ba76"]]),pi=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),mi="166",fi=1,vi=2,gi=3,_i=0,xi=1,yi=2,Si=100,bi=101,Mi=102,Ei=200,wi=201,Ti=202,Ci=203,Ai=204,Ni=205,Ri=206,Li=207,Pi=208,qi=209,Ii=210,zi=211,ki=212,Bi=213,Di=214,Ui=0,Vi=1,Oi=2,Fi=0,Hi=1,Gi=2,Wi=3,Xi=4,ji=5,$i=6,Ki=7,Yi=301,Ji=302,Zi=306,Qi=1e3,ea=1001,ta=1002,na=1003,ia=1004,aa=1005,ra=1006,oa=1007,la=1008,sa=1009,ca=1010,ua=1011,da=1012,ha=1013,pa=1014,ma=1015,fa=1016,va=1017,ga=1018,_a=1020,xa=35902,ya=1021,Sa=1022,ba=1023,Ma=1024,Ea=1025,wa=1026,Ta=1027,Ca=1028,Aa=1029,Na=1030,Ra=1031,La=1033,Pa=33776,qa=33777,Ia=33778,za=33779,ka=35840,Ba=35841,Da=35842,Ua=35843,Va=36196,Oa=37492,Fa=37496,Ha=37808,Ga=37809,Wa=37810,Xa=37811,ja=37812,$a=37813,Ka=37814,Ya=37815,Ja=37816,Za=37817,Qa=37818,er=37819,tr=37820,nr=37821,ir=36492,ar=36494,rr=36495,or=36283,lr=36284,sr=36285,cr=36286,ur="",dr="srgb",hr="srgb-linear",pr="display-p3",mr="display-p3-linear",fr="linear",vr="srgb",gr="rec709",_r="p3",xr=7680,yr=512,Sr=513,br=514,Mr=515,Er=516,wr=517,Tr=518,Cr=519,Ar="300 es",Nr=2e3,Rr=2001;class Lr{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,i=n.length;t<i;t++)n[t].call(this,e);e.target=null}}}const Pr=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"],qr=Math.PI/180,Ir=180/Math.PI;function zr(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(Pr[255&e]+Pr[e>>8&255]+Pr[e>>16&255]+Pr[e>>24&255]+"-"+Pr[255&t]+Pr[t>>8&255]+"-"+Pr[t>>16&15|64]+Pr[t>>24&255]+"-"+Pr[63&n|128]+Pr[n>>8&255]+"-"+Pr[n>>16&255]+Pr[n>>24&255]+Pr[255&i]+Pr[i>>8&255]+Pr[i>>16&255]+Pr[i>>24&255]).toLowerCase()}function kr(e,t,n){return Math.max(t,Math.min(n,e))}function Br(e,t,n){return(1-n)*e+n*t}function Dr(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Ur(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}class Vr{constructor(e=0,t=0){Vr.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(kr(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),a=this.x-e.x,r=this.y-e.y;return this.x=a*n-r*i+e.x,this.y=a*i+r*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Or{constructor(e,t,n,i,a,r,o,l,s){Or.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,i,a,r,o,l,s)}set(e,t,n,i,a,r,o,l,s){const c=this.elements;return c[0]=e,c[1]=i,c[2]=o,c[3]=t,c[4]=a,c[5]=l,c[6]=n,c[7]=r,c[8]=s,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,a=this.elements,r=n[0],o=n[3],l=n[6],s=n[1],c=n[4],u=n[7],d=n[2],h=n[5],p=n[8],m=i[0],f=i[3],v=i[6],g=i[1],_=i[4],x=i[7],y=i[2],S=i[5],b=i[8];return a[0]=r*m+o*g+l*y,a[3]=r*f+o*_+l*S,a[6]=r*v+o*x+l*b,a[1]=s*m+c*g+u*y,a[4]=s*f+c*_+u*S,a[7]=s*v+c*x+u*b,a[2]=d*m+h*g+p*y,a[5]=d*f+h*_+p*S,a[8]=d*v+h*x+p*b,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],a=e[3],r=e[4],o=e[5],l=e[6],s=e[7],c=e[8];return t*r*c-t*o*s-n*a*c+n*o*l+i*a*s-i*r*l}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],a=e[3],r=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=c*r-o*s,d=o*l-c*a,h=s*a-r*l,p=t*u+n*d+i*h;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return e[0]=u*m,e[1]=(i*s-c*n)*m,e[2]=(o*n-i*r)*m,e[3]=d*m,e[4]=(c*t-i*l)*m,e[5]=(i*a-o*t)*m,e[6]=h*m,e[7]=(n*l-s*t)*m,e[8]=(r*t-n*a)*m,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,a,r,o){const l=Math.cos(a),s=Math.sin(a);return this.set(n*l,n*s,-n*(l*r+s*o)+r+e,-i*s,i*l,-i*(-s*r+l*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Fr.makeScale(e,t)),this}rotate(e){return this.premultiply(Fr.makeRotation(-e)),this}translate(e,t){return this.premultiply(Fr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Fr=new Or;function Hr(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Gr(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Wr(){const e=Gr("canvas");return e.style.display="block",e}const Xr={};function jr(e){e in Xr||(Xr[e]=!0)}const $r=(new Or).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Kr=(new Or).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Yr={[hr]:{transfer:fr,primaries:gr,toReference:e=>e,fromReference:e=>e},[dr]:{transfer:vr,primaries:gr,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[mr]:{transfer:fr,primaries:_r,toReference:e=>e.applyMatrix3(Kr),fromReference:e=>e.applyMatrix3($r)},[pr]:{transfer:vr,primaries:_r,toReference:e=>e.convertSRGBToLinear().applyMatrix3(Kr),fromReference:e=>e.applyMatrix3($r).convertLinearToSRGB()}},Jr=new Set([hr,mr]),Zr={enabled:!0,_workingColorSpace:hr,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Jr.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const i=Yr[t].toReference;return(0,Yr[n].fromReference)(i(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return Yr[e].primaries},getTransfer:function(e){return e===ur?fr:Yr[e].transfer}};function Qr(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function eo(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let to;class no{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===to&&(to=Gr("canvas")),to.width=e.width,to.height=e.height;const n=to.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=to}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=Gr("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),a=i.data;for(let e=0;e<a.length;e++)a[e]=255*Qr(a[e]/255);return n.putImageData(i,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*Qr(t[e]/255)):t[e]=Qr(t[e]);return{data:t,width:e.width,height:e.height}}return e}}let io=0;class ao{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:io++}),this.uuid=zr(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(ro(i[t].image)):e.push(ro(i[t]))}else e=ro(i);n.url=e}return t||(e.images[this.uuid]=n),n}}function ro(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?no.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:{}}let oo=0;class lo extends Lr{constructor(e=lo.DEFAULT_IMAGE,t=lo.DEFAULT_MAPPING,n=1001,i=1001,a=1006,r=1008,o=ba,l=sa,s=lo.DEFAULT_ANISOTROPY,c=""){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:oo++}),this.uuid=zr(),this.name="",this.source=new ao(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=a,this.minFilter=r,this.anisotropy=s,this.format=o,this.internalFormat=null,this.type=l,this.offset=new Vr(0,0),this.repeat=new Vr(1,1),this.center=new Vr(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Or,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Qi:e.x=e.x-Math.floor(e.x);break;case ea:e.x=e.x<0?0:1;break;case ta:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Qi:e.y=e.y-Math.floor(e.y);break;case ea:e.y=e.y<0?0:1;break;case ta:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}lo.DEFAULT_IMAGE=null,lo.DEFAULT_MAPPING=300,lo.DEFAULT_ANISOTROPY=1;class so{constructor(e=0,t=0,n=0,i=1){so.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,a=this.w,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i+r[12]*a,this.y=r[1]*t+r[5]*n+r[9]*i+r[13]*a,this.z=r[2]*t+r[6]*n+r[10]*i+r[14]*a,this.w=r[3]*t+r[7]*n+r[11]*i+r[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,a;const r=.01,o=.1,l=e.elements,s=l[0],c=l[4],u=l[8],d=l[1],h=l[5],p=l[9],m=l[2],f=l[6],v=l[10];if(Math.abs(c-d)<r&&Math.abs(u-m)<r&&Math.abs(p-f)<r){if(Math.abs(c+d)<o&&Math.abs(u+m)<o&&Math.abs(p+f)<o&&Math.abs(s+h+v-3)<o)return this.set(1,0,0,0),this;t=Math.PI;const e=(s+1)/2,l=(h+1)/2,g=(v+1)/2,_=(c+d)/4,x=(u+m)/4,y=(p+f)/4;return e>l&&e>g?e<r?(n=0,i=.707106781,a=.707106781):(n=Math.sqrt(e),i=_/n,a=x/n):l>g?l<r?(n=.707106781,i=0,a=.707106781):(i=Math.sqrt(l),n=_/i,a=y/i):g<r?(n=.707106781,i=.707106781,a=0):(a=Math.sqrt(g),n=x/a,i=y/a),this.set(n,i,a,t),this}let g=Math.sqrt((f-p)*(f-p)+(u-m)*(u-m)+(d-c)*(d-c));return Math.abs(g)<.001&&(g=1),this.x=(f-p)/g,this.y=(u-m)/g,this.z=(d-c)/g,this.w=Math.acos((s+h+v-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class co extends Lr{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new so(0,0,e,t),this.scissorTest=!1,this.viewport=new so(0,0,e,t);const i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:ra,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const a=new lo(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);a.flipY=!1,a.generateMipmaps=n.generateMipmaps,a.internalFormat=n.internalFormat,this.textures=[];const r=n.count;for(let o=0;o<r;o++)this.textures[o]=a.clone(),this.textures[o].isRenderTargetTexture=!0;this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let i=0,a=this.textures.length;i<a;i++)this.textures[i].image.width=e,this.textures[i].image.height=t,this.textures[i].image.depth=n;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let n=0,i=e.textures.length;n<i;n++)this.textures[n]=e.textures[n].clone(),this.textures[n].isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new ao(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class uo extends co{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}}class ho extends lo{constructor(e=null,t=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=na,this.minFilter=na,this.wrapR=ea,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class po extends lo{constructor(e=null,t=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=na,this.minFilter=na,this.wrapR=ea,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class mo{constructor(e=0,t=0,n=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=i}static slerpFlat(e,t,n,i,a,r,o){let l=n[i+0],s=n[i+1],c=n[i+2],u=n[i+3];const d=a[r+0],h=a[r+1],p=a[r+2],m=a[r+3];if(0===o)return e[t+0]=l,e[t+1]=s,e[t+2]=c,void(e[t+3]=u);if(1===o)return e[t+0]=d,e[t+1]=h,e[t+2]=p,void(e[t+3]=m);if(u!==m||l!==d||s!==h||c!==p){let e=1-o;const t=l*d+s*h+c*p+u*m,n=t>=0?1:-1,i=1-t*t;if(i>Number.EPSILON){const a=Math.sqrt(i),r=Math.atan2(a,t*n);e=Math.sin(e*r)/a,o=Math.sin(o*r)/a}const a=o*n;if(l=l*e+d*a,s=s*e+h*a,c=c*e+p*a,u=u*e+m*a,e===1-o){const e=1/Math.sqrt(l*l+s*s+c*c+u*u);l*=e,s*=e,c*=e,u*=e}}e[t]=l,e[t+1]=s,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,i,a,r){const o=n[i],l=n[i+1],s=n[i+2],c=n[i+3],u=a[r],d=a[r+1],h=a[r+2],p=a[r+3];return e[t]=o*p+c*u+l*h-s*d,e[t+1]=l*p+c*d+s*u-o*h,e[t+2]=s*p+c*h+o*d-l*u,e[t+3]=c*p-o*u-l*d-s*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,a=e._z,r=e._order,o=Math.cos,l=Math.sin,s=o(n/2),c=o(i/2),u=o(a/2),d=l(n/2),h=l(i/2),p=l(a/2);switch(r){case"XYZ":this._x=d*c*u+s*h*p,this._y=s*h*u-d*c*p,this._z=s*c*p+d*h*u,this._w=s*c*u-d*h*p;break;case"YXZ":this._x=d*c*u+s*h*p,this._y=s*h*u-d*c*p,this._z=s*c*p-d*h*u,this._w=s*c*u+d*h*p;break;case"ZXY":this._x=d*c*u-s*h*p,this._y=s*h*u+d*c*p,this._z=s*c*p+d*h*u,this._w=s*c*u-d*h*p;break;case"ZYX":this._x=d*c*u-s*h*p,this._y=s*h*u+d*c*p,this._z=s*c*p-d*h*u,this._w=s*c*u+d*h*p;break;case"YZX":this._x=d*c*u+s*h*p,this._y=s*h*u+d*c*p,this._z=s*c*p-d*h*u,this._w=s*c*u-d*h*p;break;case"XZY":this._x=d*c*u-s*h*p,this._y=s*h*u-d*c*p,this._z=s*c*p+d*h*u,this._w=s*c*u+d*h*p}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],a=t[8],r=t[1],o=t[5],l=t[9],s=t[2],c=t[6],u=t[10],d=n+o+u;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(c-l)*e,this._y=(a-s)*e,this._z=(r-i)*e}else if(n>o&&n>u){const e=2*Math.sqrt(1+n-o-u);this._w=(c-l)/e,this._x=.25*e,this._y=(i+r)/e,this._z=(a+s)/e}else if(o>u){const e=2*Math.sqrt(1+o-n-u);this._w=(a-s)/e,this._x=(i+r)/e,this._y=.25*e,this._z=(l+c)/e}else{const e=2*Math.sqrt(1+u-n-o);this._w=(r-i)/e,this._x=(a+s)/e,this._y=(l+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(kr(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,a=e._z,r=e._w,o=t._x,l=t._y,s=t._z,c=t._w;return this._x=n*c+r*o+i*s-a*l,this._y=i*c+r*l+a*o-n*s,this._z=a*c+r*s+n*l-i*o,this._w=r*c-n*o-i*l-a*s,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,i=this._y,a=this._z,r=this._w;let o=r*e._w+n*e._x+i*e._y+a*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=r,this._x=n,this._y=i,this._z=a,this;const l=1-o*o;if(l<=Number.EPSILON){const e=1-t;return this._w=e*r+t*this._w,this._x=e*n+t*this._x,this._y=e*i+t*this._y,this._z=e*a+t*this._z,this.normalize(),this}const s=Math.sqrt(l),c=Math.atan2(s,o),u=Math.sin((1-t)*c)/s,d=Math.sin(t*c)/s;return this._w=r*u+this._w*d,this._x=n*u+this._x*d,this._y=i*u+this._y*d,this._z=a*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),a=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),a*Math.sin(t),a*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class fo{constructor(e=0,t=0,n=0){fo.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(go.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(go.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[3]*n+a[6]*i,this.y=a[1]*t+a[4]*n+a[7]*i,this.z=a[2]*t+a[5]*n+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,a=e.elements,r=1/(a[3]*t+a[7]*n+a[11]*i+a[15]);return this.x=(a[0]*t+a[4]*n+a[8]*i+a[12])*r,this.y=(a[1]*t+a[5]*n+a[9]*i+a[13])*r,this.z=(a[2]*t+a[6]*n+a[10]*i+a[14])*r,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,a=e.x,r=e.y,o=e.z,l=e.w,s=2*(r*i-o*n),c=2*(o*t-a*i),u=2*(a*n-r*t);return this.x=t+l*s+r*u-o*c,this.y=n+l*c+o*s-a*u,this.z=i+l*u+a*c-r*s,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i,this.y=a[1]*t+a[5]*n+a[9]*i,this.z=a[2]*t+a[6]*n+a[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,a=e.z,r=t.x,o=t.y,l=t.z;return this.x=i*l-a*o,this.y=a*r-n*l,this.z=n*o-i*r,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return vo.copy(this).projectOnVector(e),this.sub(vo)}reflect(e){return this.sub(vo.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(kr(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const vo=new fo,go=new mo;class _o{constructor(e=new fo(1/0,1/0,1/0),t=new fo(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(yo.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(yo.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=yo.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n){const i=n.getAttribute("position");if(!0===t&&void 0!==i&&!0!==e.isInstancedMesh)for(let t=0,n=i.count;t<n;t++)!0===e.isMesh?e.getVertexPosition(t,yo):yo.fromBufferAttribute(i,t),yo.applyMatrix4(e.matrixWorld),this.expandByPoint(yo);else void 0!==e.boundingBox?(null===e.boundingBox&&e.computeBoundingBox(),So.copy(e.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),So.copy(n.boundingBox)),So.applyMatrix4(e.matrixWorld),this.union(So)}const i=e.children;for(let a=0,r=i.length;a<r;a++)this.expandByObject(i[a],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,yo),yo.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Ao),No.subVectors(this.max,Ao),bo.subVectors(e.a,Ao),Mo.subVectors(e.b,Ao),Eo.subVectors(e.c,Ao),wo.subVectors(Mo,bo),To.subVectors(Eo,Mo),Co.subVectors(bo,Eo);let t=[0,-wo.z,wo.y,0,-To.z,To.y,0,-Co.z,Co.y,wo.z,0,-wo.x,To.z,0,-To.x,Co.z,0,-Co.x,-wo.y,wo.x,0,-To.y,To.x,0,-Co.y,Co.x,0];return!!Po(t,bo,Mo,Eo,No)&&(t=[1,0,0,0,1,0,0,0,1],!!Po(t,bo,Mo,Eo,No)&&(Ro.crossVectors(wo,To),t=[Ro.x,Ro.y,Ro.z],Po(t,bo,Mo,Eo,No)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,yo).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(yo).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(xo[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),xo[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),xo[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),xo[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),xo[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),xo[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),xo[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),xo[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(xo)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const xo=[new fo,new fo,new fo,new fo,new fo,new fo,new fo,new fo],yo=new fo,So=new _o,bo=new fo,Mo=new fo,Eo=new fo,wo=new fo,To=new fo,Co=new fo,Ao=new fo,No=new fo,Ro=new fo,Lo=new fo;function Po(e,t,n,i,a){for(let r=0,o=e.length-3;r<=o;r+=3){Lo.fromArray(e,r);const o=a.x*Math.abs(Lo.x)+a.y*Math.abs(Lo.y)+a.z*Math.abs(Lo.z),l=t.dot(Lo),s=n.dot(Lo),c=i.dot(Lo);if(Math.max(-Math.max(l,s,c),Math.min(l,s,c))>o)return!1}return!0}const qo=new _o,Io=new fo,zo=new fo;class ko{constructor(e=new fo,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):qo.setFromPoints(e).getCenter(n);let i=0;for(let a=0,r=e.length;a<r;a++)i=Math.max(i,n.distanceToSquared(e[a]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Io.subVectors(e,this.center);const t=Io.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Io,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(zo.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Io.copy(e.center).add(zo)),this.expandByPoint(Io.copy(e.center).sub(zo))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Bo=new fo,Do=new fo,Uo=new fo,Vo=new fo,Oo=new fo,Fo=new fo,Ho=new fo;class Go{constructor(e=new fo,t=new fo(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Bo)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Bo.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Bo.copy(this.origin).addScaledVector(this.direction,t),Bo.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){Do.copy(e).add(t).multiplyScalar(.5),Uo.copy(t).sub(e).normalize(),Vo.copy(this.origin).sub(Do);const a=.5*e.distanceTo(t),r=-this.direction.dot(Uo),o=Vo.dot(this.direction),l=-Vo.dot(Uo),s=Vo.lengthSq(),c=Math.abs(1-r*r);let u,d,h,p;if(c>0)if(u=r*l-o,d=r*o-l,p=a*c,u>=0)if(d>=-p)if(d<=p){const e=1/c;u*=e,d*=e,h=u*(u+r*d+2*o)+d*(r*u+d+2*l)+s}else d=a,u=Math.max(0,-(r*d+o)),h=-u*u+d*(d+2*l)+s;else d=-a,u=Math.max(0,-(r*d+o)),h=-u*u+d*(d+2*l)+s;else d<=-p?(u=Math.max(0,-(-r*a+o)),d=u>0?-a:Math.min(Math.max(-a,-l),a),h=-u*u+d*(d+2*l)+s):d<=p?(u=0,d=Math.min(Math.max(-a,-l),a),h=d*(d+2*l)+s):(u=Math.max(0,-(r*a+o)),d=u>0?a:Math.min(Math.max(-a,-l),a),h=-u*u+d*(d+2*l)+s);else d=r>0?-a:a,u=Math.max(0,-(r*d+o)),h=-u*u+d*(d+2*l)+s;return n&&n.copy(this.origin).addScaledVector(this.direction,u),i&&i.copy(Do).addScaledVector(Uo,d),h}intersectSphere(e,t){Bo.subVectors(e.center,this.origin);const n=Bo.dot(this.direction),i=Bo.dot(Bo)-n*n,a=e.radius*e.radius;if(i>a)return null;const r=Math.sqrt(a-i),o=n-r,l=n+r;return l<0?null:o<0?this.at(l,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,a,r,o,l;const s=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return s>=0?(n=(e.min.x-d.x)*s,i=(e.max.x-d.x)*s):(n=(e.max.x-d.x)*s,i=(e.min.x-d.x)*s),c>=0?(a=(e.min.y-d.y)*c,r=(e.max.y-d.y)*c):(a=(e.max.y-d.y)*c,r=(e.min.y-d.y)*c),n>r||a>i?null:((a>n||isNaN(n))&&(n=a),(r<i||isNaN(i))&&(i=r),u>=0?(o=(e.min.z-d.z)*u,l=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,l=(e.min.z-d.z)*u),n>l||o>i?null:((o>n||n!=n)&&(n=o),(l<i||i!=i)&&(i=l),i<0?null:this.at(n>=0?n:i,t)))}intersectsBox(e){return null!==this.intersectBox(e,Bo)}intersectTriangle(e,t,n,i,a){Oo.subVectors(t,e),Fo.subVectors(n,e),Ho.crossVectors(Oo,Fo);let r,o=this.direction.dot(Ho);if(o>0){if(i)return null;r=1}else{if(!(o<0))return null;r=-1,o=-o}Vo.subVectors(this.origin,e);const l=r*this.direction.dot(Fo.crossVectors(Vo,Fo));if(l<0)return null;const s=r*this.direction.dot(Oo.cross(Vo));if(s<0)return null;if(l+s>o)return null;const c=-r*Vo.dot(Ho);return c<0?null:this.at(c/o,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Wo{constructor(e,t,n,i,a,r,o,l,s,c,u,d,h,p,m,f){Wo.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,i,a,r,o,l,s,c,u,d,h,p,m,f)}set(e,t,n,i,a,r,o,l,s,c,u,d,h,p,m,f){const v=this.elements;return v[0]=e,v[4]=t,v[8]=n,v[12]=i,v[1]=a,v[5]=r,v[9]=o,v[13]=l,v[2]=s,v[6]=c,v[10]=u,v[14]=d,v[3]=h,v[7]=p,v[11]=m,v[15]=f,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Wo).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/Xo.setFromMatrixColumn(e,0).length(),a=1/Xo.setFromMatrixColumn(e,1).length(),r=1/Xo.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=0,t[8]=n[8]*r,t[9]=n[9]*r,t[10]=n[10]*r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,a=e.z,r=Math.cos(n),o=Math.sin(n),l=Math.cos(i),s=Math.sin(i),c=Math.cos(a),u=Math.sin(a);if("XYZ"===e.order){const e=r*c,n=r*u,i=o*c,a=o*u;t[0]=l*c,t[4]=-l*u,t[8]=s,t[1]=n+i*s,t[5]=e-a*s,t[9]=-o*l,t[2]=a-e*s,t[6]=i+n*s,t[10]=r*l}else if("YXZ"===e.order){const e=l*c,n=l*u,i=s*c,a=s*u;t[0]=e+a*o,t[4]=i*o-n,t[8]=r*s,t[1]=r*u,t[5]=r*c,t[9]=-o,t[2]=n*o-i,t[6]=a+e*o,t[10]=r*l}else if("ZXY"===e.order){const e=l*c,n=l*u,i=s*c,a=s*u;t[0]=e-a*o,t[4]=-r*u,t[8]=i+n*o,t[1]=n+i*o,t[5]=r*c,t[9]=a-e*o,t[2]=-r*s,t[6]=o,t[10]=r*l}else if("ZYX"===e.order){const e=r*c,n=r*u,i=o*c,a=o*u;t[0]=l*c,t[4]=i*s-n,t[8]=e*s+a,t[1]=l*u,t[5]=a*s+e,t[9]=n*s-i,t[2]=-s,t[6]=o*l,t[10]=r*l}else if("YZX"===e.order){const e=r*l,n=r*s,i=o*l,a=o*s;t[0]=l*c,t[4]=a-e*u,t[8]=i*u+n,t[1]=u,t[5]=r*c,t[9]=-o*c,t[2]=-s*c,t[6]=n*u+i,t[10]=e-a*u}else if("XZY"===e.order){const e=r*l,n=r*s,i=o*l,a=o*s;t[0]=l*c,t[4]=-u,t[8]=s*c,t[1]=e*u+a,t[5]=r*c,t[9]=n*u-i,t[2]=i*u-n,t[6]=o*c,t[10]=a*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose($o,e,Ko)}lookAt(e,t,n){const i=this.elements;return Zo.subVectors(e,t),0===Zo.lengthSq()&&(Zo.z=1),Zo.normalize(),Yo.crossVectors(n,Zo),0===Yo.lengthSq()&&(1===Math.abs(n.z)?Zo.x+=1e-4:Zo.z+=1e-4,Zo.normalize(),Yo.crossVectors(n,Zo)),Yo.normalize(),Jo.crossVectors(Zo,Yo),i[0]=Yo.x,i[4]=Jo.x,i[8]=Zo.x,i[1]=Yo.y,i[5]=Jo.y,i[9]=Zo.y,i[2]=Yo.z,i[6]=Jo.z,i[10]=Zo.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,a=this.elements,r=n[0],o=n[4],l=n[8],s=n[12],c=n[1],u=n[5],d=n[9],h=n[13],p=n[2],m=n[6],f=n[10],v=n[14],g=n[3],_=n[7],x=n[11],y=n[15],S=i[0],b=i[4],M=i[8],E=i[12],w=i[1],T=i[5],C=i[9],A=i[13],N=i[2],R=i[6],L=i[10],P=i[14],q=i[3],I=i[7],z=i[11],k=i[15];return a[0]=r*S+o*w+l*N+s*q,a[4]=r*b+o*T+l*R+s*I,a[8]=r*M+o*C+l*L+s*z,a[12]=r*E+o*A+l*P+s*k,a[1]=c*S+u*w+d*N+h*q,a[5]=c*b+u*T+d*R+h*I,a[9]=c*M+u*C+d*L+h*z,a[13]=c*E+u*A+d*P+h*k,a[2]=p*S+m*w+f*N+v*q,a[6]=p*b+m*T+f*R+v*I,a[10]=p*M+m*C+f*L+v*z,a[14]=p*E+m*A+f*P+v*k,a[3]=g*S+_*w+x*N+y*q,a[7]=g*b+_*T+x*R+y*I,a[11]=g*M+_*C+x*L+y*z,a[15]=g*E+_*A+x*P+y*k,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],a=e[12],r=e[1],o=e[5],l=e[9],s=e[13],c=e[2],u=e[6],d=e[10],h=e[14];return e[3]*(+a*l*u-i*s*u-a*o*d+n*s*d+i*o*h-n*l*h)+e[7]*(+t*l*h-t*s*d+a*r*d-i*r*h+i*s*c-a*l*c)+e[11]*(+t*s*u-t*o*h-a*r*u+n*r*h+a*o*c-n*s*c)+e[15]*(-i*o*c-t*l*u+t*o*d+i*r*u-n*r*d+n*l*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],a=e[3],r=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=e[9],d=e[10],h=e[11],p=e[12],m=e[13],f=e[14],v=e[15],g=u*f*s-m*d*s+m*l*h-o*f*h-u*l*v+o*d*v,_=p*d*s-c*f*s-p*l*h+r*f*h+c*l*v-r*d*v,x=c*m*s-p*u*s+p*o*h-r*m*h-c*o*v+r*u*v,y=p*u*l-c*m*l-p*o*d+r*m*d+c*o*f-r*u*f,S=t*g+n*_+i*x+a*y;if(0===S)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const b=1/S;return e[0]=g*b,e[1]=(m*d*a-u*f*a-m*i*h+n*f*h+u*i*v-n*d*v)*b,e[2]=(o*f*a-m*l*a+m*i*s-n*f*s-o*i*v+n*l*v)*b,e[3]=(u*l*a-o*d*a-u*i*s+n*d*s+o*i*h-n*l*h)*b,e[4]=_*b,e[5]=(c*f*a-p*d*a+p*i*h-t*f*h-c*i*v+t*d*v)*b,e[6]=(p*l*a-r*f*a-p*i*s+t*f*s+r*i*v-t*l*v)*b,e[7]=(r*d*a-c*l*a+c*i*s-t*d*s-r*i*h+t*l*h)*b,e[8]=x*b,e[9]=(p*u*a-c*m*a-p*n*h+t*m*h+c*n*v-t*u*v)*b,e[10]=(r*m*a-p*o*a+p*n*s-t*m*s-r*n*v+t*o*v)*b,e[11]=(c*o*a-r*u*a-c*n*s+t*u*s+r*n*h-t*o*h)*b,e[12]=y*b,e[13]=(c*m*i-p*u*i+p*n*d-t*m*d-c*n*f+t*u*f)*b,e[14]=(p*o*i-r*m*i-p*n*l+t*m*l+r*n*f-t*o*f)*b,e[15]=(r*u*i-c*o*i+c*n*l-t*u*l-r*n*d+t*o*d)*b,this}scale(e){const t=this.elements,n=e.x,i=e.y,a=e.z;return t[0]*=n,t[4]*=i,t[8]*=a,t[1]*=n,t[5]*=i,t[9]*=a,t[2]*=n,t[6]*=i,t[10]*=a,t[3]*=n,t[7]*=i,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),a=1-n,r=e.x,o=e.y,l=e.z,s=a*r,c=a*o;return this.set(s*r+n,s*o-i*l,s*l+i*o,0,s*o+i*l,c*o+n,c*l-i*r,0,s*l-i*o,c*l+i*r,a*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,a,r){return this.set(1,n,a,0,e,1,r,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,a=t._x,r=t._y,o=t._z,l=t._w,s=a+a,c=r+r,u=o+o,d=a*s,h=a*c,p=a*u,m=r*c,f=r*u,v=o*u,g=l*s,_=l*c,x=l*u,y=n.x,S=n.y,b=n.z;return i[0]=(1-(m+v))*y,i[1]=(h+x)*y,i[2]=(p-_)*y,i[3]=0,i[4]=(h-x)*S,i[5]=(1-(d+v))*S,i[6]=(f+g)*S,i[7]=0,i[8]=(p+_)*b,i[9]=(f-g)*b,i[10]=(1-(d+m))*b,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let a=Xo.set(i[0],i[1],i[2]).length();const r=Xo.set(i[4],i[5],i[6]).length(),o=Xo.set(i[8],i[9],i[10]).length();this.determinant()<0&&(a=-a),e.x=i[12],e.y=i[13],e.z=i[14],jo.copy(this);const l=1/a,s=1/r,c=1/o;return jo.elements[0]*=l,jo.elements[1]*=l,jo.elements[2]*=l,jo.elements[4]*=s,jo.elements[5]*=s,jo.elements[6]*=s,jo.elements[8]*=c,jo.elements[9]*=c,jo.elements[10]*=c,t.setFromRotationMatrix(jo),n.x=a,n.y=r,n.z=o,this}makePerspective(e,t,n,i,a,r,o=2e3){const l=this.elements,s=2*a/(t-e),c=2*a/(n-i),u=(t+e)/(t-e),d=(n+i)/(n-i);let h,p;if(o===Nr)h=-(r+a)/(r-a),p=-2*r*a/(r-a);else{if(o!==Rr)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);h=-r/(r-a),p=-r*a/(r-a)}return l[0]=s,l[4]=0,l[8]=u,l[12]=0,l[1]=0,l[5]=c,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=h,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,i,a,r,o=2e3){const l=this.elements,s=1/(t-e),c=1/(n-i),u=1/(r-a),d=(t+e)*s,h=(n+i)*c;let p,m;if(o===Nr)p=(r+a)*u,m=-2*u;else{if(o!==Rr)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);p=a*u,m=-1*u}return l[0]=2*s,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-h,l[2]=0,l[6]=0,l[10]=m,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Xo=new fo,jo=new Wo,$o=new fo(0,0,0),Ko=new fo(1,1,1),Yo=new fo,Jo=new fo,Zo=new fo,Qo=new Wo,el=new mo;class tl{constructor(e=0,t=0,n=0,i=tl.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,a=i[0],r=i[4],o=i[8],l=i[1],s=i[5],c=i[9],u=i[2],d=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(kr(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-r,a)):(this._x=Math.atan2(d,s),this._z=0);break;case"YXZ":this._x=Math.asin(-kr(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(o,h),this._z=Math.atan2(l,s)):(this._y=Math.atan2(-u,a),this._z=0);break;case"ZXY":this._x=Math.asin(kr(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-r,s)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-kr(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-r,s));break;case"YZX":this._z=Math.asin(kr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,s),this._y=Math.atan2(-u,a)):(this._x=0,this._y=Math.atan2(o,h));break;case"XZY":this._z=Math.asin(-kr(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(d,s),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-c,h),this._y=0)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Qo.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Qo,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return el.setFromEuler(this),this.setFromQuaternion(el,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}tl.DEFAULT_ORDER="XYZ";class nl{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return!!(this.mask&e.mask)}isEnabled(e){return!!(this.mask&1<<e)}}let il=0;const al=new fo,rl=new mo,ol=new Wo,ll=new fo,sl=new fo,cl=new fo,ul=new mo,dl=new fo(1,0,0),hl=new fo(0,1,0),pl=new fo(0,0,1),ml={type:"added"},fl={type:"removed"},vl={type:"childadded",child:null},gl={type:"childremoved",child:null};class _l extends Lr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:il++}),this.uuid=zr(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=_l.DEFAULT_UP.clone();const e=new fo,t=new tl,n=new mo,i=new fo(1,1,1);t._onChange((function(){n.setFromEuler(t,!1)})),n._onChange((function(){t.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Wo},normalMatrix:{value:new Or}}),this.matrix=new Wo,this.matrixWorld=new Wo,this.matrixAutoUpdate=_l.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=_l.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new nl,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return rl.setFromAxisAngle(e,t),this.quaternion.multiply(rl),this}rotateOnWorldAxis(e,t){return rl.setFromAxisAngle(e,t),this.quaternion.premultiply(rl),this}rotateX(e){return this.rotateOnAxis(dl,e)}rotateY(e){return this.rotateOnAxis(hl,e)}rotateZ(e){return this.rotateOnAxis(pl,e)}translateOnAxis(e,t){return al.copy(e).applyQuaternion(this.quaternion),this.position.add(al.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(dl,e)}translateY(e){return this.translateOnAxis(hl,e)}translateZ(e){return this.translateOnAxis(pl,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(ol.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?ll.copy(e):ll.set(e,t,n);const i=this.parent;this.updateWorldMatrix(!0,!1),sl.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ol.lookAt(sl,ll,this.up):ol.lookAt(ll,sl,this.up),this.quaternion.setFromRotationMatrix(ol),i&&(ol.extractRotation(i.matrixWorld),rl.setFromRotationMatrix(ol),this.quaternion.premultiply(rl.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this||e&&e.isObject3D&&(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(ml),vl.child=e,this.dispatchEvent(vl),vl.child=null),this}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(fl),gl.child=e,this.dispatchEvent(gl),gl.child=null),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),ol.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),ol.multiply(e.parent.matrixWorld)),e.applyMatrix4(ol),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(ml),vl.child=e,this.dispatchEvent(vl),vl.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);const i=this.children;for(let a=0,r=i.length;a<r;a++)i[a].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(sl,e,cl),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(sl,ul,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,i=t.length;n<i;n++){t[n].updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++){e[t].updateWorldMatrix(!1,!0)}}}toJSON(e){const t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};function a(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map((e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()}))),i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),null!==this._colorsTexture&&(i.colorsTexture=this._colorsTexture.toJSON(e)),null!==this.boundingSphere&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),null!==this.boundingBox&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=a(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,i=n.length;t<i;t++){const i=n[t];a(e.shapes,i)}else a(e.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(a(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,i=this.material.length;n<i;n++)t.push(a(e.materials,this.material[n]));i.material=t}else i.material=a(e.materials,this.material);if(this.children.length>0){i.children=[];for(let t=0;t<this.children.length;t++)i.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];i.animations.push(a(e.animations,n))}}if(t){const t=r(e.geometries),i=r(e.materials),a=r(e.textures),o=r(e.images),l=r(e.shapes),s=r(e.skeletons),c=r(e.animations),u=r(e.nodes);t.length>0&&(n.geometries=t),i.length>0&&(n.materials=i),a.length>0&&(n.textures=a),o.length>0&&(n.images=o),l.length>0&&(n.shapes=l),s.length>0&&(n.skeletons=s),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=i,n;function r(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let n=0;n<e.children.length;n++){const t=e.children[n];this.add(t.clone())}return this}}_l.DEFAULT_UP=new fo(0,1,0),_l.DEFAULT_MATRIX_AUTO_UPDATE=!0,_l.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const xl=new fo,yl=new fo,Sl=new fo,bl=new fo,Ml=new fo,El=new fo,wl=new fo,Tl=new fo,Cl=new fo,Al=new fo;class Nl{constructor(e=new fo,t=new fo,n=new fo){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,i){i.subVectors(n,t),xl.subVectors(e,t),i.cross(xl);const a=i.lengthSq();return a>0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,t,n,i,a){xl.subVectors(i,t),yl.subVectors(n,t),Sl.subVectors(e,t);const r=xl.dot(xl),o=xl.dot(yl),l=xl.dot(Sl),s=yl.dot(yl),c=yl.dot(Sl),u=r*s-o*o;if(0===u)return a.set(0,0,0),null;const d=1/u,h=(s*l-o*c)*d,p=(r*c-o*l)*d;return a.set(1-h-p,p,h)}static containsPoint(e,t,n,i){return null!==this.getBarycoord(e,t,n,i,bl)&&(bl.x>=0&&bl.y>=0&&bl.x+bl.y<=1)}static getInterpolation(e,t,n,i,a,r,o,l){return null===this.getBarycoord(e,t,n,i,bl)?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,bl.x),l.addScaledVector(r,bl.y),l.addScaledVector(o,bl.z),l)}static isFrontFacing(e,t,n,i){return xl.subVectors(n,t),yl.subVectors(e,t),xl.cross(yl).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return xl.subVectors(this.c,this.b),yl.subVectors(this.a,this.b),.5*xl.cross(yl).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Nl.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Nl.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,a){return Nl.getInterpolation(e,this.a,this.b,this.c,t,n,i,a)}containsPoint(e){return Nl.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Nl.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,a=this.c;let r,o;Ml.subVectors(i,n),El.subVectors(a,n),Tl.subVectors(e,n);const l=Ml.dot(Tl),s=El.dot(Tl);if(l<=0&&s<=0)return t.copy(n);Cl.subVectors(e,i);const c=Ml.dot(Cl),u=El.dot(Cl);if(c>=0&&u<=c)return t.copy(i);const d=l*u-c*s;if(d<=0&&l>=0&&c<=0)return r=l/(l-c),t.copy(n).addScaledVector(Ml,r);Al.subVectors(e,a);const h=Ml.dot(Al),p=El.dot(Al);if(p>=0&&h<=p)return t.copy(a);const m=h*s-l*p;if(m<=0&&s>=0&&p<=0)return o=s/(s-p),t.copy(n).addScaledVector(El,o);const f=c*p-h*u;if(f<=0&&u-c>=0&&h-p>=0)return wl.subVectors(a,i),o=(u-c)/(u-c+(h-p)),t.copy(i).addScaledVector(wl,o);const v=1/(f+m+d);return r=m*v,o=d*v,t.copy(n).addScaledVector(Ml,r).addScaledVector(El,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const Rl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Ll={h:0,s:0,l:0},Pl={h:0,s:0,l:0};function ql(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Il{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=dr){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Zr.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=Zr.workingColorSpace){return this.r=e,this.g=t,this.b=n,Zr.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=Zr.workingColorSpace){var a;if(e=(e%(a=1)+a)%a,t=kr(t,0,1),n=kr(n,0,1),0===t)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+t):n+t-n*t,a=2*n-i;this.r=ql(a,i,e+1/3),this.g=ql(a,i,e),this.b=ql(a,i,e-1/3)}return Zr.toWorkingColorSpace(this,i),this}setStyle(e,t=dr){function n(e){void 0!==e&&parseFloat(e)}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let e;const a=i[1],r=i[2];switch(a){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return n(e[4]),this.setRGB(Math.min(255,parseInt(e[1],10))/255,Math.min(255,parseInt(e[2],10))/255,Math.min(255,parseInt(e[3],10))/255,t);if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return n(e[4]),this.setRGB(Math.min(100,parseInt(e[1],10))/100,Math.min(100,parseInt(e[2],10))/100,Math.min(100,parseInt(e[3],10))/100,t);break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return n(e[4]),this.setHSL(parseFloat(e[1])/360,parseFloat(e[2])/100,parseFloat(e[3])/100,t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=i[1],n=e.length;if(3===n)return this.setRGB(parseInt(e.charAt(0),16)/15,parseInt(e.charAt(1),16)/15,parseInt(e.charAt(2),16)/15,t);if(6===n)return this.setHex(parseInt(e,16),t)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=dr){const n=Rl[e.toLowerCase()];return void 0!==n&&this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Qr(e.r),this.g=Qr(e.g),this.b=Qr(e.b),this}copyLinearToSRGB(e){return this.r=eo(e.r),this.g=eo(e.g),this.b=eo(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=dr){return Zr.fromWorkingColorSpace(zl.copy(this),e),65536*Math.round(kr(255*zl.r,0,255))+256*Math.round(kr(255*zl.g,0,255))+Math.round(kr(255*zl.b,0,255))}getHexString(e=dr){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Zr.workingColorSpace){Zr.fromWorkingColorSpace(zl.copy(this),t);const n=zl.r,i=zl.g,a=zl.b,r=Math.max(n,i,a),o=Math.min(n,i,a);let l,s;const c=(o+r)/2;if(o===r)l=0,s=0;else{const e=r-o;switch(s=c<=.5?e/(r+o):e/(2-r-o),r){case n:l=(i-a)/e+(i<a?6:0);break;case i:l=(a-n)/e+2;break;case a:l=(n-i)/e+4}l/=6}return e.h=l,e.s=s,e.l=c,e}getRGB(e,t=Zr.workingColorSpace){return Zr.fromWorkingColorSpace(zl.copy(this),t),e.r=zl.r,e.g=zl.g,e.b=zl.b,e}getStyle(e=dr){Zr.fromWorkingColorSpace(zl.copy(this),e);const t=zl.r,n=zl.g,i=zl.b;return e!==dr?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(e,t,n){return this.getHSL(Ll),this.setHSL(Ll.h+e,Ll.s+t,Ll.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(Ll),e.getHSL(Pl);const n=Br(Ll.h,Pl.h,t),i=Br(Ll.s,Pl.s,t),a=Br(Ll.l,Pl.l,t);return this.setHSL(n,i,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,i=this.b,a=e.elements;return this.r=a[0]*t+a[3]*n+a[6]*i,this.g=a[1]*t+a[4]*n+a[7]*i,this.b=a[2]*t+a[5]*n+a[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const zl=new Il;Il.NAMES=Rl;let kl=0;class Bl extends Lr{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:kl++}),this.uuid=zr(),this.name="",this.type="Material",this.blending=1,this.side=_i,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=Si,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Il(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=xr,this.stencilZFail=xr,this.stencilZPass=xr,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n)continue;const i=this[t];void 0!==i&&(i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function i(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(n.dispersion=this.dispersion),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==_i&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),204!==this.blendSrc&&(n.blendSrc=this.blendSrc),205!==this.blendDst&&(n.blendDst=this.blendDst),this.blendEquation!==Si&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==xr&&(n.stencilFail=this.stencilFail),this.stencilZFail!==xr&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==xr&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=i(e.textures),a=i(e.images);t.length>0&&(n.textures=t),a.length>0&&(n.images=a)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let i=0;i!==e;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}onBuild(){}onBeforeRender(){}}class Dl extends Bl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Il(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new tl,this.combine=Ui,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Ul=new fo,Vl=new Vr;class Ol{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=35044,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=ma,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return jr("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,a=this.itemSize;i<a;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)Vl.fromBufferAttribute(this,t),Vl.applyMatrix3(e),this.setXY(t,Vl.x,Vl.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.applyMatrix3(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.applyMatrix4(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.applyNormalMatrix(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.transformDirection(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=Dr(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Ur(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Dr(t,this.array)),t}setX(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Dr(t,this.array)),t}setY(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Dr(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Dr(t,this.array)),t}setW(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Ur(t,this.array),n=Ur(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,i){return e*=this.itemSize,this.normalized&&(t=Ur(t,this.array),n=Ur(n,this.array),i=Ur(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this}setXYZW(e,t,n,i,a){return e*=this.itemSize,this.normalized&&(t=Ur(t,this.array),n=Ur(n,this.array),i=Ur(i,this.array),a=Ur(a,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=a,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),35044!==this.usage&&(e.usage=this.usage),e}}class Fl extends Ol{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class Hl extends Ol{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class Gl extends Ol{constructor(e,t,n){super(new Float32Array(e),t,n)}}let Wl=0;const Xl=new Wo,jl=new _l,$l=new fo,Kl=new _o,Yl=new _o,Jl=new fo;class Zl extends Lr{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Wl++}),this.uuid=zr(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Hr(e)?Hl:Fl)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new Or).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Xl.makeRotationFromQuaternion(e),this.applyMatrix4(Xl),this}rotateX(e){return Xl.makeRotationX(e),this.applyMatrix4(Xl),this}rotateY(e){return Xl.makeRotationY(e),this.applyMatrix4(Xl),this}rotateZ(e){return Xl.makeRotationZ(e),this.applyMatrix4(Xl),this}translate(e,t,n){return Xl.makeTranslation(e,t,n),this.applyMatrix4(Xl),this}scale(e,t,n){return Xl.makeScale(e,t,n),this.applyMatrix4(Xl),this}lookAt(e){return jl.lookAt(e),jl.updateMatrix(),this.applyMatrix4(jl.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter($l).negate(),this.translate($l.x,$l.y,$l.z),this}setFromPoints(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];t.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Gl(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new _o);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingBox.set(new fo(-1/0,-1/0,-1/0),new fo(1/0,1/0,1/0));else{if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];Kl.setFromBufferAttribute(n),this.morphTargetsRelative?(Jl.addVectors(this.boundingBox.min,Kl.min),this.boundingBox.expandByPoint(Jl),Jl.addVectors(this.boundingBox.max,Kl.max),this.boundingBox.expandByPoint(Jl)):(this.boundingBox.expandByPoint(Kl.min),this.boundingBox.expandByPoint(Kl.max))}}else this.boundingBox.makeEmpty();isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)}}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new ko);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingSphere.set(new fo,1/0);else if(e){const n=this.boundingSphere.center;if(Kl.setFromBufferAttribute(e),t)for(let e=0,a=t.length;e<a;e++){const n=t[e];Yl.setFromBufferAttribute(n),this.morphTargetsRelative?(Jl.addVectors(Kl.min,Yl.min),Kl.expandByPoint(Jl),Jl.addVectors(Kl.max,Yl.max),Kl.expandByPoint(Jl)):(Kl.expandByPoint(Yl.min),Kl.expandByPoint(Yl.max))}Kl.getCenter(n);let i=0;for(let t=0,a=e.count;t<a;t++)Jl.fromBufferAttribute(e,t),i=Math.max(i,n.distanceToSquared(Jl));if(t)for(let a=0,r=t.length;a<r;a++){const r=t[a],o=this.morphTargetsRelative;for(let t=0,a=r.count;t<a;t++)Jl.fromBufferAttribute(r,t),o&&($l.fromBufferAttribute(e,t),Jl.add($l)),i=Math.max(i,n.distanceToSquared(Jl))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return;const n=t.position,i=t.normal,a=t.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new Ol(new Float32Array(4*n.count),4));const r=this.getAttribute("tangent"),o=[],l=[];for(let M=0;M<n.count;M++)o[M]=new fo,l[M]=new fo;const s=new fo,c=new fo,u=new fo,d=new Vr,h=new Vr,p=new Vr,m=new fo,f=new fo;function v(e,t,i){s.fromBufferAttribute(n,e),c.fromBufferAttribute(n,t),u.fromBufferAttribute(n,i),d.fromBufferAttribute(a,e),h.fromBufferAttribute(a,t),p.fromBufferAttribute(a,i),c.sub(s),u.sub(s),h.sub(d),p.sub(d);const r=1/(h.x*p.y-p.x*h.y);isFinite(r)&&(m.copy(c).multiplyScalar(p.y).addScaledVector(u,-h.y).multiplyScalar(r),f.copy(u).multiplyScalar(h.x).addScaledVector(c,-p.x).multiplyScalar(r),o[e].add(m),o[t].add(m),o[i].add(m),l[e].add(f),l[t].add(f),l[i].add(f))}let g=this.groups;0===g.length&&(g=[{start:0,count:e.count}]);for(let M=0,E=g.length;M<E;++M){const t=g[M],n=t.start;for(let i=n,a=n+t.count;i<a;i+=3)v(e.getX(i+0),e.getX(i+1),e.getX(i+2))}const _=new fo,x=new fo,y=new fo,S=new fo;function b(e){y.fromBufferAttribute(i,e),S.copy(y);const t=o[e];_.copy(t),_.sub(y.multiplyScalar(y.dot(t))).normalize(),x.crossVectors(S,t);const n=x.dot(l[e])<0?-1:1;r.setXYZW(e,_.x,_.y,_.z,n)}for(let M=0,E=g.length;M<E;++M){const t=g[M],n=t.start;for(let i=n,a=n+t.count;i<a;i+=3)b(e.getX(i+0)),b(e.getX(i+1)),b(e.getX(i+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new Ol(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const i=new fo,a=new fo,r=new fo,o=new fo,l=new fo,s=new fo,c=new fo,u=new fo;if(e)for(let d=0,h=e.count;d<h;d+=3){const h=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);i.fromBufferAttribute(t,h),a.fromBufferAttribute(t,p),r.fromBufferAttribute(t,m),c.subVectors(r,a),u.subVectors(i,a),c.cross(u),o.fromBufferAttribute(n,h),l.fromBufferAttribute(n,p),s.fromBufferAttribute(n,m),o.add(c),l.add(c),s.add(c),n.setXYZ(h,o.x,o.y,o.z),n.setXYZ(p,l.x,l.y,l.z),n.setXYZ(m,s.x,s.y,s.z)}else for(let e=0,d=t.count;e<d;e+=3)i.fromBufferAttribute(t,e+0),a.fromBufferAttribute(t,e+1),r.fromBufferAttribute(t,e+2),c.subVectors(r,a),u.subVectors(i,a),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Jl.fromBufferAttribute(e,t),Jl.normalize(),e.setXYZ(t,Jl.x,Jl.y,Jl.z)}toNonIndexed(){function e(e,t){const n=e.array,i=e.itemSize,a=e.normalized,r=new n.constructor(t.length*i);let o=0,l=0;for(let s=0,c=t.length;s<c;s++){o=e.isInterleavedBufferAttribute?t[s]*e.data.stride+e.offset:t[s]*i;for(let e=0;e<i;e++)r[l++]=n[o++]}return new Ol(r,i,a)}if(null===this.index)return this;const t=new Zl,n=this.index.array,i=this.attributes;for(const o in i){const a=e(i[o],n);t.setAttribute(o,a)}const a=this.morphAttributes;for(const o in a){const i=[],r=a[o];for(let t=0,a=r.length;t<a;t++){const a=e(r[t],n);i.push(a)}t.morphAttributes[o]=i}t.morphTargetsRelative=this.morphTargetsRelative;const r=this.groups;for(let o=0,l=r.length;o<l;o++){const e=r[o];t.addGroup(e.start,e.count,e.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const t=n[l];e.data.attributes[l]=t.toJSON(e.data)}const i={};let a=!1;for(const l in this.morphAttributes){const t=this.morphAttributes[l],n=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];n.push(a.toJSON(e.data))}n.length>0&&(i[l]=n,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const r=this.groups;r.length>0&&(e.data.groups=JSON.parse(JSON.stringify(r)));const o=this.boundingSphere;return null!==o&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const i=e.attributes;for(const s in i){const e=i[s];this.setAttribute(s,e.clone(t))}const a=e.morphAttributes;for(const s in a){const e=[],n=a[s];for(let i=0,a=n.length;i<a;i++)e.push(n[i].clone(t));this.morphAttributes[s]=e}this.morphTargetsRelative=e.morphTargetsRelative;const r=e.groups;for(let s=0,c=r.length;s<c;s++){const e=r[s];this.addGroup(e.start,e.count,e.materialIndex)}const o=e.boundingBox;null!==o&&(this.boundingBox=o.clone());const l=e.boundingSphere;return null!==l&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ql=new Wo,es=new Go,ts=new ko,ns=new fo,is=new fo,as=new fo,rs=new fo,os=new fo,ls=new fo,ss=new Vr,cs=new Vr,us=new Vr,ds=new fo,hs=new fo,ps=new fo,ms=new fo,fs=new fo;class vs extends _l{constructor(e=new Zl,t=new Dl){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,i=n.attributes.position,a=n.morphAttributes.position,r=n.morphTargetsRelative;t.fromBufferAttribute(i,e);const o=this.morphTargetInfluences;if(a&&o){ls.set(0,0,0);for(let n=0,i=a.length;n<i;n++){const i=o[n],l=a[n];0!==i&&(os.fromBufferAttribute(l,e),r?ls.addScaledVector(os,i):ls.addScaledVector(os.sub(t),i))}t.add(ls)}return t}raycast(e,t){const n=this.geometry,i=this.material,a=this.matrixWorld;if(void 0!==i){if(null===n.boundingSphere&&n.computeBoundingSphere(),ts.copy(n.boundingSphere),ts.applyMatrix4(a),es.copy(e.ray).recast(e.near),!1===ts.containsPoint(es.origin)){if(null===es.intersectSphere(ts,ns))return;if(es.origin.distanceToSquared(ns)>(e.far-e.near)**2)return}Ql.copy(a).invert(),es.copy(e.ray).applyMatrix4(Ql),null!==n.boundingBox&&!1===es.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,es)}}_computeIntersections(e,t,n){let i;const a=this.geometry,r=this.material,o=a.index,l=a.attributes.position,s=a.attributes.uv,c=a.attributes.uv1,u=a.attributes.normal,d=a.groups,h=a.drawRange;if(null!==o)if(Array.isArray(r))for(let p=0,m=d.length;p<m;p++){const a=d[p],l=r[a.materialIndex];for(let r=Math.max(a.start,h.start),d=Math.min(o.count,Math.min(a.start+a.count,h.start+h.count));r<d;r+=3){i=gs(this,l,e,n,s,c,u,o.getX(r),o.getX(r+1),o.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=a.materialIndex,t.push(i))}}else{for(let a=Math.max(0,h.start),l=Math.min(o.count,h.start+h.count);a<l;a+=3){i=gs(this,r,e,n,s,c,u,o.getX(a),o.getX(a+1),o.getX(a+2)),i&&(i.faceIndex=Math.floor(a/3),t.push(i))}}else if(void 0!==l)if(Array.isArray(r))for(let p=0,m=d.length;p<m;p++){const a=d[p],o=r[a.materialIndex];for(let r=Math.max(a.start,h.start),d=Math.min(l.count,Math.min(a.start+a.count,h.start+h.count));r<d;r+=3){i=gs(this,o,e,n,s,c,u,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=a.materialIndex,t.push(i))}}else{for(let a=Math.max(0,h.start),o=Math.min(l.count,h.start+h.count);a<o;a+=3){i=gs(this,r,e,n,s,c,u,a,a+1,a+2),i&&(i.faceIndex=Math.floor(a/3),t.push(i))}}}}function gs(e,t,n,i,a,r,o,l,s,c){e.getVertexPosition(l,is),e.getVertexPosition(s,as),e.getVertexPosition(c,rs);const u=function(e,t,n,i,a,r,o,l){let s;if(s=t.side===xi?i.intersectTriangle(o,r,a,!0,l):i.intersectTriangle(a,r,o,t.side===_i,l),null===s)return null;fs.copy(l),fs.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(fs);return c<n.near||c>n.far?null:{distance:c,point:fs.clone(),object:e}}(e,t,n,i,is,as,rs,ms);if(u){a&&(ss.fromBufferAttribute(a,l),cs.fromBufferAttribute(a,s),us.fromBufferAttribute(a,c),u.uv=Nl.getInterpolation(ms,is,as,rs,ss,cs,us,new Vr)),r&&(ss.fromBufferAttribute(r,l),cs.fromBufferAttribute(r,s),us.fromBufferAttribute(r,c),u.uv1=Nl.getInterpolation(ms,is,as,rs,ss,cs,us,new Vr)),o&&(ds.fromBufferAttribute(o,l),hs.fromBufferAttribute(o,s),ps.fromBufferAttribute(o,c),u.normal=Nl.getInterpolation(ms,is,as,rs,ds,hs,ps,new fo),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const e={a:l,b:s,c:c,normal:new fo,materialIndex:0};Nl.getNormal(is,as,rs,e.normal),u.face=e}return u}class _s extends Zl{constructor(e=1,t=1,n=1,i=1,a=1,r=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:a,depthSegments:r};const o=this;i=Math.floor(i),a=Math.floor(a),r=Math.floor(r);const l=[],s=[],c=[],u=[];let d=0,h=0;function p(e,t,n,i,a,r,p,m,f,v,g){const _=r/f,x=p/v,y=r/2,S=p/2,b=m/2,M=f+1,E=v+1;let w=0,T=0;const C=new fo;for(let o=0;o<E;o++){const r=o*x-S;for(let l=0;l<M;l++){const d=l*_-y;C[e]=d*i,C[t]=r*a,C[n]=b,s.push(C.x,C.y,C.z),C[e]=0,C[t]=0,C[n]=m>0?1:-1,c.push(C.x,C.y,C.z),u.push(l/f),u.push(1-o/v),w+=1}}for(let o=0;o<v;o++)for(let e=0;e<f;e++){const t=d+e+M*o,n=d+e+M*(o+1),i=d+(e+1)+M*(o+1),a=d+(e+1)+M*o;l.push(t,n,a),l.push(n,i,a),T+=6}o.addGroup(h,T,g),h+=T,d+=w}p("z","y","x",-1,-1,n,t,e,r,a,0),p("z","y","x",1,-1,n,t,-e,r,a,1),p("x","z","y",1,1,e,n,t,i,r,2),p("x","z","y",1,-1,e,n,-t,i,r,3),p("x","y","z",1,-1,e,t,n,i,a,4),p("x","y","z",-1,-1,e,t,-n,i,a,5),this.setIndex(l),this.setAttribute("position",new Gl(s,3)),this.setAttribute("normal",new Gl(c,3)),this.setAttribute("uv",new Gl(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new _s(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function xs(e){const t={};for(const n in e){t[n]={};for(const i in e[n]){const a=e[n][i];a&&(a.isColor||a.isMatrix3||a.isMatrix4||a.isVector2||a.isVector3||a.isVector4||a.isTexture||a.isQuaternion)?a.isRenderTargetTexture?t[n][i]=null:t[n][i]=a.clone():Array.isArray(a)?t[n][i]=a.slice():t[n][i]=a}}return t}function ys(e){const t={};for(let n=0;n<e.length;n++){const i=xs(e[n]);for(const e in i)t[e]=i[e]}return t}function Ss(e){const t=e.getRenderTarget();return null===t?e.outputColorSpace:!0===t.isXRRenderTarget?t.texture.colorSpace:Zr.workingColorSpace}const bs={clone:xs,merge:ys};class Ms extends Bl{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=xs(e.uniforms),this.uniformsGroups=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i].value;n&&n.isTexture?t.uniforms[i]={type:"t",value:n.toJSON(e).uuid}:n&&n.isColor?t.uniforms[i]={type:"c",value:n.getHex()}:n&&n.isVector2?t.uniforms[i]={type:"v2",value:n.toArray()}:n&&n.isVector3?t.uniforms[i]={type:"v3",value:n.toArray()}:n&&n.isVector4?t.uniforms[i]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?t.uniforms[i]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?t.uniforms[i]={type:"m4",value:n.toArray()}:t.uniforms[i]={value:n}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const i in this.extensions)!0===this.extensions[i]&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Es extends _l{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Wo,this.projectionMatrix=new Wo,this.projectionMatrixInverse=new Wo,this.coordinateSystem=Nr}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const ws=new fo,Ts=new Vr,Cs=new Vr;class As extends Es{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Ir*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*qr*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Ir*Math.atan(Math.tan(.5*qr*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){ws.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ws.x,ws.y).multiplyScalar(-e/ws.z),ws.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ws.x,ws.y).multiplyScalar(-e/ws.z)}getViewSize(e,t){return this.getViewBounds(e,Ts,Cs),t.subVectors(Cs,Ts)}setViewOffset(e,t,n,i,a,r){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=a,this.view.height=r,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*qr*this.fov)/this.zoom,n=2*t,i=this.aspect*n,a=-.5*i;const r=this.view;if(null!==this.view&&this.view.enabled){const e=r.fullWidth,o=r.fullHeight;a+=r.offsetX*i/e,t-=r.offsetY*n/o,i*=r.width/e,n*=r.height/o}const o=this.filmOffset;0!==o&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Ns=-90;class Rs extends _l{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new As(Ns,1,e,t);i.layers=this.layers,this.add(i);const a=new As(Ns,1,e,t);a.layers=this.layers,this.add(a);const r=new As(Ns,1,e,t);r.layers=this.layers,this.add(r);const o=new As(Ns,1,e,t);o.layers=this.layers,this.add(o);const l=new As(Ns,1,e,t);l.layers=this.layers,this.add(l);const s=new As(Ns,1,e,t);s.layers=this.layers,this.add(s)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,a,r,o,l]=t;for(const s of t)this.remove(s);if(e===Nr)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),r.up.set(0,0,1),r.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else{if(e!==Rr)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),r.up.set(0,0,-1),r.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1)}for(const s of t)this.add(s),s.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,r,o,l,s,c]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,a),e.setRenderTarget(n,1,i),e.render(t,r),e.setRenderTarget(n,2,i),e.render(t,o),e.setRenderTarget(n,3,i),e.render(t,l),e.setRenderTarget(n,4,i),e.render(t,s),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,i),e.render(t,c),e.setRenderTarget(u,d,h),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class Ls extends lo{constructor(e,t,n,i,a,r,o,l,s,c){super(e=void 0!==e?e:[],t=void 0!==t?t:Yi,n,i,a,r,o,l,s,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Ps extends uo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new Ls(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:ra}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new _s(5,5,5),a=new Ms({name:"CubemapFromEquirect",uniforms:xs(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:xi,blending:0});a.uniforms.tEquirect.value=t;const r=new vs(i,a),o=t.minFilter;t.minFilter===la&&(t.minFilter=ra);return new Rs(1,10,this).update(e,r),t.minFilter=o,r.geometry.dispose(),r.material.dispose(),this}clear(e,t,n,i){const a=e.getRenderTarget();for(let r=0;r<6;r++)e.setRenderTarget(this,r),e.clear(t,n,i);e.setRenderTarget(a)}}const qs=new fo,Is=new fo,zs=new Or;class ks{constructor(e=new fo(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const i=qs.subVectors(n,t).cross(Is.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(qs),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/i;return a<0||a>1?null:t.copy(e.start).addScaledVector(n,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||zs.getNormalMatrix(e),i=this.coplanarPoint(qs).applyMatrix4(e),a=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Bs=new ko,Ds=new fo;class Us{constructor(e=new ks,t=new ks,n=new ks,i=new ks,a=new ks,r=new ks){this.planes=[e,t,n,i,a,r]}set(e,t,n,i,a,r){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(i),o[4].copy(a),o[5].copy(r),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=2e3){const n=this.planes,i=e.elements,a=i[0],r=i[1],o=i[2],l=i[3],s=i[4],c=i[5],u=i[6],d=i[7],h=i[8],p=i[9],m=i[10],f=i[11],v=i[12],g=i[13],_=i[14],x=i[15];if(n[0].setComponents(l-a,d-s,f-h,x-v).normalize(),n[1].setComponents(l+a,d+s,f+h,x+v).normalize(),n[2].setComponents(l+r,d+c,f+p,x+g).normalize(),n[3].setComponents(l-r,d-c,f-p,x-g).normalize(),n[4].setComponents(l-o,d-u,f-m,x-_).normalize(),t===Nr)n[5].setComponents(l+o,d+u,f+m,x+_).normalize();else{if(t!==Rr)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(o,u,m,_).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),Bs.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),Bs.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Bs)}intersectsSprite(e){return Bs.center.set(0,0,0),Bs.radius=.7071067811865476,Bs.applyMatrix4(e.matrixWorld),this.intersectsSphere(Bs)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let a=0;a<6;a++){if(t[a].distanceToPoint(n)<i)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const i=t[n];if(Ds.x=i.normal.x>0?e.max.x:e.min.x,Ds.y=i.normal.y>0?e.max.y:e.min.y,Ds.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Ds)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Vs(){let e=null,t=!1,n=null,i=null;function a(t,r){n(t,r),i=e.requestAnimationFrame(a)}return{start:function(){!0!==t&&null!==n&&(i=e.requestAnimationFrame(a),t=!0)},stop:function(){e.cancelAnimationFrame(i),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Os(e){const t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);const i=t.get(n);i&&(e.deleteBuffer(i.buffer),t.delete(n))},update:function(n,i){if(n.isGLBufferAttribute){const e=t.get(n);return void((!e||e.version<n.version)&&t.set(n,{buffer:n.buffer,type:n.type,bytesPerElement:n.elementSize,version:n.version}))}n.isInterleavedBufferAttribute&&(n=n.data);const a=t.get(n);if(void 0===a)t.set(n,function(t,n){const i=t.array,a=t.usage,r=i.byteLength,o=e.createBuffer();let l;if(e.bindBuffer(n,o),e.bufferData(n,i,a),t.onUploadCallback(),i instanceof Float32Array)l=e.FLOAT;else if(i instanceof Uint16Array)l=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(i instanceof Int16Array)l=e.SHORT;else if(i instanceof Uint32Array)l=e.UNSIGNED_INT;else if(i instanceof Int32Array)l=e.INT;else if(i instanceof Int8Array)l=e.BYTE;else if(i instanceof Uint8Array)l=e.UNSIGNED_BYTE;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);l=e.UNSIGNED_BYTE}return{buffer:o,type:l,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version,size:r}}(n,i));else if(a.version<n.version){if(a.size!==n.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");!function(t,n,i){const a=n.array,r=n._updateRange,o=n.updateRanges;if(e.bindBuffer(i,t),-1===r.count&&0===o.length&&e.bufferSubData(i,0,a),0!==o.length){for(let t=0,n=o.length;t<n;t++){const n=o[t];e.bufferSubData(i,n.start*a.BYTES_PER_ELEMENT,a,n.start,n.count)}n.clearUpdateRanges()}-1!==r.count&&(e.bufferSubData(i,r.offset*a.BYTES_PER_ELEMENT,a,r.offset,r.count),r.count=-1),n.onUploadCallback()}(a.buffer,n,i),a.version=n.version}}}}class Fs extends Zl{constructor(e=1,t=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};const a=e/2,r=t/2,o=Math.floor(n),l=Math.floor(i),s=o+1,c=l+1,u=e/o,d=t/l,h=[],p=[],m=[],f=[];for(let v=0;v<c;v++){const e=v*d-r;for(let t=0;t<s;t++){const n=t*u-a;p.push(n,-e,0),m.push(0,0,1),f.push(t/o),f.push(1-v/l)}}for(let v=0;v<l;v++)for(let e=0;e<o;e++){const t=e+s*v,n=e+s*(v+1),i=e+1+s*(v+1),a=e+1+s*v;h.push(t,n,a),h.push(n,i,a)}this.setIndex(h),this.setAttribute("position",new Gl(p,3)),this.setAttribute("normal",new Gl(m,3)),this.setAttribute("uv",new Gl(f,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Fs(e.width,e.height,e.widthSegments,e.heightSegments)}}const Hs={alphahash_fragment:"#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\t#ifdef ALPHA_TO_COVERAGE\n\tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\tif ( diffuseColor.a < alphaTest ) discard;\n\t#endif\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",batching_pars_vertex:"#ifdef USE_BATCHING\n\t#if ! defined( GL_ANGLE_multi_draw )\n\t#define gl_DrawID _gl_DrawID\n\tuniform int _gl_DrawID;\n\t#endif\n\tuniform highp sampler2D batchingTexture;\n\tuniform highp usampler2D batchingIdTexture;\n\tmat4 getBatchingMatrix( const in float i ) {\n\t\tint size = textureSize( batchingTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n\tfloat getIndirectIndex( const in int i ) {\n\t\tint size = textureSize( batchingIdTexture, 0 ).x;\n\t\tint x = i % size;\n\t\tint y = i / size;\n\t\treturn float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );\n\t}\n#endif\n#ifdef USE_BATCHING_COLOR\n\tuniform sampler2D batchingColorTexture;\n\tvec3 getBatchingColor( const in float i ) {\n\t\tint size = textureSize( batchingColorTexture, 0 ).x;\n\t\tint j = int( i );\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\treturn texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;\n\t}\n#endif",batching_vertex:"#ifdef USE_BATCHING\n\tmat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660, 0.0556434,\n\t\t-1.5371385, 1.8760108, -0.2040259,\n\t\t-0.4985314, 0.0415560, 1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n\tvec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );\n\tvColor.xyz *= batchingColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif ( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t#endif\n\tuniform sampler2DArray morphTargetsTexture;\n\tuniform ivec2 morphTargetsTextureSize;\n\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t}\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn mix( 1.0, shadow, shadowIntensity );\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn mix( 1.0, shadow, shadowIntensity );\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}"},Gs={common:{diffuse:{value:new Il(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Or},alphaMap:{value:null},alphaMapTransform:{value:new Or},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Or}},envmap:{envMap:{value:null},envMapRotation:{value:new Or},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Or}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Or}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Or},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Or},normalScale:{value:new Vr(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Or},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Or}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Or}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Or}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Il(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Il(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Or},alphaTest:{value:0},uvTransform:{value:new Or}},sprite:{diffuse:{value:new Il(16777215)},opacity:{value:1},center:{value:new Vr(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Or},alphaMap:{value:null},alphaMapTransform:{value:new Or},alphaTest:{value:0}}},Ws={basic:{uniforms:ys([Gs.common,Gs.specularmap,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.fog]),vertexShader:Hs.meshbasic_vert,fragmentShader:Hs.meshbasic_frag},lambert:{uniforms:ys([Gs.common,Gs.specularmap,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)}}]),vertexShader:Hs.meshlambert_vert,fragmentShader:Hs.meshlambert_frag},phong:{uniforms:ys([Gs.common,Gs.specularmap,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)},specular:{value:new Il(1118481)},shininess:{value:30}}]),vertexShader:Hs.meshphong_vert,fragmentShader:Hs.meshphong_frag},standard:{uniforms:ys([Gs.common,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.roughnessmap,Gs.metalnessmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Hs.meshphysical_vert,fragmentShader:Hs.meshphysical_frag},toon:{uniforms:ys([Gs.common,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.gradientmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)}}]),vertexShader:Hs.meshtoon_vert,fragmentShader:Hs.meshtoon_frag},matcap:{uniforms:ys([Gs.common,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.fog,{matcap:{value:null}}]),vertexShader:Hs.meshmatcap_vert,fragmentShader:Hs.meshmatcap_frag},points:{uniforms:ys([Gs.points,Gs.fog]),vertexShader:Hs.points_vert,fragmentShader:Hs.points_frag},dashed:{uniforms:ys([Gs.common,Gs.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Hs.linedashed_vert,fragmentShader:Hs.linedashed_frag},depth:{uniforms:ys([Gs.common,Gs.displacementmap]),vertexShader:Hs.depth_vert,fragmentShader:Hs.depth_frag},normal:{uniforms:ys([Gs.common,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,{opacity:{value:1}}]),vertexShader:Hs.meshnormal_vert,fragmentShader:Hs.meshnormal_frag},sprite:{uniforms:ys([Gs.sprite,Gs.fog]),vertexShader:Hs.sprite_vert,fragmentShader:Hs.sprite_frag},background:{uniforms:{uvTransform:{value:new Or},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Hs.background_vert,fragmentShader:Hs.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Or}},vertexShader:Hs.backgroundCube_vert,fragmentShader:Hs.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Hs.cube_vert,fragmentShader:Hs.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Hs.equirect_vert,fragmentShader:Hs.equirect_frag},distanceRGBA:{uniforms:ys([Gs.common,Gs.displacementmap,{referencePosition:{value:new fo},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Hs.distanceRGBA_vert,fragmentShader:Hs.distanceRGBA_frag},shadow:{uniforms:ys([Gs.lights,Gs.fog,{color:{value:new Il(0)},opacity:{value:1}}]),vertexShader:Hs.shadow_vert,fragmentShader:Hs.shadow_frag}};Ws.physical={uniforms:ys([Ws.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Or},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Or},clearcoatNormalScale:{value:new Vr(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Or},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Or},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Or},sheen:{value:0},sheenColor:{value:new Il(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Or},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Or},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Or},transmissionSamplerSize:{value:new Vr},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Or},attenuationDistance:{value:0},attenuationColor:{value:new Il(0)},specularColor:{value:new Il(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Or},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Or},anisotropyVector:{value:new Vr},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Or}}]),vertexShader:Hs.meshphysical_vert,fragmentShader:Hs.meshphysical_frag};const Xs={r:0,b:0,g:0},js=new tl,$s=new Wo;function Ks(e,t,n,i,a,r,o){const l=new Il(0);let s,c,u=!0===r?0:1,d=null,h=0,p=null;function m(e){let i=!0===e.isScene?e.background:null;if(i&&i.isTexture){i=(e.backgroundBlurriness>0?n:t).get(i)}return i}function f(t,n){t.getRGB(Xs,Ss(e)),i.buffers.color.setClear(Xs.r,Xs.g,Xs.b,n,o)}return{getClearColor:function(){return l},setClearColor:function(e,t=1){l.set(e),u=t,f(l,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,f(l,u)},render:function(t){let n=!1;const a=m(t);null===a?f(l,u):a&&a.isColor&&(f(a,1),n=!0);const r=e.xr.getEnvironmentBlendMode();"additive"===r?i.buffers.color.setClear(0,0,0,1,o):"alpha-blend"===r&&i.buffers.color.setClear(0,0,0,0,o),(e.autoClear||n)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))},addToRenderList:function(t,n){const i=m(n);i&&(i.isCubeTexture||i.mapping===Zi)?(void 0===c&&(c=new vs(new _s(1,1,1),new Ms({name:"BackgroundCubeMaterial",uniforms:xs(Ws.backgroundCube.uniforms),vertexShader:Ws.backgroundCube.vertexShader,fragmentShader:Ws.backgroundCube.fragmentShader,side:xi,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),a.update(c)),js.copy(n.backgroundRotation),js.x*=-1,js.y*=-1,js.z*=-1,i.isCubeTexture&&!1===i.isRenderTargetTexture&&(js.y*=-1,js.z*=-1),c.material.uniforms.envMap.value=i,c.material.uniforms.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4($s.makeRotationFromEuler(js)),c.material.toneMapped=Zr.getTransfer(i.colorSpace)!==vr,d===i&&h===i.version&&p===e.toneMapping||(c.material.needsUpdate=!0,d=i,h=i.version,p=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null)):i&&i.isTexture&&(void 0===s&&(s=new vs(new Fs(2,2),new Ms({name:"BackgroundMaterial",uniforms:xs(Ws.background.uniforms),vertexShader:Ws.background.vertexShader,fragmentShader:Ws.background.fragmentShader,side:_i,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),Object.defineProperty(s.material,"map",{get:function(){return this.uniforms.t2D.value}}),a.update(s)),s.material.uniforms.t2D.value=i,s.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,s.material.toneMapped=Zr.getTransfer(i.colorSpace)!==vr,!0===i.matrixAutoUpdate&&i.updateMatrix(),s.material.uniforms.uvTransform.value.copy(i.matrix),d===i&&h===i.version&&p===e.toneMapping||(s.material.needsUpdate=!0,d=i,h=i.version,p=e.toneMapping),s.layers.enableAll(),t.unshift(s,s.geometry,s.material,0,0,null))}}}function Ys(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),i={},a=c(null);let r=a,o=!1;function l(t){return e.bindVertexArray(t)}function s(t){return e.deleteVertexArray(t)}function c(e){const t=[],i=[],a=[];for(let r=0;r<n;r++)t[r]=0,i[r]=0,a[r]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:i,attributeDivisors:a,object:e,attributes:{},index:null}}function u(){const e=r.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function d(e){h(e,0)}function h(t,n){const i=r.newAttributes,a=r.enabledAttributes,o=r.attributeDivisors;i[t]=1,0===a[t]&&(e.enableVertexAttribArray(t),a[t]=1),o[t]!==n&&(e.vertexAttribDivisor(t,n),o[t]=n)}function p(){const t=r.newAttributes,n=r.enabledAttributes;for(let i=0,a=n.length;i<a;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function m(t,n,i,a,r,o,l){!0===l?e.vertexAttribIPointer(t,n,i,r,o):e.vertexAttribPointer(t,n,i,a,r,o)}function f(){v(),o=!0,r!==a&&(r=a,l(r.object))}function v(){a.geometry=null,a.program=null,a.wireframe=!1}return{setup:function(n,a,s,f,v){let g=!1;const _=function(t,n,a){const r=!0===a.wireframe;let o=i[t.id];void 0===o&&(o={},i[t.id]=o);let l=o[n.id];void 0===l&&(l={},o[n.id]=l);let s=l[r];void 0===s&&(s=c(e.createVertexArray()),l[r]=s);return s}(f,s,a);r!==_&&(r=_,l(r.object)),g=function(e,t,n,i){const a=r.attributes,o=t.attributes;let l=0;const s=n.getAttributes();for(const r in s){if(s[r].location>=0){const t=a[r];let n=o[r];if(void 0===n&&("instanceMatrix"===r&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===r&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;l++}}return r.attributesNum!==l||r.index!==i}(n,f,s,v),g&&function(e,t,n,i){const a={},o=t.attributes;let l=0;const s=n.getAttributes();for(const r in s){if(s[r].location>=0){let t=o[r];void 0===t&&("instanceMatrix"===r&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===r&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),a[r]=n,l++}}r.attributes=a,r.attributesNum=l,r.index=i}(n,f,s,v),null!==v&&t.update(v,e.ELEMENT_ARRAY_BUFFER),(g||o)&&(o=!1,function(n,i,a,r){u();const o=r.attributes,l=a.getAttributes(),s=i.defaultAttributeValues;for(const c in l){const i=l[c];if(i.location>=0){let a=o[c];if(void 0===a&&("instanceMatrix"===c&&n.instanceMatrix&&(a=n.instanceMatrix),"instanceColor"===c&&n.instanceColor&&(a=n.instanceColor)),void 0!==a){const o=a.normalized,l=a.itemSize,s=t.get(a);if(void 0===s)continue;const c=s.buffer,u=s.type,p=s.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||a.gpuType===ha;if(a.isInterleavedBufferAttribute){const t=a.data,s=t.stride,v=a.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e<i.locationSize;e++)h(i.location+e,t.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===r._maxInstanceCount&&(r._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<i.locationSize;e++)d(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,c);for(let e=0;e<i.locationSize;e++)m(i.location+e,l/i.locationSize,u,o,s*p,(v+l/i.locationSize*e)*p,f)}else{if(a.isInstancedBufferAttribute){for(let e=0;e<i.locationSize;e++)h(i.location+e,a.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===r._maxInstanceCount&&(r._maxInstanceCount=a.meshPerAttribute*a.count)}else for(let e=0;e<i.locationSize;e++)d(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,c);for(let e=0;e<i.locationSize;e++)m(i.location+e,l/i.locationSize,u,o,l*p,l/i.locationSize*e*p,f)}}else if(void 0!==s){const t=s[c];if(void 0!==t)switch(t.length){case 2:e.vertexAttrib2fv(i.location,t);break;case 3:e.vertexAttrib3fv(i.location,t);break;case 4:e.vertexAttrib4fv(i.location,t);break;default:e.vertexAttrib1fv(i.location,t)}}}}p()}(n,a,s,f),null!==v&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(v).buffer))},reset:f,resetDefaultState:v,dispose:function(){f();for(const e in i){const t=i[e];for(const e in t){const n=t[e];for(const e in n)s(n[e].object),delete n[e];delete t[e]}delete i[e]}},releaseStatesOfGeometry:function(e){if(void 0===i[e.id])return;const t=i[e.id];for(const n in t){const e=t[n];for(const t in e)s(e[t].object),delete e[t];delete t[n]}delete i[e.id]},releaseStatesOfProgram:function(e){for(const t in i){const n=i[t];if(void 0===n[e.id])continue;const a=n[e.id];for(const e in a)s(a[e].object),delete a[e];delete n[e.id]}},initAttributes:u,enableAttribute:d,disableUnusedAttributes:p}}function Js(e,t,n){let i;function a(t,a,r){0!==r&&(e.drawArraysInstanced(i,t,a,r),n.update(a,i,r))}this.setMode=function(e){i=e},this.render=function(t,a){e.drawArrays(i,t,a),n.update(a,i,1)},this.renderInstances=a,this.renderMultiDraw=function(e,a,r){if(0===r)return;t.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,e,0,a,0,r);let o=0;for(let t=0;t<r;t++)o+=a[t];n.update(o,i,1)},this.renderMultiDrawInstances=function(e,r,o,l){if(0===o)return;const s=t.get("WEBGL_multi_draw");if(null===s)for(let t=0;t<e.length;t++)a(e[t],r[t],l[t]);else{s.multiDrawArraysInstancedWEBGL(i,e,0,r,0,l,0,o);let t=0;for(let e=0;e<o;e++)t+=r[e];for(let e=0;e<l.length;e++)n.update(t,i,l[e])}}}function Zs(e,t,n,i){let a;function r(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let o=void 0!==n.precision?n.precision:"highp";const l=r(o);l!==o&&(o=l);const s=!0===n.logarithmicDepthBuffer,c=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),u=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==a)return a;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");a=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else a=0;return a},getMaxPrecision:r,textureFormatReadable:function(t){return t===ba||i.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)},textureTypeReadable:function(n){const a=n===fa&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return!(n!==sa&&i.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)&&n!==ma&&!a)},precision:o,logarithmicDepthBuffer:s,maxTextures:c,maxVertexTextures:u,maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE),maxCubemapSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),maxAttributes:e.getParameter(e.MAX_VERTEX_ATTRIBS),maxVertexUniforms:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:u>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function Qs(e){const t=this;let n=null,i=0,a=!1,r=!1;const o=new ks,l=new Or,s={value:null,needsUpdate:!1};function c(e,n,i,a){const r=null!==e?e.length:0;let c=null;if(0!==r){if(c=s.value,!0!==a||null===c){const t=i+4*r,a=n.matrixWorldInverse;l.getNormalMatrix(a),(null===c||c.length<t)&&(c=new Float32Array(t));for(let n=0,s=i;n!==r;++n,s+=4)o.copy(e[n]).applyMatrix4(a,l),o.normal.toArray(c,s),c[s+3]=o.constant}s.value=c,s.needsUpdate=!0}return t.numPlanes=r,t.numIntersection=0,c}this.uniform=s,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==i||a;return a=t,i=e.length,n},this.beginShadows=function(){r=!0,c(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(e,t){n=c(e,t,0)},this.setState=function(o,l,u){const d=o.clippingPlanes,h=o.clipIntersection,p=o.clipShadows,m=e.get(o);if(!a||null===d||0===d.length||r&&!p)r?c(null):function(){s.value!==n&&(s.value=n,s.needsUpdate=i>0);t.numPlanes=i,t.numIntersection=0}();else{const e=r?0:i,t=4*e;let a=m.clippingState||null;s.value=a,a=c(d,l,t,u);for(let i=0;i!==t;++i)a[i]=n[i];m.clippingState=a,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}}}function ec(e){let t=new WeakMap;function n(e,t){return 303===t?e.mapping=Yi:304===t&&(e.mapping=Ji),e}function i(e){const n=e.target;n.removeEventListener("dispose",i);const a=t.get(n);void 0!==a&&(t.delete(n),a.dispose())}return{get:function(a){if(a&&a.isTexture){const r=a.mapping;if(303===r||304===r){if(t.has(a)){return n(t.get(a).texture,a.mapping)}{const r=a.image;if(r&&r.height>0){const o=new Ps(r.height);return o.fromEquirectangularTexture(e,a),t.set(a,o),a.addEventListener("dispose",i),n(o.texture,a.mapping)}return null}}}return a},dispose:function(){t=new WeakMap}}}class tc extends Es{constructor(e=-1,t=1,n=1,i=-1,a=.1,r=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=a,this.far=r,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,a,r){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=a,this.view.height=r,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=n-e,r=n+e,o=i+t,l=i-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=e*this.view.offsetX,r=a+e*this.view.width,o-=t*this.view.offsetY,l=o-t*this.view.height}this.projectionMatrix.makeOrthographic(a,r,o,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const nc=[.125,.215,.35,.446,.526,.582],ic=20,ac=new tc,rc=new Il;let oc=null,lc=0,sc=0,cc=!1;const uc=(1+Math.sqrt(5))/2,dc=1/uc,hc=[new fo(-uc,dc,0),new fo(uc,dc,0),new fo(-dc,0,uc),new fo(dc,0,uc),new fo(0,uc,-dc),new fo(0,uc,dc),new fo(-1,1,-1),new fo(1,1,-1),new fo(-1,1,1),new fo(1,1,1)];class pc{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){oc=this._renderer.getRenderTarget(),lc=this._renderer.getActiveCubeFace(),sc=this._renderer.getActiveMipmapLevel(),cc=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,n,i,a),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=gc(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=vc(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(oc,lc,sc),this._renderer.xr.enabled=cc,e.scissorTest=!1,fc(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===Yi||e.mapping===Ji?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),oc=this._renderer.getRenderTarget(),lc=this._renderer.getActiveCubeFace(),sc=this._renderer.getActiveMipmapLevel(),cc=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:ra,minFilter:ra,generateMipmaps:!1,type:fa,format:ba,colorSpace:hr,depthBuffer:!1},i=mc(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=mc(e,t,n);const{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],i=[];let a=e;const r=e-4+1+nc.length;for(let o=0;o<r;o++){const r=Math.pow(2,a);n.push(r);let l=1/r;o>e-4?l=nc[o-e+4-1]:0===o&&(l=0),i.push(l);const s=1/(r-2),c=-s,u=1+s,d=[c,c,u,c,u,u,c,c,u,u,c,u],h=6,p=6,m=3,f=2,v=1,g=new Float32Array(m*p*h),_=new Float32Array(f*p*h),x=new Float32Array(v*p*h);for(let e=0;e<h;e++){const t=e%3*2/3-1,n=e>2?0:-1,i=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];g.set(i,m*p*e),_.set(d,f*p*e);const a=[e,e,e,e,e,e];x.set(a,v*p*e)}const y=new Zl;y.setAttribute("position",new Ol(g,m)),y.setAttribute("uv",new Ol(_,f)),y.setAttribute("faceIndex",new Ol(x,v)),t.push(y),a>4&&a--}return{lodPlanes:t,sizeLods:n,sigmas:i}}(i)),this._blurMaterial=function(e,t,n){const i=new Float32Array(ic),a=new fo(0,1,0),r=new Ms({name:"SphericalGaussianBlur",defines:{n:ic,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:a}},vertexShader:_c(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return r}(i,e,t)}return i}_compileMaterial(e){const t=new vs(this._lodPlanes[0],e);this._renderer.compile(t,ac)}_sceneToCubeUV(e,t,n,i){const a=new As(90,1,t,n),r=[1,-1,1,1,1,1],o=[1,1,1,-1,-1,-1],l=this._renderer,s=l.autoClear,c=l.toneMapping;l.getClearColor(rc),l.toneMapping=Fi,l.autoClear=!1;const u=new Dl({name:"PMREM.Background",side:xi,depthWrite:!1,depthTest:!1}),d=new vs(new _s,u);let h=!1;const p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,h=!0):(u.color.copy(rc),h=!0);for(let m=0;m<6;m++){const t=m%3;0===t?(a.up.set(0,r[m],0),a.lookAt(o[m],0,0)):1===t?(a.up.set(0,0,r[m]),a.lookAt(0,o[m],0)):(a.up.set(0,r[m],0),a.lookAt(0,0,o[m]));const n=this._cubeSize;fc(i,t*n,m>2?n:0,n,n),l.setRenderTarget(i),h&&l.render(d,a),l.render(e,a)}d.geometry.dispose(),d.material.dispose(),l.toneMapping=c,l.autoClear=s,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===Yi||e.mapping===Ji;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=gc()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=vc());const a=i?this._cubemapMaterial:this._equirectMaterial,r=new vs(this._lodPlanes[0],a);a.uniforms.envMap.value=e;const o=this._cubeSize;fc(t,0,0,3*o,2*o),n.setRenderTarget(t),n.render(r,ac)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let a=1;a<i;a++){const t=Math.sqrt(this._sigmas[a]*this._sigmas[a]-this._sigmas[a-1]*this._sigmas[a-1]),n=hc[(i-a-1)%hc.length];this._blur(e,a-1,a,t,n)}t.autoClear=n}_blur(e,t,n,i,a){const r=this._pingPongRenderTarget;this._halfBlur(e,r,t,n,i,"latitudinal",a),this._halfBlur(r,e,n,n,i,"longitudinal",a)}_halfBlur(e,t,n,i,a,r,o){const l=this._renderer,s=this._blurMaterial,c=new vs(this._lodPlanes[i],s),u=s.uniforms,d=this._sizeLods[n]-1,h=isFinite(a)?Math.PI/(2*d):2*Math.PI/39,p=a/h,m=isFinite(a)?1+Math.floor(3*p):ic,f=[];let v=0;for(let x=0;x<ic;++x){const e=x/p,t=Math.exp(-e*e/2);f.push(t),0===x?v+=t:x<m&&(v+=2*t)}for(let x=0;x<f.length;x++)f[x]=f[x]/v;u.envMap.value=e.texture,u.samples.value=m,u.weights.value=f,u.latitudinal.value="latitudinal"===r,o&&(u.poleAxis.value=o);const{_lodMax:g}=this;u.dTheta.value=h,u.mipInt.value=g-n;const _=this._sizeLods[i];fc(t,3*_*(i>g-4?i-g+4:0),4*(this._cubeSize-_),3*_,2*_),l.setRenderTarget(t),l.render(c,ac)}}function mc(e,t,n){const i=new uo(e,t,n);return i.texture.mapping=Zi,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function fc(e,t,n,i,a){e.viewport.set(t,n,i,a),e.scissor.set(t,n,i,a)}function vc(){return new Ms({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:_c(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function gc(){return new Ms({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:_c(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function _c(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function xc(e){let t=new WeakMap,n=null;function i(e){const n=e.target;n.removeEventListener("dispose",i);const a=t.get(n);void 0!==a&&(t.delete(n),a.dispose())}return{get:function(a){if(a&&a.isTexture){const r=a.mapping,o=303===r||304===r,l=r===Yi||r===Ji;if(o||l){let r=t.get(a);const s=void 0!==r?r.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==s)return null===n&&(n=new pc(e)),r=o?n.fromEquirectangular(a,r):n.fromCubemap(a,r),r.texture.pmremVersion=a.pmremVersion,t.set(a,r),r.texture;if(void 0!==r)return r.texture;{const s=a.image;return o&&s&&s.height>0||l&&s&&function(e){let t=0;const n=6;for(let i=0;i<n;i++)void 0!==e[i]&&t++;return t===n}(s)?(null===n&&(n=new pc(e)),r=o?n.fromEquirectangular(a):n.fromCubemap(a),r.texture.pmremVersion=a.pmremVersion,t.set(a,r),a.addEventListener("dispose",i),r.texture):null}}}return a},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function yc(e){const t={};function n(n){if(void 0!==t[n])return t[n];let i;switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return t[n]=i,i}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){const t=n(e);return null===t&&jr("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Sc(e,t,n,i){const a={},r=new WeakMap;function o(e){const l=e.target;null!==l.index&&t.remove(l.index);for(const n in l.attributes)t.remove(l.attributes[n]);for(const n in l.morphAttributes){const e=l.morphAttributes[n];for(let n=0,i=e.length;n<i;n++)t.remove(e[n])}l.removeEventListener("dispose",o),delete a[l.id];const s=r.get(l);s&&(t.remove(s),r.delete(l)),i.releaseStatesOfGeometry(l),!0===l.isInstancedBufferGeometry&&delete l._maxInstanceCount,n.memory.geometries--}function l(e){const n=[],i=e.index,a=e.attributes.position;let o=0;if(null!==i){const e=i.array;o=i.version;for(let t=0,i=e.length;t<i;t+=3){const i=e[t+0],a=e[t+1],r=e[t+2];n.push(i,a,a,r,r,i)}}else{if(void 0===a)return;{const e=a.array;o=a.version;for(let t=0,i=e.length/3-1;t<i;t+=3){const e=t+0,i=t+1,a=t+2;n.push(e,i,i,a,a,e)}}}const l=new(Hr(n)?Hl:Fl)(n,1);l.version=o;const s=r.get(e);s&&t.remove(s),r.set(e,l)}return{get:function(e,t){return!0===a[t.id]||(t.addEventListener("dispose",o),a[t.id]=!0,n.memory.geometries++),t},update:function(n){const i=n.attributes;for(const r in i)t.update(i[r],e.ARRAY_BUFFER);const a=n.morphAttributes;for(const r in a){const n=a[r];for(let i=0,a=n.length;i<a;i++)t.update(n[i],e.ARRAY_BUFFER)}},getWireframeAttribute:function(e){const t=r.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&l(e)}else l(e);return r.get(e)}}}function bc(e,t,n){let i,a,r;function o(t,o,l){0!==l&&(e.drawElementsInstanced(i,o,a,t*r,l),n.update(o,i,l))}this.setMode=function(e){i=e},this.setIndex=function(e){a=e.type,r=e.bytesPerElement},this.render=function(t,o){e.drawElements(i,o,a,t*r),n.update(o,i,1)},this.renderInstances=o,this.renderMultiDraw=function(e,r,o){if(0===o)return;t.get("WEBGL_multi_draw").multiDrawElementsWEBGL(i,r,0,a,e,0,o);let l=0;for(let t=0;t<o;t++)l+=r[t];n.update(l,i,1)},this.renderMultiDrawInstances=function(e,l,s,c){if(0===s)return;const u=t.get("WEBGL_multi_draw");if(null===u)for(let t=0;t<e.length;t++)o(e[t]/r,l[t],c[t]);else{u.multiDrawElementsInstancedWEBGL(i,l,0,a,e,0,c,0,s);let t=0;for(let e=0;e<s;e++)t+=l[e];for(let e=0;e<c.length;e++)n.update(t,i,c[e])}}}function Mc(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(n,i,a){switch(t.calls++,i){case e.TRIANGLES:t.triangles+=a*(n/3);break;case e.LINES:t.lines+=a*(n/2);break;case e.LINE_STRIP:t.lines+=a*(n-1);break;case e.LINE_LOOP:t.lines+=a*n;break;case e.POINTS:t.points+=a*n}}}}function Ec(e,t,n){const i=new WeakMap,a=new so;return{update:function(r,o,l){const s=r.morphTargetInfluences,c=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,u=void 0!==c?c.length:0;let d=i.get(o);if(void 0===d||d.count!==u){let e=function(){g.dispose(),i.delete(o),o.removeEventListener("dispose",e)};void 0!==d&&d.texture.dispose();const n=void 0!==o.morphAttributes.position,r=void 0!==o.morphAttributes.normal,l=void 0!==o.morphAttributes.color,s=o.morphAttributes.position||[],c=o.morphAttributes.normal||[],h=o.morphAttributes.color||[];let p=0;!0===n&&(p=1),!0===r&&(p=2),!0===l&&(p=3);let m=o.attributes.position.count*p,f=1;m>t.maxTextureSize&&(f=Math.ceil(m/t.maxTextureSize),m=t.maxTextureSize);const v=new Float32Array(m*f*4*u),g=new ho(v,m,f,u);g.type=ma,g.needsUpdate=!0;const _=4*p;for(let t=0;t<u;t++){const e=s[t],i=c[t],o=h[t],u=m*f*4*t;for(let t=0;t<e.count;t++){const s=t*_;!0===n&&(a.fromBufferAttribute(e,t),v[u+s+0]=a.x,v[u+s+1]=a.y,v[u+s+2]=a.z,v[u+s+3]=0),!0===r&&(a.fromBufferAttribute(i,t),v[u+s+4]=a.x,v[u+s+5]=a.y,v[u+s+6]=a.z,v[u+s+7]=0),!0===l&&(a.fromBufferAttribute(o,t),v[u+s+8]=a.x,v[u+s+9]=a.y,v[u+s+10]=a.z,v[u+s+11]=4===o.itemSize?a.w:1)}}d={count:u,texture:g,size:new Vr(m,f)},i.set(o,d),o.addEventListener("dispose",e)}if(!0===r.isInstancedMesh&&null!==r.morphTexture)l.getUniforms().setValue(e,"morphTexture",r.morphTexture,n);else{let t=0;for(let e=0;e<s.length;e++)t+=s[e];const n=o.morphTargetsRelative?1:1-t;l.getUniforms().setValue(e,"morphTargetBaseInfluence",n),l.getUniforms().setValue(e,"morphTargetInfluences",s)}l.getUniforms().setValue(e,"morphTargetsTexture",d.texture,n),l.getUniforms().setValue(e,"morphTargetsTextureSize",d.size)}}}function wc(e,t,n,i){let a=new WeakMap;function r(e){const t=e.target;t.removeEventListener("dispose",r),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(o){const l=i.render.frame,s=o.geometry,c=t.get(o,s);if(a.get(c)!==l&&(t.update(c),a.set(c,l)),o.isInstancedMesh&&(!1===o.hasEventListener("dispose",r)&&o.addEventListener("dispose",r),a.get(o)!==l&&(n.update(o.instanceMatrix,e.ARRAY_BUFFER),null!==o.instanceColor&&n.update(o.instanceColor,e.ARRAY_BUFFER),a.set(o,l))),o.isSkinnedMesh){const e=o.skeleton;a.get(e)!==l&&(e.update(),a.set(e,l))}return c},dispose:function(){a=new WeakMap}}}class Tc extends lo{constructor(e,t,n,i,a,r,o,l,s,c=1026){if(c!==wa&&c!==Ta)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===wa&&(n=pa),void 0===n&&c===Ta&&(n=_a),super(null,i,a,r,o,l,c,n,s),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==o?o:na,this.minFilter=void 0!==l?l:na,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}const Cc=new lo,Ac=new Tc(1,1),Nc=new ho,Rc=new po,Lc=new Ls,Pc=[],qc=[],Ic=new Float32Array(16),zc=new Float32Array(9),kc=new Float32Array(4);function Bc(e,t,n){const i=e[0];if(i<=0||i>0)return e;const a=t*n;let r=Pc[a];if(void 0===r&&(r=new Float32Array(a),Pc[a]=r),0!==t){i.toArray(r,0);for(let i=1,a=0;i!==t;++i)a+=n,e[i].toArray(r,a)}return r}function Dc(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function Uc(e,t){for(let n=0,i=t.length;n<i;n++)e[n]=t[n]}function Vc(e,t){let n=qc[t];void 0===n&&(n=new Int32Array(t),qc[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function Oc(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Fc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Dc(n,t))return;e.uniform2fv(this.addr,t),Uc(n,t)}}function Hc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Dc(n,t))return;e.uniform3fv(this.addr,t),Uc(n,t)}}function Gc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Dc(n,t))return;e.uniform4fv(this.addr,t),Uc(n,t)}}function Wc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Dc(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Uc(n,t)}else{if(Dc(n,i))return;kc.set(i),e.uniformMatrix2fv(this.addr,!1,kc),Uc(n,i)}}function Xc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Dc(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Uc(n,t)}else{if(Dc(n,i))return;zc.set(i),e.uniformMatrix3fv(this.addr,!1,zc),Uc(n,i)}}function jc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Dc(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Uc(n,t)}else{if(Dc(n,i))return;Ic.set(i),e.uniformMatrix4fv(this.addr,!1,Ic),Uc(n,i)}}function $c(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Kc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Dc(n,t))return;e.uniform2iv(this.addr,t),Uc(n,t)}}function Yc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Dc(n,t))return;e.uniform3iv(this.addr,t),Uc(n,t)}}function Jc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Dc(n,t))return;e.uniform4iv(this.addr,t),Uc(n,t)}}function Zc(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function Qc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Dc(n,t))return;e.uniform2uiv(this.addr,t),Uc(n,t)}}function eu(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Dc(n,t))return;e.uniform3uiv(this.addr,t),Uc(n,t)}}function tu(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Dc(n,t))return;e.uniform4uiv(this.addr,t),Uc(n,t)}}function nu(e,t,n){const i=this.cache,a=n.allocateTextureUnit();let r;i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),this.type===e.SAMPLER_2D_SHADOW?(Ac.compareFunction=Mr,r=Ac):r=Cc,n.setTexture2D(t||r,a)}function iu(e,t,n){const i=this.cache,a=n.allocateTextureUnit();i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),n.setTexture3D(t||Rc,a)}function au(e,t,n){const i=this.cache,a=n.allocateTextureUnit();i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),n.setTextureCube(t||Lc,a)}function ru(e,t,n){const i=this.cache,a=n.allocateTextureUnit();i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),n.setTexture2DArray(t||Nc,a)}function ou(e,t){e.uniform1fv(this.addr,t)}function lu(e,t){const n=Bc(t,this.size,2);e.uniform2fv(this.addr,n)}function su(e,t){const n=Bc(t,this.size,3);e.uniform3fv(this.addr,n)}function cu(e,t){const n=Bc(t,this.size,4);e.uniform4fv(this.addr,n)}function uu(e,t){const n=Bc(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function du(e,t){const n=Bc(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function hu(e,t){const n=Bc(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function pu(e,t){e.uniform1iv(this.addr,t)}function mu(e,t){e.uniform2iv(this.addr,t)}function fu(e,t){e.uniform3iv(this.addr,t)}function vu(e,t){e.uniform4iv(this.addr,t)}function gu(e,t){e.uniform1uiv(this.addr,t)}function _u(e,t){e.uniform2uiv(this.addr,t)}function xu(e,t){e.uniform3uiv(this.addr,t)}function yu(e,t){e.uniform4uiv(this.addr,t)}function Su(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTexture2D(t[o]||Cc,r[o])}function bu(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTexture3D(t[o]||Rc,r[o])}function Mu(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTextureCube(t[o]||Lc,r[o])}function Eu(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTexture2DArray(t[o]||Nc,r[o])}class wu{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=function(e){switch(e){case 5126:return Oc;case 35664:return Fc;case 35665:return Hc;case 35666:return Gc;case 35674:return Wc;case 35675:return Xc;case 35676:return jc;case 5124:case 35670:return $c;case 35667:case 35671:return Kc;case 35668:case 35672:return Yc;case 35669:case 35673:return Jc;case 5125:return Zc;case 36294:return Qc;case 36295:return eu;case 36296:return tu;case 35678:case 36198:case 36298:case 36306:case 35682:return nu;case 35679:case 36299:case 36307:return iu;case 35680:case 36300:case 36308:case 36293:return au;case 36289:case 36303:case 36311:case 36292:return ru}}(t.type)}}class Tu{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=function(e){switch(e){case 5126:return ou;case 35664:return lu;case 35665:return su;case 35666:return cu;case 35674:return uu;case 35675:return du;case 35676:return hu;case 5124:case 35670:return pu;case 35667:case 35671:return mu;case 35668:case 35672:return fu;case 35669:case 35673:return vu;case 5125:return gu;case 36294:return _u;case 36295:return xu;case 36296:return yu;case 35678:case 36198:case 36298:case 36306:case 35682:return Su;case 35679:case 36299:case 36307:return bu;case 35680:case 36300:case 36308:case 36293:return Mu;case 36289:case 36303:case 36311:case 36292:return Eu}}(t.type)}}class Cu{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const i=this.seq;for(let a=0,r=i.length;a!==r;++a){const r=i[a];r.setValue(e,t[r.id],n)}}}const Au=/(\w+)(\])?(\[|\.)?/g;function Nu(e,t){e.seq.push(t),e.map[t.id]=t}function Ru(e,t,n){const i=e.name,a=i.length;for(Au.lastIndex=0;;){const r=Au.exec(i),o=Au.lastIndex;let l=r[1];const s="]"===r[2],c=r[3];if(s&&(l|=0),void 0===c||"["===c&&o+2===a){Nu(n,void 0===c?new wu(l,e,t):new Tu(l,e,t));break}{let e=n.map[l];void 0===e&&(e=new Cu(l),Nu(n,e)),n=e}}}class Lu{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=e.getActiveUniform(t,i);Ru(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,i){const a=this.map[t];void 0!==a&&a.setValue(e,n,i)}setOptional(e,t,n){const i=t[n];void 0!==i&&this.setValue(e,n,i)}static upload(e,t,n,i){for(let a=0,r=t.length;a!==r;++a){const r=t[a],o=n[r.id];!1!==o.needsUpdate&&r.setValue(e,o.value,i)}}static seqWithValue(e,t){const n=[];for(let i=0,a=e.length;i!==a;++i){const a=e[i];a.id in t&&n.push(a)}return n}}function Pu(e,t,n){const i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),i}const qu=37297;let Iu=0;function zu(e,t,n){const i=e.getShaderParameter(t,e.COMPILE_STATUS),a=e.getShaderInfoLog(t).trim();if(i&&""===a)return"";const r=/ERROR: 0:(\d+)/.exec(a);if(r){const i=parseInt(r[1]);return n.toUpperCase()+"\n\n"+a+"\n\n"+function(e,t){const n=e.split("\n"),i=[],a=Math.max(t-6,0),r=Math.min(t+6,n.length);for(let o=a;o<r;o++){const e=o+1;i.push(`${e===t?">":" "} ${e}: ${n[o]}`)}return i.join("\n")}(e.getShaderSource(t),i)}return a}function ku(e,t){const n=function(e){const t=Zr.getPrimaries(Zr.workingColorSpace),n=Zr.getPrimaries(e);let i;switch(t===n?i="":t===_r&&n===gr?i="LinearDisplayP3ToLinearSRGB":t===gr&&n===_r&&(i="LinearSRGBToLinearDisplayP3"),e){case hr:case mr:return[i,"LinearTransferOETF"];case dr:case pr:return[i,"sRGBTransferOETF"];default:return[i,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function Bu(e,t){let n;switch(t){case Hi:n="Linear";break;case Gi:n="Reinhard";break;case Wi:n="OptimizedCineon";break;case Xi:n="ACESFilmic";break;case $i:n="AgX";break;case Ki:n="Neutral";break;case ji:n="Custom";break;default:n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Du(e){return""!==e}function Uu(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Vu(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const Ou=/^[ \t]*#include +<([\w\d./]+)>/gm;function Fu(e){return e.replace(Ou,Gu)}const Hu=new Map;function Gu(e,t){let n=Hs[t];if(void 0===n){const e=Hu.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Hs[e]}return Fu(n)}const Wu=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Xu(e){return e.replace(Wu,ju)}function ju(e,t,n,i){let a="";for(let r=parseInt(t);r<parseInt(n);r++)a+=i.replace(/\[\s*i\s*\]/g,"[ "+r+" ]").replace(/UNROLLED_LOOP_INDEX/g,r);return a}function $u(e){let t=`precision ${e.precision} float;\n\tprecision ${e.precision} int;\n\tprecision ${e.precision} sampler2D;\n\tprecision ${e.precision} samplerCube;\n\tprecision ${e.precision} sampler3D;\n\tprecision ${e.precision} sampler2DArray;\n\tprecision ${e.precision} sampler2DShadow;\n\tprecision ${e.precision} samplerCubeShadow;\n\tprecision ${e.precision} sampler2DArrayShadow;\n\tprecision ${e.precision} isampler2D;\n\tprecision ${e.precision} isampler3D;\n\tprecision ${e.precision} isamplerCube;\n\tprecision ${e.precision} isampler2DArray;\n\tprecision ${e.precision} usampler2D;\n\tprecision ${e.precision} usampler3D;\n\tprecision ${e.precision} usamplerCube;\n\tprecision ${e.precision} usampler2DArray;\n\t`;return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function Ku(e,t,n,i){const a=e.getContext(),r=n.defines;let o=n.vertexShader,l=n.fragmentShader;const s=function(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===fi?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===vi?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===gi&&(t="SHADOWMAP_TYPE_VSM"),t}(n),c=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case Yi:case Ji:t="ENVMAP_TYPE_CUBE";break;case Zi:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),u=function(e){let t="ENVMAP_MODE_REFLECTION";e.envMap&&e.envMapMode===Ji&&(t="ENVMAP_MODE_REFRACTION");return t}(n),d=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case Ui:t="ENVMAP_BLENDING_MULTIPLY";break;case Vi:t="ENVMAP_BLENDING_MIX";break;case Oi:t="ENVMAP_BLENDING_ADD"}return t}(n),h=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,i=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:i,maxMip:n}}(n),p=function(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Du).join("\n")}(n),m=function(e){const t=[];for(const n in e){const i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}(r),f=a.createProgram();let v,g,_=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Du).join("\n"),v.length>0&&(v+="\n"),g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Du).join("\n"),g.length>0&&(g+="\n")):(v=[$u(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+s:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Du).join("\n"),g=[$u(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+s:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Fi?"#define TONE_MAPPING":"",n.toneMapping!==Fi?Hs.tonemapping_pars_fragment:"",n.toneMapping!==Fi?Bu("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Hs.colorspace_pars_fragment,ku("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Du).join("\n")),o=Fu(o),o=Uu(o,n),o=Vu(o,n),l=Fu(l),l=Uu(l,n),l=Vu(l,n),o=Xu(o),l=Xu(l),!0!==n.isRawShaderMaterial&&(_="#version 300 es\n",v=[p,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+v,g=["#define varying in",n.glslVersion===Ar?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Ar?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+g);const x=_+v+o,y=_+g+l,S=Pu(a,a.VERTEX_SHADER,x),b=Pu(a,a.FRAGMENT_SHADER,y);function M(t){if(e.debug.checkShaderErrors){const n=a.getProgramInfoLog(f).trim(),i=a.getShaderInfoLog(S).trim(),r=a.getShaderInfoLog(b).trim();let o=!0,l=!0;if(!1===a.getProgramParameter(f,a.LINK_STATUS))if(o=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(a,f,S,b);else{zu(a,S,"vertex"),zu(a,b,"fragment")}else""!==n||""!==i&&""!==r||(l=!1);l&&(t.diagnostics={runnable:o,programLog:n,vertexShader:{log:i,prefix:v},fragmentShader:{log:r,prefix:g}})}a.deleteShader(S),a.deleteShader(b),E=new Lu(a,f),w=function(e,t){const n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a<i;a++){const i=e.getActiveAttrib(t,a),r=i.name;let o=1;i.type===e.FLOAT_MAT2&&(o=2),i.type===e.FLOAT_MAT3&&(o=3),i.type===e.FLOAT_MAT4&&(o=4),n[r]={type:i.type,location:e.getAttribLocation(t,r),locationSize:o}}return n}(a,f)}let E,w;a.attachShader(f,S),a.attachShader(f,b),void 0!==n.index0AttributeName?a.bindAttribLocation(f,0,n.index0AttributeName):!0===n.morphTargets&&a.bindAttribLocation(f,0,"position"),a.linkProgram(f),this.getUniforms=function(){return void 0===E&&M(this),E},this.getAttributes=function(){return void 0===w&&M(this),w};let T=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===T&&(T=a.getProgramParameter(f,qu)),T},this.destroy=function(){i.releaseStatesOfProgram(this),a.deleteProgram(f),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Iu++,this.cacheKey=t,this.usedTimes=1,this.program=f,this.vertexShader=S,this.fragmentShader=b,this}let Yu=0;class Ju{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),a=this._getShaderStage(n),r=this._getShaderCacheForMaterial(e);return!1===r.has(i)&&(r.add(i),i.usedTimes++),!1===r.has(a)&&(r.add(a),a.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new Zu(e),t.set(e,n)),n}}class Zu{constructor(e){this.id=Yu++,this.code=e,this.usedTimes=0}}function Qu(e,t,n,i,a,r,o){const l=new nl,s=new Ju,c=new Set,u=[],d=a.logarithmicDepthBuffer,h=a.vertexTextures;let p=a.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function f(e){return c.add(e),0===e?"uv":`uv${e}`}return{getParameters:function(r,l,u,v,g){const _=v.fog,x=g.geometry,y=r.isMeshStandardMaterial?v.environment:null,S=(r.isMeshStandardMaterial?n:t).get(r.envMap||y),b=S&&S.mapping===Zi?S.image.height:null,M=m[r.type];null!==r.precision&&(p=a.getMaxPrecision(r.precision),r.precision);const E=x.morphAttributes.position||x.morphAttributes.normal||x.morphAttributes.color,w=void 0!==E?E.length:0;let T,C,A,N,R=0;if(void 0!==x.morphAttributes.position&&(R=1),void 0!==x.morphAttributes.normal&&(R=2),void 0!==x.morphAttributes.color&&(R=3),M){const e=Ws[M];T=e.vertexShader,C=e.fragmentShader}else T=r.vertexShader,C=r.fragmentShader,s.update(r),A=s.getVertexShaderID(r),N=s.getFragmentShaderID(r);const L=e.getRenderTarget(),P=!0===g.isInstancedMesh,q=!0===g.isBatchedMesh,I=!!r.map,z=!!r.matcap,k=!!S,B=!!r.aoMap,D=!!r.lightMap,U=!!r.bumpMap,V=!!r.normalMap,O=!!r.displacementMap,F=!!r.emissiveMap,H=!!r.metalnessMap,G=!!r.roughnessMap,W=r.anisotropy>0,X=r.clearcoat>0,j=r.dispersion>0,$=r.iridescence>0,K=r.sheen>0,Y=r.transmission>0,J=W&&!!r.anisotropyMap,Z=X&&!!r.clearcoatMap,Q=X&&!!r.clearcoatNormalMap,ee=X&&!!r.clearcoatRoughnessMap,te=$&&!!r.iridescenceMap,ne=$&&!!r.iridescenceThicknessMap,ie=K&&!!r.sheenColorMap,ae=K&&!!r.sheenRoughnessMap,re=!!r.specularMap,oe=!!r.specularColorMap,le=!!r.specularIntensityMap,se=Y&&!!r.transmissionMap,ce=Y&&!!r.thicknessMap,ue=!!r.gradientMap,de=!!r.alphaMap,he=r.alphaTest>0,pe=!!r.alphaHash,me=!!r.extensions;let fe=Fi;r.toneMapped&&(null!==L&&!0!==L.isXRRenderTarget||(fe=e.toneMapping));const ve={shaderID:M,shaderType:r.type,shaderName:r.name,vertexShader:T,fragmentShader:C,defines:r.defines,customVertexShaderID:A,customFragmentShaderID:N,isRawShaderMaterial:!0===r.isRawShaderMaterial,glslVersion:r.glslVersion,precision:p,batching:q,batchingColor:q&&null!==g._colorsTexture,instancing:P,instancingColor:P&&null!==g.instanceColor,instancingMorph:P&&null!==g.morphTexture,supportsVertexTextures:h,outputColorSpace:null===L?e.outputColorSpace:!0===L.isXRRenderTarget?L.texture.colorSpace:hr,alphaToCoverage:!!r.alphaToCoverage,map:I,matcap:z,envMap:k,envMapMode:k&&S.mapping,envMapCubeUVHeight:b,aoMap:B,lightMap:D,bumpMap:U,normalMap:V,displacementMap:h&&O,emissiveMap:F,normalMapObjectSpace:V&&1===r.normalMapType,normalMapTangentSpace:V&&0===r.normalMapType,metalnessMap:H,roughnessMap:G,anisotropy:W,anisotropyMap:J,clearcoat:X,clearcoatMap:Z,clearcoatNormalMap:Q,clearcoatRoughnessMap:ee,dispersion:j,iridescence:$,iridescenceMap:te,iridescenceThicknessMap:ne,sheen:K,sheenColorMap:ie,sheenRoughnessMap:ae,specularMap:re,specularColorMap:oe,specularIntensityMap:le,transmission:Y,transmissionMap:se,thicknessMap:ce,gradientMap:ue,opaque:!1===r.transparent&&1===r.blending&&!1===r.alphaToCoverage,alphaMap:de,alphaTest:he,alphaHash:pe,combine:r.combine,mapUv:I&&f(r.map.channel),aoMapUv:B&&f(r.aoMap.channel),lightMapUv:D&&f(r.lightMap.channel),bumpMapUv:U&&f(r.bumpMap.channel),normalMapUv:V&&f(r.normalMap.channel),displacementMapUv:O&&f(r.displacementMap.channel),emissiveMapUv:F&&f(r.emissiveMap.channel),metalnessMapUv:H&&f(r.metalnessMap.channel),roughnessMapUv:G&&f(r.roughnessMap.channel),anisotropyMapUv:J&&f(r.anisotropyMap.channel),clearcoatMapUv:Z&&f(r.clearcoatMap.channel),clearcoatNormalMapUv:Q&&f(r.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ee&&f(r.clearcoatRoughnessMap.channel),iridescenceMapUv:te&&f(r.iridescenceMap.channel),iridescenceThicknessMapUv:ne&&f(r.iridescenceThicknessMap.channel),sheenColorMapUv:ie&&f(r.sheenColorMap.channel),sheenRoughnessMapUv:ae&&f(r.sheenRoughnessMap.channel),specularMapUv:re&&f(r.specularMap.channel),specularColorMapUv:oe&&f(r.specularColorMap.channel),specularIntensityMapUv:le&&f(r.specularIntensityMap.channel),transmissionMapUv:se&&f(r.transmissionMap.channel),thicknessMapUv:ce&&f(r.thicknessMap.channel),alphaMapUv:de&&f(r.alphaMap.channel),vertexTangents:!!x.attributes.tangent&&(V||W),vertexColors:r.vertexColors,vertexAlphas:!0===r.vertexColors&&!!x.attributes.color&&4===x.attributes.color.itemSize,pointsUvs:!0===g.isPoints&&!!x.attributes.uv&&(I||de),fog:!!_,useFog:!0===r.fog,fogExp2:!!_&&_.isFogExp2,flatShading:!0===r.flatShading,sizeAttenuation:!0===r.sizeAttenuation,logarithmicDepthBuffer:d,skinning:!0===g.isSkinnedMesh,morphTargets:void 0!==x.morphAttributes.position,morphNormals:void 0!==x.morphAttributes.normal,morphColors:void 0!==x.morphAttributes.color,morphTargetsCount:w,morphTextureStride:R,numDirLights:l.directional.length,numPointLights:l.point.length,numSpotLights:l.spot.length,numSpotLightMaps:l.spotLightMap.length,numRectAreaLights:l.rectArea.length,numHemiLights:l.hemi.length,numDirLightShadows:l.directionalShadowMap.length,numPointLightShadows:l.pointShadowMap.length,numSpotLightShadows:l.spotShadowMap.length,numSpotLightShadowsWithMaps:l.numSpotLightShadowsWithMaps,numLightProbes:l.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:r.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:fe,decodeVideoTexture:I&&!0===r.map.isVideoTexture&&Zr.getTransfer(r.map.colorSpace)===vr,premultipliedAlpha:r.premultipliedAlpha,doubleSided:2===r.side,flipSided:r.side===xi,useDepthPacking:r.depthPacking>=0,depthPacking:r.depthPacking||0,index0AttributeName:r.index0AttributeName,extensionClipCullDistance:me&&!0===r.extensions.clipCullDistance&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(me&&!0===r.extensions.multiDraw||q)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:r.customProgramCacheKey()};return ve.vertexUv1s=c.has(1),ve.vertexUv2s=c.has(2),ve.vertexUv3s=c.has(3),c.clear(),ve},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){l.disableAll(),t.supportsVertexTextures&&l.enable(0);t.instancing&&l.enable(1);t.instancingColor&&l.enable(2);t.instancingMorph&&l.enable(3);t.matcap&&l.enable(4);t.envMap&&l.enable(5);t.normalMapObjectSpace&&l.enable(6);t.normalMapTangentSpace&&l.enable(7);t.clearcoat&&l.enable(8);t.iridescence&&l.enable(9);t.alphaTest&&l.enable(10);t.vertexColors&&l.enable(11);t.vertexAlphas&&l.enable(12);t.vertexUv1s&&l.enable(13);t.vertexUv2s&&l.enable(14);t.vertexUv3s&&l.enable(15);t.vertexTangents&&l.enable(16);t.anisotropy&&l.enable(17);t.alphaHash&&l.enable(18);t.batching&&l.enable(19);t.dispersion&&l.enable(20);t.batchingColor&&l.enable(21);e.push(l.mask),l.disableAll(),t.fog&&l.enable(0);t.useFog&&l.enable(1);t.flatShading&&l.enable(2);t.logarithmicDepthBuffer&&l.enable(3);t.skinning&&l.enable(4);t.morphTargets&&l.enable(5);t.morphNormals&&l.enable(6);t.morphColors&&l.enable(7);t.premultipliedAlpha&&l.enable(8);t.shadowMapEnabled&&l.enable(9);t.doubleSided&&l.enable(10);t.flipSided&&l.enable(11);t.useDepthPacking&&l.enable(12);t.dithering&&l.enable(13);t.transmission&&l.enable(14);t.sheen&&l.enable(15);t.opaque&&l.enable(16);t.pointsUvs&&l.enable(17);t.decodeVideoTexture&&l.enable(18);t.alphaToCoverage&&l.enable(19);e.push(l.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=m[e.type];let n;if(t){const e=Ws[t];n=bs.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let i;for(let e=0,a=u.length;e<a;e++){const t=u[e];if(t.cacheKey===n){i=t,++i.usedTimes;break}}return void 0===i&&(i=new Ku(e,n,t,r),u.push(i)),i},releaseProgram:function(e){if(0==--e.usedTimes){const t=u.indexOf(e);u[t]=u[u.length-1],u.pop(),e.destroy()}},releaseShaderCache:function(e){s.remove(e)},programs:u,dispose:function(){s.dispose()}}}function ed(){let e=new WeakMap;return{get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,i){e.get(t)[n]=i},dispose:function(){e=new WeakMap}}}function td(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function nd(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function id(){const e=[];let t=0;const n=[],i=[],a=[];function r(n,i,a,r,o,l){let s=e[t];return void 0===s?(s={id:n.id,object:n,geometry:i,material:a,groupOrder:r,renderOrder:n.renderOrder,z:o,group:l},e[t]=s):(s.id=n.id,s.object=n,s.geometry=i,s.material=a,s.groupOrder=r,s.renderOrder=n.renderOrder,s.z=o,s.group=l),t++,s}return{opaque:n,transmissive:i,transparent:a,init:function(){t=0,n.length=0,i.length=0,a.length=0},push:function(e,t,o,l,s,c){const u=r(e,t,o,l,s,c);o.transmission>0?i.push(u):!0===o.transparent?a.push(u):n.push(u)},unshift:function(e,t,o,l,s,c){const u=r(e,t,o,l,s,c);o.transmission>0?i.unshift(u):!0===o.transparent?a.unshift(u):n.unshift(u)},finish:function(){for(let n=t,i=e.length;n<i;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||td),i.length>1&&i.sort(t||nd),a.length>1&&a.sort(t||nd)}}}function ad(){let e=new WeakMap;return{get:function(t,n){const i=e.get(t);let a;return void 0===i?(a=new id,e.set(t,[a])):n>=i.length?(a=new id,i.push(a)):a=i[n],a},dispose:function(){e=new WeakMap}}}function rd(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new fo,color:new Il};break;case"SpotLight":n={position:new fo,direction:new fo,color:new Il,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new fo,color:new Il,distance:0,decay:0};break;case"HemisphereLight":n={direction:new fo,skyColor:new Il,groundColor:new Il};break;case"RectAreaLight":n={color:new Il,position:new fo,halfWidth:new fo,halfHeight:new fo}}return e[t.id]=n,n}}}let od=0;function ld(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function sd(e){const t=new rd,n=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vr};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vr,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let l=0;l<9;l++)i.probe.push(new fo);const a=new fo,r=new Wo,o=new Wo;return{setup:function(a){let r=0,o=0,l=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let s=0,c=0,u=0,d=0,h=0,p=0,m=0,f=0,v=0,g=0,_=0;a.sort(ld);for(let e=0,y=a.length;e<y;e++){const x=a[e],y=x.color,S=x.intensity,b=x.distance,M=x.shadow&&x.shadow.map?x.shadow.map.texture:null;if(x.isAmbientLight)r+=y.r*S,o+=y.g*S,l+=y.b*S;else if(x.isLightProbe){for(let e=0;e<9;e++)i.probe[e].addScaledVector(x.sh.coefficients[e],S);_++}else if(x.isDirectionalLight){const e=t.get(x);if(e.color.copy(x.color).multiplyScalar(x.intensity),x.castShadow){const e=x.shadow,t=n.get(x);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,i.directionalShadow[s]=t,i.directionalShadowMap[s]=M,i.directionalShadowMatrix[s]=x.shadow.matrix,p++}i.directional[s]=e,s++}else if(x.isSpotLight){const e=t.get(x);e.position.setFromMatrixPosition(x.matrixWorld),e.color.copy(y).multiplyScalar(S),e.distance=b,e.coneCos=Math.cos(x.angle),e.penumbraCos=Math.cos(x.angle*(1-x.penumbra)),e.decay=x.decay,i.spot[u]=e;const a=x.shadow;if(x.map&&(i.spotLightMap[v]=x.map,v++,a.updateMatrices(x),x.castShadow&&g++),i.spotLightMatrix[u]=a.matrix,x.castShadow){const e=n.get(x);e.shadowIntensity=a.intensity,e.shadowBias=a.bias,e.shadowNormalBias=a.normalBias,e.shadowRadius=a.radius,e.shadowMapSize=a.mapSize,i.spotShadow[u]=e,i.spotShadowMap[u]=M,f++}u++}else if(x.isRectAreaLight){const e=t.get(x);e.color.copy(y).multiplyScalar(S),e.halfWidth.set(.5*x.width,0,0),e.halfHeight.set(0,.5*x.height,0),i.rectArea[d]=e,d++}else if(x.isPointLight){const e=t.get(x);if(e.color.copy(x.color).multiplyScalar(x.intensity),e.distance=x.distance,e.decay=x.decay,x.castShadow){const e=x.shadow,t=n.get(x);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,i.pointShadow[c]=t,i.pointShadowMap[c]=M,i.pointShadowMatrix[c]=x.shadow.matrix,m++}i.point[c]=e,c++}else if(x.isHemisphereLight){const e=t.get(x);e.skyColor.copy(x.color).multiplyScalar(S),e.groundColor.copy(x.groundColor).multiplyScalar(S),i.hemi[h]=e,h++}}d>0&&(!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Gs.LTC_FLOAT_1,i.rectAreaLTC2=Gs.LTC_FLOAT_2):(i.rectAreaLTC1=Gs.LTC_HALF_1,i.rectAreaLTC2=Gs.LTC_HALF_2)),i.ambient[0]=r,i.ambient[1]=o,i.ambient[2]=l;const x=i.hash;x.directionalLength===s&&x.pointLength===c&&x.spotLength===u&&x.rectAreaLength===d&&x.hemiLength===h&&x.numDirectionalShadows===p&&x.numPointShadows===m&&x.numSpotShadows===f&&x.numSpotMaps===v&&x.numLightProbes===_||(i.directional.length=s,i.spot.length=u,i.rectArea.length=d,i.point.length=c,i.hemi.length=h,i.directionalShadow.length=p,i.directionalShadowMap.length=p,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=f,i.spotShadowMap.length=f,i.directionalShadowMatrix.length=p,i.pointShadowMatrix.length=m,i.spotLightMatrix.length=f+v-g,i.spotLightMap.length=v,i.numSpotLightShadowsWithMaps=g,i.numLightProbes=_,x.directionalLength=s,x.pointLength=c,x.spotLength=u,x.rectAreaLength=d,x.hemiLength=h,x.numDirectionalShadows=p,x.numPointShadows=m,x.numSpotShadows=f,x.numSpotMaps=v,x.numLightProbes=_,i.version=od++)},setupView:function(e,t){let n=0,l=0,s=0,c=0,u=0;const d=t.matrixWorldInverse;for(let h=0,p=e.length;h<p;h++){const t=e[h];if(t.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(t.matrixWorld),a.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(d),n++}else if(t.isSpotLight){const e=i.spot[s];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(t.matrixWorld),a.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(d),s++}else if(t.isRectAreaLight){const e=i.rectArea[c];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),o.identity(),r.copy(t.matrixWorld),r.premultiply(d),o.extractRotation(r),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),e.halfWidth.applyMatrix4(o),e.halfHeight.applyMatrix4(o),c++}else if(t.isPointLight){const e=i.point[l];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),l++}else if(t.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(t.matrixWorld),e.direction.transformDirection(d),u++}}},state:i}}function cd(e){const t=new sd(e),n=[],i=[];const a={lightsArray:n,shadowsArray:i,camera:null,lights:t,transmissionRenderTarget:{}};return{init:function(e){a.camera=e,n.length=0,i.length=0},state:a,setupLights:function(){t.setup(n)},setupLightsView:function(e){t.setupView(n,e)},pushLight:function(e){n.push(e)},pushShadow:function(e){i.push(e)}}}function ud(e){let t=new WeakMap;return{get:function(n,i=0){const a=t.get(n);let r;return void 0===a?(r=new cd(e),t.set(n,[r])):i>=a.length?(r=new cd(e),a.push(r)):r=a[i],r},dispose:function(){t=new WeakMap}}}class dd extends Bl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class hd extends Bl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function pd(e,t,n){let i=new Us;const a=new Vr,r=new Vr,o=new so,l=new dd({depthPacking:3201}),s=new hd,c={},u=n.maxTextureSize,d={[_i]:xi,[xi]:_i,[yi]:2},h=new Ms({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Vr},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),p=h.clone();p.defines.HORIZONTAL_PASS=1;const m=new Zl;m.setAttribute("position",new Ol(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const f=new vs(m,h),v=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=fi;let g=this.type;function _(n,i){const r=t.update(f);h.defines.VSM_SAMPLES!==n.blurSamples&&(h.defines.VSM_SAMPLES=n.blurSamples,p.defines.VSM_SAMPLES=n.blurSamples,h.needsUpdate=!0,p.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new uo(a.x,a.y)),h.uniforms.shadow_pass.value=n.map.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(i,null,r,h,f,null),p.uniforms.shadow_pass.value=n.mapPass.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(i,null,r,p,f,null)}function x(t,n,i,a){let r=null;const o=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==o)r=o;else if(r=!0===i.isPointLight?s:l,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=r.uuid,t=n.uuid;let i=c[e];void 0===i&&(i={},c[e]=i);let a=i[t];void 0===a&&(a=r.clone(),i[t]=a,n.addEventListener("dispose",S)),r=a}if(r.visible=n.visible,r.wireframe=n.wireframe,r.side=a===gi?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],r.alphaMap=n.alphaMap,r.alphaTest=n.alphaTest,r.map=n.map,r.clipShadows=n.clipShadows,r.clippingPlanes=n.clippingPlanes,r.clipIntersection=n.clipIntersection,r.displacementMap=n.displacementMap,r.displacementScale=n.displacementScale,r.displacementBias=n.displacementBias,r.wireframeLinewidth=n.wireframeLinewidth,r.linewidth=n.linewidth,!0===i.isPointLight&&!0===r.isMeshDistanceMaterial){e.properties.get(r).light=i}return r}function y(n,a,r,o,l){if(!1===n.visible)return;if(n.layers.test(a.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&l===gi)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(r.matrixWorldInverse,n.matrixWorld);const i=t.update(n),s=n.material;if(Array.isArray(s)){const t=i.groups;for(let c=0,u=t.length;c<u;c++){const u=t[c],d=s[u.materialIndex];if(d&&d.visible){const t=x(n,d,o,l);n.onBeforeShadow(e,n,a,r,i,t,u),e.renderBufferDirect(r,null,i,t,n,u),n.onAfterShadow(e,n,a,r,i,t,u)}}}else if(s.visible){const t=x(n,s,o,l);n.onBeforeShadow(e,n,a,r,i,t,null),e.renderBufferDirect(r,null,i,t,n,null),n.onAfterShadow(e,n,a,r,i,t,null)}}const s=n.children;for(let e=0,t=s.length;e<t;e++)y(s[e],a,r,o,l)}function S(e){e.target.removeEventListener("dispose",S);for(const t in c){const n=c[t],i=e.target.uuid;if(i in n){n[i].dispose(),delete n[i]}}}this.render=function(t,n,l){if(!1===v.enabled)return;if(!1===v.autoUpdate&&!1===v.needsUpdate)return;if(0===t.length)return;const s=e.getRenderTarget(),c=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),h=e.state;h.setBlending(0),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);const p=g!==gi&&this.type===gi,m=g===gi&&this.type!==gi;for(let f=0,v=t.length;f<v;f++){const s=t[f],c=s.shadow;if(void 0===c)continue;if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;a.copy(c.mapSize);const d=c.getFrameExtents();if(a.multiply(d),r.copy(c.mapSize),(a.x>u||a.y>u)&&(a.x>u&&(r.x=Math.floor(u/d.x),a.x=r.x*d.x,c.mapSize.x=r.x),a.y>u&&(r.y=Math.floor(u/d.y),a.y=r.y*d.y,c.mapSize.y=r.y)),null===c.map||!0===p||!0===m){const e=this.type!==gi?{minFilter:na,magFilter:na}:{};null!==c.map&&c.map.dispose(),c.map=new uo(a.x,a.y,e),c.map.texture.name=s.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const v=c.getViewportCount();for(let e=0;e<v;e++){const t=c.getViewport(e);o.set(r.x*t.x,r.y*t.y,r.x*t.z,r.y*t.w),h.viewport(o),c.updateMatrices(s,e),i=c.getFrustum(),y(n,l,c.camera,s,this.type)}!0!==c.isPointLightShadow&&this.type===gi&&_(c,l),c.needsUpdate=!1}g=this.type,v.needsUpdate=!1,e.setRenderTarget(s,c,d)}}function md(e){const t=new function(){let t=!1;const n=new so;let i=null;const a=new so(0,0,0,0);return{setMask:function(n){i===n||t||(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,r,o,l){!0===l&&(t*=o,i*=o,r*=o),n.set(t,i,r,o),!1===a.equals(n)&&(e.clearColor(t,i,r,o),a.copy(n))},reset:function(){t=!1,i=null,a.set(-1,0,0,0)}}},n=new function(){let t=!1,n=null,i=null,a=null;return{setTest:function(t){t?U(e.DEPTH_TEST):V(e.DEPTH_TEST)},setMask:function(i){n===i||t||(e.depthMask(i),n=i)},setFunc:function(t){if(i!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:default:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL)}i=t}},setLocked:function(e){t=e},setClear:function(t){a!==t&&(e.clearDepth(t),a=t)},reset:function(){t=!1,n=null,i=null,a=null}}},i=new function(){let t=!1,n=null,i=null,a=null,r=null,o=null,l=null,s=null,c=null;return{setTest:function(n){t||(n?U(e.STENCIL_TEST):V(e.STENCIL_TEST))},setMask:function(i){n===i||t||(e.stencilMask(i),n=i)},setFunc:function(t,n,o){i===t&&a===n&&r===o||(e.stencilFunc(t,n,o),i=t,a=n,r=o)},setOp:function(t,n,i){o===t&&l===n&&s===i||(e.stencilOp(t,n,i),o=t,l=n,s=i)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,i=null,a=null,r=null,o=null,l=null,s=null,c=null}}},a=new WeakMap,r=new WeakMap;let o={},l={},s=new WeakMap,c=[],u=null,d=!1,h=null,p=null,m=null,f=null,v=null,g=null,_=null,x=new Il(0,0,0),y=0,S=!1,b=null,M=null,E=null,w=null,T=null;const C=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let A=!1,N=0;const R=e.getParameter(e.VERSION);-1!==R.indexOf("WebGL")?(N=parseFloat(/^WebGL (\d)/.exec(R)[1]),A=N>=1):-1!==R.indexOf("OpenGL ES")&&(N=parseFloat(/^OpenGL ES (\d)/.exec(R)[1]),A=N>=2);let L=null,P={};const q=e.getParameter(e.SCISSOR_BOX),I=e.getParameter(e.VIEWPORT),z=(new so).fromArray(q),k=(new so).fromArray(I);function B(t,n,i,a){const r=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let l=0;l<i;l++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,a,0,e.RGBA,e.UNSIGNED_BYTE,r):e.texImage2D(n+l,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,r);return o}const D={};function U(t){!0!==o[t]&&(e.enable(t),o[t]=!0)}function V(t){!1!==o[t]&&(e.disable(t),o[t]=!1)}D[e.TEXTURE_2D]=B(e.TEXTURE_2D,e.TEXTURE_2D,1),D[e.TEXTURE_CUBE_MAP]=B(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),D[e.TEXTURE_2D_ARRAY]=B(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),D[e.TEXTURE_3D]=B(e.TEXTURE_3D,e.TEXTURE_3D,1,1),t.setClear(0,0,0,1),n.setClear(1),i.setClear(0),U(e.DEPTH_TEST),n.setFunc(3),G(!1),W(1),U(e.CULL_FACE),H(0);const O={[Si]:e.FUNC_ADD,[bi]:e.FUNC_SUBTRACT,[Mi]:e.FUNC_REVERSE_SUBTRACT};O[103]=e.MIN,O[104]=e.MAX;const F={[Ei]:e.ZERO,[wi]:e.ONE,[Ti]:e.SRC_COLOR,[Ai]:e.SRC_ALPHA,[Ii]:e.SRC_ALPHA_SATURATE,[Pi]:e.DST_COLOR,[Ri]:e.DST_ALPHA,[Ci]:e.ONE_MINUS_SRC_COLOR,[Ni]:e.ONE_MINUS_SRC_ALPHA,[qi]:e.ONE_MINUS_DST_COLOR,[Li]:e.ONE_MINUS_DST_ALPHA,[zi]:e.CONSTANT_COLOR,[ki]:e.ONE_MINUS_CONSTANT_COLOR,[Bi]:e.CONSTANT_ALPHA,[Di]:e.ONE_MINUS_CONSTANT_ALPHA};function H(t,n,i,a,r,o,l,s,c,u){if(0!==t){if(!1===d&&(U(e.BLEND),d=!0),5===t)r=r||n,o=o||i,l=l||a,n===p&&r===v||(e.blendEquationSeparate(O[n],O[r]),p=n,v=r),i===m&&a===f&&o===g&&l===_||(e.blendFuncSeparate(F[i],F[a],F[o],F[l]),m=i,f=a,g=o,_=l),!1!==s.equals(x)&&c===y||(e.blendColor(s.r,s.g,s.b,c),x.copy(s),y=c),h=t,S=!1;else if(t!==h||u!==S){if(p===Si&&v===Si||(e.blendEquation(e.FUNC_ADD),p=Si,v=Si),u)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA)}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFunc(e.ZERO,e.SRC_COLOR)}m=null,f=null,g=null,_=null,x.set(0,0,0),y=0,h=t,S=u}}else!0===d&&(V(e.BLEND),d=!1)}function G(t){b!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),b=t)}function W(t){0!==t?(U(e.CULL_FACE),t!==M&&(1===t?e.cullFace(e.BACK):2===t?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):V(e.CULL_FACE),M=t}function X(t,n,i){t?(U(e.POLYGON_OFFSET_FILL),w===n&&T===i||(e.polygonOffset(n,i),w=n,T=i)):V(e.POLYGON_OFFSET_FILL)}return{buffers:{color:t,depth:n,stencil:i},enable:U,disable:V,bindFramebuffer:function(t,n){return l[t]!==n&&(e.bindFramebuffer(t,n),l[t]=n,t===e.DRAW_FRAMEBUFFER&&(l[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(l[e.DRAW_FRAMEBUFFER]=n),!0)},drawBuffers:function(t,n){let i=c,a=!1;if(t){i=s.get(n),void 0===i&&(i=[],s.set(n,i));const r=t.textures;if(i.length!==r.length||i[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=r.length;t<n;t++)i[t]=e.COLOR_ATTACHMENT0+t;i.length=r.length,a=!0}}else i[0]!==e.BACK&&(i[0]=e.BACK,a=!0);a&&e.drawBuffers(i)},useProgram:function(t){return u!==t&&(e.useProgram(t),u=t,!0)},setBlending:H,setMaterial:function(a,r){2===a.side?V(e.CULL_FACE):U(e.CULL_FACE);let o=a.side===xi;r&&(o=!o),G(o),1===a.blending&&!1===a.transparent?H(0):H(a.blending,a.blendEquation,a.blendSrc,a.blendDst,a.blendEquationAlpha,a.blendSrcAlpha,a.blendDstAlpha,a.blendColor,a.blendAlpha,a.premultipliedAlpha),n.setFunc(a.depthFunc),n.setTest(a.depthTest),n.setMask(a.depthWrite),t.setMask(a.colorWrite);const l=a.stencilWrite;i.setTest(l),l&&(i.setMask(a.stencilWriteMask),i.setFunc(a.stencilFunc,a.stencilRef,a.stencilFuncMask),i.setOp(a.stencilFail,a.stencilZFail,a.stencilZPass)),X(a.polygonOffset,a.polygonOffsetFactor,a.polygonOffsetUnits),!0===a.alphaToCoverage?U(e.SAMPLE_ALPHA_TO_COVERAGE):V(e.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:G,setCullFace:W,setLineWidth:function(t){t!==E&&(A&&e.lineWidth(t),E=t)},setPolygonOffset:X,setScissorTest:function(t){t?U(e.SCISSOR_TEST):V(e.SCISSOR_TEST)},activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+C-1),L!==t&&(e.activeTexture(t),L=t)},bindTexture:function(t,n,i){void 0===i&&(i=null===L?e.TEXTURE0+C-1:L);let a=P[i];void 0===a&&(a={type:void 0,texture:void 0},P[i]=a),a.type===t&&a.texture===n||(L!==i&&(e.activeTexture(i),L=i),e.bindTexture(t,n||D[t]),a.type=t,a.texture=n)},unbindTexture:function(){const t=P[L];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(t){}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(t){}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(t){}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(t){}},updateUBOMapping:function(t,n){let i=r.get(n);void 0===i&&(i=new WeakMap,r.set(n,i));let a=i.get(t);void 0===a&&(a=e.getUniformBlockIndex(n,t.name),i.set(t,a))},uniformBlockBinding:function(t,n){const i=r.get(n).get(t);a.get(n)!==i&&(e.uniformBlockBinding(n,i,t.__bindingPointIndex),a.set(n,i))},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(t){}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(t){}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(t){}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(t){}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(t){}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(t){}},scissor:function(t){!1===z.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),z.copy(t))},viewport:function(t){!1===k.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),k.copy(t))},reset:function(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),o={},L=null,P={},l={},s=new WeakMap,c=[],u=null,d=!1,h=null,p=null,m=null,f=null,v=null,g=null,_=null,x=new Il(0,0,0),y=0,S=!1,b=null,M=null,E=null,w=null,T=null,z.set(0,0,e.canvas.width,e.canvas.height),k.set(0,0,e.canvas.width,e.canvas.height),t.reset(),n.reset(),i.reset()}}}function fd(e,t,n,i){const a=function(e){switch(e){case sa:case ca:return{byteLength:1,components:1};case da:case ua:case fa:return{byteLength:2,components:1};case va:case ga:return{byteLength:2,components:4};case pa:case ha:case ma:return{byteLength:4,components:1};case xa:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${e}.`)}(i);switch(n){case ya:case Ma:return e*t;case Ea:return e*t*2;case Ca:case Aa:return e*t/a.components*a.byteLength;case Na:case Ra:return e*t*2/a.components*a.byteLength;case Sa:return e*t*3/a.components*a.byteLength;case ba:case La:return e*t*4/a.components*a.byteLength;case Pa:case qa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Ia:case za:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Ba:case Ua:return Math.max(e,16)*Math.max(t,8)/4;case ka:case Da:return Math.max(e,8)*Math.max(t,8)/2;case Va:case Oa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Fa:case Ha:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Ga:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case Wa:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case Xa:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case ja:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case $a:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case Ka:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case Ya:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case Ja:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case Za:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case Qa:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case er:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case tr:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case nr:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case ir:case ar:case rr:return Math.ceil(e/4)*Math.ceil(t/4)*16;case or:case lr:return Math.ceil(e/4)*Math.ceil(t/4)*8;case sr:case cr:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw new Error(`Unable to determine texture byte length for ${n} format.`)}function vd(e,t,n,i,a,r,o){const l=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,s="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),c=new Vr,u=new WeakMap;let d;const h=new WeakMap;let p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(O){}function m(e,t){return p?new OffscreenCanvas(e,t):Gr("canvas")}function f(e,t,n){let i=1;const a=V(e);if((a.width>n||a.height>n)&&(i=n/Math.max(a.width,a.height)),i<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){const n=Math.floor(i*a.width),r=Math.floor(i*a.height);void 0===d&&(d=m(n,r));const o=t?m(n,r):d;o.width=n,o.height=r;return o.getContext("2d").drawImage(e,0,0,n,r),o}return e}return e}function v(e){return e.generateMipmaps&&e.minFilter!==na&&e.minFilter!==ra}function g(t){e.generateMipmap(t)}function _(n,i,a,r,o=!1){if(null!==n&&void 0!==e[n])return e[n];let l=i;if(i===e.RED&&(a===e.FLOAT&&(l=e.R32F),a===e.HALF_FLOAT&&(l=e.R16F),a===e.UNSIGNED_BYTE&&(l=e.R8)),i===e.RED_INTEGER&&(a===e.UNSIGNED_BYTE&&(l=e.R8UI),a===e.UNSIGNED_SHORT&&(l=e.R16UI),a===e.UNSIGNED_INT&&(l=e.R32UI),a===e.BYTE&&(l=e.R8I),a===e.SHORT&&(l=e.R16I),a===e.INT&&(l=e.R32I)),i===e.RG&&(a===e.FLOAT&&(l=e.RG32F),a===e.HALF_FLOAT&&(l=e.RG16F),a===e.UNSIGNED_BYTE&&(l=e.RG8)),i===e.RG_INTEGER&&(a===e.UNSIGNED_BYTE&&(l=e.RG8UI),a===e.UNSIGNED_SHORT&&(l=e.RG16UI),a===e.UNSIGNED_INT&&(l=e.RG32UI),a===e.BYTE&&(l=e.RG8I),a===e.SHORT&&(l=e.RG16I),a===e.INT&&(l=e.RG32I)),i===e.RGB&&a===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.RGBA){const t=o?fr:Zr.getTransfer(r);a===e.FLOAT&&(l=e.RGBA32F),a===e.HALF_FLOAT&&(l=e.RGBA16F),a===e.UNSIGNED_BYTE&&(l=t===vr?e.SRGB8_ALPHA8:e.RGBA8),a===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),a===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return l!==e.R16F&&l!==e.R32F&&l!==e.RG16F&&l!==e.RG32F&&l!==e.RGBA16F&&l!==e.RGBA32F||t.get("EXT_color_buffer_float"),l}function x(t,n){let i;return t?null===n||n===pa||n===_a?i=e.DEPTH24_STENCIL8:n===ma?i=e.DEPTH32F_STENCIL8:n===da&&(i=e.DEPTH24_STENCIL8):null===n||n===pa||n===_a?i=e.DEPTH_COMPONENT24:n===ma?i=e.DEPTH_COMPONENT32F:n===da&&(i=e.DEPTH_COMPONENT16),i}function y(e,t){return!0===v(e)||e.isFramebufferTexture&&e.minFilter!==na&&e.minFilter!==ra?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function S(e){const t=e.target;t.removeEventListener("dispose",S),function(e){const t=i.get(e);if(void 0===t.__webglInit)return;const n=e.source,a=h.get(n);if(a){const i=a[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&M(e),0===Object.keys(a).length&&h.delete(n)}i.remove(e)}(t),t.isVideoTexture&&u.delete(t)}function b(t){const n=t.target;n.removeEventListener("dispose",b),function(t){const n=i.get(t);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(let i=0;i<6;i++){if(Array.isArray(n.__webglFramebuffer[i]))for(let t=0;t<n.__webglFramebuffer[i].length;t++)e.deleteFramebuffer(n.__webglFramebuffer[i][t]);else e.deleteFramebuffer(n.__webglFramebuffer[i]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[i])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}const a=t.textures;for(let r=0,l=a.length;r<l;r++){const t=i.get(a[r]);t.__webglTexture&&(e.deleteTexture(t.__webglTexture),o.memory.textures--),i.remove(a[r])}i.remove(t)}(n)}function M(t){const n=i.get(t);e.deleteTexture(n.__webglTexture);const a=t.source;delete h.get(a)[n.__cacheKey],o.memory.textures--}let E=0;function w(t,a){const r=i.get(t);if(t.isVideoTexture&&function(e){const t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}(t),!1===t.isRenderTargetTexture&&t.version>0&&r.__version!==t.version){const e=t.image;if(null===e);else if(!1!==e.complete)return void L(r,t,a)}n.bindTexture(e.TEXTURE_2D,r.__webglTexture,e.TEXTURE0+a)}const T={[Qi]:e.REPEAT,[ea]:e.CLAMP_TO_EDGE,[ta]:e.MIRRORED_REPEAT},C={[na]:e.NEAREST,[ia]:e.NEAREST_MIPMAP_NEAREST,[aa]:e.NEAREST_MIPMAP_LINEAR,[ra]:e.LINEAR,[oa]:e.LINEAR_MIPMAP_NEAREST,[la]:e.LINEAR_MIPMAP_LINEAR},A={[yr]:e.NEVER,[Cr]:e.ALWAYS,[Sr]:e.LESS,[Mr]:e.LEQUAL,[br]:e.EQUAL,[Tr]:e.GEQUAL,[Er]:e.GREATER,[wr]:e.NOTEQUAL};function N(n,r){if(r.type===ma&&!1===t.has("OES_texture_float_linear")&&(r.magFilter===ra||r.magFilter===oa||r.magFilter===aa||r.magFilter===la||r.minFilter===ra||r.minFilter===oa||r.minFilter===aa||r.minFilter),e.texParameteri(n,e.TEXTURE_WRAP_S,T[r.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,T[r.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,T[r.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,C[r.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,C[r.minFilter]),r.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,A[r.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(r.magFilter===na)return;if(r.minFilter!==aa&&r.minFilter!==la)return;if(r.type===ma&&!1===t.has("OES_texture_float_linear"))return;if(r.anisotropy>1||i.get(r).__currentAnisotropy){const o=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(r.anisotropy,a.getMaxAnisotropy())),i.get(r).__currentAnisotropy=r.anisotropy}}}function R(t,n){let i=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",S));const a=n.source;let r=h.get(a);void 0===r&&(r={},h.set(a,r));const l=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(l!==t.__cacheKey){void 0===r[l]&&(r[l]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,i=!0),r[l].usedTimes++;const a=r[t.__cacheKey];void 0!==a&&(r[t.__cacheKey].usedTimes--,0===a.usedTimes&&M(n)),t.__cacheKey=l,t.__webglTexture=r[l].texture}return i}function L(t,o,l){let s=e.TEXTURE_2D;(o.isDataArrayTexture||o.isCompressedArrayTexture)&&(s=e.TEXTURE_2D_ARRAY),o.isData3DTexture&&(s=e.TEXTURE_3D);const c=R(t,o),u=o.source;n.bindTexture(s,t.__webglTexture,e.TEXTURE0+l);const d=i.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(e.TEXTURE0+l);const t=Zr.getPrimaries(Zr.workingColorSpace),i=o.colorSpace===ur?null:Zr.getPrimaries(o.colorSpace),h=o.colorSpace===ur||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);let p=f(o.image,!1,a.maxTextureSize);p=U(o,p);const m=r.convert(o.format,o.colorSpace),S=r.convert(o.type);let b,M=_(o.internalFormat,m,S,o.colorSpace,o.isVideoTexture);N(s,o);const E=o.mipmaps,w=!0!==o.isVideoTexture,T=void 0===d.__version||!0===c,C=u.dataReady,A=y(o,p);if(o.isDepthTexture)M=x(o.format===Ta,o.type),T&&(w?n.texStorage2D(e.TEXTURE_2D,1,M,p.width,p.height):n.texImage2D(e.TEXTURE_2D,0,M,p.width,p.height,0,m,S,null));else if(o.isDataTexture)if(E.length>0){w&&T&&n.texStorage2D(e.TEXTURE_2D,A,M,E[0].width,E[0].height);for(let t=0,i=E.length;t<i;t++)b=E[t],w?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,b.width,b.height,m,S,b.data):n.texImage2D(e.TEXTURE_2D,t,M,b.width,b.height,0,m,S,b.data);o.generateMipmaps=!1}else w?(T&&n.texStorage2D(e.TEXTURE_2D,A,M,p.width,p.height),C&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,p.width,p.height,m,S,p.data)):n.texImage2D(e.TEXTURE_2D,0,M,p.width,p.height,0,m,S,p.data);else if(o.isCompressedTexture)if(o.isCompressedArrayTexture){w&&T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,A,M,E[0].width,E[0].height,p.depth);for(let t=0,i=E.length;t<i;t++)if(b=E[t],o.format!==ba){if(null!==m)if(w){if(C)if(o.layerUpdates.size>0){const i=fd(b.width,b.height,o.format,o.type);for(const a of o.layerUpdates){const r=b.data.subarray(a*i/b.data.BYTES_PER_ELEMENT,(a+1)*i/b.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,a,b.width,b.height,1,m,r,0,0)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,b.width,b.height,p.depth,m,b.data,0,0)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,M,b.width,b.height,p.depth,0,b.data,0,0)}else w?C&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,b.width,b.height,p.depth,m,S,b.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,M,b.width,b.height,p.depth,0,m,S,b.data)}else{w&&T&&n.texStorage2D(e.TEXTURE_2D,A,M,E[0].width,E[0].height);for(let t=0,i=E.length;t<i;t++)b=E[t],o.format!==ba?null!==m&&(w?C&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,b.width,b.height,m,b.data):n.compressedTexImage2D(e.TEXTURE_2D,t,M,b.width,b.height,0,b.data)):w?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,b.width,b.height,m,S,b.data):n.texImage2D(e.TEXTURE_2D,t,M,b.width,b.height,0,m,S,b.data)}else if(o.isDataArrayTexture)if(w){if(T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,A,M,p.width,p.height,p.depth),C)if(o.layerUpdates.size>0){const t=fd(p.width,p.height,o.format,o.type);for(const i of o.layerUpdates){const a=p.data.subarray(i*t/p.data.BYTES_PER_ELEMENT,(i+1)*t/p.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,i,p.width,p.height,1,m,S,a)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,m,S,p.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,M,p.width,p.height,p.depth,0,m,S,p.data);else if(o.isData3DTexture)w?(T&&n.texStorage3D(e.TEXTURE_3D,A,M,p.width,p.height,p.depth),C&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,m,S,p.data)):n.texImage3D(e.TEXTURE_3D,0,M,p.width,p.height,p.depth,0,m,S,p.data);else if(o.isFramebufferTexture){if(T)if(w)n.texStorage2D(e.TEXTURE_2D,A,M,p.width,p.height);else{let t=p.width,i=p.height;for(let a=0;a<A;a++)n.texImage2D(e.TEXTURE_2D,a,M,t,i,0,m,S,null),t>>=1,i>>=1}}else if(E.length>0){if(w&&T){const t=V(E[0]);n.texStorage2D(e.TEXTURE_2D,A,M,t.width,t.height)}for(let t=0,i=E.length;t<i;t++)b=E[t],w?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,m,S,b):n.texImage2D(e.TEXTURE_2D,t,M,m,S,b);o.generateMipmaps=!1}else if(w){if(T){const t=V(p);n.texStorage2D(e.TEXTURE_2D,A,M,t.width,t.height)}C&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,m,S,p)}else n.texImage2D(e.TEXTURE_2D,0,M,m,S,p);v(o)&&g(s),d.__version=u.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function P(t,a,o,s,c,u){const d=r.convert(o.format,o.colorSpace),h=r.convert(o.type),p=_(o.internalFormat,d,h,o.colorSpace);if(!i.get(a).__hasExternalTextures){const t=Math.max(1,a.width>>u),i=Math.max(1,a.height>>u);c===e.TEXTURE_3D||c===e.TEXTURE_2D_ARRAY?n.texImage3D(c,u,p,t,i,a.depth,0,d,h,null):n.texImage2D(c,u,p,t,i,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),D(a)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,s,c,i.get(o).__webglTexture,0,B(a)):(c===e.TEXTURE_2D||c>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,s,c,i.get(o).__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function q(t,n,i){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){const a=n.depthTexture,r=a&&a.isDepthTexture?a.type:null,o=x(n.stencilBuffer,r),s=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,c=B(n);D(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,c,o,n.width,n.height):i?e.renderbufferStorageMultisample(e.RENDERBUFFER,c,o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,s,e.RENDERBUFFER,t)}else{const t=n.textures;for(let a=0;a<t.length;a++){const o=t[a],s=r.convert(o.format,o.colorSpace),c=r.convert(o.type),u=_(o.internalFormat,s,c,o.colorSpace),d=B(n);i&&!1===D(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,u,n.width,n.height):D(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,u,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,u,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function I(t){const a=i.get(t),r=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!a.__autoAllocateDepthBuffer){if(r)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,a){if(a&&a.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!a.depthTexture||!a.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(a.depthTexture).__webglTexture&&a.depthTexture.image.width===a.width&&a.depthTexture.image.height===a.height||(a.depthTexture.image.width=a.width,a.depthTexture.image.height=a.height,a.depthTexture.needsUpdate=!0),w(a.depthTexture,0);const r=i.get(a.depthTexture).__webglTexture,o=B(a);if(a.depthTexture.format===wa)D(a)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,r,0,o):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,r,0);else{if(a.depthTexture.format!==Ta)throw new Error("Unknown depthTexture format");D(a)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,r,0,o):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,r,0)}}(a.__webglFramebuffer,t)}else if(r){a.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(e.FRAMEBUFFER,a.__webglFramebuffer[i]),a.__webglDepthbuffer[i]=e.createRenderbuffer(),q(a.__webglDepthbuffer[i],t,!1)}else n.bindFramebuffer(e.FRAMEBUFFER,a.__webglFramebuffer),a.__webglDepthbuffer=e.createRenderbuffer(),q(a.__webglDepthbuffer,t,!1);n.bindFramebuffer(e.FRAMEBUFFER,null)}const z=[],k=[];function B(e){return Math.min(a.maxSamples,e.samples)}function D(e){const n=i.get(e);return e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function U(e,t){const n=e.colorSpace;e.format,e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==hr&&n!==ur&&Zr.getTransfer(n),t}function V(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(c.width=e.naturalWidth||e.width,c.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(c.width=e.displayWidth,c.height=e.displayHeight):(c.width=e.width,c.height=e.height),c}this.allocateTextureUnit=function(){const e=E;return a.maxTextures,E+=1,e},this.resetTextureUnits=function(){E=0},this.setTexture2D=w,this.setTexture2DArray=function(t,a){const r=i.get(t);t.version>0&&r.__version!==t.version?L(r,t,a):n.bindTexture(e.TEXTURE_2D_ARRAY,r.__webglTexture,e.TEXTURE0+a)},this.setTexture3D=function(t,a){const r=i.get(t);t.version>0&&r.__version!==t.version?L(r,t,a):n.bindTexture(e.TEXTURE_3D,r.__webglTexture,e.TEXTURE0+a)},this.setTextureCube=function(t,o){const l=i.get(t);t.version>0&&l.__version!==t.version?function(t,o,l){if(6!==o.image.length)return;const s=R(t,o),c=o.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+l);const u=i.get(c);if(c.version!==u.__version||!0===s){n.activeTexture(e.TEXTURE0+l);const t=Zr.getPrimaries(Zr.workingColorSpace),i=o.colorSpace===ur?null:Zr.getPrimaries(o.colorSpace),d=o.colorSpace===ur||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);const h=o.isCompressedTexture||o.image[0].isCompressedTexture,p=o.image[0]&&o.image[0].isDataTexture,m=[];for(let e=0;e<6;e++)m[e]=h||p?p?o.image[e].image:o.image[e]:f(o.image[e],!0,a.maxCubemapSize),m[e]=U(o,m[e]);const x=m[0],S=r.convert(o.format,o.colorSpace),b=r.convert(o.type),M=_(o.internalFormat,S,b,o.colorSpace),E=!0!==o.isVideoTexture,w=void 0===u.__version||!0===s,T=c.dataReady;let C,A=y(o,x);if(N(e.TEXTURE_CUBE_MAP,o),h){E&&w&&n.texStorage2D(e.TEXTURE_CUBE_MAP,A,M,x.width,x.height);for(let t=0;t<6;t++){C=m[t].mipmaps;for(let i=0;i<C.length;i++){const a=C[i];o.format!==ba?null!==S&&(E?T&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,a.width,a.height,S,a.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,M,a.width,a.height,0,a.data)):E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,a.width,a.height,S,b,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,M,a.width,a.height,0,S,b,a.data)}}}else{if(C=o.mipmaps,E&&w){C.length>0&&A++;const t=V(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,A,M,t.width,t.height)}for(let t=0;t<6;t++)if(p){E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,S,b,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,M,m[t].width,m[t].height,0,S,b,m[t].data);for(let i=0;i<C.length;i++){const a=C[i].image[t].image;E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,a.width,a.height,S,b,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,M,a.width,a.height,0,S,b,a.data)}}else{E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,S,b,m[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,M,S,b,m[t]);for(let i=0;i<C.length;i++){const a=C[i];E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,S,b,a.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,M,S,b,a.image[t])}}}v(o)&&g(e.TEXTURE_CUBE_MAP),u.__version=c.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}(l,t,o):n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture,e.TEXTURE0+o)},this.rebindTextures=function(t,n,a){const r=i.get(t);void 0!==n&&P(r.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==a&&I(t)},this.setupRenderTarget=function(t){const a=t.texture,l=i.get(t),s=i.get(a);t.addEventListener("dispose",b);const c=t.textures,u=!0===t.isWebGLCubeRenderTarget,d=c.length>1;if(d||(void 0===s.__webglTexture&&(s.__webglTexture=e.createTexture()),s.__version=a.version,o.memory.textures++),u){l.__webglFramebuffer=[];for(let t=0;t<6;t++)if(a.mipmaps&&a.mipmaps.length>0){l.__webglFramebuffer[t]=[];for(let n=0;n<a.mipmaps.length;n++)l.__webglFramebuffer[t][n]=e.createFramebuffer()}else l.__webglFramebuffer[t]=e.createFramebuffer()}else{if(a.mipmaps&&a.mipmaps.length>0){l.__webglFramebuffer=[];for(let t=0;t<a.mipmaps.length;t++)l.__webglFramebuffer[t]=e.createFramebuffer()}else l.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=c.length;t<n;t++){const n=i.get(c[t]);void 0===n.__webglTexture&&(n.__webglTexture=e.createTexture(),o.memory.textures++)}if(t.samples>0&&!1===D(t)){l.__webglMultisampledFramebuffer=e.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,l.__webglMultisampledFramebuffer);for(let n=0;n<c.length;n++){const i=c[n];l.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,l.__webglColorRenderbuffer[n]);const a=r.convert(i.format,i.colorSpace),o=r.convert(i.type),s=_(i.internalFormat,a,o,i.colorSpace,!0===t.isXRRenderTarget),u=B(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,u,s,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,l.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(l.__webglDepthRenderbuffer=e.createRenderbuffer(),q(l.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(u){n.bindTexture(e.TEXTURE_CUBE_MAP,s.__webglTexture),N(e.TEXTURE_CUBE_MAP,a);for(let n=0;n<6;n++)if(a.mipmaps&&a.mipmaps.length>0)for(let i=0;i<a.mipmaps.length;i++)P(l.__webglFramebuffer[n][i],t,a,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,i);else P(l.__webglFramebuffer[n],t,a,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);v(a)&&g(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){for(let a=0,r=c.length;a<r;a++){const r=c[a],o=i.get(r);n.bindTexture(e.TEXTURE_2D,o.__webglTexture),N(e.TEXTURE_2D,r),P(l.__webglFramebuffer,t,r,e.COLOR_ATTACHMENT0+a,e.TEXTURE_2D,0),v(r)&&g(e.TEXTURE_2D)}n.unbindTexture()}else{let i=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(i=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(i,s.__webglTexture),N(i,a),a.mipmaps&&a.mipmaps.length>0)for(let n=0;n<a.mipmaps.length;n++)P(l.__webglFramebuffer[n],t,a,e.COLOR_ATTACHMENT0,i,n);else P(l.__webglFramebuffer,t,a,e.COLOR_ATTACHMENT0,i,0);v(a)&&g(i),n.unbindTexture()}t.depthBuffer&&I(t)},this.updateRenderTargetMipmap=function(t){const a=t.textures;for(let r=0,o=a.length;r<o;r++){const o=a[r];if(v(o)){const a=t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D,r=i.get(o).__webglTexture;n.bindTexture(a,r),g(a),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(t.samples>0)if(!1===D(t)){const a=t.textures,r=t.width,o=t.height;let l=e.COLOR_BUFFER_BIT;const c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=i.get(t),d=a.length>1;if(d)for(let t=0;t<a.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,u.__webglMultisampledFramebuffer),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n<a.length;n++){if(t.resolveDepthBuffer&&(t.depthBuffer&&(l|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&t.resolveStencilBuffer&&(l|=e.STENCIL_BUFFER_BIT)),d){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,u.__webglColorRenderbuffer[n]);const t=i.get(a[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,r,o,0,0,r,o,l,e.NEAREST),!0===s&&(z.length=0,k.length=0,z.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&!1===t.resolveDepthBuffer&&(z.push(c),k.push(c),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,k)),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,z))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),d)for(let t=0;t<a.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,u.__webglColorRenderbuffer[t]);const r=i.get(a[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,r,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglMultisampledFramebuffer)}else if(t.depthBuffer&&!1===t.resolveDepthBuffer&&s){const n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[n])}},this.setupDepthRenderbuffer=I,this.setupFrameBufferTexture=P,this.useMultisampledRTT=D}function gd(e,t){return{convert:function(n,i=""){let a;const r=Zr.getTransfer(i);if(n===sa)return e.UNSIGNED_BYTE;if(n===va)return e.UNSIGNED_SHORT_4_4_4_4;if(n===ga)return e.UNSIGNED_SHORT_5_5_5_1;if(n===xa)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===ca)return e.BYTE;if(n===ua)return e.SHORT;if(n===da)return e.UNSIGNED_SHORT;if(n===ha)return e.INT;if(n===pa)return e.UNSIGNED_INT;if(n===ma)return e.FLOAT;if(n===fa)return e.HALF_FLOAT;if(n===ya)return e.ALPHA;if(n===Sa)return e.RGB;if(n===ba)return e.RGBA;if(n===Ma)return e.LUMINANCE;if(n===Ea)return e.LUMINANCE_ALPHA;if(n===wa)return e.DEPTH_COMPONENT;if(n===Ta)return e.DEPTH_STENCIL;if(n===Ca)return e.RED;if(n===Aa)return e.RED_INTEGER;if(n===Na)return e.RG;if(n===Ra)return e.RG_INTEGER;if(n===La)return e.RGBA_INTEGER;if(n===Pa||n===qa||n===Ia||n===za)if(r===vr){if(a=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===a)return null;if(n===Pa)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===qa)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Ia)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===za)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(a=t.get("WEBGL_compressed_texture_s3tc"),null===a)return null;if(n===Pa)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===qa)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Ia)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===za)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===ka||n===Ba||n===Da||n===Ua){if(a=t.get("WEBGL_compressed_texture_pvrtc"),null===a)return null;if(n===ka)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Ba)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Da)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Ua)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===Va||n===Oa||n===Fa){if(a=t.get("WEBGL_compressed_texture_etc"),null===a)return null;if(n===Va||n===Oa)return r===vr?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(n===Fa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}if(n===Ha||n===Ga||n===Wa||n===Xa||n===ja||n===$a||n===Ka||n===Ya||n===Ja||n===Za||n===Qa||n===er||n===tr||n===nr){if(a=t.get("WEBGL_compressed_texture_astc"),null===a)return null;if(n===Ha)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Ga)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Wa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Xa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===ja)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===$a)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Ka)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Ya)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===Ja)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Za)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Qa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===er)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===tr)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===nr)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===ir||n===ar||n===rr){if(a=t.get("EXT_texture_compression_bptc"),null===a)return null;if(n===ir)return r===vr?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===ar)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===rr)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(n===or||n===lr||n===sr||n===cr){if(a=t.get("EXT_texture_compression_rgtc"),null===a)return null;if(n===ir)return a.COMPRESSED_RED_RGTC1_EXT;if(n===lr)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===sr)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===cr)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===_a?e.UNSIGNED_INT_24_8:void 0!==e[n]?e[n]:null}}}class _d extends As{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class xd extends _l{constructor(){super(),this.isGroup=!0,this.type="Group"}}const yd={type:"move"};class Sd{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new xd,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new xd,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new fo,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new fo),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new xd,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new fo,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new fo),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let i=null,a=null,r=null;const o=this._targetRay,l=this._grip,s=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(s&&e.hand){r=!0;for(const r of e.hand.values()){const e=t.getJointPose(r,n),i=this._getHandJoint(s,r);null!==e&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.matrixWorldNeedsUpdate=!0,i.jointRadius=e.radius),i.visible=null!==e}const i=s.joints["index-finger-tip"],a=s.joints["thumb-tip"],o=i.position.distanceTo(a.position),l=.02,c=.005;s.inputState.pinching&&o>l+c?(s.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!s.inputState.pinching&&o<=l-c&&(s.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==l&&e.gripSpace&&(a=t.getPose(e.gripSpace,n),null!==a&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1));null!==o&&(i=t.getPose(e.targetRaySpace,n),null===i&&null!==a&&(i=a),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(yd)))}return null!==o&&(o.visible=null!==i),null!==l&&(l.visible=null!==a),null!==s&&(s.visible=null!==r),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new xd;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class bd{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){const i=new lo;e.properties.get(i).__webglTexture=t.texture,t.depthNear==n.depthNear&&t.depthFar==n.depthFar||(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(null!==this.texture&&null===this.mesh){const t=e.cameras[0].viewport,n=new Ms({vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new vs(new Fs(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Md extends Lr{constructor(e,t){super();const n=this;let i=null,a=1,r=null,o="local-floor",l=1,s=null,c=null,u=null,d=null,h=null,p=null;const m=new bd,f=t.getContextAttributes();let v=null,g=null;const _=[],x=[],y=new Vr;let S=null;const b=new As;b.layers.enable(1),b.viewport=new so;const M=new As;M.layers.enable(2),M.viewport=new so;const E=[b,M],w=new _d;w.layers.enable(1),w.layers.enable(2);let T=null,C=null;function A(e){const t=x.indexOf(e.inputSource);if(-1===t)return;const n=_[t];void 0!==n&&(n.update(e.inputSource,e.frame,s||r),n.dispatchEvent({type:e.type,data:e.inputSource}))}function N(){i.removeEventListener("select",A),i.removeEventListener("selectstart",A),i.removeEventListener("selectend",A),i.removeEventListener("squeeze",A),i.removeEventListener("squeezestart",A),i.removeEventListener("squeezeend",A),i.removeEventListener("end",N),i.removeEventListener("inputsourceschange",R);for(let e=0;e<_.length;e++){const t=x[e];null!==t&&(x[e]=null,_[e].disconnect(t))}T=null,C=null,m.reset(),e.setRenderTarget(v),h=null,d=null,u=null,i=null,g=null,z.stop(),n.isPresenting=!1,e.setPixelRatio(S),e.setSize(y.width,y.height,!1),n.dispatchEvent({type:"sessionend"})}function R(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],i=x.indexOf(n);i>=0&&(x[i]=null,_[i].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let i=x.indexOf(n);if(-1===i){for(let e=0;e<_.length;e++){if(e>=x.length){x.push(n),i=e;break}if(null===x[e]){x[e]=n,i=e;break}}if(-1===i)break}const a=_[i];a&&a.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=_[e];return void 0===t&&(t=new Sd,_[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=_[e];return void 0===t&&(t=new Sd,_[e]=t),t.getGripSpace()},this.getHand=function(e){let t=_[e];return void 0===t&&(t=new Sd,_[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){a=e,n.isPresenting},this.setReferenceSpaceType=function(e){o=e,n.isPresenting},this.getReferenceSpace=function(){return s||r},this.setReferenceSpace=function(e){s=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(c){if(i=c,null!==i){if(v=e.getRenderTarget(),i.addEventListener("select",A),i.addEventListener("selectstart",A),i.addEventListener("selectend",A),i.addEventListener("squeeze",A),i.addEventListener("squeezestart",A),i.addEventListener("squeezeend",A),i.addEventListener("end",N),i.addEventListener("inputsourceschange",R),!0!==f.xrCompatible&&await t.makeXRCompatible(),S=e.getPixelRatio(),e.getSize(y),void 0===i.renderState.layers){const n={antialias:f.antialias,alpha:!0,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:a};h=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),g=new uo(h.framebufferWidth,h.framebufferHeight,{format:ba,type:sa,colorSpace:e.outputColorSpace,stencilBuffer:f.stencil})}else{let n=null,r=null,o=null;f.depth&&(o=f.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=f.stencil?Ta:wa,r=f.stencil?_a:pa);const l={colorFormat:t.RGBA8,depthFormat:o,scaleFactor:a};u=new XRWebGLBinding(i,t),d=u.createProjectionLayer(l),i.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),g=new uo(d.textureWidth,d.textureHeight,{format:ba,type:sa,depthTexture:new Tc(d.textureWidth,d.textureHeight,r,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,colorSpace:e.outputColorSpace,samples:f.antialias?4:0,resolveDepthBuffer:!1===d.ignoreDepthValues})}g.isXRRenderTarget=!0,this.setFoveation(l),s=null,r=await i.requestReferenceSpace(o),z.setContext(i),z.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode},this.getDepthTexture=function(){return m.getDepthTexture()};const L=new fo,P=new fo;function q(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===i)return;null!==m.texture&&(e.near=m.depthNear,e.far=m.depthFar),w.near=M.near=b.near=e.near,w.far=M.far=b.far=e.far,T===w.near&&C===w.far||(i.updateRenderState({depthNear:w.near,depthFar:w.far}),T=w.near,C=w.far,b.near=T,b.far=C,M.near=T,M.far=C,b.updateProjectionMatrix(),M.updateProjectionMatrix(),e.updateProjectionMatrix());const t=e.parent,n=w.cameras;q(w,t);for(let i=0;i<n.length;i++)q(n[i],t);2===n.length?function(e,t,n){L.setFromMatrixPosition(t.matrixWorld),P.setFromMatrixPosition(n.matrixWorld);const i=L.distanceTo(P),a=t.projectionMatrix.elements,r=n.projectionMatrix.elements,o=a[14]/(a[10]-1),l=a[14]/(a[10]+1),s=(a[9]+1)/a[5],c=(a[9]-1)/a[5],u=(a[8]-1)/a[0],d=(r[8]+1)/r[0],h=o*u,p=o*d,m=i/(-u+d),f=m*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(f),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const v=o+m,g=l+m,_=h-f,x=p+(i-f),y=s*l/g*v,S=c*l/g*v;e.projectionMatrix.makePerspective(_,x,y,S,v,g),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}(w,b,M):w.projectionMatrix.copy(b.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld));e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*Ir*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,w,t)},this.getCamera=function(){return w},this.getFoveation=function(){if(null!==d||null!==h)return l},this.setFoveation=function(e){l=e,null!==d&&(d.fixedFoveation=e),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=e)},this.hasDepthSensing=function(){return null!==m.texture},this.getDepthSensingMesh=function(){return m.getMesh(w)};let I=null;const z=new Vs;z.setAnimationLoop((function(t,a){if(c=a.getViewerPose(s||r),p=a,null!==c){const t=c.views;null!==h&&(e.setRenderTargetFramebuffer(g,h.framebuffer),e.setRenderTarget(g));let n=!1;t.length!==w.cameras.length&&(w.cameras.length=0,n=!0);for(let i=0;i<t.length;i++){const a=t[i];let r=null;if(null!==h)r=h.getViewport(a);else{const t=u.getViewSubImage(d,a);r=t.viewport,0===i&&(e.setRenderTargetTextures(g,t.colorTexture,d.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(g))}let o=E[i];void 0===o&&(o=new As,o.layers.enable(i),o.viewport=new so,E[i]=o),o.matrix.fromArray(a.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.projectionMatrix.fromArray(a.projectionMatrix),o.projectionMatrixInverse.copy(o.projectionMatrix).invert(),o.viewport.set(r.x,r.y,r.width,r.height),0===i&&(w.matrix.copy(o.matrix),w.matrix.decompose(w.position,w.quaternion,w.scale)),!0===n&&w.cameras.push(o)}const a=i.enabledFeatures;if(a&&a.includes("depth-sensing")){const n=u.getDepthInformation(t[0]);n&&n.isValid&&n.texture&&m.init(e,n,i.renderState)}}for(let e=0;e<_.length;e++){const t=x[e],n=_[e];null!==t&&void 0!==n&&n.update(t,a,s||r)}I&&I(t,a),a.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:a}),p=null})),this.setAnimationLoop=function(e){I=e},this.dispose=function(){}}}const Ed=new tl,wd=new Wo;function Td(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function i(e,i){e.opacity.value=i.opacity,i.color&&e.diffuse.value.copy(i.color),i.emissive&&e.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(e.map.value=i.map,n(i.map,e.mapTransform)),i.alphaMap&&(e.alphaMap.value=i.alphaMap,n(i.alphaMap,e.alphaMapTransform)),i.bumpMap&&(e.bumpMap.value=i.bumpMap,n(i.bumpMap,e.bumpMapTransform),e.bumpScale.value=i.bumpScale,i.side===xi&&(e.bumpScale.value*=-1)),i.normalMap&&(e.normalMap.value=i.normalMap,n(i.normalMap,e.normalMapTransform),e.normalScale.value.copy(i.normalScale),i.side===xi&&e.normalScale.value.negate()),i.displacementMap&&(e.displacementMap.value=i.displacementMap,n(i.displacementMap,e.displacementMapTransform),e.displacementScale.value=i.displacementScale,e.displacementBias.value=i.displacementBias),i.emissiveMap&&(e.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,e.emissiveMapTransform)),i.specularMap&&(e.specularMap.value=i.specularMap,n(i.specularMap,e.specularMapTransform)),i.alphaTest>0&&(e.alphaTest.value=i.alphaTest);const a=t.get(i),r=a.envMap,o=a.envMapRotation;r&&(e.envMap.value=r,Ed.copy(o),Ed.x*=-1,Ed.y*=-1,Ed.z*=-1,r.isCubeTexture&&!1===r.isRenderTargetTexture&&(Ed.y*=-1,Ed.z*=-1),e.envMapRotation.value.setFromMatrix4(wd.makeRotationFromEuler(Ed)),e.flipEnvMap.value=r.isCubeTexture&&!1===r.isRenderTargetTexture?-1:1,e.reflectivity.value=i.reflectivity,e.ior.value=i.ior,e.refractionRatio.value=i.refractionRatio),i.lightMap&&(e.lightMap.value=i.lightMap,e.lightMapIntensity.value=i.lightMapIntensity,n(i.lightMap,e.lightMapTransform)),i.aoMap&&(e.aoMap.value=i.aoMap,e.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,e.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Ss(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,a,r,o,l){a.isMeshBasicMaterial||a.isMeshLambertMaterial?i(e,a):a.isMeshToonMaterial?(i(e,a),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,a)):a.isMeshPhongMaterial?(i(e,a),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,a)):a.isMeshStandardMaterial?(i(e,a),function(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform));e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform));t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}(e,a),a.isMeshPhysicalMaterial&&function(e,t,i){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===xi&&e.clearcoatNormalScale.value.negate()));t.dispersion>0&&(e.dispersion.value=t.dispersion);t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=i.texture,e.transmissionSamplerSize.value.set(i.width,i.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform)));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,a,l)):a.isMeshMatcapMaterial?(i(e,a),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,a)):a.isMeshDepthMaterial?i(e,a):a.isMeshDistanceMaterial?(i(e,a),function(e,n){const i=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(i.matrixWorld),e.nearDistance.value=i.shadow.camera.near,e.farDistance.value=i.shadow.camera.far}(e,a)):a.isMeshNormalMaterial?i(e,a):a.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,a),a.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,a)):a.isPointsMaterial?function(e,t,i,a){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*i,e.scale.value=.5*a,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,a,r,o):a.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,a):a.isShadowMaterial?(e.color.value.copy(a.color),e.opacity.value=a.opacity):a.isShaderMaterial&&(a.uniformsNeedUpdate=!1)}}}function Cd(e,t,n,i){let a={},r={},o=[];const l=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function s(e,t,n,i){const a=e.value,r=t+"_"+n;if(void 0===i[r])return i[r]="number"==typeof a||"boolean"==typeof a?a:a.clone(),!0;{const e=i[r];if("number"==typeof a||"boolean"==typeof a){if(e!==a)return i[r]=a,!0}else if(!1===e.equals(a))return e.copy(a),!0}return!1}function c(e){const t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture,t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const i=o.indexOf(n.__bindingPointIndex);o.splice(i,1),e.deleteBuffer(a[n.id]),delete a[n.id],delete r[n.id]}return{bind:function(e,t){const n=t.program;i.uniformBlockBinding(e,n)},update:function(n,d){let h=a[n.id];void 0===h&&(!function(e){const t=e.uniforms;let n=0;const i=16;for(let r=0,o=t.length;r<o;r++){const e=Array.isArray(t[r])?t[r]:[t[r]];for(let t=0,a=e.length;t<a;t++){const a=e[t],r=Array.isArray(a.value)?a.value:[a.value];for(let e=0,t=r.length;e<t;e++){const t=c(r[e]),o=n%i;0!==o&&i-o<t.boundary&&(n+=i-o),a.__data=new Float32Array(t.storage/Float32Array.BYTES_PER_ELEMENT),a.__offset=n,n+=t.storage}}}const a=n%i;a>0&&(n+=i-a);e.__size=n,e.__cache={}}(n),h=function(t){const n=function(){for(let e=0;e<l;e++)if(-1===o.indexOf(e))return o.push(e),e;return 0}();t.__bindingPointIndex=n;const i=e.createBuffer(),a=t.__size,r=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,i),e.bufferData(e.UNIFORM_BUFFER,a,r),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,i),i}(n),a[n.id]=h,n.addEventListener("dispose",u));const p=d.program;i.updateUBOMapping(n,p);const m=t.render.frame;r[n.id]!==m&&(!function(t){const n=a[t.id],i=t.uniforms,r=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let a=0,o=i.length;a<o;a++){const t=Array.isArray(i[a])?i[a]:[i[a]];for(let n=0,i=t.length;n<i;n++){const i=t[n];if(!0===s(i,a,n,r)){const t=i.__offset,n=Array.isArray(i.value)?i.value:[i.value];let a=0;for(let r=0;r<n.length;r++){const o=n[r],l=c(o);"number"==typeof o||"boolean"==typeof o?(i.__data[0]=o,e.bufferSubData(e.UNIFORM_BUFFER,t+a,i.__data)):o.isMatrix3?(i.__data[0]=o.elements[0],i.__data[1]=o.elements[1],i.__data[2]=o.elements[2],i.__data[3]=0,i.__data[4]=o.elements[3],i.__data[5]=o.elements[4],i.__data[6]=o.elements[5],i.__data[7]=0,i.__data[8]=o.elements[6],i.__data[9]=o.elements[7],i.__data[10]=o.elements[8],i.__data[11]=0):(o.toArray(i.__data,a),a+=l.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,i.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}(n),r[n.id]=m)},dispose:function(){for(const t in a)e.deleteBuffer(a[t]);o=[],a={},r={}}}}class Ad{constructor(e={}){const{canvas:t=Wr(),context:n=null,depth:i=!0,stencil:a=!1,alpha:r=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:s=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:u=!1}=e;let d;if(this.isWebGLRenderer=!0,null!==n){if("undefined"!=typeof WebGLRenderingContext&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=n.getContextAttributes().alpha}else d=r;const h=new Uint32Array(4),p=new Int32Array(4);let m=null,f=null;const v=[],g=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=dr,this.toneMapping=Fi,this.toneMappingExposure=1;const _=this;let x=!1,y=0,S=0,b=null,M=-1,E=null;const w=new so,T=new so;let C=null;const A=new Il(0);let N=0,R=t.width,L=t.height,P=1,q=null,I=null;const z=new so(0,0,R,L),k=new so(0,0,R,L);let B=!1;const D=new Us;let U=!1,V=!1;const O=new Wo,F=new fo,H=new so,G={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let W=!1;function X(){return null===b?P:1}let j,$,K,Y,J,Z,Q,ee,te,ne,ie,ae,re,oe,le,se,ce,ue,de,he,pe,me,fe,ve,ge=n;function _e(e,n){return t.getContext(e,n)}try{const e={alpha:!0,depth:i,stencil:a,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:s,powerPreference:c,failIfMajorPerformanceCaveat:u};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${mi}`),t.addEventListener("webglcontextlost",Se,!1),t.addEventListener("webglcontextrestored",be,!1),t.addEventListener("webglcontextcreationerror",Me,!1),null===ge){const t="webgl2";if(ge=_e(t,e),null===ge)throw _e(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(De){throw De}function xe(){j=new yc(ge),j.init(),me=new gd(ge,j),$=new Zs(ge,j,e,me),K=new md(ge),Y=new Mc(ge),J=new ed,Z=new vd(ge,j,K,J,$,me,Y),Q=new ec(_),ee=new xc(_),te=new Os(ge),fe=new Ys(ge,te),ne=new Sc(ge,te,Y,fe),ie=new wc(ge,ne,te,Y),de=new Ec(ge,$,Z),se=new Qs(J),ae=new Qu(_,Q,ee,j,$,fe,se),re=new Td(_,J),oe=new ad,le=new ud(j),ue=new Ks(_,Q,ee,K,ie,d,l),ce=new pd(_,ie,$),ve=new Cd(ge,Y,$,K),he=new Js(ge,j,Y),pe=new bc(ge,j,Y),Y.programs=ae.programs,_.capabilities=$,_.extensions=j,_.properties=J,_.renderLists=oe,_.shadowMap=ce,_.state=K,_.info=Y}xe();const ye=new Md(_,ge);function Se(e){e.preventDefault(),x=!0}function be(){x=!1;const e=Y.autoReset,t=ce.enabled,n=ce.autoUpdate,i=ce.needsUpdate,a=ce.type;xe(),Y.autoReset=e,ce.enabled=t,ce.autoUpdate=n,ce.needsUpdate=i,ce.type=a}function Me(e){}function Ee(e){const t=e.target;t.removeEventListener("dispose",Ee),function(e){(function(e){const t=J.get(e).programs;void 0!==t&&(t.forEach((function(e){ae.releaseProgram(e)})),e.isShaderMaterial&&ae.releaseShaderCache(e))})(e),J.remove(e)}(t)}function we(e,t,n){!0===e.transparent&&2===e.side&&!1===e.forceSinglePass?(e.side=xi,e.needsUpdate=!0,ze(e,t,n),e.side=_i,e.needsUpdate=!0,ze(e,t,n),e.side=2):ze(e,t,n)}this.xr=ye,this.getContext=function(){return ge},this.getContextAttributes=function(){return ge.getContextAttributes()},this.forceContextLoss=function(){const e=j.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=j.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return P},this.setPixelRatio=function(e){void 0!==e&&(P=e,this.setSize(R,L,!1))},this.getSize=function(e){return e.set(R,L)},this.setSize=function(e,n,i=!0){ye.isPresenting||(R=e,L=n,t.width=Math.floor(e*P),t.height=Math.floor(n*P),!0===i&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(R*P,L*P).floor()},this.setDrawingBufferSize=function(e,n,i){R=e,L=n,P=i,t.width=Math.floor(e*i),t.height=Math.floor(n*i),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(w)},this.getViewport=function(e){return e.copy(z)},this.setViewport=function(e,t,n,i){e.isVector4?z.set(e.x,e.y,e.z,e.w):z.set(e,t,n,i),K.viewport(w.copy(z).multiplyScalar(P).round())},this.getScissor=function(e){return e.copy(k)},this.setScissor=function(e,t,n,i){e.isVector4?k.set(e.x,e.y,e.z,e.w):k.set(e,t,n,i),K.scissor(T.copy(k).multiplyScalar(P).round())},this.getScissorTest=function(){return B},this.setScissorTest=function(e){K.setScissorTest(B=e)},this.setOpaqueSort=function(e){q=e},this.setTransparentSort=function(e){I=e},this.getClearColor=function(e){return e.copy(ue.getClearColor())},this.setClearColor=function(){ue.setClearColor.apply(ue,arguments)},this.getClearAlpha=function(){return ue.getClearAlpha()},this.setClearAlpha=function(){ue.setClearAlpha.apply(ue,arguments)},this.clear=function(e=!0,t=!0,n=!0){let i=0;if(e){let e=!1;if(null!==b){const t=b.texture.format;e=t===La||t===Ra||t===Aa}if(e){const e=b.texture.type,t=e===sa||e===pa||e===da||e===_a||e===va||e===ga,n=ue.getClearColor(),i=ue.getClearAlpha(),a=n.r,r=n.g,o=n.b;t?(h[0]=a,h[1]=r,h[2]=o,h[3]=i,ge.clearBufferuiv(ge.COLOR,0,h)):(p[0]=a,p[1]=r,p[2]=o,p[3]=i,ge.clearBufferiv(ge.COLOR,0,p))}else i|=ge.COLOR_BUFFER_BIT}t&&(i|=ge.DEPTH_BUFFER_BIT),n&&(i|=ge.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),ge.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",Se,!1),t.removeEventListener("webglcontextrestored",be,!1),t.removeEventListener("webglcontextcreationerror",Me,!1),oe.dispose(),le.dispose(),J.dispose(),Q.dispose(),ee.dispose(),ie.dispose(),fe.dispose(),ve.dispose(),ae.dispose(),ye.dispose(),ye.removeEventListener("sessionstart",Ce),ye.removeEventListener("sessionend",Ae),Ne.stop()},this.renderBufferDirect=function(e,t,n,i,a,r){null===t&&(t=G);const o=a.isMesh&&a.matrixWorld.determinant()<0,l=function(e,t,n,i,a){!0!==t.isScene&&(t=G);Z.resetTextureUnits();const r=t.fog,o=i.isMeshStandardMaterial?t.environment:null,l=null===b?_.outputColorSpace:!0===b.isXRRenderTarget?b.texture.colorSpace:hr,s=(i.isMeshStandardMaterial?ee:Q).get(i.envMap||o),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!n.attributes.tangent&&(!!i.normalMap||i.anisotropy>0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let m=Fi;i.toneMapped&&(null!==b&&!0!==b.isXRRenderTarget||(m=_.toneMapping));const v=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,g=void 0!==v?v.length:0,x=J.get(i),y=f.state.lights;if(!0===U&&(!0===V||e!==E)){const t=e===E&&i.id===M;se.setState(i,e,t)}let S=!1;i.version===x.__version?x.needsLights&&x.lightsStateVersion!==y.state.version||x.outputColorSpace!==l||a.isBatchedMesh&&!1===x.batching?S=!0:a.isBatchedMesh||!0!==x.batching?a.isBatchedMesh&&!0===x.batchingColor&&null===a.colorTexture||a.isBatchedMesh&&!1===x.batchingColor&&null!==a.colorTexture||a.isInstancedMesh&&!1===x.instancing?S=!0:a.isInstancedMesh||!0!==x.instancing?a.isSkinnedMesh&&!1===x.skinning?S=!0:a.isSkinnedMesh||!0!==x.skinning?a.isInstancedMesh&&!0===x.instancingColor&&null===a.instanceColor||a.isInstancedMesh&&!1===x.instancingColor&&null!==a.instanceColor||a.isInstancedMesh&&!0===x.instancingMorph&&null===a.morphTexture||a.isInstancedMesh&&!1===x.instancingMorph&&null!==a.morphTexture||x.envMap!==s||!0===i.fog&&x.fog!==r?S=!0:void 0===x.numClippingPlanes||x.numClippingPlanes===se.numPlanes&&x.numIntersection===se.numIntersection?(x.vertexAlphas!==c||x.vertexTangents!==u||x.morphTargets!==d||x.morphNormals!==h||x.morphColors!==p||x.toneMapping!==m||x.morphTargetsCount!==g)&&(S=!0):S=!0:S=!0:S=!0:S=!0:(S=!0,x.__version=i.version);let w=x.currentProgram;!0===S&&(w=ze(i,t,a));let T=!1,C=!1,A=!1;const N=w.getUniforms(),R=x.uniforms;K.useProgram(w.program)&&(T=!0,C=!0,A=!0);i.id!==M&&(M=i.id,C=!0);if(T||E!==e){N.setValue(ge,"projectionMatrix",e.projectionMatrix),N.setValue(ge,"viewMatrix",e.matrixWorldInverse);const t=N.map.cameraPosition;void 0!==t&&t.setValue(ge,F.setFromMatrixPosition(e.matrixWorld)),$.logarithmicDepthBuffer&&N.setValue(ge,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&N.setValue(ge,"isOrthographic",!0===e.isOrthographicCamera),E!==e&&(E=e,C=!0,A=!0)}if(a.isSkinnedMesh){N.setOptional(ge,a,"bindMatrix"),N.setOptional(ge,a,"bindMatrixInverse");const e=a.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),N.setValue(ge,"boneTexture",e.boneTexture,Z))}a.isBatchedMesh&&(N.setOptional(ge,a,"batchingTexture"),N.setValue(ge,"batchingTexture",a._matricesTexture,Z),N.setOptional(ge,a,"batchingIdTexture"),N.setValue(ge,"batchingIdTexture",a._indirectTexture,Z),N.setOptional(ge,a,"batchingColorTexture"),null!==a._colorsTexture&&N.setValue(ge,"batchingColorTexture",a._colorsTexture,Z));const q=n.morphAttributes;void 0===q.position&&void 0===q.normal&&void 0===q.color||de.update(a,n,w);(C||x.receiveShadow!==a.receiveShadow)&&(x.receiveShadow=a.receiveShadow,N.setValue(ge,"receiveShadow",a.receiveShadow));i.isMeshGouraudMaterial&&null!==i.envMap&&(R.envMap.value=s,R.flipEnvMap.value=s.isCubeTexture&&!1===s.isRenderTargetTexture?-1:1);i.isMeshStandardMaterial&&null===i.envMap&&null!==t.environment&&(R.envMapIntensity.value=t.environmentIntensity);C&&(N.setValue(ge,"toneMappingExposure",_.toneMappingExposure),x.needsLights&&(z=A,(I=R).ambientLightColor.needsUpdate=z,I.lightProbe.needsUpdate=z,I.directionalLights.needsUpdate=z,I.directionalLightShadows.needsUpdate=z,I.pointLights.needsUpdate=z,I.pointLightShadows.needsUpdate=z,I.spotLights.needsUpdate=z,I.spotLightShadows.needsUpdate=z,I.rectAreaLights.needsUpdate=z,I.hemisphereLights.needsUpdate=z),r&&!0===i.fog&&re.refreshFogUniforms(R,r),re.refreshMaterialUniforms(R,i,P,L,f.state.transmissionRenderTarget[e.id]),Lu.upload(ge,ke(x),R,Z));var I,z;i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(Lu.upload(ge,ke(x),R,Z),i.uniformsNeedUpdate=!1);i.isSpriteMaterial&&N.setValue(ge,"center",a.center);if(N.setValue(ge,"modelViewMatrix",a.modelViewMatrix),N.setValue(ge,"normalMatrix",a.normalMatrix),N.setValue(ge,"modelMatrix",a.matrixWorld),i.isShaderMaterial||i.isRawShaderMaterial){const e=i.uniformsGroups;for(let t=0,n=e.length;t<n;t++){const n=e[t];ve.update(n,w),ve.bind(n,w)}}return w}(e,t,n,i,a);K.setMaterial(i,o);let s=n.index,c=1;if(!0===i.wireframe){if(s=ne.getWireframeAttribute(n),void 0===s)return;c=2}const u=n.drawRange,d=n.attributes.position;let h=u.start*c,p=(u.start+u.count)*c;null!==r&&(h=Math.max(h,r.start*c),p=Math.min(p,(r.start+r.count)*c)),null!==s?(h=Math.max(h,0),p=Math.min(p,s.count)):null!=d&&(h=Math.max(h,0),p=Math.min(p,d.count));const m=p-h;if(m<0||m===1/0)return;let v;fe.setup(a,i,l,n,s);let g=he;if(null!==s&&(v=te.get(s),g=pe,g.setIndex(v)),a.isMesh)!0===i.wireframe?(K.setLineWidth(i.wireframeLinewidth*X()),g.setMode(ge.LINES)):g.setMode(ge.TRIANGLES);else if(a.isLine){let e=i.linewidth;void 0===e&&(e=1),K.setLineWidth(e*X()),a.isLineSegments?g.setMode(ge.LINES):a.isLineLoop?g.setMode(ge.LINE_LOOP):g.setMode(ge.LINE_STRIP)}else a.isPoints?g.setMode(ge.POINTS):a.isSprite&&g.setMode(ge.TRIANGLES);if(a.isBatchedMesh)if(null!==a._multiDrawInstances)g.renderMultiDrawInstances(a._multiDrawStarts,a._multiDrawCounts,a._multiDrawCount,a._multiDrawInstances);else if(j.get("WEBGL_multi_draw"))g.renderMultiDraw(a._multiDrawStarts,a._multiDrawCounts,a._multiDrawCount);else{const e=a._multiDrawStarts,t=a._multiDrawCounts,n=a._multiDrawCount,r=s?te.get(s).bytesPerElement:1,o=J.get(i).currentProgram.getUniforms();for(let i=0;i<n;i++)o.setValue(ge,"_gl_DrawID",i),g.render(e[i]/r,t[i])}else if(a.isInstancedMesh)g.renderInstances(h,m,a.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);g.renderInstances(h,m,t)}else g.render(h,m)},this.compile=function(e,t,n=null){null===n&&(n=e),f=le.get(n),f.init(t),g.push(f),n.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(f.pushLight(e),e.castShadow&&f.pushShadow(e))})),e!==n&&e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(f.pushLight(e),e.castShadow&&f.pushShadow(e))})),f.setupLights();const i=new Set;return e.traverse((function(e){const t=e.material;if(t)if(Array.isArray(t))for(let a=0;a<t.length;a++){const r=t[a];we(r,n,e),i.add(r)}else we(t,n,e),i.add(t)})),g.pop(),f=null,i},this.compileAsync=function(e,t,n=null){const i=this.compile(e,t,n);return new Promise((t=>{function n(){i.forEach((function(e){J.get(e).currentProgram.isReady()&&i.delete(e)})),0!==i.size?setTimeout(n,10):t(e)}null!==j.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)}))};let Te=null;function Ce(){Ne.stop()}function Ae(){Ne.start()}const Ne=new Vs;function Re(e,t,n,i){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)f.pushLight(e),e.castShadow&&f.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||D.intersectsSprite(e)){i&&H.setFromMatrixPosition(e.matrixWorld).applyMatrix4(O);const t=ie.update(e),a=e.material;a.visible&&m.push(e,t,a,n,H.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||D.intersectsObject(e))){const t=ie.update(e),a=e.material;if(i&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),H.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),H.copy(t.boundingSphere.center)),H.applyMatrix4(e.matrixWorld).applyMatrix4(O)),Array.isArray(a)){const i=t.groups;for(let r=0,o=i.length;r<o;r++){const o=i[r],l=a[o.materialIndex];l&&l.visible&&m.push(e,t,l,n,H.z,o)}}else a.visible&&m.push(e,t,a,n,H.z,null)}const a=e.children;for(let r=0,o=a.length;r<o;r++)Re(a[r],t,n,i)}function Le(e,t,n,i){const a=e.opaque,r=e.transmissive,o=e.transparent;f.setupLightsView(n),!0===U&&se.setGlobalState(_.clippingPlanes,n),i&&K.viewport(w.copy(i)),a.length>0&&qe(a,t,n),r.length>0&&qe(r,t,n),o.length>0&&qe(o,t,n),K.buffers.depth.setTest(!0),K.buffers.depth.setMask(!0),K.buffers.color.setMask(!0),K.setPolygonOffset(!1)}function Pe(e,t,n,i){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;void 0===f.state.transmissionRenderTarget[i.id]&&(f.state.transmissionRenderTarget[i.id]=new uo(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")||j.has("EXT_color_buffer_float")?fa:sa,minFilter:la,samples:4,stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Zr.workingColorSpace}));const r=f.state.transmissionRenderTarget[i.id],o=i.viewport||w;r.setSize(o.z,o.w);const l=_.getRenderTarget();_.setRenderTarget(r),_.getClearColor(A),N=_.getClearAlpha(),N<1&&_.setClearColor(16777215,.5),W?ue.render(n):_.clear();const s=_.toneMapping;_.toneMapping=Fi;const c=i.viewport;if(void 0!==i.viewport&&(i.viewport=void 0),f.setupLightsView(i),!0===U&&se.setGlobalState(_.clippingPlanes,i),qe(e,n,i),Z.updateMultisampleRenderTarget(r),Z.updateRenderTargetMipmap(r),!1===j.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let a=0,r=t.length;a<r;a++){const r=t[a],o=r.object,l=r.geometry,s=r.material,c=r.group;if(2===s.side&&o.layers.test(i.layers)){const t=s.side;s.side=xi,s.needsUpdate=!0,Ie(o,n,i,l,s,c),s.side=t,s.needsUpdate=!0,e=!0}}!0===e&&(Z.updateMultisampleRenderTarget(r),Z.updateRenderTargetMipmap(r))}_.setRenderTarget(l),_.setClearColor(A,N),void 0!==c&&(i.viewport=c),_.toneMapping=s}function qe(e,t,n){const i=!0===t.isScene?t.overrideMaterial:null;for(let a=0,r=e.length;a<r;a++){const r=e[a],o=r.object,l=r.geometry,s=null===i?r.material:i,c=r.group;o.layers.test(n.layers)&&Ie(o,t,n,l,s,c)}}function Ie(e,t,n,i,a,r){e.onBeforeRender(_,t,n,i,a,r),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),!0===a.transparent&&2===a.side&&!1===a.forceSinglePass?(a.side=xi,a.needsUpdate=!0,_.renderBufferDirect(n,t,i,a,e,r),a.side=_i,a.needsUpdate=!0,_.renderBufferDirect(n,t,i,a,e,r),a.side=2):_.renderBufferDirect(n,t,i,a,e,r),e.onAfterRender(_,t,n,i,a,r)}function ze(e,t,n){!0!==t.isScene&&(t=G);const i=J.get(e),a=f.state.lights,r=f.state.shadowsArray,o=a.state.version,l=ae.getParameters(e,a.state,r,t,n),s=ae.getProgramCacheKey(l);let c=i.programs;i.environment=e.isMeshStandardMaterial?t.environment:null,i.fog=t.fog,i.envMap=(e.isMeshStandardMaterial?ee:Q).get(e.envMap||i.environment),i.envMapRotation=null!==i.environment&&null===e.envMap?t.environmentRotation:e.envMapRotation,void 0===c&&(e.addEventListener("dispose",Ee),c=new Map,i.programs=c);let u=c.get(s);if(void 0!==u){if(i.currentProgram===u&&i.lightsStateVersion===o)return Be(e,l),u}else l.uniforms=ae.getUniforms(e),e.onBeforeCompile(l,_),u=ae.acquireProgram(l,s),c.set(s,u),i.uniforms=l.uniforms;const d=i.uniforms;return(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(d.clippingPlanes=se.uniform),Be(e,l),i.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),i.lightsStateVersion=o,i.needsLights&&(d.ambientLightColor.value=a.state.ambient,d.lightProbe.value=a.state.probe,d.directionalLights.value=a.state.directional,d.directionalLightShadows.value=a.state.directionalShadow,d.spotLights.value=a.state.spot,d.spotLightShadows.value=a.state.spotShadow,d.rectAreaLights.value=a.state.rectArea,d.ltc_1.value=a.state.rectAreaLTC1,d.ltc_2.value=a.state.rectAreaLTC2,d.pointLights.value=a.state.point,d.pointLightShadows.value=a.state.pointShadow,d.hemisphereLights.value=a.state.hemi,d.directionalShadowMap.value=a.state.directionalShadowMap,d.directionalShadowMatrix.value=a.state.directionalShadowMatrix,d.spotShadowMap.value=a.state.spotShadowMap,d.spotLightMatrix.value=a.state.spotLightMatrix,d.spotLightMap.value=a.state.spotLightMap,d.pointShadowMap.value=a.state.pointShadowMap,d.pointShadowMatrix.value=a.state.pointShadowMatrix),i.currentProgram=u,i.uniformsList=null,u}function ke(e){if(null===e.uniformsList){const t=e.currentProgram.getUniforms();e.uniformsList=Lu.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function Be(e,t){const n=J.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Ne.setAnimationLoop((function(e){Te&&Te(e)})),"undefined"!=typeof self&&Ne.setContext(self),this.setAnimationLoop=function(e){Te=e,ye.setAnimationLoop(e),null===e?Ne.stop():Ne.start()},ye.addEventListener("sessionstart",Ce),ye.addEventListener("sessionend",Ae),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return;if(!0===x)return;if(!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===ye.enabled&&!0===ye.isPresenting&&(!0===ye.cameraAutoUpdate&&ye.updateCamera(t),t=ye.getCamera()),!0===e.isScene&&e.onBeforeRender(_,e,t,b),f=le.get(e,g.length),f.init(t),g.push(f),O.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),D.setFromProjectionMatrix(O),V=this.localClippingEnabled,U=se.init(this.clippingPlanes,V),m=oe.get(e,v.length),m.init(),v.push(m),!0===ye.enabled&&!0===ye.isPresenting){const e=_.xr.getDepthSensingMesh();null!==e&&Re(e,t,-1/0,_.sortObjects)}Re(e,t,0,_.sortObjects),m.finish(),!0===_.sortObjects&&m.sort(q,I),W=!1===ye.enabled||!1===ye.isPresenting||!1===ye.hasDepthSensing(),W&&ue.addToRenderList(m,e),this.info.render.frame++,!0===U&&se.beginShadows();const n=f.state.shadowsArray;ce.render(n,e,t),!0===U&&se.endShadows(),!0===this.info.autoReset&&this.info.reset();const i=m.opaque,a=m.transmissive;if(f.setupLights(),t.isArrayCamera){const n=t.cameras;if(a.length>0)for(let t=0,r=n.length;t<r;t++){Pe(i,a,e,n[t])}W&&ue.render(e);for(let t=0,i=n.length;t<i;t++){const i=n[t];Le(m,e,i,i.viewport)}}else a.length>0&&Pe(i,a,e,t),W&&ue.render(e),Le(m,e,t);null!==b&&(Z.updateMultisampleRenderTarget(b),Z.updateRenderTargetMipmap(b)),!0===e.isScene&&e.onAfterRender(_,e,t),fe.resetDefaultState(),M=-1,E=null,g.pop(),g.length>0?(f=g[g.length-1],!0===U&&se.setGlobalState(_.clippingPlanes,f.state.camera)):f=null,v.pop(),m=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return y},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return b},this.setRenderTargetTextures=function(e,t,n){J.get(e.texture).__webglTexture=t,J.get(e.depthTexture).__webglTexture=n;const i=J.get(e);i.__hasExternalTextures=!0,i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===j.has("WEBGL_multisampled_render_to_texture")&&(i.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){const n=J.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){b=e,y=t,S=n;let i=!0,a=null,r=!1,o=!1;if(e){const l=J.get(e);void 0!==l.__useDefaultFramebuffer?(K.bindFramebuffer(ge.FRAMEBUFFER,null),i=!1):void 0===l.__webglFramebuffer?Z.setupRenderTarget(e):l.__hasExternalTextures&&Z.rebindTextures(e,J.get(e.texture).__webglTexture,J.get(e.depthTexture).__webglTexture);const s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(o=!0);const c=J.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(a=Array.isArray(c[t])?c[t][n]:c[t],r=!0):a=e.samples>0&&!1===Z.useMultisampledRTT(e)?J.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,w.copy(e.viewport),T.copy(e.scissor),C=e.scissorTest}else w.copy(z).multiplyScalar(P).floor(),T.copy(k).multiplyScalar(P).floor(),C=B;if(K.bindFramebuffer(ge.FRAMEBUFFER,a)&&i&&K.drawBuffers(e,a),K.viewport(w),K.scissor(T),K.setScissorTest(C),r){const i=J.get(e.texture);ge.framebufferTexture2D(ge.FRAMEBUFFER,ge.COLOR_ATTACHMENT0,ge.TEXTURE_CUBE_MAP_POSITIVE_X+t,i.__webglTexture,n)}else if(o){const i=J.get(e.texture),a=t||0;ge.framebufferTextureLayer(ge.FRAMEBUFFER,ge.COLOR_ATTACHMENT0,i.__webglTexture,n||0,a)}M=-1},this.readRenderTargetPixels=function(e,t,n,i,a,r,o){if(!e||!e.isWebGLRenderTarget)return;let l=J.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(l=l[o]),l){K.bindFramebuffer(ge.FRAMEBUFFER,l);try{const o=e.texture,l=o.format,s=o.type;if(!$.textureFormatReadable(l))return;if(!$.textureTypeReadable(s))return;t>=0&&t<=e.width-i&&n>=0&&n<=e.height-a&&ge.readPixels(t,n,i,a,me.convert(l),me.convert(s),r)}finally{const e=null!==b?J.get(b).__webglFramebuffer:null;K.bindFramebuffer(ge.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,i,a,r,o){if(!e||!e.isWebGLRenderTarget)throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let l=J.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(l=l[o]),l){K.bindFramebuffer(ge.FRAMEBUFFER,l);try{const o=e.texture,l=o.format,s=o.type;if(!$.textureFormatReadable(l))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!$.textureTypeReadable(s))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(t>=0&&t<=e.width-i&&n>=0&&n<=e.height-a){const e=ge.createBuffer();ge.bindBuffer(ge.PIXEL_PACK_BUFFER,e),ge.bufferData(ge.PIXEL_PACK_BUFFER,r.byteLength,ge.STREAM_READ),ge.readPixels(t,n,i,a,me.convert(l),me.convert(s),0),ge.flush();const o=ge.fenceSync(ge.SYNC_GPU_COMMANDS_COMPLETE,0);await function(e,t,n){return new Promise((function(i,a){setTimeout((function r(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:a();break;case e.TIMEOUT_EXPIRED:setTimeout(r,n);break;default:i()}}),n)}))}(ge,o,4);try{ge.bindBuffer(ge.PIXEL_PACK_BUFFER,e),ge.getBufferSubData(ge.PIXEL_PACK_BUFFER,0,r)}finally{ge.deleteBuffer(e),ge.deleteSync(o)}return r}}finally{const e=null!==b?J.get(b).__webglFramebuffer:null;K.bindFramebuffer(ge.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t=null,n=0){!0!==e.isTexture&&(t=arguments[0]||null,e=arguments[1]);const i=Math.pow(2,-n),a=Math.floor(e.image.width*i),r=Math.floor(e.image.height*i),o=null!==t?t.x:0,l=null!==t?t.y:0;Z.setTexture2D(e,0),ge.copyTexSubImage2D(ge.TEXTURE_2D,n,0,0,o,l,a,r),K.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,i=null,a=0){let r,o,l,s,c,u;!0!==e.isTexture&&(i=arguments[0]||null,e=arguments[1],t=arguments[2],a=arguments[3]||0,n=null),null!==n?(r=n.max.x-n.min.x,o=n.max.y-n.min.y,l=n.min.x,s=n.min.y):(r=e.image.width,o=e.image.height,l=0,s=0),null!==i?(c=i.x,u=i.y):(c=0,u=0);const d=me.convert(t.format),h=me.convert(t.type);Z.setTexture2D(t,0),ge.pixelStorei(ge.UNPACK_FLIP_Y_WEBGL,t.flipY),ge.pixelStorei(ge.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),ge.pixelStorei(ge.UNPACK_ALIGNMENT,t.unpackAlignment);const p=ge.getParameter(ge.UNPACK_ROW_LENGTH),m=ge.getParameter(ge.UNPACK_IMAGE_HEIGHT),f=ge.getParameter(ge.UNPACK_SKIP_PIXELS),v=ge.getParameter(ge.UNPACK_SKIP_ROWS),g=ge.getParameter(ge.UNPACK_SKIP_IMAGES),_=e.isCompressedTexture?e.mipmaps[a]:e.image;ge.pixelStorei(ge.UNPACK_ROW_LENGTH,_.width),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,_.height),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,l),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,s),e.isDataTexture?ge.texSubImage2D(ge.TEXTURE_2D,a,c,u,r,o,d,h,_.data):e.isCompressedTexture?ge.compressedTexSubImage2D(ge.TEXTURE_2D,a,c,u,_.width,_.height,d,_.data):ge.texSubImage2D(ge.TEXTURE_2D,a,c,u,r,o,d,h,_),ge.pixelStorei(ge.UNPACK_ROW_LENGTH,p),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,m),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,f),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,v),ge.pixelStorei(ge.UNPACK_SKIP_IMAGES,g),0===a&&t.generateMipmaps&&ge.generateMipmap(ge.TEXTURE_2D),K.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n=null,i=null,a=0){let r,o,l,s,c,u,d,h,p;!0!==e.isTexture&&(n=arguments[0]||null,i=arguments[1]||null,e=arguments[2],t=arguments[3],a=arguments[4]||0);const m=e.isCompressedTexture?e.mipmaps[a]:e.image;null!==n?(r=n.max.x-n.min.x,o=n.max.y-n.min.y,l=n.max.z-n.min.z,s=n.min.x,c=n.min.y,u=n.min.z):(r=m.width,o=m.height,l=m.depth,s=0,c=0,u=0),null!==i?(d=i.x,h=i.y,p=i.z):(d=0,h=0,p=0);const f=me.convert(t.format),v=me.convert(t.type);let g;if(t.isData3DTexture)Z.setTexture3D(t,0),g=ge.TEXTURE_3D;else{if(!t.isDataArrayTexture&&!t.isCompressedArrayTexture)return;Z.setTexture2DArray(t,0),g=ge.TEXTURE_2D_ARRAY}ge.pixelStorei(ge.UNPACK_FLIP_Y_WEBGL,t.flipY),ge.pixelStorei(ge.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),ge.pixelStorei(ge.UNPACK_ALIGNMENT,t.unpackAlignment);const _=ge.getParameter(ge.UNPACK_ROW_LENGTH),x=ge.getParameter(ge.UNPACK_IMAGE_HEIGHT),y=ge.getParameter(ge.UNPACK_SKIP_PIXELS),S=ge.getParameter(ge.UNPACK_SKIP_ROWS),b=ge.getParameter(ge.UNPACK_SKIP_IMAGES);ge.pixelStorei(ge.UNPACK_ROW_LENGTH,m.width),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,m.height),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,s),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,c),ge.pixelStorei(ge.UNPACK_SKIP_IMAGES,u),e.isDataTexture||e.isData3DTexture?ge.texSubImage3D(g,a,d,h,p,r,o,l,f,v,m.data):t.isCompressedArrayTexture?ge.compressedTexSubImage3D(g,a,d,h,p,r,o,l,f,m.data):ge.texSubImage3D(g,a,d,h,p,r,o,l,f,v,m),ge.pixelStorei(ge.UNPACK_ROW_LENGTH,_),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,x),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,y),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,S),ge.pixelStorei(ge.UNPACK_SKIP_IMAGES,b),0===a&&t.generateMipmaps&&ge.generateMipmap(g),K.unbindTexture()},this.initRenderTarget=function(e){void 0===J.get(e).__webglFramebuffer&&Z.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?Z.setTextureCube(e,0):e.isData3DTexture?Z.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?Z.setTexture2DArray(e,0):Z.setTexture2D(e,0),K.unbindTexture()},this.resetState=function(){y=0,S=0,b=null,K.reset(),fe.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Nr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===pr?"display-p3":"srgb",t.unpackColorSpace=Zr.workingColorSpace===mr?"display-p3":"srgb"}}class Nd extends _l{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new tl,this.environmentIntensity=1,this.environmentRotation=new tl,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class Rd extends Bl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Il(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Ld=new fo,Pd=new fo,qd=new Wo,Id=new Go,zd=new ko,kd=new fo,Bd=new fo;class Dd extends _l{constructor(e=new Zl,t=new Rd){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,i=t.count;e<i;e++)Ld.fromBufferAttribute(t,e-1),Pd.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Ld.distanceTo(Pd);e.setAttribute("lineDistance",new Gl(n,1))}return this}raycast(e,t){const n=this.geometry,i=this.matrixWorld,a=e.params.Line.threshold,r=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),zd.copy(n.boundingSphere),zd.applyMatrix4(i),zd.radius+=a,!1===e.ray.intersectsSphere(zd))return;qd.copy(i).invert(),Id.copy(e.ray).applyMatrix4(qd);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),l=o*o,s=this.isLineSegments?2:1,c=n.index,u=n.attributes.position;if(null!==c){const n=Math.max(0,r.start),i=Math.min(c.count,r.start+r.count);for(let a=n,r=i-1;a<r;a+=s){const n=c.getX(a),i=c.getX(a+1),r=Ud(this,e,Id,l,n,i);r&&t.push(r)}if(this.isLineLoop){const a=c.getX(i-1),r=c.getX(n),o=Ud(this,e,Id,l,a,r);o&&t.push(o)}}else{const n=Math.max(0,r.start),i=Math.min(u.count,r.start+r.count);for(let a=n,r=i-1;a<r;a+=s){const n=Ud(this,e,Id,l,a,a+1);n&&t.push(n)}if(this.isLineLoop){const a=Ud(this,e,Id,l,i-1,n);a&&t.push(a)}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function Ud(e,t,n,i,a,r){const o=e.geometry.attributes.position;Ld.fromBufferAttribute(o,a),Pd.fromBufferAttribute(o,r);if(n.distanceSqToSegment(Ld,Pd,kd,Bd)>i)return;kd.applyMatrix4(e.matrixWorld);const l=t.ray.origin.distanceTo(kd);return l<t.near||l>t.far?void 0:{distance:l,point:Bd.clone().applyMatrix4(e.matrixWorld),index:a,face:null,faceIndex:null,object:e}}class Vd{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),a=0;t.push(0);for(let r=1;r<=e;r++)n=this.getPoint(r/e),a+=n.distanceTo(i),t.push(a),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let i=0;const a=n.length;let r;r=t||e*n[a-1];let o,l=0,s=a-1;for(;l<=s;)if(i=Math.floor(l+(s-l)/2),o=n[i]-r,o<0)l=i+1;else{if(!(o>0)){s=i;break}s=i-1}if(i=s,n[i]===r)return i/(a-1);const c=n[i];return(i+(r-c)/(n[i+1]-c))/(a-1)}getTangent(e,t){const n=1e-4;let i=e-n,a=e+n;i<0&&(i=0),a>1&&(a=1);const r=this.getPoint(i),o=this.getPoint(a),l=t||(r.isVector2?new Vr:new fo);return l.copy(o).sub(r).normalize(),l}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new fo,i=[],a=[],r=[],o=new fo,l=new Wo;for(let h=0;h<=e;h++){const t=h/e;i[h]=this.getTangentAt(t,new fo)}a[0]=new fo,r[0]=new fo;let s=Number.MAX_VALUE;const c=Math.abs(i[0].x),u=Math.abs(i[0].y),d=Math.abs(i[0].z);c<=s&&(s=c,n.set(1,0,0)),u<=s&&(s=u,n.set(0,1,0)),d<=s&&n.set(0,0,1),o.crossVectors(i[0],n).normalize(),a[0].crossVectors(i[0],o),r[0].crossVectors(i[0],a[0]);for(let h=1;h<=e;h++){if(a[h]=a[h-1].clone(),r[h]=r[h-1].clone(),o.crossVectors(i[h-1],i[h]),o.length()>Number.EPSILON){o.normalize();const e=Math.acos(kr(i[h-1].dot(i[h]),-1,1));a[h].applyMatrix4(l.makeRotationAxis(o,e))}r[h].crossVectors(i[h],a[h])}if(!0===t){let t=Math.acos(kr(a[0].dot(a[e]),-1,1));t/=e,i[0].dot(o.crossVectors(a[0],a[e]))>0&&(t=-t);for(let n=1;n<=e;n++)a[n].applyMatrix4(l.makeRotationAxis(i[n],t*n)),r[n].crossVectors(i[n],a[n])}return{tangents:i,normals:a,binormals:r}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Od extends Vd{constructor(e=0,t=0,n=1,i=1,a=0,r=2*Math.PI,o=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=r,this.aClockwise=o,this.aRotation=l}getPoint(e,t=new Vr){const n=t,i=2*Math.PI;let a=this.aEndAngle-this.aStartAngle;const r=Math.abs(a)<Number.EPSILON;for(;a<0;)a+=i;for(;a>i;)a-=i;a<Number.EPSILON&&(a=r?0:i),!0!==this.aClockwise||r||(a===i?a=-i:a-=i);const o=this.aStartAngle+e*a;let l=this.aX+this.xRadius*Math.cos(o),s=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=l-this.aX,i=s-this.aY;l=n*e-i*t+this.aX,s=n*t+i*e+this.aY}return n.set(l,s)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}function Fd(){let e=0,t=0,n=0,i=0;function a(a,r,o,l){e=a,t=o,n=-3*a+3*r-2*o-l,i=2*a-2*r+o+l}return{initCatmullRom:function(e,t,n,i,r){a(t,n,r*(n-e),r*(i-t))},initNonuniformCatmullRom:function(e,t,n,i,r,o,l){let s=(t-e)/r-(n-e)/(r+o)+(n-t)/o,c=(n-t)/o-(i-t)/(o+l)+(i-n)/l;s*=o,c*=o,a(t,n,s,c)},calc:function(a){const r=a*a;return e+t*a+n*r+i*(r*a)}}}const Hd=new fo,Gd=new Fd,Wd=new Fd,Xd=new Fd;function jd(e,t,n,i,a){const r=.5*(i-t),o=.5*(a-n),l=e*e;return(2*n-2*i+r+o)*(e*l)+(-3*n+3*i-2*r-o)*l+r*e+n}function $d(e,t,n,i){return function(e,t){const n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,i)}function Kd(e,t,n,i,a){return function(e,t){const n=1-e;return n*n*n*t}(e,t)+function(e,t){const n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,i)+function(e,t){return e*e*e*t}(e,a)}class Yd extends Vd{constructor(e=new Vr,t=new Vr,n=new Vr,i=new Vr){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new Vr){const n=t,i=this.v0,a=this.v1,r=this.v2,o=this.v3;return n.set(Kd(e,i.x,a.x,r.x,o.x),Kd(e,i.y,a.y,r.y,o.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class Jd extends Vd{constructor(e=new Vr,t=new Vr){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new Vr){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new Vr){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Zd extends Vd{constructor(e=new Vr,t=new Vr,n=new Vr){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new Vr){const n=t,i=this.v0,a=this.v1,r=this.v2;return n.set($d(e,i.x,a.x,r.x),$d(e,i.y,a.y,r.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Qd extends Vd{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new Vr){const n=t,i=this.points,a=(i.length-1)*e,r=Math.floor(a),o=a-r,l=i[0===r?r:r-1],s=i[r],c=i[r>i.length-2?i.length-1:r+1],u=i[r>i.length-3?i.length-1:r+2];return n.set(jd(o,l.x,s.x,c.x,u.x),jd(o,l.y,s.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Vr).fromArray(n))}return this}}var eh=Object.freeze({__proto__:null,ArcCurve:class extends Od{constructor(e,t,n,i,a,r){super(e,t,n,n,i,a,r),this.isArcCurve=!0,this.type="ArcCurve"}},CatmullRomCurve3:class extends Vd{constructor(e=[],t=!1,n="centripetal",i=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=i}getPoint(e,t=new fo){const n=t,i=this.points,a=i.length,r=(a-(this.closed?0:1))*e;let o,l,s=Math.floor(r),c=r-s;this.closed?s+=s>0?0:(Math.floor(Math.abs(s)/a)+1)*a:0===c&&s===a-1&&(s=a-2,c=1),this.closed||s>0?o=i[(s-1)%a]:(Hd.subVectors(i[0],i[1]).add(i[0]),o=Hd);const u=i[s%a],d=i[(s+1)%a];if(this.closed||s+2<a?l=i[(s+2)%a]:(Hd.subVectors(i[a-1],i[a-2]).add(i[a-1]),l=Hd),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(o.distanceToSquared(u),e),n=Math.pow(u.distanceToSquared(d),e),i=Math.pow(d.distanceToSquared(l),e);n<1e-4&&(n=1),t<1e-4&&(t=n),i<1e-4&&(i=n),Gd.initNonuniformCatmullRom(o.x,u.x,d.x,l.x,t,n,i),Wd.initNonuniformCatmullRom(o.y,u.y,d.y,l.y,t,n,i),Xd.initNonuniformCatmullRom(o.z,u.z,d.z,l.z,t,n,i)}else"catmullrom"===this.curveType&&(Gd.initCatmullRom(o.x,u.x,d.x,l.x,this.tension),Wd.initCatmullRom(o.y,u.y,d.y,l.y,this.tension),Xd.initCatmullRom(o.z,u.z,d.z,l.z,this.tension));return n.set(Gd.calc(c),Wd.calc(c),Xd.calc(c)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new fo).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}},CubicBezierCurve:Yd,CubicBezierCurve3:class extends Vd{constructor(e=new fo,t=new fo,n=new fo,i=new fo){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new fo){const n=t,i=this.v0,a=this.v1,r=this.v2,o=this.v3;return n.set(Kd(e,i.x,a.x,r.x,o.x),Kd(e,i.y,a.y,r.y,o.y),Kd(e,i.z,a.z,r.z,o.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}},EllipseCurve:Od,LineCurve:Jd,LineCurve3:class extends Vd{constructor(e=new fo,t=new fo){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new fo){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new fo){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},QuadraticBezierCurve:Zd,QuadraticBezierCurve3:class extends Vd{constructor(e=new fo,t=new fo,n=new fo){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new fo){const n=t,i=this.v0,a=this.v1,r=this.v2;return n.set($d(e,i.x,a.x,r.x),$d(e,i.y,a.y,r.y),$d(e,i.z,a.z,r.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},SplineCurve:Qd});class th extends Vd{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){const n=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new eh[n](t,e))}return this}getPoint(e,t){const n=e*this.getLength(),i=this.getCurveLengths();let a=0;for(;a<i.length;){if(i[a]>=n){const e=i[a]-n,r=this.curves[a],o=r.getLength(),l=0===o?0:1-e/o;return r.getPointAt(l,t)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n<i;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let n;for(let i=0,a=this.curves;i<a.length;i++){const r=a[i],o=r.isEllipseCurve?2*e:r.isLineCurve||r.isLineCurve3?1:r.isSplineCurve?e*r.points.length:e,l=r.getPoints(o);for(let e=0;e<l.length;e++){const i=l[e];n&&n.equals(i)||(t.push(i),n=i)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new eh[n.type]).fromJSON(n))}return this}}class nh extends th{constructor(e){super(),this.type="Path",this.currentPoint=new Vr,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new Jd(this.currentPoint.clone(),new Vr(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,i){const a=new Zd(this.currentPoint.clone(),new Vr(e,t),new Vr(n,i));return this.curves.push(a),this.currentPoint.set(n,i),this}bezierCurveTo(e,t,n,i,a,r){const o=new Yd(this.currentPoint.clone(),new Vr(e,t),new Vr(n,i),new Vr(a,r));return this.curves.push(o),this.currentPoint.set(a,r),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),n=new Qd(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,i,a,r){const o=this.currentPoint.x,l=this.currentPoint.y;return this.absarc(e+o,t+l,n,i,a,r),this}absarc(e,t,n,i,a,r){return this.absellipse(e,t,n,n,i,a,r),this}ellipse(e,t,n,i,a,r,o,l){const s=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+s,t+c,n,i,a,r,o,l),this}absellipse(e,t,n,i,a,r,o,l){const s=new Od(e,t,n,i,a,r,o,l);if(this.curves.length>0){const e=s.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(s);const c=s.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class ih extends nh{constructor(e){super(e),this.uuid=zr(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,i=this.holes.length;n<i;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){const n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push((new nh).fromJSON(n))}return this}}const ah=function(e,t,n=2){const i=t&&t.length,a=i?t[0]*n:e.length;let r=rh(e,0,a,n,!0);const o=[];if(!r||r.next===r.prev)return o;let l,s,c,u,d,h,p;if(i&&(r=function(e,t,n,i){const a=[];let r,o,l,s,c;for(r=0,o=t.length;r<o;r++)l=t[r]*i,s=r<o-1?t[r+1]*i:e.length,c=rh(e,l,s,i,!1),c===c.next&&(c.steiner=!0),a.push(vh(c));for(a.sort(hh),r=0;r<a.length;r++)n=ph(a[r],n);return n}(e,t,r,n)),e.length>80*n){l=c=e[0],s=u=e[1];for(let t=n;t<a;t+=n)d=e[t],h=e[t+1],d<l&&(l=d),h<s&&(s=h),d>c&&(c=d),h>u&&(u=h);p=Math.max(c-l,u-s),p=0!==p?32767/p:0}return lh(r,o,n,l,s,p,0),o};function rh(e,t,n,i,a){let r,o;if(a===function(e,t,n,i){let a=0;for(let r=t,o=n-i;r<n;r+=i)a+=(e[o]-e[r])*(e[r+1]+e[o+1]),o=r;return a}(e,t,n,i)>0)for(r=t;r<n;r+=i)o=Th(r,e[r],e[r+1],o);else for(r=n-i;r>=t;r-=i)o=Th(r,e[r],e[r+1],o);return o&&yh(o,o.next)&&(Ch(o),o=o.next),o}function oh(e,t){if(!e)return e;t||(t=e);let n,i=e;do{if(n=!1,i.steiner||!yh(i,i.next)&&0!==xh(i.prev,i,i.next))i=i.next;else{if(Ch(i),i=t=i.prev,i===i.next)break;n=!0}}while(n||i!==t);return t}function lh(e,t,n,i,a,r,o){if(!e)return;!o&&r&&function(e,t,n,i){let a=e;do{0===a.z&&(a.z=fh(a.x,a.y,t,n,i)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){let t,n,i,a,r,o,l,s,c=1;do{for(n=e,e=null,r=null,o=0;n;){for(o++,i=n,l=0,t=0;t<c&&(l++,i=i.nextZ,i);t++);for(s=c;l>0||s>0&&i;)0!==l&&(0===s||!i||n.z<=i.z)?(a=n,n=n.nextZ,l--):(a=i,i=i.nextZ,s--),r?r.nextZ=a:e=a,a.prevZ=r,r=a;n=i}r.nextZ=null,c*=2}while(o>1)}(a)}(e,i,a,r);let l,s,c=e;for(;e.prev!==e.next;)if(l=e.prev,s=e.next,r?ch(e,i,a,r):sh(e))t.push(l.i/n|0),t.push(e.i/n|0),t.push(s.i/n|0),Ch(e),e=s.next,c=s.next;else if((e=s)===c){o?1===o?lh(e=uh(oh(e),t,n),t,n,i,a,r,2):2===o&&dh(e,t,n,i,a,r):lh(oh(e),t,n,i,a,r,1);break}}function sh(e){const t=e.prev,n=e,i=e.next;if(xh(t,n,i)>=0)return!1;const a=t.x,r=n.x,o=i.x,l=t.y,s=n.y,c=i.y,u=a<r?a<o?a:o:r<o?r:o,d=l<s?l<c?l:c:s<c?s:c,h=a>r?a>o?a:o:r>o?r:o,p=l>s?l>c?l:c:s>c?s:c;let m=i.next;for(;m!==t;){if(m.x>=u&&m.x<=h&&m.y>=d&&m.y<=p&&gh(a,l,r,s,o,c,m.x,m.y)&&xh(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function ch(e,t,n,i){const a=e.prev,r=e,o=e.next;if(xh(a,r,o)>=0)return!1;const l=a.x,s=r.x,c=o.x,u=a.y,d=r.y,h=o.y,p=l<s?l<c?l:c:s<c?s:c,m=u<d?u<h?u:h:d<h?d:h,f=l>s?l>c?l:c:s>c?s:c,v=u>d?u>h?u:h:d>h?d:h,g=fh(p,m,t,n,i),_=fh(f,v,t,n,i);let x=e.prevZ,y=e.nextZ;for(;x&&x.z>=g&&y&&y.z<=_;){if(x.x>=p&&x.x<=f&&x.y>=m&&x.y<=v&&x!==a&&x!==o&&gh(l,u,s,d,c,h,x.x,x.y)&&xh(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,y.x>=p&&y.x<=f&&y.y>=m&&y.y<=v&&y!==a&&y!==o&&gh(l,u,s,d,c,h,y.x,y.y)&&xh(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;x&&x.z>=g;){if(x.x>=p&&x.x<=f&&x.y>=m&&x.y<=v&&x!==a&&x!==o&&gh(l,u,s,d,c,h,x.x,x.y)&&xh(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;y&&y.z<=_;){if(y.x>=p&&y.x<=f&&y.y>=m&&y.y<=v&&y!==a&&y!==o&&gh(l,u,s,d,c,h,y.x,y.y)&&xh(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function uh(e,t,n){let i=e;do{const a=i.prev,r=i.next.next;!yh(a,r)&&Sh(a,i,i.next,r)&&Eh(a,r)&&Eh(r,a)&&(t.push(a.i/n|0),t.push(i.i/n|0),t.push(r.i/n|0),Ch(i),Ch(i.next),i=e=r),i=i.next}while(i!==e);return oh(i)}function dh(e,t,n,i,a,r){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&_h(o,e)){let l=wh(o,e);return o=oh(o,o.next),l=oh(l,l.next),lh(o,t,n,i,a,r,0),void lh(l,t,n,i,a,r,0)}e=e.next}o=o.next}while(o!==e)}function hh(e,t){return e.x-t.x}function ph(e,t){const n=function(e,t){let n,i=t,a=-1/0;const r=e.x,o=e.y;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){const e=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=r&&e>a&&(a=e,n=i.x<i.next.x?i:i.next,e===r))return n}i=i.next}while(i!==t);if(!n)return null;const l=n,s=n.x,c=n.y;let u,d=1/0;i=n;do{r>=i.x&&i.x>=s&&r!==i.x&&gh(o<c?r:a,o,s,c,o<c?a:r,o,i.x,i.y)&&(u=Math.abs(o-i.y)/(r-i.x),Eh(i,e)&&(u<d||u===d&&(i.x>n.x||i.x===n.x&&mh(n,i)))&&(n=i,d=u)),i=i.next}while(i!==l);return n}(e,t);if(!n)return t;const i=wh(n,e);return oh(i,i.next),oh(n,n.next)}function mh(e,t){return xh(e.prev,e,t.prev)<0&&xh(t.next,e,e.next)<0}function fh(e,t,n,i,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*a|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function vh(e){let t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function gh(e,t,n,i,a,r,o,l){return(a-o)*(t-l)>=(e-o)*(r-l)&&(e-o)*(i-l)>=(n-o)*(t-l)&&(n-o)*(r-l)>=(a-o)*(i-l)}function _h(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Sh(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Eh(e,t)&&Eh(t,e)&&function(e,t){let n=e,i=!1;const a=(e.x+t.x)/2,r=(e.y+t.y)/2;do{n.y>r!=n.next.y>r&&n.next.y!==n.y&&a<(n.next.x-n.x)*(r-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==e);return i}(e,t)&&(xh(e.prev,e,t.prev)||xh(e,t.prev,t))||yh(e,t)&&xh(e.prev,e,e.next)>0&&xh(t.prev,t,t.next)>0)}function xh(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function yh(e,t){return e.x===t.x&&e.y===t.y}function Sh(e,t,n,i){const a=Mh(xh(e,t,n)),r=Mh(xh(e,t,i)),o=Mh(xh(n,i,e)),l=Mh(xh(n,i,t));return a!==r&&o!==l||(!(0!==a||!bh(e,n,t))||(!(0!==r||!bh(e,i,t))||(!(0!==o||!bh(n,e,i))||!(0!==l||!bh(n,t,i)))))}function bh(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Mh(e){return e>0?1:e<0?-1:0}function Eh(e,t){return xh(e.prev,e,e.next)<0?xh(e,t,e.next)>=0&&xh(e,e.prev,t)>=0:xh(e,t,e.prev)<0||xh(e,e.next,t)<0}function wh(e,t){const n=new Ah(e.i,e.x,e.y),i=new Ah(t.i,t.x,t.y),a=e.next,r=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,i.next=n,n.prev=i,r.next=i,i.prev=r,i}function Th(e,t,n,i){const a=new Ah(e,t,n);return i?(a.next=i.next,a.prev=i,i.next.prev=a,i.next=a):(a.prev=a,a.next=a),a}function Ch(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ah(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Nh{static area(e){const t=e.length;let n=0;for(let i=t-1,a=0;a<t;i=a++)n+=e[i].x*e[a].y-e[a].x*e[i].y;return.5*n}static isClockWise(e){return Nh.area(e)<0}static triangulateShape(e,t){const n=[],i=[],a=[];Rh(e),Lh(n,e);let r=e.length;t.forEach(Rh);for(let l=0;l<t.length;l++)i.push(r),r+=t[l].length,Lh(n,t[l]);const o=ah(n,i);for(let l=0;l<o.length;l+=3)a.push(o.slice(l,l+3));return a}}function Rh(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function Lh(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}class Ph extends Zl{constructor(e=new ih([new Vr(.5,.5),new Vr(-.5,.5),new Vr(-.5,-.5),new Vr(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,i=[],a=[];for(let o=0,l=e.length;o<l;o++){r(e[o])}function r(e){const r=[],o=void 0!==t.curveSegments?t.curveSegments:12,l=void 0!==t.steps?t.steps:1,s=void 0!==t.depth?t.depth:1;let c=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:.2,d=void 0!==t.bevelSize?t.bevelSize:u-.1,h=void 0!==t.bevelOffset?t.bevelOffset:0,p=void 0!==t.bevelSegments?t.bevelSegments:3;const m=t.extrudePath,f=void 0!==t.UVGenerator?t.UVGenerator:qh;let v,g,_,x,y,S=!1;m&&(v=m.getSpacedPoints(l),S=!0,c=!1,g=m.computeFrenetFrames(l,!1),_=new fo,x=new fo,y=new fo),c||(p=0,u=0,d=0,h=0);const b=e.extractPoints(o);let M=b.shape;const E=b.holes;if(!Nh.isClockWise(M)){M=M.reverse();for(let e=0,t=E.length;e<t;e++){const t=E[e];Nh.isClockWise(t)&&(E[e]=t.reverse())}}const w=Nh.triangulateShape(M,E),T=M;for(let t=0,n=E.length;t<n;t++){const e=E[t];M=M.concat(e)}function C(e,t,n){return e.clone().addScaledVector(t,n)}const A=M.length,N=w.length;function R(e,t,n){let i,a,r;const o=e.x-t.x,l=e.y-t.y,s=n.x-e.x,c=n.y-e.y,u=o*o+l*l,d=o*c-l*s;if(Math.abs(d)>Number.EPSILON){const d=Math.sqrt(u),h=Math.sqrt(s*s+c*c),p=t.x-l/d,m=t.y+o/d,f=((n.x-c/h-p)*c-(n.y+s/h-m)*s)/(o*c-l*s);i=p+o*f-e.x,a=m+l*f-e.y;const v=i*i+a*a;if(v<=2)return new Vr(i,a);r=Math.sqrt(v/2)}else{let e=!1;o>Number.EPSILON?s>Number.EPSILON&&(e=!0):o<-Number.EPSILON?s<-Number.EPSILON&&(e=!0):Math.sign(l)===Math.sign(c)&&(e=!0),e?(i=-l,a=o,r=Math.sqrt(u)):(i=o,a=l,r=Math.sqrt(u/2))}return new Vr(i/r,a/r)}const L=[];for(let t=0,n=T.length,i=n-1,a=t+1;t<n;t++,i++,a++)i===n&&(i=0),a===n&&(a=0),L[t]=R(T[t],T[i],T[a]);const P=[];let q,I=L.concat();for(let t=0,n=E.length;t<n;t++){const e=E[t];q=[];for(let t=0,n=e.length,i=n-1,a=t+1;t<n;t++,i++,a++)i===n&&(i=0),a===n&&(a=0),q[t]=R(e[t],e[i],e[a]);P.push(q),I=I.concat(q)}for(let t=0;t<p;t++){const e=t/p,n=u*Math.cos(e*Math.PI/2),i=d*Math.sin(e*Math.PI/2)+h;for(let t=0,a=T.length;t<a;t++){const e=C(T[t],L[t],i);B(e.x,e.y,-n)}for(let t=0,a=E.length;t<a;t++){const e=E[t];q=P[t];for(let t=0,a=e.length;t<a;t++){const a=C(e[t],q[t],i);B(a.x,a.y,-n)}}}const z=d+h;for(let t=0;t<A;t++){const e=c?C(M[t],I[t],z):M[t];S?(x.copy(g.normals[0]).multiplyScalar(e.x),_.copy(g.binormals[0]).multiplyScalar(e.y),y.copy(v[0]).add(x).add(_),B(y.x,y.y,y.z)):B(e.x,e.y,0)}for(let t=1;t<=l;t++)for(let e=0;e<A;e++){const n=c?C(M[e],I[e],z):M[e];S?(x.copy(g.normals[t]).multiplyScalar(n.x),_.copy(g.binormals[t]).multiplyScalar(n.y),y.copy(v[t]).add(x).add(_),B(y.x,y.y,y.z)):B(n.x,n.y,s/l*t)}for(let t=p-1;t>=0;t--){const e=t/p,n=u*Math.cos(e*Math.PI/2),i=d*Math.sin(e*Math.PI/2)+h;for(let t=0,a=T.length;t<a;t++){const e=C(T[t],L[t],i);B(e.x,e.y,s+n)}for(let t=0,a=E.length;t<a;t++){const e=E[t];q=P[t];for(let t=0,a=e.length;t<a;t++){const a=C(e[t],q[t],i);S?B(a.x,a.y+v[l-1].y,v[l-1].x+n):B(a.x,a.y,s+n)}}}function k(e,t){let n=e.length;for(;--n>=0;){const i=n;let a=n-1;a<0&&(a=e.length-1);for(let e=0,n=l+2*p;e<n;e++){const n=A*e,r=A*(e+1);U(t+i+n,t+a+n,t+a+r,t+i+r)}}}function B(e,t,n){r.push(e),r.push(t),r.push(n)}function D(e,t,a){V(e),V(t),V(a);const r=i.length/3,o=f.generateTopUV(n,i,r-3,r-2,r-1);O(o[0]),O(o[1]),O(o[2])}function U(e,t,a,r){V(e),V(t),V(r),V(t),V(a),V(r);const o=i.length/3,l=f.generateSideWallUV(n,i,o-6,o-3,o-2,o-1);O(l[0]),O(l[1]),O(l[3]),O(l[1]),O(l[2]),O(l[3])}function V(e){i.push(r[3*e+0]),i.push(r[3*e+1]),i.push(r[3*e+2])}function O(e){a.push(e.x),a.push(e.y)}!function(){const e=i.length/3;if(c){let e=0,t=A*e;for(let n=0;n<N;n++){const e=w[n];D(e[2]+t,e[1]+t,e[0]+t)}e=l+2*p,t=A*e;for(let n=0;n<N;n++){const e=w[n];D(e[0]+t,e[1]+t,e[2]+t)}}else{for(let e=0;e<N;e++){const t=w[e];D(t[2],t[1],t[0])}for(let e=0;e<N;e++){const t=w[e];D(t[0]+A*l,t[1]+A*l,t[2]+A*l)}}n.addGroup(e,i.length/3-e,0)}(),function(){const e=i.length/3;let t=0;k(T,t),t+=T.length;for(let n=0,i=E.length;n<i;n++){const e=E[n];k(e,t),t+=e.length}n.addGroup(e,i.length/3-e,1)}()}this.setAttribute("position",new Gl(i,3)),this.setAttribute("uv",new Gl(a,2)),this.computeVertexNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(let i=0,a=e.length;i<a;i++){const t=e[i];n.shapes.push(t.uuid)}else n.shapes.push(e.uuid);n.options=Object.assign({},t),void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){const n=[];for(let a=0,r=e.shapes.length;a<r;a++){const i=t[e.shapes[a]];n.push(i)}const i=e.options.extrudePath;return void 0!==i&&(e.options.extrudePath=(new eh[i.type]).fromJSON(i)),new Ph(n,e.options)}}const qh={generateTopUV:function(e,t,n,i,a){const r=t[3*n],o=t[3*n+1],l=t[3*i],s=t[3*i+1],c=t[3*a],u=t[3*a+1];return[new Vr(r,o),new Vr(l,s),new Vr(c,u)]},generateSideWallUV:function(e,t,n,i,a,r){const o=t[3*n],l=t[3*n+1],s=t[3*n+2],c=t[3*i],u=t[3*i+1],d=t[3*i+2],h=t[3*a],p=t[3*a+1],m=t[3*a+2],f=t[3*r],v=t[3*r+1],g=t[3*r+2];return Math.abs(l-u)<Math.abs(o-c)?[new Vr(o,1-s),new Vr(c,1-d),new Vr(h,1-m),new Vr(f,1-g)]:[new Vr(l,1-s),new Vr(u,1-d),new Vr(p,1-m),new Vr(v,1-g)]}};const Ih={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class zh{constructor(e,t,n){const i=this;let a,r=!1,o=0,l=0;const s=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){l++,!1===r&&void 0!==i.onStart&&i.onStart(e,o,l),r=!0},this.itemEnd=function(e){o++,void 0!==i.onProgress&&i.onProgress(e,o,l),o===l&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)},this.resolveURL=function(e){return a?a(e):e},this.setURLModifier=function(e){return a=e,this},this.addHandler=function(e,t){return s.push(e,t),this},this.removeHandler=function(e){const t=s.indexOf(e);return-1!==t&&s.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=s.length;t<n;t+=2){const n=s[t],i=s[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return i}return null}}}const kh=new zh;class Bh{constructor(e){this.manager=void 0!==e?e:kh,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(i,a){n.load(e,i,t,a)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Bh.DEFAULT_MATERIAL_NAME="__DEFAULT";const Dh={};class Uh extends Error{constructor(e,t){super(e),this.response=t}}class Vh extends Bh{constructor(e){super(e)}load(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const a=Ih.get(e);if(void 0!==a)return this.manager.itemStart(e),setTimeout((()=>{t&&t(a),this.manager.itemEnd(e)}),0),a;if(void 0!==Dh[e])return void Dh[e].push({onLoad:t,onProgress:n,onError:i});Dh[e]=[],Dh[e].push({onLoad:t,onProgress:n,onError:i});const r=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),o=this.mimeType,l=this.responseType;fetch(r).then((t=>{if(200===t.status||0===t.status){if(t.status,"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Dh[e],i=t.body.getReader(),a=t.headers.get("X-File-Size")||t.headers.get("Content-Length"),r=a?parseInt(a):0,o=0!==r;let l=0;const s=new ReadableStream({start(e){!function t(){i.read().then((({done:i,value:a})=>{if(i)e.close();else{l+=a.byteLength;const i=new ProgressEvent("progress",{lengthComputable:o,loaded:l,total:r});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(i)}e.enqueue(a),t()}}),(t=>{e.error(t)}))}()}});return new Response(s)}throw new Uh(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)})).then((e=>{switch(l){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>(new DOMParser).parseFromString(e,o)));case"json":return e.json();default:if(void 0===o)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,i=new TextDecoder(n);return e.arrayBuffer().then((e=>i.decode(e)))}}})).then((t=>{Ih.add(e,t);const n=Dh[e];delete Dh[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onLoad&&i.onLoad(t)}})).catch((t=>{const n=Dh[e];if(void 0===n)throw this.manager.itemError(e),t;delete Dh[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onError&&i.onError(t)}this.manager.itemError(e)})).finally((()=>{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Oh{constructor(){this.type="ShapePath",this.color=new Il,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new nh,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,i){return this.currentPath.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,a,r){return this.currentPath.bezierCurveTo(e,t,n,i,a,r),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e,t){const n=t.length;let i=!1;for(let a=n-1,r=0;r<n;a=r++){let n=t[a],o=t[r],l=o.x-n.x,s=o.y-n.y;if(Math.abs(s)>Number.EPSILON){if(s<0&&(n=t[r],l=-l,o=t[a],s=-s),e.y<n.y||e.y>o.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=s*(e.x-n.x)-l*(e.y-n.y);if(0===t)return!0;if(t<0)continue;i=!i}}else{if(e.y!==n.y)continue;if(o.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=o.x)return!0}}return i}const n=Nh.isClockWise,i=this.subPaths;if(0===i.length)return[];let a,r,o;const l=[];if(1===i.length)return r=i[0],o=new ih,o.curves=r.curves,l.push(o),l;let s=!n(i[0].getPoints());s=e?!s:s;const c=[],u=[];let d,h,p=[],m=0;u[m]=void 0,p[m]=[];for(let f=0,v=i.length;f<v;f++)r=i[f],d=r.getPoints(),a=n(d),a=e?!a:a,a?(!s&&u[m]&&m++,u[m]={s:new ih,p:d},u[m].s.curves=r.curves,s&&m++,p[m]=[]):p[m].push({h:r,p:d[0]});if(!u[0])return function(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n],a=new ih;a.curves=i.curves,t.push(a)}return t}(i);if(u.length>1){let e=!1,n=0;for(let t=0,i=u.length;t<i;t++)c[t]=[];for(let i=0,a=u.length;i<a;i++){const a=p[i];for(let r=0;r<a.length;r++){const o=a[r];let l=!0;for(let a=0;a<u.length;a++)t(o.p,u[a].p)&&(i!==a&&n++,l?(l=!1,c[a].push(o)):e=!0);l&&c[i].push(o)}}n>0&&!1===e&&(p=c)}for(let f=0,v=u.length;f<v;f++){o=u[f].s,l.push(o),h=p[f];for(let e=0,t=h.length;e<t;e++)o.holes.push(h[e].h)}return l}}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:mi}})),"undefined"!=typeof window&&(window.__THREE__||(window.__THREE__=mi));const Fh=l(t.defineComponent({__name:"LymColumnChart",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=t.ref();let a=new Nd;const r=t.ref(null),o=t.ref(null),l=t.ref([]),s=t.ref([5,8,11,14,17]);return t.watch((()=>s.value),((e,t)=>{s.value.forEach(((e,t)=>{const n=l.value[t],i=e,a=e/2,r=()=>{n.scale.y<i?(n.scale.y+=.1,n.scale.y>i&&(n.scale.y=i)):(n.scale.y-=.1,n.scale.y<i&&(n.scale.y=i)),n.position.y<a?(n.position.y+=.05,n.position.y>a&&(n.position.y=a)):(n.position.y-=.05,n.position.y<a&&(n.position.y=a)),n.scale.y===i&&n.position.y===a||requestAnimationFrame(r)};r()}))})),t.computed((()=>0)),t.onMounted((()=>{!function(){if(i.value){r.value=new As(75,window.innerWidth/window.innerHeight,.1,1e3),r.value.position.z=20,o.value=new Ad,o.value.setSize(window.innerWidth,window.innerHeight),i.value.appendChild(o.value.domElement),function(){const e=1,t=1.5,n=new Dl({color:65280});s.value.forEach(((i,r)=>{const o=new _s(e,i,e),s=new vs(o,n);s.position.set(r*t,i/2-10,0),a.add(s),l.value.push(s)}))}();const e=()=>{requestAnimationFrame(e),o.value.render(a,r.value)};e(),window.addEventListener("resize",(()=>{r.value.aspect=window.innerWidth/window.innerHeight,r.value.updateProjectionMatrix(),o.value.setSize(window.innerWidth,window.innerHeight)}))}}()})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymColumnChart",ref:i,class:"lym-column-chart"},null,512))}}),[["__scopeId","data-v-75973f37"]]),Hh=Object.freeze(Object.defineProperty({__proto__:null,default:Fh},Symbol.toStringTag,{value:"Module"}));class Gh extends Ph{constructor(e,t={}){const n=t.font;if(void 0===n)super();else{const i=n.generateShapes(e,t.size);void 0===t.depth&&t.height,t.depth=void 0!==t.depth?t.depth:void 0!==t.height?t.height:50,void 0===t.bevelThickness&&(t.bevelThickness=10),void 0===t.bevelSize&&(t.bevelSize=8),void 0===t.bevelEnabled&&(t.bevelEnabled=!1),super(i,t)}this.type="TextGeometry"}}class Wh extends Bh{constructor(e){super(e)}load(e,t,n,i){const a=this,r=new Vh(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,(function(e){const n=a.parse(JSON.parse(e));t&&t(n)}),n,i)}parse(e){return new Xh(e)}}class Xh{constructor(e){this.isFont=!0,this.type="Font",this.data=e}generateShapes(e,t=100){const n=[],i=function(e,t,n){const i=Array.from(e),a=t/n.resolution,r=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*a,o=[];let l=0,s=0;for(let c=0;c<i.length;c++){const e=i[c];if("\n"===e)l=0,s-=r;else{const t=jh(e,a,l,s,n);l+=t.offsetX,o.push(t.path)}}return o}(e,t,this.data);for(let a=0,r=i.length;a<r;a++)n.push(...i[a].toShapes());return n}}function jh(e,t,n,i,a){const r=a.glyphs[e]||a.glyphs["?"];if(!r)return;const o=new Oh;let l,s,c,u,d,h,p,m;if(r.o){const e=r._cachedOutline||(r._cachedOutline=r.o.split(" "));for(let a=0,r=e.length;a<r;){switch(e[a++]){case"m":l=e[a++]*t+n,s=e[a++]*t+i,o.moveTo(l,s);break;case"l":l=e[a++]*t+n,s=e[a++]*t+i,o.lineTo(l,s);break;case"q":c=e[a++]*t+n,u=e[a++]*t+i,d=e[a++]*t+n,h=e[a++]*t+i,o.quadraticCurveTo(d,h,c,u);break;case"b":c=e[a++]*t+n,u=e[a++]*t+i,d=e[a++]*t+n,h=e[a++]*t+i,p=e[a++]*t+n,m=e[a++]*t+i,o.bezierCurveTo(d,h,p,m,c,u)}}}return{offsetX:r.ha*t,path:o}}const $h={glyphs:{0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50};var Kh=function(){var e=0,t=document.createElement("div");function n(e){return t.appendChild(e.dom),e}function i(n){for(var i=0;i<t.children.length;i++)t.children[i].style.display=i===n?"block":"none";e=n}t.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",(function(n){n.preventDefault(),i(++e%t.children.length)}),!1);var a=(performance||Date).now(),r=a,o=0,l=n(new Kh.Panel("FPS","#0ff","#002")),s=n(new Kh.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=n(new Kh.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:t,addPanel:n,showPanel:i,begin:function(){a=(performance||Date).now()},end:function(){o++;var e=(performance||Date).now();if(s.update(e-a,200),e>=r+1e3&&(l.update(1e3*o/(e-r),100),r=e,o=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){a=this.end()},domElement:t,setMode:i}};Kh.Panel=function(e,t,n){var i=1/0,a=0,r=Math.round,o=r(window.devicePixelRatio||1),l=80*o,s=48*o,c=3*o,u=2*o,d=3*o,h=15*o,p=74*o,m=30*o,f=document.createElement("canvas");f.width=l,f.height=s,f.style.cssText="width:80px;height:48px";var v=f.getContext("2d");return v.font="bold "+9*o+"px Helvetica,Arial,sans-serif",v.textBaseline="top",v.fillStyle=n,v.fillRect(0,0,l,s),v.fillStyle=t,v.fillText(e,c,u),v.fillRect(d,h,p,m),v.fillStyle=n,v.globalAlpha=.9,v.fillRect(d,h,p,m),{dom:f,update:function(s,g){i=Math.min(i,s),a=Math.max(a,s),v.fillStyle=n,v.globalAlpha=1,v.fillRect(0,0,l,h),v.fillStyle=t,v.fillText(r(s)+" "+e+" ("+r(i)+"-"+r(a)+")",c,u),v.drawImage(f,d+o,h,p-o,m,d,h,p-o,m),v.fillRect(d+p-o,h,o,m),v.fillStyle=n,v.globalAlpha=.9,v.fillRect(d+p-o,h,o,r((1-s/g)*m))}}};const Yh=e=>(t.pushScopeId("data-v-1afac6f9"),e=e(),t.popScopeId(),e),Jh=[Yh((()=>t.createElementVNode("div",{type:"x-shader/x-vertex",id:"vertexshader",class:"lym-shader-content-box"}," uniform float amplitude; attribute vec3 displacement; attribute vec3 customColor; varying vec3 vColor; void main() { vec3 newPosition = position + amplitude * displacement; vColor = customColor; gl_Position = projectionMatrix * modelViewMatrix * vec4( newPosition, 1.0 ); } ",-1))),Yh((()=>t.createElementVNode("div",{type:"x-shader/x-fragment",id:"fragmentshader",class:"lym-shader-content-box"}," uniform vec3 color; uniform float opacity; varying vec3 vColor; void main() { gl_FragColor = vec4( vColor * color, opacity ); } ",-1)))],Zh=l(t.defineComponent({__name:"LymWebGLComponent",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref();return t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{a.value&&function(){var e,t;const n=new Nd;n.background=new Il(328965);const i=new As(30,window.innerWidth/window.innerHeight,1,1e4);i.position.z=400;const r=new Ad({antialias:!0});r.setSize(window.innerWidth,window.innerHeight),r.setPixelRatio(window.devicePixelRatio),a.value.appendChild(r.domElement);const o={amplitude:{value:5},opacity:{value:.3},color:{value:new Il(16777215)}},l=new Ms({uniforms:o,vertexShader:null==(e=document.getElementById("vertexshader"))?void 0:e.textContent,fragmentShader:null==(t=document.getElementById("fragmentshader"))?void 0:t.textContent,blending:2,depthTest:!1,transparent:!0}),s=(new Wh).parse($h),c=new Gh("luyoumin",{font:s,size:50,height:15,curveSegments:10,bevelThickness:5,bevelSize:1.5,bevelEnabled:!0,bevelSegments:10});c.center();const u=c.attributes.position.count,d=new Gl(3*u,3);c.setAttribute("displacement",d);const h=new Gl(3*u,3);c.setAttribute("customColor",h);const p=new Il(16777215);for(let a=0,g=h.count;a<g;a++)p.setHSL(a/g,.5,.5),p.toArray(h.array,a*h.itemSize);const m=new Dd(c,l);m.rotation.x=.2,n.add(m);const f=new Kh;a.value.appendChild(f.dom),window.addEventListener("resize",(()=>{i.aspect=window.innerWidth/window.innerHeight,i.updateProjectionMatrix(),r.setSize(window.innerWidth,window.innerHeight)}));const v=()=>{requestAnimationFrame(v);const e=.001*Date.now();m.rotation.y=.25*e,o.amplitude.value=Math.sin(.5*e),o.color.value.offsetHSL(5e-4,0,0);const t=m.geometry.attributes,a=t.displacement.array;for(let n=0,i=a.length;n<i;n+=3)a[n]+=.3*(.5-Math.random()),a[n+1]+=.3*(.5-Math.random()),a[n+2]+=.3*(.5-Math.random());t.displacement.needsUpdate=!0,r.render(n,i),f.update()};v()}()})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymWebglContainer",ref:a,class:"lym-webgl-container"},Jh,512))}}),[["__scopeId","data-v-1afac6f9"]]),Qh=Object.freeze(Object.defineProperty({__proto__:null,default:Zh},Symbol.toStringTag,{value:"Module"})),ep={class:"lym-tree-node"},tp={key:1,style:{width:"8px",height:"8px","margin-right":"5px"}},np=["id"],ip=l(t.defineComponent({__name:"LymTreeNode",props:{node:{type:Object,required:!0},accordion:{type:Boolean,default:!1},labelKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},childrenKey:{type:String,default:"children"},fontSize:{type:Number,default:15},isExpanded:{type:Boolean,default:!1},singleCheck:{type:Boolean,default:!1},multipleCheck:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},idPrefix:{type:String,default:""}},emits:["update:modelValue","toggle","checkChange","clickChange"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(!1),o=t.ref(!1),l=t.ref(!1),s=t.ref(null),c=t.ref(0);t.watch((()=>i.isExpanded),((e,t)=>{r.value!==e&&d()}));const u=t.computed((()=>i.node[i.childrenKey]&&i.node[i.childrenKey].length));function d(e=""){i.singleCheck&&i.checkStrictly&&e&&e.target&&"content-text"===e.target.className||o.value||(o.value=!0,s.value&&(clearTimeout(s.value),s.value=null),r.value?(l.value=!1,r.value=!1,i.node.isExpanded=r.value):(r.value=!0,l.value=!0,i.node.isExpanded=r.value),a("toggle",{isExpanded:l.value,newChildrenH:c.value,key:i.node[i.valueKey]}),o.value=!1)}function h({isExpanded:e,newChildrenH:t,key:n}){e?(c.value+=t,i.accordion&&i.node[i.childrenKey].forEach((e=>{e[i.valueKey]!==n&&(e.isExpanded=!1)}))):c.value-=t,a("toggle",{isExpanded:e,newChildrenH:t,key:i.node[i.valueKey]})}function p(){if(i.node.isIndeterminate=!1,!i.checkStrictly){const e=i.node.checked;f(i.node,e)}a("checkChange",i.node[i.valueKey])}function m(){if(!i.checkStrictly){const e=i.node[i.childrenKey];let t=0,n=0;if(e&&e.length){for(let i=0;i<e.length;i++)e[i].isIndeterminate?n++:e[i].checked&&t++;t===e.length?(i.node.checked=!0,i.node.isIndeterminate=!1):0===t?n>0?(i.node.isIndeterminate=!0,i.node.checked=!1):(i.node.checked=!1,i.node.isIndeterminate=!1):(i.node.isIndeterminate=!0,i.node.checked=!1)}}a("checkChange",i.node[i.valueKey])}function f(e,t){if(e[i.childrenKey]&&e[i.childrenKey].length){let n=!1;for(let a=0;a<e[i.childrenKey].length;a++)e[i.childrenKey][a].disabled?n=!0:(e[i.childrenKey][a].checked=t,e[i.childrenKey][a].isIndeterminate=!1),f(e[i.childrenKey][a],t);n&&(e.checked=t,e.isIndeterminate=!!t)}}function v(){i.node.disabled||i.singleCheck&&(u.value?i.checkStrictly&&a("clickChange",{keys:[i.node[i.valueKey]],node:{...i.node}}):a("clickChange",{keys:[i.node[i.valueKey]],node:{...i.node}}))}function g(e){e.keys.unshift(i.node[i.valueKey]),a("clickChange",e)}return t.onMounted((()=>{t.nextTick((()=>{setTimeout((()=>{const e=document.getElementById(i.idPrefix+i.node[i.valueKey]);if(e){c.value=0;for(let t=0;t<e.children.length;t++)c.value+=e.children[t].clientHeight}}),300)}))})),(n,i)=>{const a=t.resolveComponent("LymTreeNode",!0);return t.openBlock(),t.createElementBlock("div",ep,[t.createElementVNode("div",{class:"node-content lym-flex-c",onClick:d},[u.value?(t.openBlock(),t.createBlock(z,{key:0,src:"triangle-bottom",type:"svgicon",size:"8","fill-color":"#a8abb2",style:t.normalizeStyle([{transform:"rotate("+(l.value?"0":"-90")+"deg)"},{"transition-duration":".3s","margin-right":"5px"}])},null,8,["style"])):(t.openBlock(),t.createElementBlock("div",tp)),e.multipleCheck?(t.openBlock(),t.createBlock(j,{key:2,modelValue:e.node.checked,"onUpdate:modelValue":i[0]||(i[0]=t=>e.node.checked=t),isIndeterminate:e.node.isIndeterminate,disabled:e.node.disabled,onChange:p,onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},null,8,["modelValue","isIndeterminate","disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"content-text",style:t.normalizeStyle({color:e.node.disabled?"rgba(128, 128, 128, 0.7)":e.node.checked?"#409EFF":"#606266",fontSize:e.fontSize+"px",cursor:e.node.disabled?"not-allowed":"pointer",fontWeight:e.node.checked?"bold":"normal"}),onClick:v},[t.renderSlot(n.$slots,"default",{node:e.node},(()=>[t.createTextVNode(t.toDisplayString(e.node.name),1)]),!0)],4)]),u.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:e.idPrefix+e.node[e.valueKey],class:"children",style:t.normalizeStyle({height:l.value?c.value+"px":"0px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node[e.childrenKey],(i=>(t.openBlock(),t.createBlock(a,{key:i[e.valueKey],node:i,accordion:e.accordion,"is-expanded":i.isExpanded,"label-key":e.labelKey,"value-key":e.valueKey,"children-key":e.childrenKey,"font-size":e.fontSize,"multiple-check":e.multipleCheck,"single-check":e.singleCheck,"check-strictly":e.checkStrictly,onToggle:h,onCheckChange:m,onClickChange:g},{default:t.withCtx((e=>[t.renderSlot(n.$slots,"default",{node:e.node},void 0,!0)])),_:2},1032,["node","accordion","is-expanded","label-key","value-key","children-key","font-size","multiple-check","single-check","check-strictly"])))),128))],12,np)):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-9af8e457"]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:ip},Symbol.toStringTag,{value:"Module"})),rp={class:"lym-tree"},op=l(t.defineComponent({__name:"LymTree",props:{options:{type:Array,required:!0},defaultData:{type:[Array,String,Number],default:[]},defaultExpandedKey:{type:Number,default:-1},accordion:{type:Boolean,default:!1},labelKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},childrenKey:{type:String,default:"children"},fontSize:{type:Number,default:15},singleCheck:{type:Boolean,default:!1},multipleCheck:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),l=t.ref([]),s=t.ref([]),c=t.ref([]),u=t.ref(!1),d=t.ref("");function h(){o(i.defaultData)?c.value=[...i.defaultData]:i.defaultData?c.value=[i.defaultData]:c.value=[],f(r.value),i.multipleCheck&&!i.checkStrictly&&function(e){for(let t=0;t<e.length;t++){const n=v(e[t]);n.isCheckAll?-1!==n.checkedNum&&(e[t].checked=!0,e[t].isIndeterminate=!1):(n.checkedNum>0||n.indeterminateNum>0)&&(e[t].checked=!1,e[t].isIndeterminate=!0)}}(r.value)}function p({isExpanded:e,key:t}){e&&i.accordion&&r.value.forEach((e=>{e[i.valueKey]!==t&&(e.isExpanded=!1)}))}function m(e){e.isExpanded=!0,e[i.childrenKey]&&e[i.childrenKey].length>0&&e[i.childrenKey].forEach((e=>{m(e)}))}function f(e,t=[]){e.forEach((e=>{e.isExpanded=e.isExpanded||!1,e.isIndeterminate=!1;const n=c.value.findIndex((t=>e[i.valueKey]+""===t));e.checked=-1!==n;const a=[...t,e[i.valueKey]];if(e[i.childrenKey]&&e[i.childrenKey].length>0&&f(e[i.childrenKey],a),c.value&&c.value.length){-1!==c.value.findIndex((t=>e[i.valueKey]+""===t))&&(e.checked=!0,i.singleCheck&&(s.value=[...a]))}}))}function v(e){if(e.children&&e.children.length){let t=0,n=0;for(let a=0;a<e.children.length;a++){const r=c.value.findIndex((t=>e.children[a][i.valueKey]+""===t));-1!==r&&t++;const o=v(e.children[a]);o.isCheckAll?-1!==o.checkedNum&&(e.children[a].checked=!0,e.children[a].isIndeterminate=!1,-1===r&&t++):(o.checkedNum>0||o.indeterminateNum>0)&&(e.children[a].checked=!1,e.children[a].isIndeterminate=!0,n++)}return{isCheckAll:t===e.children.length,checkedNum:t,indeterminateNum:n}}return{isCheckAll:!0,checkedNum:-1,indeterminateNum:0}}function g(e){i.checkStrictly||r.value.forEach((t=>{t[i.valueKey]===e&&function(e){const t=e[i.childrenKey];let n=0,a=0;if(t&&t.length){for(let e=0;e<t.length;e++)t[e].isIndeterminate?a++:t[e].checked&&n++;n===t.length?(e.checked=!0,e.isIndeterminate=!1):0===n?a>0?e.isIndeterminate=!0:(e.checked=!1,e.isIndeterminate=!1):e.isIndeterminate=!0}}(t)})),l.value=[],_(r.value),u.value=!0,a("change",JSON.parse(JSON.stringify(l.value)))}function _(e,n=""){i.checkStrictly?e.forEach((e=>{const a=(n?n+"&":"")+e[i.valueKey];e[i.childrenKey]&&e[i.childrenKey].length>0&&_(e[i.childrenKey],a),e.checked&&!e.isIndeterminate&&l.value.push({key:a.split("&").pop(),node:t.toRaw(e)})})):e.forEach((e=>{if(e.checked||e.isIndeterminate){const a=(n?n+"&":"")+e[i.valueKey];e[i.childrenKey]&&e[i.childrenKey].length>0?_(e[i.childrenKey],a):l.value.push({key:a.split("&").pop(),node:t.toRaw(e)})}}))}function x(e){s.value.length&&y(s.value,!1),y(e.keys,!0),s.value=[...e.keys],l.value={key:e.keys.pop(),node:e.node},u.value=!0,a("change",JSON.parse(JSON.stringify(l.value)))}function y(e,t){let n=r.value;for(let a=0;a<e.length;a++){const r=e[a],o=n.findIndex((e=>e[i.valueKey]===r));-1!==o&&(a===e.length-1?n[o].checked=t:n=n[o].children)}}return t.watch((()=>i.defaultData),((e,t)=>{u.value?u.value=!1:h()})),t.computed((()=>0)),t.onMounted((()=>{d.value="childrenBox"+Math.floor(1e3*Math.random()),r.value=JSON.parse(JSON.stringify(i.options)),h(),t.nextTick((()=>{i.defaultExpandedKey>-1&&m(r.value[i.defaultExpandedKey])}))})),(n,i)=>(t.openBlock(),t.createElementBlock("div",rp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(i=>(t.openBlock(),t.createBlock(ip,{key:i[e.valueKey],node:i,accordion:e.accordion,"is-expanded":i.isExpanded,"label-key":e.labelKey,"value-key":e.valueKey,"children-key":e.childrenKey,"font-size":e.fontSize,"multiple-check":e.multipleCheck,"single-check":e.singleCheck,"check-strictly":e.checkStrictly,"id-prefix":d.value,onToggle:p,onCheckChange:g,onClickChange:x},{default:t.withCtx((e=>[t.renderSlot(n.$slots,"default",{node:e.node},void 0,!0)])),_:2},1032,["node","accordion","is-expanded","label-key","value-key","children-key","font-size","multiple-check","single-check","check-strictly","id-prefix"])))),128))]))}}),[["__scopeId","data-v-1e862dd5"]]),lp=Object.freeze(Object.defineProperty({__proto__:null,default:op},Symbol.toStringTag,{value:"Module"})),sp={class:"lym-select__wrapper lym-flex-cb no-select"},cp={style:{flex:"1"}},up={class:"lym-flex-c lym-select__multiple-item"},dp={style:{flex:"1"}},hp=(e=>(t.pushScopeId("data-v-bcf7cc77"),e=e(),t.popScopeId(),e))((()=>t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle"},null,-1))),pp={class:"lym-select_dropdown-content lym-flex-wrap",style:{padding:"10px 10px 5px 10px"}},mp={style:{flex:"1"}},fp={key:2,style:{color:"#a8abb2"}},vp={key:3,style:{color:"#606266"}},gp={class:"lym-select_dropdown-content"},_p=l(t.defineComponent({__name:"LymTreeSelect",props:{modelValue:{type:[String,Array,Number],default:""},options:{type:Array,default:()=>[]},width:{type:[String,Number],default:"240px"},ddbWidth:{type:[String,Number],default:"240px"},fontSize:{type:[String,Number],default:"14px"},padding:{type:String,default:"4px 12px"},scrollMaxH:{type:String,default:"200px"},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},collapseTagsTooltipWidth:{type:Number,default:220},defaultExpandedKey:{type:Number,default:-1},accordion:{type:Boolean,default:!1},labelKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},childrenKey:{type:String,default:"children"},treeFontSize:{type:Number,default:15},checkStrictly:{type:Boolean,default:!1}},emits:["update:modelValue","selectCompleted"],setup(e,{emit:n}){const i=e,o=n,l=t.ref([]),s=t.ref([]),c=t.ref("leave"),u=t.ref(!1),d=t.ref(!1),h=t.ref(!1),p=t.ref({}),m=t.ref("请选择"),f="selectMultipleBoxId"+1e3*Math.random(),v=t.ref(!1),g=t.ref(!1),_=t.ref(null),x=t.ref(!1),y=t.ref(0),S=t.ref(""),b=t.ref(),M=t.ref({x:0,y:0});t.watch((()=>i.modelValue),((e,t)=>{e!==t&&(x.value?x.value=!1:C())})),t.watch((()=>i.options),((e,t)=>{l.value=e})),t.watch((()=>i.ddbWidth),((e,t)=>{let n="";a(e)&&(n=e,n=n.replace("px","")),y.value=Number(n)}),{immediate:!0});const E=t.computed((()=>{let e="",t=i.width;a(t)?e+=`width: ${t};`:r(t)&&(e+=`width: ${t}px;`);let n=i.fontSize;return a(n)?e+=`font-size: ${n};`:r(n)&&(e+=`font-size: ${n}px;`),e+=`padding: ${i.padding};`,e+="border-color: "+(i.disabled?"#e4e7ed":u.value?"#409eff":"leave"===c.value?"#dcdfe6":"#c0c4cc")+";",e+="background-color: "+(i.disabled?"#F5F7FA":"white")+";",e+="cursor: "+(i.disabled?"not-allowed":"pointer")+";",e})),w=t.computed((()=>{let e=!1;return e=i.multiple?p.value.length>0:!!p.value[i.valueKey],!i.disabled&&i.clearable&&e&&"enter"===c.value})),T=t.computed((()=>{let e=!1;return e=i.multiple?p.value.length>0:!!p.value[i.valueKey],e}));function C(){l.value=[...i.options],s.value=i.modelValue,p.value=i.multiple?[]:{},A(l.value),t.nextTick((()=>{M.value.x=b.value.offsetLeft,M.value.y=b.value.offsetTop+b.value.offsetHeight+15}))}function A(e){e.forEach((e=>{if(i.multiple){-1!==s.value.findIndex((t=>t===e[i.valueKey]))&&p.value.push(e)}else e[i.valueKey]===s.value&&(p.value=e);e[i.childrenKey]&&e[i.childrenKey].length&&A(e[i.childrenKey])}))}function N(e){const t=e.target,n=[t.offsetLeft,t.offsetLeft+t.offsetWidth],i=[t.offsetTop,t.offsetTop+t.offsetHeight];e.x>n[0]&&e.x<n[1]&&e.y>i[0]&&e.y<i[1]&&(c.value="enter")}function R(){c.value="leave"}function L(){i.disabled||(u.value=!u.value,q())}function P(){u.value=!1,q()}function q(){u.value?(v.value=!1,d.value=!0):(h.value=!0,setTimeout((()=>{d.value=!1,h.value=!1}),150))}function I(){i.disabled||(i.multiple?(p.value=[],S.value=[],s.value=[]):(p.value={},s.value=""),m.value="请选择",V())}function k(e){i.disabled||(v.value&&(g.value.splice(e-1,1),v.value=!1),p.value.splice(e,1),s.value=p.value.map((e=>e[i.valueKey])),U(),V())}function B(){null===_.value&&(_.value=setTimeout((()=>{v.value=!1}),300))}function D(){d.value||(_.value&&(clearTimeout(_.value),_.value=null),g.value=p.value.slice(1,p.value.length),v.value=!0)}function U(){i.multiple&&t.nextTick((()=>{let e=[],t=[];const n=document.getElementById(f);for(let i=0;i<n.children.length;i++){const a=n.children[i];0!==i&&a.offsetTop-t[t.length-1].top>10&&(e.push([...t]),t=[]),t.push({dom:a,top:a.offsetTop}),i===n.children.length-1&&(e.push([...t]),t=[])}e.forEach(((t,n)=>{t.forEach(((i,a)=>{i.dom.style.marginBottom=n===e.length-1?"0px":"5px",i.dom.style.marginRight=a===t.length-1?"0px":"5px"}))}))}))}function V(){x.value=!0,o("update:modelValue",undefined),o("selectCompleted")}function O(e){if(i.multiple){s.value=e.map((e=>e.key));const t=e.map((e=>e.node));p.value=t,U()}else s.value=e.key,p.value=e.node,P();o("update:modelValue",s.value)}return t.onMounted((()=>{C()})),(n,i)=>{const a=t.resolveDirective("lym-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"lymTreeSelectRef",ref:b,class:"lym-select",style:t.normalizeStyle(E.value),onMouseenter:N,onMouseleave:R,onClick:L},[t.createElementVNode("div",sp,[t.createElementVNode("div",{id:f,class:"lym-flex-wrap",style:{flex:"1","margin-right":"10px"}},[e.multiple&&!e.collapseTags?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(p.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item"},[t.createElementVNode("div",cp,[t.renderSlot(n.$slots,"selectedContent",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>k(a)),["stop"])},null,8,["onClick"])])))),128)):t.createCommentVNode("",!0),e.multiple&&e.collapseTags&&T.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",up,[t.createElementVNode("div",dp,[t.renderSlot(n.$slots,"selectedContent",{selectedData:p.value[0]},(()=>[t.createTextVNode(t.toDisplayString(p.value[0][e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:i[0]||(i[0]=t.withModifiers((e=>k(0)),["stop"]))})]),p.value.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-flex-c lym-select__multiple-item",onMouseenter:D,onMouseleave:B},[t.createTextVNode(" +"+t.toDisplayString(p.value.length-1)+" ",1),v.value&&e.collapseTagsTooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-select__multiple-over-items",style:t.normalizeStyle({width:e.collapseTagsTooltipWidth+"px"}),onMouseenter:D,onMouseleave:B,onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},[hp,t.createElementVNode("div",pp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item",style:{margin:"0 5px 5px 0"}},[t.createElementVNode("div",mp,[t.renderSlot(n.$slots,"selectedcollapseTags",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>k(a+1)),["stop"])},null,8,["onClick"])])))),128))])],36)):t.createCommentVNode("",!0)],32)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),T.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",fp,t.toDisplayString(m.value),1)),!e.multiple&&T.value?(t.openBlock(),t.createElementBlock("div",vp,[t.renderSlot(n.$slots,"selectedContent",{selectedData:p.value},(()=>[t.createTextVNode(t.toDisplayString(p.value[e.labelKey]),1)]),!0)])):t.createCommentVNode("",!0)]),w.value?(t.openBlock(),t.createElementBlock("div",{key:0,style:{width:"16px"},onClick:t.withModifiers(I,["stop"])},[t.createVNode(z,{src:"close-circle-line",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":""})])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-select__suffix",style:t.normalizeStyle({transform:"rotate("+(u.value?"180deg":"0")+")"})},[t.createVNode(z,{src:"arrow-bottom",type:"svgicon","fill-color":"#a8abb2",size:"11"})],4))]),d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-select__dropdown-box-"+(h.value?"hide":"show")]),style:t.normalizeStyle({width:y.value+"px",left:M.value.x+"px",top:M.value.y+"px"}),onClick:i[2]||(i[2]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle",style:t.normalizeStyle({left:3*y.value/4/2+"px"})},null,4),t.createElementVNode("div",gp,[t.createElementVNode("div",{class:"lym-custom-scrollbar",style:t.normalizeStyle([{maxHeight:e.scrollMaxH},{"overflow-y":"auto"}])},[t.createVNode(op,{options:l.value,"default-data":s.value,"single-check":!e.multiple,"multiple-check":e.multiple,accordion:e.accordion,"default-expanded-key":e.defaultExpandedKey,"label-key":e.labelKey,"value-key":e.valueKey,"children-key":e.childrenKey,"font-size":e.treeFontSize,"check-strictly":e.checkStrictly,onChange:O},{default:t.withCtx((e=>[t.createTextVNode(t.toDisplayString(e.node.name),1)])),_:1},8,["options","default-data","single-check","multiple-check","accordion","default-expanded-key","label-key","value-key","children-key","font-size","check-strictly"])],4)])],6)):t.createCommentVNode("",!0)],36)),[[a,P]])}}}),[["__scopeId","data-v-bcf7cc77"]]),xp=Object.freeze(Object.defineProperty({__proto__:null,default:_p},Symbol.toStringTag,{value:"Module"}));let yp=null,Sp=null;const bp={show(e){!function(e){const n=document.getElementsByClassName("lym-loading-container");n.length?Sp=n[0]:(Sp=document.createElement("div"),Sp.className="lym-loading-container",document.body.appendChild(Sp)),yp&&(clearTimeout(yp),yp=null,t.render(null,Sp));const i=t.createVNode(jn,e);t.render(i,Sp),e.duration&&(yp=setTimeout((()=>{yp=null,t.render(null,Sp),Sp.remove()}),e.duration))}(e||{})},hide(){Sp&&Sp.children[0]&&(Sp.children[0].className=Sp.children[0].className.replace("lym-gradually-appear","lym-gradually-display"),setTimeout((()=>{yp&&(clearTimeout(yp),yp=null),t.render(null,Sp),Sp.remove()}),300))}};const Mp={beforeMount(e,t){e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},Ep={mounted(e,t){wp(e,t)},updated(e,t){wp(e,t)}};function wp(e,t){let n,i,a,r,o;e.attributes["lym-loading-text"]&&(n=e.attributes["lym-loading-text"].value),e.attributes["lym-loading-bg-color"]&&(i=e.attributes["lym-loading-bg-color"].value),e.attributes["lym-loading-icon"]&&(a=e.attributes["lym-loading-icon"].value),e.attributes["lym-loading-text-color"]&&(r=e.attributes["lym-loading-text-color"].value),e.attributes["lym-loading-icon-color"]&&(o=e.attributes["lym-loading-icon-color"].value),t.value?bp.show({target:e,text:n,bgColor:i,icon:a,textColor:r,iconColor:o}):bp.hide()}const Tp={async mounted(e,t){const n=await Promise.resolve().then((()=>zp));e.src=n.default;const i=new IntersectionObserver((n=>{n.forEach((n=>{n.isIntersecting&&(e.src=t.value,i.unobserve(e))}))}));i.observe(e)}},Cp=document.createElement("div");Cp.className="lym-notification-container",document.body.appendChild(Cp);let Ap=null;async function Np(e){document.getElementsByClassName("lym-notification").length>0&&(clearTimeout(Ap),t.render(null,Cp));const n=await Q({fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",width:e.params.maxWidth||400,content:e.content}),i=n?Number(n):40,a=e.params.maxWidth||400,r=t.createVNode(Yn,{type:e.type,content:e.content,top:Rp,openDuration:e.params.duration||3e3,maxWidth:a,maxHeight:i,fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",isPlain:e.params.isPlain});t.render(r,Cp),clearTimeout(Ap),Ap=setTimeout((()=>{t.render(null,Cp)}),e.params.duration||3e3)}let Rp=10,Lp=[];async function Pp(e){const n=document.createElement("div");Cp.appendChild(n);const i=await Q({fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",width:e.params.maxWidth||400,content:e.content}),a=e.params.maxWidth||400,r=i?Number(i):40,o=t.createVNode(Yn,{type:e.type,content:e.content,top:Rp,openDuration:e.params.duration||3e3,maxWidth:a,maxHeight:r,fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",isPlain:e.params.isPlain,callback:function(e){Lp.push(e)}});t.render(o,n),setTimeout((()=>{t.render(null,n),Lp.shift(),Rp=Rp-r-10,Cp.removeChild(n),Lp.forEach((e=>{e()}))}),e.params.duration||3e3),Rp+=r+10}const qp={default(e,t){const n={type:"default",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)},success(e,t){const n={type:"success",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)},warning(e,t){const n={type:"warning",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)},danger(e,t){const n={type:"danger",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)}},Ip={install(e){var t;!function(e){e.directive("lym-click-outside",Mp),e.directive("lym-loading-cover",Ep),e.directive("lym-lazy",Tp)}(e);const n=Object.assign({"./components/LymBadge.vue":c,"./components/LymBubbleContainer.vue":d,"./components/LymButton.vue":D,"./components/LymCard.vue":H,"./components/LymCarousel.vue":X,"./components/LymCheckBox.vue":$,"./components/LymCheckBoxGroup.vue":Y,"./components/LymColorPicker.vue":we,"./components/LymCountTo.vue":Ne,"./components/LymDialog.vue":Le,"./components/LymDivider.vue":qe,"./components/LymDrawer.vue":ke,"./components/LymForm.vue":De,"./components/LymFormItem.vue":Ge,"./components/LymInput.vue":nt,"./components/LymLink.vue":ot,"./components/LymPagination.vue":Ot,"./components/LymPopover.vue":Gt,"./components/LymProgress.vue":rn,"./components/LymRate.vue":cn,"./components/LymSelect.vue":It,"./components/LymSkeleton.vue":pn,"./components/LymSlider.vue":_n,"./components/LymSteps.vue":bn,"./components/LymSwitch.vue":wn,"./components/LymTag.vue":Nn,"./components/LymTooltip.vue":Pn,"./components/cascader/LymCascader.vue":ht,"./components/collapse/LymCollapse.vue":In,"./components/collapse/LymCollapseItem.vue":Bn,"./components/date/LymDatePicker.vue":Vn,"./components/date/LymDateTimePicker.vue":Hn,"./components/date/LymTimePicker.vue":Wn,"./components/generic-img/LymGenericImg.vue":k,"./components/generic-img/LymSvgIcons.vue":v,"./components/loading/LymLoading.vue":$n,"./components/notification/LymNotification.vue":Jn,"./components/notification/LymNotificationBox.vue":ei,"./components/table/LymTable.vue":ri,"./components/table/LymTableColumn.vue":si,"./components/tabs/LymTabPane.vue":ui,"./components/tabs/LymTabs.vue":pi,"./components/three/LymColumnChart.vue":Hh,"./components/three/LymWebGLComponent.vue":Qh,"./components/tree/LymTree.vue":lp,"./components/tree/LymTreeNode.vue":ap,"./components/tree/LymTreeSelect.vue":xp});for(const i in n){const a=n[i],r=null==(t=i.split("/").pop())?void 0:t.replace(/\.\w+$/,"");r&&e.component(r,a.default)}}},zp=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"}));e.LymBadge=s,e.LymBubbleContainer=u,e.LymButton=B,e.LymCard=F,e.LymCarousel=W,e.LymCascader=dt,e.LymCheckBox=j,e.LymCheckBoxGroup=K,e.LymCollapse=qn,e.LymCollapseItem=kn,e.LymColorPicker=Ee,e.LymCountTo=Ae,e.LymDatePicker=Un,e.LymDateTimePicker=Fn,e.LymDialog=Re,e.LymDivider=Pe,e.LymDrawer=ze,e.LymForm=Be,e.LymFormItem=He,e.LymGenericImg=z,e.LymInput=tt,e.LymLink=rt,e.LymNotification=qp,e.LymNotificationBox=e=>{const n=document.getElementsByClassName("lym-notification-box-container");let i;return n.length?i=n[0]:(i=document.createElement("div"),i.className="lym-notification-box-container",i.setAttribute("key",Date.now().toString()),document.body.appendChild(i)),new Promise(((n,a)=>{const r=t.createVNode(Qn,{title:e.title,content:e.content,sureText:e.sureText,cancelText:e.cancelText,textCenter:e.textCenter,showCancel:e.showCancel,sureCallback:()=>{t.render(null,i),i.remove(),n(!0)},cancelCallback:()=>{t.render(null,i),i.remove(),a()}});t.render(r,i)}))},e.LymPagination=Vt,e.LymPopover=Ht,e.LymProgress=an,e.LymRate=sn,e.LymSelect=qt,e.LymSkeleton=hn,e.LymSlider=gn,e.LymSteps=Sn,e.LymSwitch=En,e.LymTabPane=ci,e.LymTable=ai,e.LymTableColumn=li,e.LymTabs=hi,e.LymTag=An,e.LymTimePicker=Gn,e.LymTooltip=Ln,e.LymTree=op,e.LymTreeSelect=_p,e.default=Ip,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LuyouminUi={},e.Vue)}(this,(function(e,t){"use strict";var n=Object.defineProperty,i=(e,t,i)=>(((e,t,i)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);function a(e){return"[object String]"===Object.prototype.toString.call(e)}function r(e){return"[object Number]"===Object.prototype.toString.call(e)}function o(e){return"[object Array]"===Object.prototype.toString.call(e)}const l=(e,t)=>{const n=e.__vccOpts||e;for(const[i,a]of t)n[i]=a;return n},s=l(t.defineComponent({__name:"LymBadge",props:{value:{type:[String,Number],default:!1},max:{type:Number,default:99},isDot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},type:{type:String,default:"default"},position:{type:String,default:"top-right"},showZero:{type:Boolean,default:!1},bgColor:{type:String,default:""},offset:{type:Array,default:()=>[0,0]}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref(),o=t.ref({w:0,h:0}),l={default:"#606266",primary:"#409eff",success:"#529b2e",info:"#73767a",warning:"#b88230",danger:"#c45656"},s=t.ref("");t.watch((()=>i.value),((e,t)=>{e!==t&&function(){const e=(r(i.value),Number(i.value));let t="";t=isNaN(e)||0===e?i.showZero?"0":"":e>i.max?i.max+"+":e;s.value=t+""}()}),{immediate:!0});const c=t.computed((()=>{let e="";return e+=`background-color: ${i.bgColor?i.bgColor:l[i.type]};`,"top-right"===i.position?e+="top: 0;right: 0;transform: translate(50%, -50%);":"top-left"===i.position?e+="top: 0;left: 0;transform: translate(-50%, -50%);":"bottom-right"===i.position?e+="bottom: 0;right: 0;transform: translate(50%, 50%);":"bottom-left"===i.position&&(e+="bottom: 0;left: 0;transform: translate(-50%, 50%);"),2===i.offset.length&&(e=e.replace("bottom: 0;left: 0;",""),e+=`top: ${i.offset[0]}px;right: ${i.offset[1]}px;`),e}));return t.onMounted((()=>{o.value.h=a.value.offsetHeight,o.value.w=a.value.offsetWidth})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymBadgeRef",ref:a,class:"lym-badge"},[t.renderSlot(n.$slots,"default",{},void 0,!0),e.hidden||e.isDot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-badge__content",style:t.normalizeStyle(c.value)},t.toDisplayString(s.value),5)),!e.hidden&&e.isDot?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-badge__dot",style:t.normalizeStyle(c.value)},null,4)):t.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-be7eac2d"]]),c=Object.freeze(Object.defineProperty({__proto__:null,default:s},Symbol.toStringTag,{value:"Module"})),u=l(t.defineComponent({__name:"LymBubbleContainer",props:{modelValue:{type:Boolean,default:!1},positionTarget:{type:HTMLElement,default:()=>null},direction:{type:String,default:"bottom"},bgColor:{type:String,default:"#fff"},maxW:{type:String,default:"auto"},zIndex:{type:[Number,String],default:2300},offsetX:{type:[Number,String],default:0},offsetY:{type:[Number,String],default:0},fontSize:{type:[Number,String],default:""},color:{type:String,default:"#000"},borderColor:{type:String,default:"#dcdfe6"},triangleBgColor:{type:String,default:"#fff"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a="lymBubbleContainer-"+Math.random().toString(36).substring(2),r=t.ref(!1),o=t.ref(0),l=t.ref(0),s=t.ref(0),c=t.ref(""),u=t.ref(!1),d=t.ref({x:0,y:0,w:0,h:0}),h=t.ref({w:0,h:0}),p=t.ref(null);t.watch((()=>i.modelValue),((e,n)=>{null!==p.value&&(clearTimeout(p.value),p.value=null),e?function(){const e=i.positionTarget;d.value.x=e.offsetLeft,d.value.y=e.offsetTop,d.value.w=e.clientWidth,d.value.h=e.clientHeight,g(),u.value=!1,r.value=!0,t.nextTick((()=>{const e=document.getElementById(a);h.value.w=e.clientWidth,h.value.h=e.clientHeight}))}():(u.value=!0,p.value=setTimeout((()=>{u.value=!1,r.value=e}),150))}),{immediate:!0});const m=t.computed((()=>{let e="";if(e+=`z-index: ${i.zIndex};`,d.value.w>0)switch(i.direction){case"top":e+=`left: ${d.value.x+(d.value.w-h.value.w)/2+l.value}px;`,e+=`top: ${d.value.y-h.value.h-10+s.value}px;`;break;case"top-start":e+=`left: ${d.value.x+l.value}px;`,e+=`top: ${d.value.y-h.value.h-10+s.value}px;`;break;case"top-end":e+=`left: ${d.value.x+d.value.w-h.value.w+l.value}px;`,e+=`top: ${d.value.y-h.value.h-10+s.value}px;`;break;case"bottom":default:e+=`left: ${d.value.x+(d.value.w-h.value.w)/2+l.value}px;`,e+=`top: ${d.value.y+d.value.h+10+s.value}px;`;break;case"bottom-start":e+=`left: ${d.value.x+l.value}px;`,e+=`top: ${d.value.y+d.value.h+10+s.value}px;`;break;case"bottom-end":e+=`left: ${d.value.x+d.value.w-h.value.w+l.value}px;`,e+=`top: ${d.value.y+d.value.h+10+s.value}px;`;break;case"left":e+=`left: ${d.value.x-h.value.w-10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)/2+s.value}px;`;break;case"left-start":e+=`left: ${d.value.x-h.value.w-10+l.value}px;`,e+=`top: ${d.value.y+s.value}px;`;break;case"left-end":e+=`left: ${d.value.x-h.value.w-10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)+s.value}px;`;break;case"right":e+=`left: ${d.value.x+d.value.w+10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)/2+s.value}px;`;break;case"right-start":e+=`left: ${d.value.x+d.value.w+10+l.value}px;`,e+=`top: ${d.value.y+s.value}px;`;break;case"right-end":e+=`left: ${d.value.x+d.value.w+10+l.value}px;`,e+=`top: ${d.value.y+(d.value.h-h.value.h)+s.value}px;`}return e})),f=t.computed((()=>{let e="";return c.value&&(e+=`font-size: ${c.value};`,e+=`line-height: ${c.value};`),e+=`color: ${i.color};`,e+=`border-color: ${i.borderColor};`,e+=`background: ${i.bgColor};`,e})),v=t.computed((()=>{let e="";if(e+=`color: ${i.color};`,e+=`border-color: ${i.borderColor};`,e+=`background: ${i.triangleBgColor};`,d.value.w>0)switch(i.direction){case"top":e+=`left: ${h.value.w/2-4.4}px;`,e+=`top: ${h.value.h-4.8}px;`,e+="transform: rotate(-135deg);";break;case"top-start":e+=`left: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+=`top: ${h.value.h-4.8}px;`,e+="transform: rotate(-135deg);";break;case"top-end":e+=`right: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+=`top: ${h.value.h-4.8}px;`,e+="transform: rotate(-135deg);";break;case"bottom":default:e+=`left: ${h.value.w/2-4.4}px;`,e+="top: -4.8px;",e+="transform: rotate(45deg);";break;case"bottom-start":e+=`left: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+="top: -4.8px;",e+="transform: rotate(45deg);";break;case"bottom-end":e+=`right: ${(d.value.w>h.value.w?h.value.w:d.value.w)/2-4.4}px;`,e+="top: -4.8px;",e+="transform: rotate(45deg);";break;case"left":e+="right: -4.8px;",e+=`top: ${(h.value.h-9.6)/2}px;`,e+="transform: rotate(135deg);";break;case"left-start":e+="right: -4.8px;",e+=`top: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(135deg);";break;case"left-end":e+="right: -4.8px;",e+=`bottom: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(135deg);";break;case"right":e+="left: -4.8px;",e+=`top: ${(h.value.h-9.6)/2}px;`,e+="transform: rotate(-45deg);";break;case"right-start":e+="left: -4.8px;",e+=`top: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(-45deg);";break;case"right-end":e+="left: -4.8px;",e+=`bottom: ${((d.value.h>h.value.h?h.value.h:d.value.h)-9.6)/2}px;`,e+="transform: rotate(-45deg);"}return e}));function g(){o.value=_(i.zIndex),l.value=_(i.offsetX),s.value=_(i.offsetY),i.fontSize&&(c.value=function(e){let t=e;"number"==typeof t&&(t+="px");return t}(i.fontSize))}function _(e){let t=e;return"string"==typeof t&&(t=t.replace("px",""),t=parseInt(t)),t}return t.onMounted((()=>{g()})),(n,i)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:a,class:t.normalizeClass(["lym-bubble-container",[u.value?"lym-bubble-hide":"lym-bubble-show"]]),style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{class:"lym-bubble-content",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{style:t.normalizeStyle([{maxWidth:e.maxW},{"white-space":"pre-wrap","word-break":"break-all","box-sizing":"border-box"}])},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)],4),t.createElementVNode("div",{class:"lym-bubble-triangle",style:t.normalizeStyle(v.value)},null,4)],6)):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-bb31571b"]]),d=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),h={},p={width:"0",height:"0"},m=[t.createElementVNode("defs",null,[t.createElementVNode("symbol",{id:"qq",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512.009337 0C229.23422 0 0 229.23422 0 511.990663c0 282.775117 229.23422 512.009337 512.009337 512.009337 282.775117 0 512.009337-229.23422 512.009337-512.009337C1024 229.23422 794.76578 0 512.009337 0zM801.26464 668.859701c-21.737567 18.637536-49.955319-61.346999-54.007769-49.040249-9.879014 29.935842-14.529061 49.936644-43.643208 82.505644-1.550016 1.736764 33.670819 14.473036 43.643208 41.62632 9.542867 26.03279 28.143053 67.285613-93.486477 80.227308-71.375413 7.582004-122.936772-38.022067-128.09104-37.592545-9.524192 0.84037-5.284993 0-15.51883 0-8.366349 0-8.926595 0.616271-16.807397 0-2.166287-0.168074-25.883391 37.592545-131.975416 37.592545-82.225521 0-103.514891-51.748108-86.987617-80.227308 16.545949-28.460526 44.128755-36.752175 40.244378-41.252822-19.141758-22.185764-32.363577-45.921544-40.244378-67.360312-1.942188-5.341017-3.585578-10.532635-4.874145-15.51883-2.987982-11.447705-25.883391 67.229588-50.459541 49.040249-24.576149-18.170664-22.391188-64.40968-6.480185-108.687834 16.060402-44.614302 56.491529-87.585213 56.939726-97.072055 1.624715-35.295534-3.473529-41.159448 0-50.422191 7.750078-20.766473 17.19957-12.792297 17.19957-23.567706 0-135.729068 100.863057-245.761494 225.293819-245.761494 124.412088 0 225.275145 110.032426 225.275145 245.761494 0 5.210293 13.520617 0 19.982128 23.567706 1.325917 4.874145 2.259661 23.66108 0.672296 50.422191-0.746995 12.848321 34.268415 28.497875 52.364379 97.072055C828.436598 628.764722 810.321959 661.109624 801.26464 668.859701z","p-id":"7598"})]),t.createElementVNode("symbol",{id:"zhifubao",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M230.404452 576.536487C218.3168 586.264487 205.360974 600.466922 201.598887 618.520487 196.478887 643.18553 200.530365 674.061357 224.327235 698.281183 253.155061 727.64327 296.964452 735.679443 315.886191 737.059617 367.286539 740.777183 422.070539 715.288487 463.364452 686.215791 479.548104 674.795965 507.262887 651.86727 533.753322 616.494748 474.383583 585.84153 400.277148 551.938226 321.050713 555.255096 280.580452 556.946922 251.5968 565.33927 230.404452 576.536487ZM983.262609 712.080696C1009.463652 650.573913 1024 582.967652 1024 512 1024 229.687652 794.334609 0 512 0 229.665391 0 0 229.687652 0 512 0 794.334609 229.665391 1024 512 1024 682.384696 1024 833.491478 940.27687 926.630957 811.876174 838.633739 768.133565 693.604174 696.141913 604.271304 652.577391 561.641739 701.17287 498.621217 749.879652 427.430957 771.072 382.70887 784.361739 342.394435 789.437217 300.232348 780.822261 258.493217 772.274087 227.750957 752.729043 209.830957 733.139478 200.704 723.144348 190.21913 710.433391 182.628174 695.318261 183.340522 697.232696 183.830261 698.368 183.830261 698.368 183.830261 698.368 179.46713 690.843826 176.128 678.867478 174.413913 673.079652 173.256348 667.046957 172.78887 660.72487 172.432696 656.584348 172.343652 652.221217 172.588522 647.68 172.210087 639.977739 172.521739 631.897043 174.258087 623.616 178.44313 603.38087 187.080348 579.806609 209.430261 557.924174 258.493217 509.885217 324.207304 507.302957 358.244174 507.503304 408.665043 507.792696 496.283826 529.853217 570.056348 555.942957 590.491826 512.422957 603.603478 465.875478 612.062609 434.843826L305.307826 434.843826 305.307826 401.67513 462.825739 401.67513 462.825739 335.337739 272.13913 335.337739 272.13913 302.169043 462.825739 302.169043 462.825739 235.853913C462.825739 226.749217 464.62887 219.269565 479.410087 219.269565L554.028522 219.269565 554.028522 302.169043 761.321739 302.169043 761.321739 335.337739 554.028522 335.337739 554.028522 401.67513 719.849739 401.67513C719.849739 401.67513 703.198609 494.502957 651.130435 585.99513 766.686609 627.266783 929.257739 690.843826 983.262609 712.080696Z","p-id":"7751"})]),t.createElementVNode("symbol",{id:"weibo",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M411.270737 607.649684c-17.973895-7.504842-41.189053 0.229053-52.264421 17.542737-11.223579 17.394526-5.955368 38.103579 11.870316 46.201263 18.108632 8.232421 42.132211 0.417684 53.342316-17.421474C435.253895 635.944421 429.446737 615.370105 411.270737 607.649684zM455.545263 589.352421c-6.885053-2.721684-15.508211 0.579368-19.550316 7.329684-3.920842 6.790737-1.751579 14.524632 5.146947 17.367579 7.019789 2.883368 16.006737-0.458105 20.048842-7.370105C465.071158 599.740632 462.551579 591.912421 455.545263 589.352421zM427.52 469.315368c-115.968 11.439158-203.924211 82.216421-196.378947 158.073263 7.531789 75.910737 107.654737 128.161684 223.649684 116.749474 115.994947-11.439158 203.924211-82.216421 196.392421-158.140632C643.664842 510.140632 543.541895 457.889684 427.52 469.315368zM529.300211 648.299789c-23.673263 53.355789-91.769263 81.798737-149.530947 63.232-55.754105-17.933474-79.373474-72.811789-54.945684-122.246737 23.956211-48.464842 86.352842-75.870316 141.541053-61.561263C523.506526 542.437053 552.663579 596.143158 529.300211 648.299789zM512 0C229.241263 0 0 229.227789 0 512c0 282.758737 229.241263 512 512 512 282.772211 0 512-229.241263 512-512C1024 229.227789 794.772211 0 512 0zM455.531789 794.974316c-145.354105 0-293.941895-70.197895-293.941895-185.667368 0-60.362105 38.386526-130.182737 104.474947-196.069053 88.252632-87.929263 191.164632-127.986526 229.874526-89.397895 17.084632 17.003789 18.741895 46.457263 7.760842 81.623579-5.726316 17.690947 16.666947 7.895579 16.666947 7.936 71.343158-29.763368 133.564632-31.514947 156.321684 0.862316 12.139789 17.246316 10.954105 41.472-0.215579 69.510737-5.173895 12.921263 1.589895 14.928842 11.466105 17.879579 40.178526 12.422737 84.924632 42.455579 84.924632 95.380211C772.837053 684.638316 646.090105 794.974316 455.531789 794.974316zM718.672842 427.802947c4.715789-14.457263 1.765053-30.962526-9.202526-43.061895-10.954105-12.072421-27.136-16.666947-42.037895-13.527579l0-0.026947c-12.463158 2.694737-24.724211-5.268211-27.392-17.664-2.667789-12.463158 5.281684-24.697263 17.744842-27.338105 30.531368-6.467368 63.595789 2.937263 85.989053 27.715368 22.447158 24.764632 28.456421 58.489263 18.849684 88.064-3.907368 12.099368-16.936421 18.728421-29.062737 14.848-12.139789-3.920842-18.782316-16.922947-14.874947-28.995368L718.672842 427.816421zM853.261474 471.134316c-0.013474 0.013474-0.013474 0.080842-0.013474 0.107789-4.567579 14.026105-19.712 21.706105-33.778526 17.165474-14.133895-4.554105-21.854316-19.590737-17.300211-33.670737l0-0.013474c13.999158-43.169684 5.12-92.429474-27.567158-128.565895-32.714105-36.122947-80.949895-49.92-125.507368-40.488421-14.484211 3.085474-28.752842-6.130526-31.838316-20.574316-3.098947-14.403368 6.144-28.631579 20.641684-31.717053l0.026947 0c62.625684-13.271579 130.519579 6.117053 176.545684 56.966737C860.483368 341.113263 872.892632 410.381474 853.261474 471.134316z","p-id":"7904"})]),t.createElementVNode("symbol",{id:"github",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M511.54488889 16.27022222C230.17244445 16.15644445 2.27555555 243.93955555 2.27555555 525.08444445 2.27555555 747.40622222 144.83911111 936.39111111 343.38133333 1005.79555555c26.73777778 6.71288889 22.64177778-12.288 22.64177778-25.25866666v-88.17777778c-154.39644445 18.09066667-160.65422222-84.08177778-171.008-101.14844444C174.08 755.48444445 124.58666667 746.38222222 139.37777778 729.31555555c35.15733333-18.09066667 70.99733333 4.55111111 112.52622222 65.87733334 30.03733333 44.48711111 88.63288889 36.97777778 118.32888889 29.58222222 6.48533333-26.73777778 20.36622222-50.63111111 39.48088889-69.17688889-159.97155555-28.672-226.64533333-126.29333333-226.64533333-242.34666667 0-56.32 18.54577778-108.08888889 54.95466666-149.84533333-23.21066667-68.83555555 2.16177778-127.77244445 5.57511111-136.53333333 66.10488889-5.91644445 134.82666667 47.33155555 140.17422223 51.54133333 37.54666667-10.12622222 80.44088889-15.47377778 128.4551111-15.47377777 48.24177778 0 91.24977778 5.57511111 129.13777778 15.8151111 12.85688889-9.78488889 76.57244445-55.52355555 138.01244445-49.94844444 3.29955555 8.76088889 28.10311111 66.33244445 6.25777777 134.25777778 36.864 41.87022222 55.63733333 94.09422222 55.63733334 150.528 0 116.28088889-67.12888889 214.016-227.55555556 242.23288889 26.73777778 26.39644445 43.34933333 63.03288889 43.34933334 103.53777777v128c0.91022222 10.24 0 20.36622222 17.06666666 20.36622223 201.50044445-67.92533333 346.56711111-258.27555555 346.56711112-482.53155556 0-281.25866667-228.01066667-508.928-509.15555556-508.928z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"weixin",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1024C229.23 1024 0 794.77 0 512S229.23 0 512 0s512 229.23 512 512-229.23 512-512 512z m107.91-626.371H640c-20.09-94.744-115.566-162.962-225.304-162.962-124.002 0-222.696 86.04-222.696 198.607 0 65.097 34.572 115.492 89.43 156.94l-23.114 71.12 77.995-41.448a354.748 354.748 0 0 0 77.97 11.8h20.114a133.608 133.608 0 0 1-5.851-47.47 193.122 193.122 0 0 1 57.466-134.412 181.37 181.37 0 0 1 133.096-52.175h0.804z m-115.273-56.296c15.848 0 28.696 14.288 28.696 31.915s-12.848 31.915-28.696 31.915c-17.652 1.95-33.402-12.313-35.304-31.94 0-22.284 17.457-31.89 34.719-31.89h0.585z m-171.032 63.878c-17.555 1.463-33.012-12.653-34.938-31.89 1.926-19.212 17.383-33.329 34.938-31.89 16.042 0 29.062 14.287 29.062 31.915 0 17.603-13.02 31.89-29.062 31.89zM832 574.805c0-92.233-90.136-169.472-192-169.472-107.764 0-192 77.24-192 169.448 0 92.257 84.456 169.496 192 169.496a264.24 264.24 0 0 0 66.828-11.873L767.586 768l-17.408-59.538c49.42-35.596 81.017-83.286 81.017-133.852l0.805 0.195zM573.562 554.52c-10.435 0-18.895-9.484-18.895-21.187s8.46-21.211 18.895-21.211c11.727-1.39 22.308 7.997 23.771 21.114-1.39 13.214-11.97 22.698-23.771 21.284z m128 0.098c-10.435 0-18.895-9.509-18.895-21.212 0-11.751 8.46-21.26 18.895-21.26 11.727-1.414 22.308 7.997 23.771 21.139-2.194 12.921-12.58 22.04-24.259 21.333h0.488z","p-id":"8210"})]),t.createElementVNode("symbol",{id:"close",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M940.75107555 1009.1026963c-17.39859437 0-34.79718875-6.83516208-48.46751288-19.88410785l-857.50215112-857.50215112c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578 26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0l857.50215112 857.50215112c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578-13.67032415 13.04894578-31.06891852 19.88410785-48.4675129 19.88410785z","p-id":"3376"}),t.createElementVNode("path",{d:"M83.24892445 1009.1026963c-17.39859437 0-34.79718875-6.83516208-48.4675129-19.88410785-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l857.50215112-857.50215112c26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0 26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578l-857.50215112 857.50215112c-13.67032415 13.04894578-31.06891852 19.88410785-48.46751288 19.88410785z","p-id":"3377"})]),t.createElementVNode("symbol",{id:"close-circle-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 929.959184c-230.4 0-417.959184-187.559184-417.959184-417.959184s187.559184-417.959184 417.959184-417.959184 417.959184 187.559184 417.959184 417.959184-187.559184 417.959184-417.959184 417.959184z m0-794.122449c-207.412245 0-376.163265 168.75102-376.163265 376.163265s168.75102 376.163265 376.163265 376.163265 376.163265-168.75102 376.163265-376.163265-168.75102-376.163265-376.163265-376.163265z","p-id":"4262"}),t.createElementVNode("path",{d:"M355.265306 689.632653c-5.22449 0-10.44898-2.089796-14.628571-6.269388-8.359184-8.359184-8.359184-21.420408 0-29.779592l313.469387-313.469387c8.359184-8.359184 21.420408-8.359184 29.779592 0 8.359184 8.359184 8.359184 21.420408 0 29.779592l-313.469387 313.469387c-4.702041 4.179592-9.926531 6.269388-15.151021 6.269388z","p-id":"4263"}),t.createElementVNode("path",{d:"M668.734694 689.632653c-5.22449 0-10.44898-2.089796-14.628572-6.269388l-313.469387-313.469387c-8.359184-8.359184-8.359184-21.420408 0-29.779592 8.359184-8.359184 21.420408-8.359184 29.779592 0l313.469387 313.469387c8.359184 8.359184 8.359184 21.420408 0 29.779592-4.702041 4.179592-9.926531 6.269388-15.15102 6.269388z","p-id":"4264"})]),t.createElementVNode("symbol",{id:"close-circle-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64C264.8 64 64 264.8 64 512s200.8 448 448 448 448-200.8 448-448S759.2 64 512 64z m238.4 641.6l-45.6 45.6L512 557.6 318.4 750.4l-45.6-45.6L467.2 512 273.6 318.4l45.6-45.6L512 467.2l193.6-193.6 45.6 45.6L557.6 512l192.8 193.6z","p-id":"5094"})]),t.createElementVNode("symbol",{id:"arrow-left",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M667.648 1014.44266667c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626667l-433.08373333-433.08373333c-11.4688-11.4688-17.47626667-26.76053333-17.47626667-42.5984 0-15.83786667 6.5536-31.1296 17.47626667-42.5984l433.08373333-433.08373334c23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0 23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968l-390.48533333 390.48533334 390.48533333 390.48533333c23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968-12.01493333 12.01493333-27.30666667 17.47626667-42.5984 17.47626667z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"arrow-top",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M947.8144 795.98933333c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626666l-389.9392-391.03146667L124.24533333 777.4208c-23.48373333 23.48373333-61.71306667 23.48373333-85.1968 0-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968l433.62986667-432.5376c23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0l432.5376 433.62986667c23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968-12.01493333 12.01493333-27.30666667 17.47626667-42.5984 17.47626666z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"arrow-right",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M338.3296 1014.44266667c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626667-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968l390.48533333-390.48533333-389.9392-389.9392c-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968 23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0L814.01173333 479.232c11.4688 11.4688 17.47626667 26.76053333 17.47626667 42.5984 0 15.83786667-6.5536 31.1296-17.47626667 42.5984L380.928 996.9664c-11.4688 12.01493333-27.30666667 17.47626667-42.5984 17.47626667z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"arrow-bottom",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M515.2768 795.98933333c-15.29173333 0-30.58346667-6.00746667-42.5984-17.47626666L39.59466667 346.5216c-23.48373333-23.48373333-23.48373333-61.71306667 0-85.1968 23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0l391.03146666 389.9392L905.216 260.23253333c23.48373333-23.48373333 61.71306667-23.48373333 85.1968 0 23.48373333 23.48373333 23.48373333 61.71306667 0 85.1968l-432.5376 433.62986667c-11.4688 11.4688-27.30666667 16.93013333-42.5984 16.93013333z","p-id":"3376"})]),t.createElementVNode("symbol",{id:"double-arrow-right",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M491.49451378 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751289-19.88410785-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l376.55529244-376.55529245-373.44840058-373.44840058c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502579 26.71926992-26.71926992 70.21575585-26.71926992 96.93502577 0l421.91591348 421.91591349c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578l-425.02280533 425.02280533c-13.67032415 13.67032415-31.06891852 19.88410785-48.46751289 19.88410785z","p-id":"3376"}),t.createElementVNode("path",{d:"M126.74541037 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751289-19.88410785-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l376.55529244-376.55529245-373.44840059-373.44840058c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502579 26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0l421.91591348 421.91591349c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578l-425.02280534 425.02280533c-13.67032415 13.67032415-31.06891852 19.88410785-48.46751288 19.88410785z","p-id":"3377"})]),t.createElementVNode("symbol",{id:"double-arrow-left",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M539.3406483 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751289-19.88410785l-425.02280533-425.02280533c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l421.91591347-421.91591349c26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0 26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502579l-374.06977896 374.06977895 376.55529245 376.55529245c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578-13.04894578 13.04894578-30.44754015 19.26272948-47.84613452 19.26272948z","p-id":"3376"}),t.createElementVNode("path",{d:"M904.0897517 1014.69510163c-17.39859437 0-34.79718875-6.83516208-48.46751288-19.88410785l-425.02280534-425.02280533c-26.71926992-26.71926992-26.71926992-70.21575585 0-96.93502578l421.91591349-421.91591349c26.71926992-26.71926992 70.21575585-26.71926992 96.93502578 0 26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502579l-374.06977897 374.06977895 376.55529244 376.55529245c26.71926992 26.71926992 26.71926992 70.21575585 0 96.93502578-13.04894578 13.04894578-30.44754015 19.26272948-47.84613452 19.26272948z","p-id":"3377"})]),t.createElementVNode("symbol",{id:"double-triangle",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M805.29059082 365.35470459l-254.76513185-320.63123911c-20.50548622-26.09789155-60.27370192-26.09789155-81.40056652 0L213.73838222 365.35470459c-26.71926992 34.17581037-2.48551348 84.50745837 41.01097245 84.50745838h510.15164208c43.49648592 0 67.73024237-50.331648 40.38959407-84.50745838zM805.29059082 658.64529541l-254.76513185 320.63123911c-20.50548622 26.09789155-60.27370192 26.09789155-81.40056652 0l-254.76513186-320.63123911c-27.3406483-34.17581037-3.10689185-84.50745837 40.38959408-84.50745838h510.15164208c43.49648592 0 67.73024237 50.331648 40.38959407 84.50745838z","p-id":"3530"})]),t.createElementVNode("symbol",{id:"triangle-top",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M972.78591523 711.15323455l-400.25895178-503.74053444c-32.21596439-41.00213652-94.69541053-41.00213652-127.88761631 0l-400.25895181 503.74053444c-42.95461922 53.69327404-4.88120672 132.76882302 63.45568751 132.76882301h801.49414493c68.3368942 0 106.4103067-79.07554901 63.45568746-132.76882301z","p-id":"3683"})]),t.createElementVNode("symbol",{id:"triangle-bottom",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M970.97740884 312.84676545l-400.25895181 503.74053444c-32.21596439 41.00213652-94.69541053 41.00213652-127.8876163 0L41.59564757 312.84676545c-41.97837786-53.69327404-3.9049654-132.76882302 64.43192883-132.76882301h801.49414495c68.3368942 0 106.4103067 79.07554901 63.45568749 132.76882301z","p-id":"3989"})]),t.createElementVNode("symbol",{id:"playing",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"4142"}),t.createElementVNode("path",{d:"M360.53902222 281.89582222h69.90506667v466.03377778H360.53902222zM593.55591111 281.89582222h69.90506667v466.03377778h-69.90506667z","p-id":"4143"})]),t.createElementVNode("symbol",{id:"playing-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 68.266667C266.24 68.266667 68.266667 266.24 68.266667 512s197.973333 443.733333 443.733333 443.733333 443.733333-197.973333 443.733333-443.733333S757.76 68.266667 512 68.266667z m-68.266667 610.986666c0 20.48-17.066667 37.546667-37.546666 37.546667s-37.546667-17.066667-37.546667-37.546667v-327.68c0-20.48 17.066667-37.546667 37.546667-37.546666s37.546667 17.066667 37.546666 37.546666v327.68z m211.626667-6.826666c0 20.48-17.066667 37.546667-37.546667 37.546666s-37.546667-17.066667-37.546666-37.546666v-327.68c0-20.48 17.066667-37.546667 37.546666-37.546667s37.546667 17.066667 37.546667 37.546667v327.68z","p-id":"4417"})]),t.createElementVNode("symbol",{id:"success-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M462.52032 668.12131555c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-121.16878223-121.16878222c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l96.11946667 96.11946666L679.80856889 366.36444445c13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888L487.56963555 657.63555555c-6.99050667 6.99050667-15.72864 10.48576-25.04931555 10.48576z","p-id":"4450"}),t.createElementVNode("path",{d:"M523.1047111 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.9863111-500.98631111s224.86129778-500.98631111 500.9863111-500.98631111 500.98631111 224.86129778 500.98631112 500.98631111-224.86129778 500.98631111-500.98631112 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124443 431.08124445s193.40401778 431.08124445 431.08124443 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"4451"})]),t.createElementVNode("symbol",{id:"success-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M510.645654 959.349561c-247.25636 0-447.691345-200.446241-447.691345-447.700555 0-247.24715 200.436008-447.692369 447.691345-447.692369 247.25636 0 447.693392 200.445218 447.693392 447.692369C958.339046 758.90332 757.902014 959.349561 510.645654 959.349561zM784.191774 354.236883l-14.387685-14.387685c-7.949043-7.949043-20.826328-7.949043-28.77537 0L442.600909 632.086006 333.044724 517.430686c-3.597945-3.596921-12.958126-0.060375-20.908192 7.888667l-14.387685 14.389732c-7.949043 7.949043-11.465123 17.309224-7.869225 20.895913L436.064029 713.574948c3.576455 3.597945 12.936637 0.049119 20.886703-7.888667l14.368242-14.388708c2.542916-2.523473 4.411473-5.136997 5.960759-7.710612l306.913065-300.56345C792.142863 375.083677 792.142863 362.185926 784.191774 354.236883z","p-id":"5410"})]),t.createElementVNode("symbol",{id:"error-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M523.65084445 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631112-500.98631111s224.86129778-500.98631111 500.98631112-500.98631111 500.98631111 224.86129778 500.9863111 500.98631111-224.86129778 500.98631111-500.9863111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124444-431.08124445-193.40401778-431.08124445-431.08124444-431.08124445z","p-id":"4758"}),t.createElementVNode("path",{d:"M688.51029333 711.81198222c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576L334.32462222 372.18986667c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l329.71889778 329.71889777c13.39847111 13.39847111 13.39847111 35.53507555 0 49.5160889-6.99050667 6.40796445-16.31118222 9.90321778-25.04931556 9.90321777z","p-id":"4759"}),t.createElementVNode("path",{d:"M358.79139555 711.81198222c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889L663.46097778 322.67377778c13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889L383.84071111 701.32622222c-6.99050667 6.99050667-15.72864 10.48576-25.04931556 10.48576z","p-id":"4760"})]),t.createElementVNode("symbol",{id:"error-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64C264.58 64 64 264.58 64 512s200.58 448 448 448 448-200.58 448-448S759.42 64 512 64z m215 612.05a36.11 36.11 0 0 1 0 50.95 36.11 36.11 0 0 1-50.91 0L512 562.91 348 727a36.11 36.11 0 0 1-51 0 36.11 36.11 0 0 1 0-50.91l164-164L297 348a36.11 36.11 0 0 1 0-51 36.11 36.11 0 0 1 51 0l164 164.09 164-164a36.11 36.11 0 0 1 51-0.09 36.11 36.11 0 0 1 0 51L562.91 512z","p-id":"6575"})]),t.createElementVNode("symbol",{id:"location-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M517.46133333 556.20266667c-84.10453333 0-152.91733333-68.8128-152.91733333-152.91733333s68.8128-152.91733333 152.91733333-152.91733334 152.91733333 68.8128 152.91733334 152.91733334-68.8128 152.91733333-152.91733334 152.91733333z m0-240.29866667c-48.05973333 0-87.38133333 39.3216-87.38133333 87.38133334s39.3216 87.38133333 87.38133333 87.38133333 87.38133333-39.3216 87.38133334-87.38133333-39.3216-87.38133333-87.38133334-87.38133334z","p-id":"5068"}),t.createElementVNode("path",{d:"M519.64586667 993.10933334c-6.00746667 0-12.56106667-1.6384-17.47626667-5.46133334-16.384-9.8304-388.84693333-252.85973333-388.84693333-560.3328 0-223.91466667 182.40853333-406.3232 406.3232-406.3232 223.91466667 0 406.3232 182.40853333 406.3232 406.3232 0 312.9344-373.00906667 551.04853333-388.84693334 560.87893334-5.46133333 3.2768-11.4688 4.9152-17.47626666 4.9152z m0-906.58133334C331.776 86.528 178.85866667 239.44533334 178.85866667 427.3152c0 236.47573333 268.6976 442.91413333 340.7872 493.70453334 72.0896-50.24426667 340.24106667-252.85973333 340.24106666-493.70453334 0-187.86986667-152.91733333-340.7872-340.24106666-340.7872z","p-id":"5069"})]),t.createElementVNode("symbol",{id:"location-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M516.320553 65.913723C327.473365 66.759049 174.512778 221.085162 175.350878 409.954025c0.787526 177.21493 282.974557 496.596289 315.154731 532.417865a39.737529 39.737529 0 0 0 59.440119-0.2601c31.862273-36.110576 311.202653-357.991787 310.415127-535.213942-0.838101-188.861638-155.178664-341.822225-344.040302-340.984125z m2.196402 492.860961c-76.483906 0.339575-139.009102-61.614845-139.348677-138.105976-0.339575-76.491131 61.629295-139.001877 138.105976-139.334227 76.512806-0.3468 139.023552 61.60762 139.363127 138.091526 0.339575 76.498356-61.614845 139.001877-138.120426 139.348677z","p-id":"7595"})]),t.createElementVNode("symbol",{id:"menu-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M468.50351408 468.50351408H170.2418963c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V170.2418963c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h136.70324148c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v298.26161778zM170.2418963 83.24892445c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v136.70324148c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h223.69621333V170.2418963c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185H170.2418963zM853.7581037 468.50351408h-298.26161778V170.2418963c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h136.70324148c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v136.70324148c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z m-223.69621333-74.56540445h223.69621333c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185V170.2418963c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-136.70324148c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v223.69621333zM306.94513778 1015.31648H170.2418963c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763v-136.70324148c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h298.26161778v298.26161778c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z m-136.70324148-385.25458963c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v136.70324148c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h136.70324148c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185v-223.69621333H170.2418963zM853.7581037 1015.31648h-136.70324148c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763v-298.26161778h298.26161778c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v136.70324148c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z m-223.69621333-385.25458963v223.69621333c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h136.70324148c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185v-136.70324148c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-223.69621333z","p-id":"5376"})]),t.createElementVNode("symbol",{id:"menu-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M306.94513778 8.68352H170.2418963c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.5583763v136.70324148c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h260.97891555c20.50548622 0 37.28270222-16.777216 37.28270223-37.28270223V170.2418963c0-88.85710697-72.70126933-161.5583763-161.5583763-161.5583763zM853.7581037 8.68352h-136.70324148c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.5583763v260.97891555c0 20.50548622 16.777216 37.28270222 37.28270223 37.28270223h260.97891555c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763V170.2418963c0-88.85710697-72.70126933-161.5583763-161.5583763-161.5583763zM431.22081185 555.49648592H170.2418963c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.5583763v136.70324148c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h136.70324148c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763v-260.97891555c0-20.50548622-16.777216-37.28270222-37.28270223-37.28270223zM853.7581037 555.49648592h-260.97891555c-20.50548622 0-37.28270222 16.777216-37.28270223 37.28270223v260.97891555c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h136.70324148c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763v-136.70324148c0-88.85710697-72.70126933-161.5583763-161.5583763-161.5583763z","p-id":"5529"})]),t.createElementVNode("symbol",{id:"compass-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M331.41191111 727.54062222c-9.32067555 0-18.05880889-3.49525333-24.46677333-10.48576-9.32067555-9.32067555-12.23338667-22.71914667-8.73813333-34.95253333l85.05116444-276.12501334c3.49525333-11.06830222 12.23338667-19.80643555 23.30168889-23.30168888l276.12501333-85.05116445c12.23338667-4.07779555 25.63185778-0.58254222 34.95253334 8.73813333 9.32067555 9.32067555 12.23338667 22.71914667 8.73813333 34.95253334l-85.05116445 276.12501333c-3.49525333 11.06830222-12.23338667 19.80643555-23.30168888 23.30168889l-276.12501334 85.05116444c-3.49525333 1.16508445-6.99050667 1.74762667-10.48576 1.74762667z m113.01319111-283.11552l-60.00184889 195.15164445 195.15164445-60.00184889 60.00184889-195.15164445-195.15164445 60.00184889z m163.11182223 163.11182223z","p-id":"5682"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"5683"})]),t.createElementVNode("symbol",{id:"compass-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m108.544 620.544l-398.336 181.248 181.248-398.336 398.336-181.248z","p-id":"10207"}),t.createElementVNode("path",{d:"M512 512m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z","p-id":"10208"})]),t.createElementVNode("symbol",{id:"share-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M820.74737778 365.19936c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889L886.57464889 214.90346667l-90.87658667-90.87658667c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0L960.55751111 190.43669333c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889L845.21415111 354.7136c-6.40796445 6.99050667-15.72864 10.48576-24.46677333 10.48576z","p-id":"5990"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253333s-15.72864 34.95253333-34.95253333 34.95253333c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333c0 276.12501333-224.86129778 500.98631111-500.98631111 500.98631111z","p-id":"5991"}),t.createElementVNode("path",{d:"M512 599.38133333h-2.33016889c-19.22389333-1.16508445-33.78744889-17.47626667-32.62236444-36.70016 8.15559111-136.31488 53.01134222-238.84231111 133.40216888-305.25212444 117.67352889-96.70200889 266.80433778-78.06065778 273.21230223-76.89557334 19.22389333 2.33016889 32.62236445 20.38897778 29.70965333 39.61287112-2.33016889 19.22389333-20.38897778 32.62236445-39.03032889 29.70965333-1.74762667 0-126.41166222-15.14609778-220.20096 62.33201778-64.66218667 53.59388445-100.77980445 139.22759111-107.77031111 254.57095111-0.58254222 18.05880889-15.72864 32.62236445-34.36999111 32.62236444z","p-id":"5992"})]),t.createElementVNode("symbol",{id:"share-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M511 64C263.5 64 63 264.5 63 512c0 247.4 200.6 448 448 448s448-200.6 448-448c0-247.5-200.6-448-448-448z m-66.8 448c0 10.2-2.1 20-5.8 28.9L561.6 623c12-8.5 26.7-13.5 42.5-13.5 40.9 0 74.1 33.2 74.1 74.1 0 40.9-33.2 74.1-74.1 74.1-40.9 0-74.1-33.2-74.1-74.1 0-5.7 0.7-11.2 1.9-16.6l-131.4-87.6c-9.3 4.2-19.6 6.6-30.5 6.6-40.9 0-74.1-33.2-74.1-74.1 0-40.9 33.2-74.1 74.1-74.1 10.9 0 21.2 2.4 30.5 6.6l131.4-87.6c-1.2-5.3-1.9-10.9-1.9-16.6 0-40.9 33.2-74.1 74.1-74.1 40.9 0 74.1 33.2 74.1 74.1s-33.2 74.1-74.1 74.1c-15.8 0-30.5-5-42.5-13.5l-123.2 82.1c3.7 9.1 5.8 18.8 5.8 29.1z","p-id":"19089"})]),t.createElementVNode("symbol",{id:"superpose-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M521.68248888 1007.16088889c-276.12501333 0-500.98631111-224.86129778-500.9863111-500.98631111s224.86129778-500.98631111 500.9863111-500.98631111 500.98631111 224.86129778 500.98631112 500.98631111-224.86129778 500.98631111-500.98631112 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124444 431.08124445-193.40401778 431.08124445-431.08124444-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"6301"}),t.createElementVNode("path",{d:"M706.93091555 726.37553778c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576L311.38474666 345.39292445c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.5160889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l370.49685333 370.49685334c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889-6.40796445 6.99050667-15.14609778 10.48576-24.46677333 10.48576z","p-id":"6302"})]),t.createElementVNode("symbol",{id:"superpose-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M830.5664 626.55488l91.0336 47.9232-408.96512 212.992L102.4 674.39616l91.36128-47.9232 318.8736 165.56032 317.92128-165.4784z m0-160.5632l91.0336 47.9232-408.96512 212.992L102.4 513.8432l91.36128-47.9232 318.8736 165.57056 317.92128-165.4784zM512.63488 136.52992L921.6 351.6928l-408.96512 212.992L102.4 351.6928l410.24512-215.16288z","p-id":"23547"})]),t.createElementVNode("symbol",{id:"praise-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M743.85180445 1019.97681778c-53.59388445 0-300.59178667-1.74762667-481.17987556-3.49525333-65.24472889-0.58254222-121.75132445-1.16508445-157.2864-1.16508445-38.44778667-0.58254222-69.32252445-31.45728-69.32252444-69.90506667V435.68696889c0-38.44778667 31.45728-69.90506667 69.90506666-69.90506667h136.89742222c3.49525333 0 94.37184 2.91271111 135.73233778-125.24657777C423.45358222 101.30773333 438.59968 64.60757333 442.09493333 55.86944c3.49525333-9.32067555 19.22389333-43.69066667 58.83676445-54.75896889 39.61287111-11.06830222 85.63370667 5.24288 138.06250667 48.93354667 94.95438222 68.73998222 34.36999111 240.00739555 33.78744888 241.75502222-3.49525333 9.90321778-12.23338667 41.94304-23.88423111 86.79879111h263.30908445l2.91271111 0.58254222c5.24288 1.16508445 53.01134222 11.06830222 77.47811555 52.4288 10.48576 18.05880889 20.38897778 49.51608889 5.24288 93.78929778-27.37948445 79.80828445-117.09098667 379.81752889-124.66403555 405.44938667-6.99050667 32.62236445-41.36049778 89.12896-129.32437333 89.12896zM105.38552889 435.68696889v510.30698666c36.11761778 0 92.62421333 0.58254222 157.2864 1.16508445 180.00554667 1.16508445 427.00344889 3.49525333 480.59733333 3.49525333 49.51608889 0 58.83676445-26.79694222 60.58439111-33.78744888v-2.91271112l0.58254222-1.16508444c4.66033778-13.39847111 97.86709333-325.05856 126.99420445-409.52718222 5.24288-15.14609778 5.24288-27.37948445 0.58254222-35.53507556-5.82542222-10.48576-20.38897778-16.31118222-27.37948444-18.64135111h-286.02823111c-14.56355555 0-27.96202667-6.40796445-36.70016-18.05880889-8.73813333-11.06830222-12.23338667-26.2144-8.73813334-40.19541333 11.06830222-45.43829333 26.2144-104.27505778 33.20490667-122.91640889 12.23338667-33.20490667 32.03982222-132.23708445-9.32067555-161.36419556l-2.3301689-1.74762666c-46.60337778-39.61287111-68.73998222-37.86524445-74.56540444-36.11761778-8.15559111 2.33016889-11.65084445 9.90321778-12.81592889 12.23338666l-0.58254222 2.3301689-0.58254222 1.16508444c-0.58254222 0.58254222-12.23338667 27.96202667-60.58439111 177.67537778C388.50104889 435.68696889 256.84650667 436.26951111 239.37024 435.68696889h-133.98471111z","p-id":"6610"}),t.createElementVNode("path",{d:"M202.67008 499.18407111h69.90506667v399.04142222h-69.90506667V499.18407111z","p-id":"6611"})]),t.createElementVNode("symbol",{id:"praise-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M978.03377778 446.75527111c-17.39859437-29.20478341-50.95302637-38.52545897-60.8950803-41.01097244h-297.6402394l8.07791881-32.31167526c13.04894578-49.08889125 21.12686459-79.53643141 24.85513481-90.09986371 2.48551348-6.2137837 53.43853985-157.83010608-24.85513481-214.99691615l-0.62137837-0.62137837-0.62137837-0.62137836c-37.28270222-31.06891852-70.21575585-46.60337778-97.55640415-46.60337779-6.2137837 0-12.42756741 0.62137837-18.01997275 2.48551349-29.20478341 8.07791882-40.38959408 34.17581037-42.25372917 39.7682157l-1.24275675 1.86413511c-16.15583763 40.38959408-43.49648592 122.41153897-63.38059378 183.92799764-44.1178643 137.94599822-141.67426845 144.7811603-160.93699792 144.78116028H103.75441067c-24.85513482 0-44.73924267 19.88410785-44.73924267 44.73924267V953.17864297c0 24.85513482 19.26272948 44.1178643 44.1178643 44.73924266 29.82616178 0 74.56540445 0.62137837 126.13980918 0.62137837l32.93305363 0.62137837c188.27764622 1.86413511 433.10072415 3.72827022 485.91788564 3.72827022 87.61435022 0 103.77018785-62.13783703 105.01294458-69.59437748v-2.48551348c9.32067555-31.06891852 98.79916089-329.95191467 126.13980919-410.73110281 13.67032415-35.41856711 6.83516208-59.65232355-1.24275674-73.32264771z","p-id":"6764"}),t.createElementVNode("path",{d:"M174.59154489 474.71729778h78.29367466v445.52829155H174.59154489V474.71729778z","p-id":"6765"})]),t.createElementVNode("symbol",{id:"amplify-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M462.12209778 926.77006222c-253.98840889 0-460.79089778-206.80248889-460.79089778-460.79089777C1.3312 211.99075555 208.13368889 5.18826667 462.12209778 5.18826667s460.79089778 206.80248889 460.79089778 460.79089778c0 253.98840889-206.80248889 460.79089778-460.79089778 460.79089777z m0-851.67672889C246.58147556 75.09333333 71.23626667 250.43854222 71.23626667 465.97916445s175.34520889 390.88583111 390.88583111 390.8858311c215.54062222 0 390.88583111-175.34520889 390.88583111-390.8858311S677.66272 75.09333333 462.12209778 75.09333333z","p-id":"6918"}),t.createElementVNode("path",{d:"M973.59416889 1024.05461333c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-214.95808-214.95808c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l214.95808 214.95808c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888-6.99050667 6.99050667-15.72864 10.48576-25.04931556 10.48576zM462.12209778 704.23893333c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333V262.67192889c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253334 34.95253334V669.2864c0 19.22389333-15.72864 34.95253333-34.95253334 34.95253333z","p-id":"6919"}),t.createElementVNode("path",{d:"M665.42933334 500.93169778H258.81486222c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253334H665.42933334c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253334s-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"6920"})]),t.createElementVNode("symbol",{id:"amplify-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM618.666667 512H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 0 42.666667z","p-id":"25411"})]),t.createElementVNode("symbol",{id:"dustbin-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M738.38819555 1021.5302637H303.4233363c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.55837629V188.88324741c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270223h683.51620741c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270223v671.08864c0 88.85710697-72.70126933 161.5583763-161.5583763 161.55837629zM216.43036444 226.16594963v633.80593778c0 47.84613452 39.14683733 86.99297185 86.99297186 86.99297184h434.96485925c47.84613452 0 86.99297185-39.14683733 86.99297186-86.99297184V226.16594963H216.43036444z","p-id":"7073"}),t.createElementVNode("path",{d:"M524.01265778 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270223-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM359.34738963 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM688.67792592 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270223 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222zM986.9395437 226.16594963H54.87198815c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h932.06755555c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270223s-16.777216 37.28270222-37.28270222 37.28270222z","p-id":"7074"}),t.createElementVNode("path",{d:"M713.53306074 226.16594963H328.27847111c-13.04894578 0-24.85513482-6.83516208-31.69029689-17.39859438-6.83516208-10.5634323-7.45654045-24.23375645-1.86413511-36.03994547l71.45851259-149.13080889c6.2137837-13.04894578 19.26272948-21.12686459 33.554432-21.12686459h242.33756445c14.29170252 0 27.3406483 8.07791882 33.554432 21.12686459l71.45851259 149.13080889c5.59240533 11.80618903 4.97102697 24.85513482-1.86413511 36.03994547-6.83516208 10.5634323-18.64135111 17.39859437-31.69029689 17.39859438zM387.3094163 151.60054518h267.19269925l-35.41856711-74.56540443H423.34936178l-36.03994548 74.56540443z","p-id":"7075"})]),t.createElementVNode("symbol",{id:"dustbin-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M986.9395437 151.60054518h-249.79410489L676.25035851 23.59660089c-6.2137837-13.04894578-19.26272948-21.12686459-33.554432-21.12686459h-242.33756443c-14.29170252 0-27.3406483 8.07791882-33.554432 21.12686459L304.66609303 151.60054518H54.87198815c-20.50548622 0-37.28270222 16.777216-37.28270223 37.28270223s16.777216 37.28270222 37.28270223 37.28270222h86.99297185v633.80593778c0 88.85710697 72.70126933 161.5583763 161.5583763 161.55837629h434.96485925c88.85710697 0 161.5583763-72.70126933 161.5583763-161.55837629V226.16594963h86.99297185c20.50548622 0 37.28270222-16.777216 37.28270222-37.28270222s-16.777216-37.28270222-37.28270222-37.28270223z","p-id":"7228"}),t.createElementVNode("path",{d:"M524.01265778 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270223-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM359.34738963 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM688.67792592 785.40648297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V437.43459555c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270223 37.28270222v310.6891852c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222z","p-id":"7229"})]),t.createElementVNode("symbol",{id:"reply-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M514.33016889 1016.84337778c-78.06065778 0-154.95623111-18.05880889-224.27875556-53.01134223-27.37948445 7.57304889-69.90506667 18.05880889-110.68302222 28.54456889-22.13660445 5.82542222-44.27320889 11.06830222-64.07964444 16.31118222-22.71914667 5.82542222-46.60337778-0.58254222-64.07964445-16.31118222-16.89372445-16.31118222-24.46677333-39.61287111-19.80643555-62.91456 10.48576-50.09863111 18.64135111-101.36234667 26.2144-142.14030222 2.91271111-17.47626667 5.82542222-33.78744889 8.15559111-47.18592-39.61287111-79.22574222-57.67168-168.93724445-51.84625778-258.06620444 15.72864-256.90112 231.85180445-461.95598222 489.33546667-467.19886223 137.47996445-2.91271111 266.22179555 49.51608889 363.50634666 146.80064s149.13080889 226.02638222 146.80064 363.50634667l-33.78744888-0.58254222 33.78744888 0.58254222c-4.66033778 258.64874667-210.88028445 473.60682667-467.78140444 489.91800889-10.48576 1.16508445-20.97152 1.74762667-31.45728 1.74762667z m-224.27875556-121.16878223c10.48576 0 20.97152 2.33016889 30.87473778 7.57304889 68.15744 33.78744889 145.05301333 49.51608889 221.36604444 44.27320889 222.53112889-13.98101333 400.20650667-200.39452445 404.28430223-423.50819555 2.33016889-118.83861333-42.52558222-230.68672-126.41166223-313.99025778S625.01319111 81.28056888 506.17457778 83.61073778c-223.69621333 3.49525333-409.52718222 180.58808889-424.09073778 403.11921777-5.24288 77.47811555 10.48576 154.37368889 44.85575111 222.53112889 6.99050667 13.39847111 9.32067555 28.54456889 6.40796444 43.10812444-2.33016889 12.81592889-5.24288 29.12711111-8.1555911 46.60337778-6.99050667 41.36049778-15.72864 93.20675555-26.2144 143.88792889 19.80643555-5.24288 41.94304-11.06830222 64.07964444-16.31118222 40.19541333-10.48576 82.13845333-20.38897778 108.93539556-27.96202667 5.24288-2.33016889 11.65084445-2.91271111 18.05880888-2.91271111z","p-id":"7382"}),t.createElementVNode("path",{d:"M513.74762667 814.11868444c-136.31488 0-246.99790222-110.68302222-246.99790222-246.99790222h68.15744c0 99.03217778 79.80828445 178.84046222 178.84046222 178.84046222s178.84046222-79.80828445 178.84046222-178.84046222h68.15744c0 136.31488-110.68302222 246.99790222-246.99790222 246.99790222z","p-id":"7383"})]),t.createElementVNode("symbol",{id:"reply-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M864.321536 166.09871644c-93.82813392-93.82813392-218.103808-145.40253867-349.83602252-145.40253866h-10.5634323c-256.62926697 4.97102697-470.38342637 208.78313245-486.539264 463.5482643-6.2137837 87.61435022 11.80618903 176.47145718 51.57440474 256.00788858l3.72827023 6.83516208-1.24275674 7.45654044c-0.62137837 5.59240533-1.86413511 11.18481067-3.10689186 17.39859437-1.86413511 9.94205392-3.72827022 20.50548622-5.59240533 31.69029689-1.86413511 11.18481067-4.34964859 22.36962133-6.2137837 34.79718874-6.2137837 34.79718875-13.04894578 74.56540445-21.1268646 113.71224178-3.10689185 16.15583763 1.86413511 31.69029689 13.67032416 43.49648592 9.32067555 8.07791882 21.12686459 12.42756741 32.93305362 12.42756742 3.72827022 0 7.45654045-0.62137837 11.18481067-1.24275675l67.108864-17.39859437c53.43853985-13.04894578 90.72124208-22.9909997 114.95499852-29.2047834l8.69929719-2.48551348 8.07791881 4.34964858c68.35162075 34.17581037 145.40253867 52.19578311 222.45345659 52.19578312 9.94205392 0 19.88410785-0.62137837 29.82616177-1.86413512h1.24275675c256.00788859-16.15583763 459.81999408-229.90999703 464.16964267-486.539264 2.48551348-135.46048475-49.08889125-263.46442903-145.40253867-359.77807644z","p-id":"7536"}),t.createElementVNode("path",{d:"M513.86413511 827.86668088c-141.67426845 0-257.25064533-114.95499852-257.25064533-257.25064533h70.83713422c0 102.52743111 83.26470163 186.41351111 186.41351111 186.41351111s186.41351111-83.26470163 186.41351111-186.41351111h70.83713423c0 141.67426845-115.57637689 257.25064533-257.25064534 257.25064533z","p-id":"7537"})]),t.createElementVNode("symbol",{id:"notice-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M276.0704 773.19964445h-151.46097778c-51.26371555 0-93.20675555-41.94304-93.20675555-93.20675556v-349.52533333c0-51.26371555 41.94304-93.20675555 93.20675555-93.20675556h151.46097778c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253334v466.03377778c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z m-151.46097778-466.03377778c-12.81592889 0-23.30168889 10.48576-23.30168889 23.30168889v349.52533333c0 12.81592889 10.48576 23.30168889 23.30168889 23.30168889h116.50844445v-396.12871111h-116.50844445z","p-id":"7690"}),t.createElementVNode("path",{d:"M567.34151111 965.43857778c-6.40796445 0-13.39847111-1.74762667-19.22389333-5.82542222l-291.27111111-189.32622222c-9.90321778-6.40796445-15.72864-17.47626667-15.72864-29.12711112V275.12604445c0-11.65084445 5.82542222-22.71914667 15.72864-29.12711111l291.27111111-195.15164445c10.48576-6.99050667 24.46677333-8.15559111 36.11761777-1.74762667 11.65084445 5.82542222 18.64135111 18.05880889 18.64135112 30.87473778v850.51164445c0 12.81592889-6.99050667 24.46677333-18.05880889 30.87473777-5.82542222 2.91271111-11.65084445 4.07779555-17.47626667 4.07779556z m-256.31857778-243.50264889l221.36604445 143.88792889V145.21912889l-221.36604445 148.54826667v428.16853333zM797.44568889 840.192c-11.65084445 0-22.71914667-5.82542222-29.70965334-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100444 96.11946667-61.16693333 153.20860445-165.44199111 153.20860445-279.03772445s-57.08913778-217.87079111-153.20860445-279.03772444a34.89427911 34.89427911 0 0 1-10.48576-48.35100445c10.48576-16.31118222 32.03982222-20.97152 48.35100445-10.48576 115.92590222 73.98286222 185.24842667 200.39452445 185.24842667 337.87448889s-69.32252445 263.89162667-185.24842667 338.45703111c-5.82542222 3.49525333-12.23338667 5.24288-18.64135111 5.24288z","p-id":"7691"}),t.createElementVNode("path",{d:"M705.98656 706.20728889c-11.65084445 0-22.71914667-5.82542222-29.70965333-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100445 50.09863111-32.03982222 79.80828445-86.21624889 79.80828444-145.05301333s-29.70965333-113.59573333-79.80828444-145.05301333a34.89427911 34.89427911 0 0 1-10.48576-48.35100444c10.48576-16.31118222 32.03982222-20.97152 48.35100444-10.48576 69.90506667 44.85575111 111.84810667 121.16878222 111.84810667 204.47232s-41.94304 159.61656889-111.84810667 204.47232c-5.82542222 2.91271111-12.23338667 4.66033778-18.64135111 4.66033777z","p-id":"7692"})]),t.createElementVNode("symbol",{id:"notice-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M583.65269333 49.09966222c-11.65084445-5.82542222-25.04931555-5.24288-36.11761778 1.74762667l-277.87264 186.41351111H124.60942222c-51.26371555 0-93.20675555 41.94304-93.20675555 93.20675556v349.52533333c0 51.26371555 41.94304 93.20675555 93.20675555 93.20675556H261.50684445l287.19331555 186.41351111c5.82542222 3.49525333 12.23338667 5.82542222 19.22389333 5.82542222 5.82542222 0 11.65084445-1.16508445 16.89372445-4.07779556 11.06830222-5.82542222 18.05880889-18.05880889 18.05880889-30.87473777v-850.51164445c-0.58254222-12.81592889-7.57304889-24.46677333-19.22389334-30.87473778zM797.44568889 840.192c-11.65084445 0-22.71914667-5.82542222-29.70965334-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100444 96.11946667-61.16693333 153.20860445-165.44199111 153.20860445-279.03772445s-57.08913778-217.87079111-153.20860445-279.03772444a34.89427911 34.89427911 0 0 1-10.48576-48.35100445c10.48576-16.31118222 32.03982222-20.97152 48.35100445-10.48576 115.92590222 73.98286222 185.24842667 200.39452445 185.24842667 337.87448889s-69.32252445 263.89162667-185.24842667 338.45703111c-5.82542222 3.49525333-12.23338667 5.24288-18.64135111 5.24288z","p-id":"7845"}),t.createElementVNode("path",{d:"M705.98656 706.20728889c-11.65084445 0-22.71914667-5.82542222-29.70965333-16.31118222-10.48576-16.31118222-5.82542222-37.86524445 10.48576-48.35100445 50.09863111-32.03982222 79.80828445-86.21624889 79.80828444-145.05301333s-29.70965333-113.59573333-79.80828444-145.05301333a34.89427911 34.89427911 0 0 1-10.48576-48.35100444c10.48576-16.31118222 32.03982222-20.97152 48.35100444-10.48576 69.90506667 44.85575111 111.84810667 121.16878222 111.84810667 204.47232s-41.94304 159.61656889-111.84810667 204.47232c-5.82542222 2.91271111-12.23338667 4.66033778-18.64135111 4.66033777z","p-id":"7846"})]),t.createElementVNode("symbol",{id:"link-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M380.928 749.09468445c-33.78744889 0-65.82727111-13.39847111-89.71150222-37.28270223-49.51608889-49.51608889-49.51608889-129.90691555 0-178.84046222l59.41930667-59.41930667c13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889l-59.41930666 59.41930667c-22.13660445 22.13660445-22.13660445 58.25422222 0 80.39082666 10.48576 10.48576 25.04931555 16.89372445 40.19541333 16.89372445 15.14609778 0 29.12711111-5.82542222 40.19541333-16.89372445l106.02268445-106.02268444c10.48576-10.48576 16.89372445-25.04931555 16.89372444-40.19541333 0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253334 34.95253333c0 33.78744889-13.39847111 65.82727111-37.28270222 89.71150222l-106.02268445 106.02268445c-24.46677333 23.30168889-55.92405333 36.70016-89.71150222 36.70016z","p-id":"7999"}),t.createElementVNode("path",{d:"M671.61656889 560.93354667c-8.73813333 0-18.05880889-3.49525333-24.46677334-10.48576-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608889l59.41930667-59.41930667c10.48576-10.48576 16.89372445-25.04931555 16.89372445-40.19541333 0-15.14609778-5.82542222-29.12711111-16.89372445-40.19541333-10.48576-10.48576-25.04931555-16.89372445-40.19541333-16.89372445-15.14609778 0-29.12711111 5.82542222-40.19541334 16.89372445l-106.02268444 106.02268444c-11.06830222 11.06830222-16.89372445 25.63185778-16.31118222 41.36049778 0.58254222 19.22389333-14.56355555 35.53507555-33.78744889 36.11761778h-1.16508445c-18.64135111 0-34.36999111-15.14609778-34.95253333-33.7874489-1.16508445-34.36999111 12.81592889-68.73998222 37.28270223-93.20675555l106.02268444-106.02268445c23.88423111-23.88423111 55.92405333-37.28270222 89.71150222-37.28270222 33.78744889 0 65.82727111 13.39847111 89.71150222 37.28270222s37.28270222 55.92405333 37.28270222 89.71150223c0 33.78744889-13.39847111 65.82727111-37.28270222 89.71150222l-59.41930666 59.41930667c-7.57304889 6.99050667-16.89372445 10.48576-25.63185778 10.48576z","p-id":"8000"}),t.createElementVNode("path",{d:"M523.65084445 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631112-500.98631111s224.86129778-500.98631111 500.98631112-500.98631111 500.98631111 224.86129778 500.9863111 500.98631111-224.86129778 500.98631111-500.9863111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124444-431.08124445-193.40401778-431.08124445-431.08124444-431.08124445z","p-id":"8001"})]),t.createElementVNode("symbol",{id:"link-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1024C229.228 1024 0 794.772 0 512S229.228 0 512 0s512 229.228 512 512-229.228 512-512 512z m54.545-565.02l-1.798-1.764a102.207 102.207 0 0 0-11.002-9.523l-35.453 35.442c4.176 2.446 8.078 5.393 11.605 8.92l1.866 1.763a58.277 58.277 0 0 1 0 82.341l-96.904 96.882a58.334 58.334 0 0 1-82.341 0l-1.832-1.798a58.243 58.243 0 0 1 0-82.306l43.816-43.828a149.675 149.675 0 0 1-10.866-58.732l-67.812 67.72c-41.836 41.825-41.836 110.251 0 152.053l1.787 1.798c41.836 41.79 110.228 41.79 152.052 0l96.882-96.916c41.757-41.825 41.757-110.25 0-152.052z m141.38-141.37l-1.82-1.797c-41.802-41.825-110.228-41.825-152.053 0l-96.882 96.916c-41.824 41.79-41.824 110.216 0 152.053l1.798 1.763c3.505 3.425 7.225 6.576 11.002 9.523l35.454-35.476a57.845 57.845 0 0 1-11.583-8.92l-1.798-1.763a58.311 58.311 0 0 1 0-82.375l96.905-96.882a58.197 58.197 0 0 1 82.284 0l1.798 1.797a58.277 58.277 0 0 1 0 82.341l-43.76 43.828c7.612 18.796 11.196 38.81 10.844 58.766l67.789-67.755c41.824-41.79 41.824-110.216 0.022-152.007z","p-id":"39234"})]),t.createElementVNode("symbol",{id:"eidt-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M39.75243852 1018.42337185c-9.94205392 0-19.26272948-3.72827022-26.09789155-11.18481067-8.69929718-8.69929718-12.42756741-21.74824297-9.94205394-33.554432l64.00197215-317.52434726c1.24275675-7.45654045 4.97102697-13.67032415 10.5634323-19.26272947l622.62112711-617.65010015c14.29170252-14.29170252 37.90408059-14.29170252 52.81716149 0l256.00788859 254.14375348c6.83516208 6.83516208 11.18481067 16.777216 11.18481066 26.71926992s-3.72827022 19.26272948-11.18481066 26.71926993L385.86019082 943.85796741c-4.97102697 4.97102697-11.80618903 8.69929718-19.26272949 9.94205392l-320.00986074 63.38059378c-1.86413511 1.24275675-4.34964859 1.24275675-6.83516207 1.24275674z m98.17778251-336.16569837l-50.95302636 251.65824 254.14375348-50.331648 587.82393837-583.47428978-203.19072711-201.326592-587.82393838 583.47428978z m221.83207822 235.50240237z","p-id":"8309"}),t.createElementVNode("path",{d:"M787.27061808 501.4365677c-9.32067555 0-19.26272948-3.72827022-26.09789156-10.56343229l-231.15275377-229.90999704c-14.91308089-14.29170252-14.91308089-37.90408059 0-52.81716148 14.29170252-14.91308089 37.90408059-14.91308089 52.81716147 0l231.15275378 229.90999703c14.91308089 14.29170252 14.91308089 37.90408059 0 52.81716149-8.07791882 6.83516208-17.39859437 10.5634323-26.71926992 10.56343229zM984.24756148 1020.28750697h-468.51929126c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270223H984.24756148c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270223s-16.777216 37.28270222-37.28270222 37.28270222z","p-id":"8310"})]),t.createElementVNode("symbol",{id:"eidt-line-frame",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M325.30233936 563.73071538c-0.64703814 0.82587375-1.29407507 1.6890035-1.58219924 2.73221283l-49.88523011 182.89429709c-2.91353153 10.64693487 0.07203135 22.11974349 7.94949616 30.21081805 5.89909439 5.75503292 13.66727187 8.92067294 21.93966512 8.92067294 2.73345437 0 5.46690875-0.32413984 8.16434745-1.04445087l181.59649617-49.52631737c0.28936571 0 0.43342841 0.25210849 0.64827969 0.2521085 2.08517469 0 4.13681801-0.75508395 5.68424312-2.33976748l485.58989858-485.51786724c14.42235582-14.43974227 22.33583631-34.11415555 22.33583631-55.51482956 0-24.25956185-10.28677936-48.5004957-28.30696206-66.46727627l-45.85894342-45.92973201c-17.98168272-18.0201827-42.26111655-28.32434851-66.50329195-28.32434852-21.39819091 0-41.07260419 7.9134805-55.53345877 22.3172071L326.02140763 562.04047034C325.51967372 562.50618736 325.66249366 563.19048272 325.30233936 563.73071538M937.89292074 202.76447611l-48.23224229 48.19746816-78.19219338-79.43410786 47.55043123-47.54918848c7.51606777-7.55208343 22.08124351-6.45423043 30.71503504 2.21184971l45.89123326 45.93097356c4.78633923 4.78385493 7.51855206 11.14866878 7.51855206 17.44269282C943.11020407 194.72680368 941.27341204 199.40261281 937.89292074 202.76447611M411.66012052 571.35607171l350.3900942-350.40996497 78.2294506 79.48751001L490.53660926 650.15804481 411.66012052 571.35607171zM347.81825282 713.42614847l25.32015764-92.93993059 67.54650006 67.5477416L347.81825282 713.42614847z","p-id":"2224"}),t.createElementVNode("path",{d:"M968.64645454 395.17059786c-18.38033821 0-33.4509725 14.94395926-33.52052077 33.57516442l0 452.66301384c0 23.7379584-19.27948364 43.0162005-43.05469924 43.01620049L126.33393895 924.42497661c-23.7379584 0-43.08947339-19.27700055-43.08947338-43.01620049L83.24446557 142.57383743c0-23.75782915 19.35151499-43.05345772 43.08947338-43.05345772l493.17923924 0c18.48590094 0 33.48698817-15.01474907 33.48698818-33.50437584 0-18.44988526-15.00108846-33.48450509-33.48698818-33.48450509L121.22718572 32.53149878c-57.87074196 0-104.97035833 47.06360069-104.97035833 104.97035833L16.25682739 886.51677089c0 57.90675763 47.09961637 104.95172912 104.97035833 104.95172911l775.91478637 0c57.90924193 0 104.99022909-47.04497149 104.99022907-104.95172911L1002.13220116 428.52966946C1002.05644519 410.11455833 987.02555121 395.17059786 968.64645454 395.17059786","p-id":"2225"})]),t.createElementVNode("symbol",{id:"eidt-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M954.4213997 254.74935467l-220.58932148-219.34656475c-14.29170252-14.29170252-37.90408059-14.29170252-52.81716147 0l-599.63012742 595.28047883c-4.97102697 4.97102697-8.69929718 11.80618903-10.5634323 19.26272947l-55.30267495 273.40648296c-2.48551348 12.42756741 1.24275675 24.85513482 9.94205392 33.554432 6.83516208 6.83516208 16.777216 11.18481067 26.09789155 11.18481067 2.48551348 0 4.97102697 0 7.45654045-0.62137837l275.89199645-54.68129659c7.45654045-1.24275675 13.67032415-4.97102697 19.26272947-9.94205392l599.63012741-595.28047882c6.83516208-6.83516208 11.18481067-16.777216 11.18481067-26.71926993s-3.72827022-19.26272948-10.5634323-26.09789155z","p-id":"8463"}),t.createElementVNode("path",{d:"M836.35950933 566.68129659c-9.32067555 0-19.26272948-3.72827022-26.09789155-10.56343229L443.64837925 191.36876089c-14.29170252-14.29170252-14.91308089-37.90408059 0-52.81716148 14.29170252-14.29170252 37.90408059-14.91308089 52.8171615 0l366.6132385 364.12772504c14.29170252 14.29170252 14.91308089 37.90408059 0 52.81716147-7.45654045 7.45654045-16.777216 11.18481067-26.71926992 11.18481067z","p-id":"8464"}),t.createElementVNode("path",{d:"M965.60621037 1001.64615585H497.08691911c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270222H965.60621037c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270222s-16.777216 37.28270222-37.28270222 37.28270222z","p-id":"8465"})]),t.createElementVNode("symbol",{id:"upload-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M636.66403555 634.33386667c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-90.87658667-90.87658667L430.44408889 623.84810667c-13.39847111 13.39847111-35.53507555 13.39847111-49.51608889 0s-13.39847111-35.53507555 0-49.51608889L496.85390222 459.5712c13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l115.34336 115.34336c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608889-6.99050667 6.40796445-16.31118222 9.90321778-25.04931556 9.90321778z","p-id":"8618"}),t.createElementVNode("path",{d:"M809.09653333 838.22364445h-1.74762666c-19.22389333 0-34.95253333-15.72864-34.95253334-34.95253334s15.72864-34.95253333 34.95253334-34.95253333h1.74762666c79.22574222-0.58254222 143.88792889-66.40981333 143.88792889-145.63555556 0-80.39082667-65.24472889-145.63555555-145.63555555-145.63555555-10.48576 0.58254222-20.38897778-2.91271111-27.96202667-10.48576-6.99050667-7.57304889-10.48576-18.05880889-9.32067555-27.96202667 1.16508445-8.73813333 1.74762667-17.47626667 1.74762666-26.79694222 0-139.81013333-113.59573333-253.40586667-253.40586666-253.40586667S265.00209778 271.41006222 265.00209778 411.22019555c0 9.32067555 0.58254222 18.05880889 1.74762667 26.79694223 1.16508445 9.90321778-1.74762667 19.80643555-8.15559112 26.79694222-6.40796445 7.57304889-15.72864 11.65084445-25.63185778 11.65084445-78.6432 1.16508445-142.72284445 66.99235555-142.72284444 145.63555555 0 79.22574222 64.07964445 144.47047111 143.30538667 145.63555555h2.91271111c4.66033778 0 8.73813333 1.16508445 12.23338666 2.3301689 4.66033778 1.74762667 8.73813333 4.66033778 12.23338667 8.1555911 4.07779555 4.07779555 6.99050667 9.90321778 8.73813333 15.72864 0.58254222 2.33016889 1.16508445 5.24288 1.16508445 8.15559112 0 6.99050667-1.74762667 13.39847111-5.24288 18.64135111-1.16508445 1.74762667-2.33016889 3.49525333-4.07779555 5.24288-6.40796445 6.40796445-14.56355555 10.48576-24.46677334 10.48576h-7.57304889c-115.92590222-2.91271111-209.7152-99.03217778-209.7152-215.54062223 0-104.27505778 75.73048889-192.82147555 175.34520889-212.04536888 0-178.25792 145.05301333-322.72839111 323.31093334-322.72839112 177.67537778 0 322.14584889 143.88792889 323.31093333 321.56330667 102.52743111 16.31118222 181.17063111 105.44014222 181.17063111 212.62791111 0 120.00369778-95.53692445 216.70570667-213.79299556 217.87079112 0.58254222 0 0 0 0 0z","p-id":"8619"}),t.createElementVNode("path",{d:"M521.32067555 931.4304c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-367.0016c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253334 34.95253334v367.0016c0 19.22389333-15.72864 34.95253333-34.95253334 34.95253333z","p-id":"8620"})]),t.createElementVNode("symbol",{id:"upload-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M1024 693.248q0 25.6-8.704 48.128t-24.576 40.448-36.864 30.208-45.568 16.384l1.024 1.024-17.408 0-4.096 0-4.096 0-675.84 0q-5.12 1.024-16.384 1.024-39.936 0-74.752-15.36t-60.928-41.472-40.96-60.928-14.848-74.752 14.848-74.752 40.96-60.928 60.928-41.472 74.752-15.36l1.024 0q-1.024-8.192-1.024-15.36l0-16.384q0-72.704 27.648-137.216t75.776-112.128 112.128-75.264 136.704-27.648 137.216 27.648 112.64 75.264 75.776 112.128 27.648 137.216q0 37.888-8.192 74.24t-22.528 69.12q5.12-1.024 10.752-1.536t10.752-0.512q27.648 0 52.736 10.752t43.52 29.696 29.184 44.032 10.752 53.76zM665.6 571.392q20.48 0 26.624-4.608t-8.192-22.016q-14.336-18.432-31.744-48.128t-36.352-60.416-38.4-57.344-37.888-38.912q-18.432-13.312-27.136-14.336t-25.088 12.288q-18.432 15.36-35.84 38.912t-35.328 50.176-35.84 52.224-36.352 45.056q-18.432 18.432-13.312 32.768t25.6 14.336l16.384 0q9.216 0 19.968 0.512t20.992 0.512l17.408 0q14.336 1.024 18.432 9.728t4.096 24.064q0 17.408-0.512 30.72t-0.512 25.6-0.512 25.6-0.512 30.72q0 7.168 1.536 15.36t5.632 15.36 12.288 11.776 21.504 4.608l23.552 0q9.216 0 27.648 1.024 24.576 0 28.16-12.288t3.584-38.912q0-23.552 0.512-42.496t0.512-51.712q0-23.552 4.608-36.352t19.968-12.8q11.264 0 32.256-0.512t32.256-0.512z","p-id":"40427"})]),t.createElementVNode("symbol",{id:"switch-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1009.12924445c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631112 500.98631111 224.86129778 500.98631111 500.98631112-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124444 431.08124445-193.40401778 431.08124445-431.08124444-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"8928"}),t.createElementVNode("path",{d:"M733.36604445 467.36497778H290.05141333c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253333h357.68092445l-57.08913778-55.92405334c-13.98101333-13.39847111-13.98101333-35.53507555-0.58254222-49.51608889 13.39847111-13.98101333 35.53507555-13.98101333 49.51608889-0.58254222l118.25607111 115.92590222c9.90321778 9.90321778 13.39847111 25.04931555 8.15559111 38.44778667S747.34705778 467.36497778 733.36604445 467.36497778zM408.30748445 756.88846222c-8.73813333 0-17.47626667-3.49525333-24.46677334-9.90321777l-118.25607111-115.92590223c-9.90321778-9.90321778-13.39847111-25.04931555-8.15559111-38.44778666s18.05880889-21.55406222 32.62236444-21.55406222H733.36604445c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253333s-15.72864 34.95253333-34.95253333 34.95253333H375.68512l57.08913778 55.92405334c13.98101333 13.39847111 13.98101333 35.53507555 0.58254222 49.51608888-6.99050667 6.40796445-16.31118222 10.48576-25.04931555 10.48576z","p-id":"8929"})]),t.createElementVNode("symbol",{id:"switch-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M511.48 22.62c-270.42 0-489.62 218.96-489.62 489.09s219.2 489.09 489.62 489.09 489.61-218.96 489.61-489.09S781.89 22.62 511.48 22.62zM211.83 435.56c-0.11-0.19-0.11-0.49-0.23-0.71l-0.3-1.2c0-0.23-0.11-0.42-0.11-0.6l-0.3-1.32c0-0.3-0.11-0.49-0.11-0.68-0.08-0.42-0.08-0.94-0.19-1.32 0-0.3-0.12-0.53-0.12-0.83 0-0.37-0.11-0.79-0.11-1.2-0.07-0.26-0.07-0.68-0.07-1.01v0.04c0-0.3-0.11-0.6 0-1.13-0.11-0.6-0.11-1.32-0.11-2 0-0.71 0.11-1.32 0.11-2.03l0.07-0.98 0.11-1.02c0-0.41 0-0.83 0.12-1.2 0-0.3 0.11-0.53 0.11-0.83 0.01-0.43 0.08-0.86 0.19-1.28 0-0.34 0.11-0.53 0.11-0.71l0.3-1.31c0-0.23 0-0.42 0.11-0.6l0.3-1.2c0.11-0.19 0.11-0.49 0.22-0.68 0.07-0.34 0.3-0.75 0.41-1.13l0.3-0.83c0.11-0.3 0.3-0.68 0.38-0.98l0.38-0.9c0.07-0.3 0.26-0.6 0.37-0.91 0.08-0.3 0.23-0.71 0.45-1.02 0.19-0.22 0.26-0.53 0.38-0.68 0.11-0.45 0.3-0.75 0.53-1.13 0.17-0.17 0.31-0.38 0.41-0.6 0.19-0.42 0.42-0.71 0.64-1.13 0.16-0.17 0.28-0.36 0.38-0.56 0.22-0.42 0.53-0.75 0.75-1.13 0.08-0.22 0.3-0.42 0.42-0.6l0.83-1.13 0.49-0.6c0.23-0.3 0.41-0.6 0.72-0.9 0.22-0.3 0.53-0.49 0.75-0.79 0.22-0.19 0.42-0.53 0.6-0.71l1.47-1.51 99.24-96.46c16.73-16.11 43.23-16.11 59.96 0 16.57 16.1 16.57 42.14 0 58.24l-26.93 26.15h413.09c23.5 0 42.44 18.51 42.44 41.23 0 22.84-19.06 41.27-42.44 41.27H252.39c-0.6 0-1.32-0.12-2.07-0.12l-0.9-0.11-1.06-0.07c-0.42 0.01-0.84-0.02-1.24-0.11-0.3 0-0.53-0.11-0.83-0.11-0.44-0.02-0.89-0.08-1.32-0.19-0.34 0-0.53-0.11-0.76-0.11l-1.32-0.3c-0.34-0.08-0.53-0.08-0.75-0.19l-1.2-0.3c-0.23-0.11-0.56-0.11-0.76-0.23l-1.13-0.37-0.83-0.34-1.06-0.38-0.9-0.3-0.94-0.42c-0.3-0.08-0.71-0.19-1.02-0.42-0.22-0.19-0.53-0.26-0.75-0.37-0.38-0.11-0.76-0.3-1.13-0.53-0.19-0.16-0.41-0.29-0.64-0.38l-1.13-0.6c-0.19-0.16-0.41-0.29-0.64-0.37-0.38-0.23-0.72-0.53-1.13-0.76-0.23-0.08-0.41-0.3-0.6-0.37l-1.13-0.83-0.64-0.45-0.94-0.75c-0.3-0.19-0.49-0.49-0.79-0.68l-0.75-0.6c-0.49-0.53-1.02-0.91-1.55-1.43-0.53-0.49-0.94-1.02-1.43-1.5-0.22-0.19-0.42-0.49-0.6-0.72-0.23-0.3-0.57-0.49-0.75-0.79-0.23-0.3-0.53-0.6-0.72-0.91l-0.53-0.6c-0.3-0.37-0.64-0.71-0.86-1.13-0.07-0.19-0.27-0.37-0.38-0.56-0.22-0.41-0.53-0.75-0.75-1.13-0.19-0.22-0.3-0.41-0.38-0.6l-0.64-1.09-0.41-0.64c-0.11-0.37-0.3-0.68-0.53-1.05-0.19-0.22-0.3-0.52-0.41-0.75-0.07-0.3-0.3-0.68-0.41-0.98-0.08-0.3-0.3-0.6-0.42-0.9l-0.3-0.94-0.42-1.02-0.3-0.75c-0.22-0.35-0.3-0.76-0.41-1.14z m600.83 166.18l-0.07 1.02-0.11 1.02c0 0.38 0 0.79-0.11 1.2 0 0.3-0.12 0.49-0.12 0.79-0.01 0.44-0.08 0.89-0.19 1.32 0 0.3-0.11 0.49-0.11 0.68l-0.3 1.32c0 0.23 0 0.41-0.11 0.6l-0.3 1.2c-0.12 0.23-0.12 0.53-0.23 0.72-0.08 0.34-0.3 0.71-0.41 1.09-0.08 0.34-0.19 0.53-0.3 0.83l-0.38 1.02-0.37 0.9c-0.07 0.3-0.27 0.61-0.38 0.91-0.08 0.3-0.22 0.68-0.45 0.98-0.19 0.22-0.26 0.53-0.37 0.71-0.12 0.38-0.3 0.71-0.53 1.13-0.19 0.19-0.3 0.38-0.42 0.56-0.19 0.41-0.41 0.75-0.64 1.13-0.19 0.22-0.3 0.42-0.38 0.6-0.22 0.38-0.53 0.71-0.75 1.13-0.08 0.19-0.3 0.38-0.42 0.56-0.3 0.41-0.49 0.75-0.83 1.13l-0.49 0.6c-0.23 0.3-0.42 0.6-0.76 0.91-0.3 0.3-0.49 0.6-0.83 0.9-0.22 0.19-0.41 0.53-0.6 0.71l-1.47 1.51-99.28 96.46c-16.53 16.1-43.31 16.1-59.88 0s-16.57-42.14 0-58.24l26.89-26.15h-413.2c-23.46 0-42.41-18.51-42.41-41.23 0-22.84 19.06-41.27 42.41-41.27h515.68c0.6 0 1.32 0.11 2.07 0.11 0.3 0 0.6 0.11 0.94 0.11l1.02 0.08c0.42 0 0.87 0 1.24 0.11 0.3 0 0.53 0.12 0.83 0.12 0.44 0.01 0.89 0.08 1.32 0.19 0.38 0 0.57 0.11 0.76 0.11l1.32 0.3c0.37 0.07 0.56 0.07 0.75 0.19l1.24 0.3c0.23 0.12 0.53 0.12 0.76 0.23l1.13 0.37 0.79 0.34 1.06 0.38 0.94 0.3 0.9 0.41c0.34 0.08 0.75 0.19 1.02 0.42 0.22 0.19 0.57 0.26 0.75 0.37 0.42 0.12 0.76 0.3 1.13 0.53 0.19 0.16 0.41 0.29 0.64 0.38l1.13 0.6c0.23 0.19 0.41 0.3 0.64 0.38 0.38 0.22 0.72 0.53 1.13 0.75 0.19 0.08 0.42 0.3 0.64 0.38l1.13 0.83 0.61 0.45c0.3 0.22 0.64 0.45 0.94 0.75 0.3 0.19 0.53 0.49 0.79 0.68l0.75 0.6 1.55 1.43 1.47 1.51c0.23 0.19 0.42 0.49 0.6 0.71 0.23 0.3 0.53 0.49 0.71 0.79l0.76 0.91 0.49 0.6c0.34 0.38 0.64 0.71 0.86 1.13 0.08 0.19 0.3 0.38 0.38 0.56 0.22 0.42 0.53 0.75 0.75 1.13 0.17 0.17 0.31 0.38 0.41 0.6 0.19 0.42 0.42 0.71 0.64 1.09 0.19 0.22 0.26 0.42 0.38 0.64 0.11 0.38 0.3 0.68 0.53 1.05 0.19 0.22 0.3 0.53 0.41 0.75l0.42 0.98c0.11 0.3 0.3 0.6 0.38 0.9l0.37 0.94 0.38 1.02 0.34 0.75c0.19 0.35 0.31 0.73 0.37 1.13 0.11 0.19 0.11 0.49 0.23 0.71l0.3 1.2c0 0.23 0 0.41 0.11 0.61l0.3 1.32c0 0.3 0.11 0.49 0.11 0.68 0.11 0.42 0.11 0.94 0.19 1.32 0 0.3 0.12 0.53 0.12 0.83 0 0.37 0.11 0.79 0.11 1.2 0.11 0.3 0.11 0.68 0.11 0.98 0.07 0.41 0.07 0.71 0.07 1.01 0.11 0.6 0.11 1.28 0.11 2.03 0.01 0.66-0.11 1.26-0.11 1.97z","p-id":"41414"})]),t.createElementVNode("symbol",{id:"calendar-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M828.90296889 996.67512889H176.45568c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V275.87621925c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837628h652.44728889c88.85710697 0 161.5583763 72.70126933 161.55837629 161.55837628v559.24053334c0 88.85710697-72.70126933 161.5583763-161.55837629 161.5583763zM176.45568 188.88324741c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297184v559.24053334c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297186h652.44728889c47.84613452 0 86.99297185-39.14683733 86.99297186-86.99297186V275.87621925c0-47.84613452-39.14683733-86.99297185-86.99297186-86.99297184H176.45568z","p-id":"9236"}),t.createElementVNode("path",{d:"M331.80027259 282.09000297c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222V58.39378963c0-20.50548622 16.777216-37.28270222 37.28270222-37.28270222s37.28270222 16.777216 37.28270223 37.28270222v186.41351112c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222zM331.80027259 630.06189037H244.80730075c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM555.49648592 630.06189037H468.50351408c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM779.19269925 630.06189037h-86.99297184c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM331.80027259 791.62026667H244.80730075c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM555.49648592 791.62026667H468.50351408c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM779.19269925 791.62026667h-86.99297184c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270223h86.99297184c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222zM692.19972741 282.09000297c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V58.39378963c0-20.50548622 16.777216-37.28270222 37.28270223-37.28270222s37.28270222 16.777216 37.28270222 37.28270222v186.41351112c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM953.17864297 437.43459555H52.18000592c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270222h900.99863705c20.50548622 0 37.28270222 16.777216 37.28270221 37.28270222s-16.777216 37.28270222-37.28270221 37.28270222z","p-id":"9237"})]),t.createElementVNode("symbol",{id:"calendar-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M0 941.611997A82.388003 82.388003 0 0 0 82.388003 1024h858.980243A82.388003 82.388003 0 0 0 1023.756249 941.611997V363.433468H0z m694.69174-429.490121h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m-219.376339 0h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m0 221.813854h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m-219.376339-221.813854h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446z m0 221.813854h73.125446a36.562723 36.562723 0 0 1 0 73.125446h-73.125446a36.562723 36.562723 0 0 1 0-73.125446zM1023.756249 155.757201a82.388003 82.388003 0 0 0-82.388003-82.388003H804.37991V41.194001a40.95025 40.95025 0 0 0-82.388003 0v32.175197H301.764342V41.194001a40.95025 40.95025 0 0 0-82.388003 0v32.175197H82.388003A82.388003 82.388003 0 0 0 0 155.757201v128.213282h1023.756249z","p-id":"49114"})]),t.createElementVNode("symbol",{id:"search-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M471.80458667 926.77006222c-253.98840889 0-460.79089778-206.80248889-460.79089778-460.79089777C11.01368889 211.99075555 217.81617778 5.18826667 471.80458667 5.18826667c253.98840889 0 460.79089778 206.80248889 460.79089778 460.79089778 0 253.98840889-206.80248889 460.79089778-460.79089778 460.79089777z m0-851.67672889C256.26396445 75.09333333 80.91875555 250.43854222 80.91875555 465.97916445s175.34520889 390.88583111 390.88583112 390.8858311 390.88583111-175.34520889 390.88583111-390.8858311S687.34520889 75.09333333 471.80458667 75.09333333z","p-id":"9544"}),t.createElementVNode("path",{d:"M983.27665778 1024.05461333c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-214.95808-214.95808c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0l214.95808 214.95808c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888-6.99050667 6.99050667-15.72864 10.48576-25.04931555 10.48576zM714.14215111 471.80458667c-17.47626667 0-32.62236445-12.81592889-34.36999111-30.87473778-11.06830222-93.20675555-83.88608-168.35470222-177.09283555-181.75317334-19.22389333-2.91271111-32.62236445-20.38897778-29.70965334-39.6128711s20.38897778-32.62236445 39.61287111-29.70965334c124.66403555 18.05880889 221.94858667 117.67352889 236.51214223 242.33756444 2.33016889 19.22389333-11.65084445 36.70016-30.29219556 39.0303289-1.74762667 0-3.49525333 0.58254222-4.66033778 0.58254222z","p-id":"9545"})]),t.createElementVNode("symbol",{id:"search-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M858.7 803.7l-113-112.9C859.2 552.3 851.3 347.6 722 218.4c-137.7-137.7-360.9-137.7-498.6 0-137.7 137.7-137.7 360.9 0 498.6 129.3 129.3 333.9 137.1 472.4 23.7l112.9 112.9c6.2 6.2 16.3 6.2 22.5 0l27.4-27.4c6.3-6.2 6.3-16.2 0.1-22.5zM574 300.7L545.5 275c-6.6-5.9-7.1-16.1-1.2-22.7l25.7-28.5c5.9-6.6 16.1-7.1 22.7-1.2l28.5 25.7c6.6 5.9 7.1 16.1 1.2 22.7l-25.7 28.5c-6 6.6-16.1 7.1-22.7 1.2z m92.9 337.6c-6 6.8-16.8 6.8-23.2 0.4l-27.3-27.4c-6-6-5.9-15.4-0.4-21.9 29.6-34.6 45.7-78.2 45.7-124.2S645.6 375.6 616 341c-5.5-6.5-5.6-15.9 0.4-21.9l27.3-27.4c6.4-6.4 17.2-6.4 23.2 0.4 42.2 47.8 65.3 108.7 65.3 173.1 0 64.4-23.1 125.2-65.3 173.1z","p-id":"59968"})]),t.createElementVNode("symbol",{id:"setting-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 669.2864c-89.71150222 0-163.11182222-73.40032-163.11182222-163.11182222s73.40032-163.11182222 163.11182222-163.11182223 163.11182222 73.40032 163.11182222 163.11182223-73.40032 163.11182222-163.11182222 163.11182222z m0-256.31857778c-51.26371555 0-93.20675555 41.94304-93.20675555 93.20675556s41.94304 93.20675555 93.20675555 93.20675555 93.20675555-41.94304 93.20675555-93.20675555-41.94304-93.20675555-93.20675555-93.20675556z","p-id":"9853"}),t.createElementVNode("path",{d:"M385.58833778 989.10208c-5.24288 0-11.06830222-0.58254222-16.31118223-2.33016889-74.56540445-22.13660445-144.47047111-62.33201778-201.55960888-116.50844444-22.71914667-21.55406222-23.88423111-57.08913778-2.91271112-79.80828445 22.13660445-24.46677333 26.2144-60.00184889 9.32067556-88.54641777-16.31118222-28.54456889-49.51608889-43.10812445-81.55591111-36.11761778-30.29219555 6.40796445-60.58439111-12.81592889-67.57489778-42.52558222-8.73813333-37.86524445-13.39847111-76.89557333-13.39847111-116.50844445s4.66033778-78.6432 13.39847111-116.50844445c6.99050667-30.29219555 37.28270222-49.51608889 67.57489778-42.52558222 32.03982222 6.99050667 65.24472889-7.57304889 81.55591111-36.11761778 16.31118222-28.54456889 12.81592889-64.66218667-9.32067556-88.54641777-20.97152-22.71914667-19.22389333-58.83676445 2.91271112-79.80828445 57.08913778-53.59388445 126.41166222-93.78929778 201.55960888-116.50844444C398.98680889 16.83911111 430.44408889 33.73283555 439.76476445 63.44248889c9.90321778 31.45728 39.03032889 52.4288 72.23523555 52.4288s61.74947555-20.97152 72.23523555-52.4288c9.90321778-30.29219555 40.77795555-46.60337778 71.07015112-37.86524444 74.56540445 22.13660445 144.47047111 62.33201778 201.55960888 116.50844444 22.71914667 21.55406222 23.88423111 57.08913778 2.91271112 79.80828444-22.13660445 24.46677333-26.2144 60.00184889-9.32067556 88.54641778 16.31118222 28.54456889 49.51608889 43.10812445 81.55591111 36.11761778 30.29219555-6.40796445 60.58439111 12.81592889 67.57489778 42.52558222 8.73813333 37.86524445 13.39847111 76.89557333 13.39847111 116.50844444s-4.66033778 78.6432-13.39847111 116.50844445c-6.99050667 30.29219555-37.86524445 49.51608889-67.57489778 42.52558222-32.03982222-6.99050667-65.24472889 7.57304889-81.55591111 36.11761778-16.31118222 28.54456889-12.81592889 64.66218667 9.32067556 88.54641778 20.97152 22.71914667 19.22389333 58.83676445-2.91271112 79.80828444-57.08913778 53.59388445-126.41166222 93.78929778-201.55960888 116.50844445-30.29219555 8.73813333-61.16693333-7.57304889-71.07015112-37.86524445-9.90321778-31.45728-39.03032889-52.4288-72.23523555-52.4288s-61.74947555 20.97152-72.23523555 52.4288c-7.57304889 25.63185778-30.29219555 41.36049778-54.17642667 41.36049778zM512 826.5728c59.41930667 0 111.84810667 35.53507555 134.56725333 89.12896 56.50659555-18.64135111 108.93539555-48.93354667 153.20860445-88.54641778-35.53507555-46.60337778-39.61287111-109.51793778-9.90321778-160.78165333s86.21624889-79.22574222 144.47047111-71.65269334c5.82542222-29.12711111 9.32067555-58.83676445 9.32067556-88.54641777s-2.91271111-59.41930667-9.32067556-88.54641778c-58.25422222 7.57304889-114.76081778-20.38897778-144.47047111-71.65269333-29.70965333-51.26371555-25.04931555-114.76081778 9.90321778-160.78165334-44.27320889-39.61287111-96.70200889-69.90506667-153.20860445-88.54641778C623.84810667 150.24128 571.41930667 185.77635555 512 185.77635555s-111.84810667-35.53507555-134.56725333-89.12896c-56.50659555 18.64135111-108.93539555 48.93354667-153.20860445 88.54641778 35.53507555 46.60337778 39.61287111 109.51793778 9.90321778 160.78165334S147.91111111 425.20120889 89.65688889 417.62816c-5.82542222 29.12711111-9.32067555 58.83676445-9.32067556 88.54641778s2.91271111 59.41930667 9.32067556 88.54641777c58.25422222-7.57304889 114.76081778 20.38897778 144.47047111 71.65269334 29.70965333 51.26371555 25.04931555 114.76081778-9.90321778 160.78165333 44.27320889 39.61287111 96.70200889 69.90506667 153.20860445 88.54641778 22.71914667-53.59388445 75.14794667-89.12896 134.56725333-89.12896zM191.60177778 167.71754667z","p-id":"9854"})]),t.createElementVNode("symbol",{id:"setting-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M992 416c-4.266667-27.733333-21.333333-46.933333-42.666667-46.933333h-4.266666c-70.4 0-128-57.6-128-130.133334 0-23.466667 10.666667-49.066667 10.666666-49.066666 12.8-23.466667 4.266667-55.466667-17.066666-70.4h-2.133334l-123.733333-68.266667H682.666667c-6.4-2.133333-14.933333-4.266667-23.466667-4.266667-17.066667 0-34.133333 6.4-44.8 19.2-14.933333 14.933333-61.866667 55.466667-100.266667 55.466667-38.4 0-85.333333-40.533333-100.266666-57.6-10.666667-14.933333-29.866667-21.333333-46.933334-21.333333-8.533333 0-17.066667 2.133333-23.466666 4.266666H341.333333l-128 70.4h-2.133333c-19.2 17.066667-27.733333 49.066667-17.066667 72.533334 0 0 10.666667 25.6 10.666667 49.066666 0 70.4-57.6 130.133333-128 130.133334h-2.133333c-19.2 0-36.266667 19.2-42.666667 46.933333 0 2.133333-10.666667 55.466667-10.666667 96 0 42.666667 10.666667 96 10.666667 98.133333 4.266667 27.733333 21.333333 46.933333 42.666667 46.933334h4.266666c70.4 0 128 57.6 128 130.133333 0 23.466667-10.666667 49.066667-10.666666 49.066667-12.8 23.466667-4.266667 53.333333 17.066666 68.266666h2.133334l119.466666 68.266667h2.133334c6.4 4.266667 14.933333 4.266667 23.466666 4.266667 17.066667 0 34.133333-6.4 46.933334-19.2 14.933333-14.933333 64-59.733333 102.4-59.733334 40.533333 0 87.466667 44.8 102.4 61.866667 10.666667 12.8 27.733333 19.2 46.933333 19.2 8.533333 0 17.066667-2.133333 23.466667-4.266667h2.133333l123.733333-70.4h2.133334c21.333333-14.933333 29.866667-46.933333 19.2-70.4 0 0-10.666667-25.6-10.666667-49.066666 0-70.4 57.6-130.133333 128-130.133334h4.266667c19.2 0 36.266667-17.066667 42.666666-46.933333 0-2.133333 10.666667-55.466667 10.666667-98.133333-2.133333-38.4-12.8-91.733333-12.8-93.866667zM512 682.666667c-93.866667 0-170.666667-76.8-170.666667-170.666667s76.8-170.666667 170.666667-170.666667 170.666667 76.8 170.666667 170.666667-76.8 170.666667-170.666667 170.666667z","p-id":"61173"}),t.createElementVNode("path",{d:"M512 381.866667c-70.4 0-130.133333 57.6-130.133333 130.133333 0 72.533333 57.6 130.133333 130.133333 130.133333 70.4 0 130.133333-57.6 130.133333-130.133333 0-72.533333-59.733333-130.133333-130.133333-130.133333z","p-id":"61174"})]),t.createElementVNode("symbol",{id:"bell-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M739.19146667 675.11182222c-5.82542222 0-11.65084445-1.74762667-16.89372445-4.66033777l-227.19146667-128.1592889c-11.06830222-6.40796445-18.05880889-18.05880889-18.05880888-30.29219555V244.03057778c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v247.58044444l209.13265778 118.25607111c16.89372445 9.32067555 22.71914667 30.87473778 13.39847111 47.76846222-6.40796445 11.06830222-18.05880889 17.47626667-30.29219555 17.47626667z","p-id":"10316"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"10317"})]),t.createElementVNode("symbol",{id:"bell-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 62.3c247.3 0 448.7 201.4 448.7 448.7S759.4 959.7 512 959.7 63.3 758.3 63.3 511 264.7 62.3 512 62.3z m0 175.1c-17.5 0-32.8 15.3-32.8 32.8v247.3c2.2 10.9 8.8 21.9 19.7 26.3L674 627l2.2 2.2c15.3 6.6 32.8-2.2 41.6-17.5l2.2-2.2c6.6-15.3-2.2-32.8-17.5-41.6L547 495.7V268c-4.3-17.5-17.5-30.6-35-30.6z","p-id":"64116"})]),t.createElementVNode("symbol",{id:"tip-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M517.82542222 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"10624"}),t.createElementVNode("path",{d:"M517.82542222 631.42115555c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-361.17617777c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253333 34.95253334v361.17617777c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333zM517.82542222 803.27111111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-34.95253333c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253333 34.95253334v34.95253333c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"10625"})]),t.createElementVNode("symbol",{id:"tip-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 0a512 512 0 1 0 512 512A513.498143 513.498143 0 0 0 512 0z m-45.962261 294.404322c0-25.602881 13.963462-39.566343 44.176013-39.566343a45.501294 45.501294 0 0 1 32.651837 9.315377 42.255318 42.255318 0 0 1 11.639419 32.651836v314.091458a42.255318 42.255318 0 0 1-11.639419 32.651836 45.597329 45.597329 0 0 1-32.651837 6.991335c-30.250966 0-44.176014-13.963462-44.176013-39.566343z m79.132685 498.036538a50.610346 50.610346 0 1 1 13.963462-34.899051 47.36437 47.36437 0 0 1-13.963462 34.899051z","p-id":"67096"})]),t.createElementVNode("symbol",{id:"narrow-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M471.80458667 926.77006222c-253.98840889 0-460.79089778-206.80248889-460.79089778-460.79089777C11.01368889 211.99075555 217.81617778 5.18826667 471.80458667 5.18826667c253.98840889 0 460.79089778 206.80248889 460.79089778 460.79089778 0 253.98840889-206.80248889 460.79089778-460.79089778 460.79089777z m0-851.67672889C256.26396445 75.09333333 80.91875555 250.43854222 80.91875555 465.97916445s175.34520889 390.88583111 390.88583112 390.8858311 390.88583111-175.34520889 390.88583111-390.8858311S687.34520889 75.09333333 471.80458667 75.09333333z","p-id":"10932"}),t.createElementVNode("path",{d:"M983.27665778 1024.05461333c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-214.95808-214.95808c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.51608888 13.39847111-13.39847111 35.53507555-13.39847111 49.51608888 0l214.95808 214.95808c13.39847111 13.39847111 13.39847111 35.53507555 0 49.51608888-6.99050667 6.99050667-15.72864 10.48576-25.04931555 10.48576zM675.11182222 500.93169778H268.49735111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253334H675.11182222c19.22389333 0 34.95253333 15.72864 34.95253333 34.95253334s-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"10933"})]),t.createElementVNode("symbol",{id:"narrow-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M443.744 68.256c207.36 0 375.456 168.128 375.456 375.488 0 100.064-39.168 191.04-103.008 258.336l215.2 215.168a32 32 0 0 1 0 45.248l-3.008 3.04a32 32 0 0 1-45.28 0l-218.24-218.304a373.76 373.76 0 0 1-221.12 71.968c-207.36 0-375.488-168.096-375.488-375.456S236.384 68.256 443.744 68.256zM582.4 409.6H305.056a32 32 0 0 0-32 32v4.256a32 32 0 0 0 32 32H582.4a32 32 0 0 0 32-32V441.6a32 32 0 0 0-32-32z","p-id":"68114"})]),t.createElementVNode("symbol",{id:"collect-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M738.0992 975.6672c-18.56853333 0-37.13706667-4.36906667-54.61333333-13.65333333l-147.456-77.55093334c-14.7456-7.64586667-32.768-7.64586667-48.05973334 0l-147.456 77.55093334c-39.86773333 20.75306667-86.8352 17.47626667-122.88-8.73813334-36.0448-26.2144-54.0672-70.4512-46.42133333-114.14186666l28.39893333-163.84c2.73066667-16.93013333-2.73066667-33.86026667-14.7456-45.32906667l-119.05706666-116.3264c-32.22186667-31.1296-43.14453333-77.0048-29.4912-119.6032 13.65333333-42.5984 50.24426667-73.18186667 94.48106666-79.73546667l164.93226667-24.02986666c16.93013333-2.18453333 31.1296-13.1072 38.77546667-28.39893334L408.23466667 112.77653333C427.89546667 72.36266667 468.30933333 47.78666667 513.09226667 47.78666667s85.1968 25.12213333 104.8576 64.98986666l73.728 149.0944c7.64586667 15.29173333 21.84533333 25.66826667 38.77546666 28.39893334l164.93226667 24.02986666c44.2368 6.5536 80.82773333 37.13706667 94.48106667 79.73546667s2.73066667 88.4736-29.4912 119.6032L839.68 629.41866667c-12.01493333 12.01493333-17.47626667 28.94506667-14.7456 45.32906666l27.8528 163.84c7.64586667 44.2368-10.37653333 87.92746667-46.42133333 114.14186667-19.6608 15.29173333-43.69066667 22.9376-68.26666667 22.9376zM512 813.4656c18.56853333 0 37.13706667 4.36906667 54.61333333 13.65333333l147.456 77.55093334c17.47626667 9.28426667 37.6832 7.64586667 54.0672-3.82293334 16.384-12.01493333 24.02986667-30.58346667 20.20693334-50.24426666l-27.8528-163.84c-6.5536-37.6832 6.00746667-76.45866667 33.86026666-103.2192l119.05706667-116.3264c14.19946667-14.19946667 19.11466667-33.86026667 13.1072-52.4288s-21.84533333-32.22186667-41.50613333-34.95253334l-164.93226667-24.02986666c-38.22933333-5.46133333-70.99733333-29.4912-87.92746667-63.8976l-73.728-149.0944c-8.73813333-18.0224-26.2144-28.39893333-45.8752-28.39893334-20.20693333 0-37.13706667 10.92266667-45.8752 28.39893334L392.3968 290.816A116.3264 116.3264 0 0 1 304.46933333 354.7136l-164.93226666 24.02986667c-19.6608 2.73066667-35.49866667 15.83786667-41.50613334 34.95253333-6.00746667 19.11466667-1.09226667 38.77546667 13.1072 52.4288l119.05706667 116.3264c27.30666667 26.76053333 40.41386667 65.536 33.86026667 103.2192l-28.39893334 163.84c-3.2768 19.6608 4.36906667 38.22933333 20.20693334 50.24426667 16.384 11.4688 36.59093333 13.1072 54.0672 3.82293333l147.456-77.55093333c17.47626667-8.192 36.0448-12.56106667 54.61333333-12.56106667z","p-id":"11241"}),t.createElementVNode("path",{d:"M697.1392 497.2544c-2.18453333 0-4.36906667 0-6.5536-0.54613333l-7.09973333-1.6384c-81.37386667-16.384-152.3712-70.99733333-188.96213334-145.8176-8.192-16.384-1.09226667-36.0448 15.29173334-43.69066667 16.384-8.192 36.0448-1.09226667 43.69066666 15.29173333 27.8528 56.79786667 81.37386667 97.75786667 143.08693334 110.86506667l7.09973333 1.6384c18.0224 3.82293333 29.4912 20.75306667 25.66826667 38.77546667-3.2768 14.19946667-16.93013333 25.12213333-32.22186667 25.12213333z","p-id":"11242"})]),t.createElementVNode("symbol",{id:"collect-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M932.3008 478.2592c42.6496-41.5744 19.1488-114.0736-39.8336-122.624l-180.9408-26.3168c-23.3984-3.3792-43.6736-18.1248-54.1184-39.3216l-80.896-163.9424c-26.368-53.4528-102.5536-53.4528-128.9216 0L366.592 289.9968c-10.496 21.1968-30.72 35.9424-54.1184 39.3216l-180.9408 26.3168c-58.9824 8.5504-82.5344 81.0496-39.8336 122.624l130.9184 127.6416c16.9472 16.5376 24.6784 40.2944 20.6848 63.6416l-30.9248 180.224c-10.0864 58.7264 51.5584 103.5264 104.2944 75.776l161.8432-85.0944c20.9408-11.008 45.9776-11.008 66.9184 0l161.8432 85.0944c52.736 27.7504 114.3808-17.0496 104.2944-75.776l-30.9248-180.224c-3.9936-23.3472 3.7376-47.104 20.6848-63.6416l130.9696-127.6416z m-160.9728-38.144a29.89056 29.89056 0 0 1-29.6448 26.2656c-1.2288 0-2.4576-0.0512-3.6864-0.2048l-94.0544-11.52a102.85568 102.85568 0 0 1-77.8752-53.1456l-45.1072-83.6096a29.88544 29.88544 0 0 1 12.1344-40.4992 29.88544 29.88544 0 0 1 40.4992 12.1344l45.1072 83.6096a42.92608 42.92608 0 0 0 32.5632 22.2208l94.0544 11.52c16.384 1.9456 28.0064 16.8448 26.0096 33.2288z","p-id":"71213"})]),t.createElementVNode("symbol",{id:"like-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M719.4 204.488c0 10.090 7.568 25.226 25.226 25.226 58.019 0 88.291 35.317 105.949 85.767 5.045 15.136 17.658 22.703 32.794 20.181 12.612-2.523 25.226-15.136 22.703-30.271v0c-15.136-73.155-78.201-138.742-158.923-131.174-15.136 2.523-30.271 10.090-27.748 30.271zM575.614 196.921c7.567 0 12.612-5.045 22.703-15.136l17.658-15.136c88.291-83.245 221.988-90.813 305.234-2.523 219.465 224.51-166.491 570.105-325.414 665.962-5.045 7.567-12.612 10.090-20.181 10.090-7.568 0-15.136-2.523-20.181-10.090-158.923-95.857-544.879-441.453-325.414-665.962 83.245-88.291 216.943-80.723 305.233 2.523l17.658 15.136c10.090 10.090 15.136 15.136 22.703 15.136zM959.047 128.81c-103.426-108.471-274.962-105.949-383.434-5.045-108.471-100.903-280.007-103.426-383.434 5.045-242.169 247.213 118.562 612.989 355.685 754.253 7.567 5.045 17.658 7.567 27.748 7.567 10.090 0 20.181-2.523 27.748-7.567 237.124-141.265 597.853-507.040 355.685-754.253z","p-id":"79480"})]),t.createElementVNode("symbol",{id:"like-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M959.165 127.999c-103.551-107.387-276.137-103.551-383.523-3.835-107.387-99.715-279.972-103.551-383.523 3.835-241.619 245.454 118.892 613.637 352.84 755.54 11.506 3.835 19.176 7.671 30.682 7.671 11.506 0 19.176-3.835 26.847-7.671 237.785-141.903 598.296-510.085 356.676-755.54zM729.050 197.033c0-19.176 15.34-26.847 30.682-30.682 80.54-7.671 145.738 61.363 157.244 130.398v0c3.835 19.176-7.671 30.682-23.012 34.517-11.506 0-26.847-7.671-30.682-23.012-19.176-49.858-49.858-84.375-107.387-84.375-15.34 0-26.847-15.34-26.847-26.847z","p-id":"79642"})]),t.createElementVNode("symbol",{id:"file-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M841.3305363 996.67512889H188.88324741c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V182.6694637c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837629h288.94094222c32.93305363 0 63.38059378 14.29170252 85.12883674 39.14683734L636.27567408 144.76538311c7.45654045 8.07791882 17.39859437 13.04894578 28.58340503 13.04894578H841.3305363c88.85710697 0 161.5583763 72.70126933 161.55837629 161.55837629v515.74404741c0 88.85710697-72.70126933 161.5583763-161.55837629 161.5583763zM188.88324741 95.67649185c-47.84613452 0-86.99297185 39.14683733-86.99297186 86.99297185v652.44728889c0 47.84613452 39.14683733 86.99297185 86.99297186 86.99297186h652.44728889c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297186V319.37270518c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-176.47145719c-32.93305363 0-63.38059378-14.29170252-85.12883674-38.52545896L506.40759467 108.72543763c-7.45654045-8.07791882-17.39859437-13.04894578-28.58340504-13.04894578H188.88324741z","p-id":"11857"}),t.createElementVNode("path",{d:"M580.35162075 487.14486518H269.66243555c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270221s16.777216-37.28270222 37.28270222-37.28270222h310.6891852c20.50548622 0 37.28270222 16.777216 37.28270222 37.28270222s-16.777216 37.28270222-37.28270222 37.28270221zM772.97891555 673.5583763H269.66243555c-20.50548622 0-37.28270222-16.777216-37.28270222-37.28270222s16.777216-37.28270222 37.28270222-37.28270223h503.31648c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270223s-16.777216 37.28270222-37.28270223 37.28270222z","p-id":"11858"})]),t.createElementVNode("symbol",{id:"file-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M383.285 92c41.5 0 77.11 25.2 92.347 61.126V149.5h260.02c81.791 0 148.269 65.52 149.59 146.87l0.02 2.47 0.002 6.747C924.87 325.726 952 366.847 952 414.301V809.6c0 73.675-59.759 133.4-133.475 133.4h-619.05C125.76 943 66 883.275 66 809.6V230c0-76.215 61.82-138 138.078-138h179.207zM183.362 671.445l-0.706 0.008c-16.197 0.371-29.218 13.607-29.218 29.885 0 16.348 13.12 29.635 29.414 29.903l0.495 0.004 612.157 0.155 0.706-0.008c16.197-0.37 29.219-13.607 29.219-29.884 0-16.349-13.12-29.636-29.415-29.904l-0.495-0.004-612.157-0.155z m0.017-213.9l-0.706 0.008c-16.197 0.362-29.222 13.59-29.235 29.868-0.014 16.348 13.103 29.642 29.397 29.92l0.495 0.004 379.714 0.31 0.707-0.008c16.196-0.362 29.221-13.59 29.235-29.868 0.013-16.348-13.104-29.642-29.398-29.92l-0.495-0.004-379.714-0.31z m396.817-165.144H825.2c-3.275-45.952-41.319-82.333-88.062-83.089l-1.485-0.012-251.175 0.001c6.57 46.96 46.921 83.1 95.718 83.1z","p-id":"87810"})]),t.createElementVNode("symbol",{id:"camera-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M853.7581037 1015.31648H176.45568c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V336.14992118c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837629h144.15978192c20.50548622 0 37.28270222 16.777216 37.28270223 37.28270222s-16.777216 37.28270222-37.28270223 37.28270222H176.45568c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185V853.7581037c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297185h677.3024237c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297185V336.14992118c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185h-150.37356562c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222s16.777216-37.28270222 37.28270223-37.28270222H853.7581037c88.85710697 0 161.5583763 72.70126933 161.5583763 161.55837629V853.7581037c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763z","p-id":"12165"}),t.createElementVNode("path",{d:"M703.38453808 249.15694933c-20.50548622 0-37.28270222-16.777216-37.28270223-37.28270222V176.45568c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185H444.891136c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v35.41856711c0 20.50548622-16.777216 37.28270222-37.28270223 37.28270222s-37.28270222-16.777216-37.28270222-37.28270222V176.45568c0-88.85710697 72.70126933-161.5583763 161.5583763-161.5583763h134.217728c88.85710697 0 161.5583763 72.70126933 161.5583763 161.5583763v35.41856711c0 20.50548622-16.777216 37.28270222-37.28270222 37.28270222zM810.26161778 406.36567703c-2.48551348 0-4.97102697 0-7.45654045-0.62137836-2.48551348-0.62137837-4.97102697-1.24275675-6.83516208-1.86413512-2.48551348-1.24275675-4.34964859-1.86413511-6.2137837-3.10689185-1.86413511-1.24275675-3.72827022-3.10689185-5.59240533-4.97102695-6.83516208-6.83516208-11.18481067-16.777216-11.18481067-26.09789157 0-2.48551348 0-4.97102697 0.62137837-7.45654043 0.62137837-2.48551348 1.24275675-4.97102697 1.86413511-6.83516208 0.62137837-2.48551348 1.86413511-4.34964859 3.10689186-6.2137837 1.24275675-1.86413511 3.10689185-3.72827022 4.97102696-5.59240534 8.69929718-8.69929718 21.74824297-12.42756741 33.554432-9.94205393 2.48551348 0.62137837 4.97102697 1.24275675 6.83516207 1.86413512 2.48551348 0.62137837 4.34964859 1.86413511 6.21378371 3.10689185 1.86413511 1.24275675 3.72827022 3.10689185 5.59240534 4.97102696 1.86413511 1.86413511 3.10689185 3.72827022 4.97102695 5.59240534 1.24275675 1.86413511 2.48551348 4.34964859 3.10689186 6.2137837 0.62137837 2.48551348 1.86413511 4.34964859 1.86413511 6.83516208 0.62137837 2.48551348 0.62137837 4.97102697 0.62137836 7.45654043 0 2.48551348 0 4.97102697-0.62137836 7.45654045-0.62137837 2.48551348-1.24275675 4.97102697-1.86413511 6.83516207-1.24275675 2.48551348-1.86413511 4.34964859-3.10689186 6.21378371-1.24275675 1.86413511-3.10689185 3.72827022-4.97102695 5.59240534-1.86413511 1.86413511-3.72827022 3.10689185-5.59240534 4.97102695-1.86413511 1.24275675-4.34964859 2.48551348-6.21378371 3.10689185-2.48551348 0.62137837-4.34964859 1.86413511-6.83516207 1.86413512-1.86413511 0.62137837-4.34964859 0.62137837-6.83516207 0.62137836zM515.10689185 787.27061808c-106.25570133 0-192.62729482-86.37159348-192.62729482-192.62729483s86.37159348-192.62729482 192.62729482-192.6272948 192.62729482 86.37159348 192.62729482 192.6272948-86.37159348 192.62729482-192.62729482 192.62729483z m0-310.68918519c-65.24472889 0-118.06189037 52.81716148-118.06189037 118.06189036s52.81716148 118.06189037 118.06189037 118.06189038 118.06189037-52.81716148 118.06189037-118.06189038-52.81716148-118.06189037-118.06189037-118.06189036z","p-id":"12166"})]),t.createElementVNode("symbol",{id:"camera-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M622.871273 162.909091a46.545455 46.545455 0 0 1 41.634909 25.739636l20.805818 41.611637A46.545455 46.545455 0 0 0 726.970182 256H837.818182a93.090909 93.090909 0 0 1 93.090909 93.090909v418.909091a93.090909 93.090909 0 0 1-93.090909 93.090909H186.181818a93.090909 93.090909 0 0 1-93.090909-93.090909V349.090909a93.090909 93.090909 0 0 1 93.090909-93.090909h110.871273a46.545455 46.545455 0 0 0 41.634909-25.739636l20.805818-41.611637A46.545455 46.545455 0 0 1 401.152 162.909091h221.719273zM512 325.818182c-128.535273 0-232.727273 104.192-232.727273 232.727273s104.192 232.727273 232.727273 232.727272 232.727273-104.192 232.727273-232.727272-104.192-232.727273-232.727273-232.727273z m0 69.818182a162.909091 162.909091 0 1 1 0 325.818181 162.909091 162.909091 0 0 1 0-325.818181z m256-69.818182a46.545455 46.545455 0 1 0 0 93.090909 46.545455 46.545455 0 0 0 0-93.090909z","p-id":"91220"})]),t.createElementVNode("symbol",{id:"empty-img-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M55.70180742 794.72715852c-9.32067555 0-19.26272948-3.72827022-26.09789157-11.18481067-14.29170252-14.29170252-14.29170252-37.90408059 0-52.81716148L254.54288592 505.7862163c14.29170252-14.29170252 37.90408059-14.29170252 52.8171615 0l123.03291733 123.03291733L701.93531259 356.65540741c14.29170252-14.29170252 37.90408059-14.29170252 52.81716149 0l228.66724029 228.66724029c14.29170252 14.29170252 14.29170252 37.90408059 0 52.81716148-14.29170252 14.29170252-37.90408059 14.29170252-52.81716148 0l-201.94797037-201.94797036-272.16372622 272.16372621c-14.29170252 14.29170252-37.90408059 14.29170252-52.81716148 0l-123.03291733-123.03291733-198.84107852 198.84107852c-6.83516208 6.83516208-16.777216 10.5634323-26.09789155 10.5634323z","p-id":"12319"}),t.createElementVNode("path",{d:"M832.42477037 996.67512889H179.97748149c-88.85710697 0-161.5583763-72.70126933-161.5583763-161.5583763V182.6694637c0-88.85710697 72.70126933-161.5583763 161.5583763-161.55837629h652.44728888c88.85710697 0 161.5583763 72.70126933 161.5583763 161.55837629v652.44728889c0 88.85710697-72.70126933 161.5583763-161.5583763 161.5583763zM179.97748149 95.67649185c-47.84613452 0-86.99297185 39.14683733-86.99297185 86.99297185v652.44728889c0 47.84613452 39.14683733 86.99297185 86.99297185 86.99297186h652.44728888c47.84613452 0 86.99297185-39.14683733 86.99297185-86.99297186V182.6694637c0-47.84613452-39.14683733-86.99297185-86.99297185-86.99297185H179.97748149z","p-id":"12320"}),t.createElementVNode("path",{d:"M279.39802075 331.80027259c-4.34964859 0-8.69929718-0.62137837-13.67032416-1.24275674-4.34964859-0.62137837-8.69929718-2.48551348-13.04894577-3.72827022-4.34964859-1.86413511-8.07791882-3.72827022-11.80618904-6.21378371-3.72827022-2.48551348-7.45654045-5.59240533-10.56343229-8.69929717-3.10689185-3.10689185-6.2137837-6.83516208-8.69929719-10.5634323-2.48551348-3.72827022-4.34964859-7.45654045-6.21378371-11.80618904-1.86413511-4.34964859-3.10689185-8.69929718-3.72827022-13.04894578 0-4.34964859-0.62137837-8.69929718-0.62137837-13.04894578s0.62137837-8.69929718 1.24275675-13.67032415c0.62137837-4.34964859 1.86413511-8.69929718 3.72827022-13.04894578 1.86413511-4.34964859 3.72827022-8.07791882 6.2137837-11.80618903 2.48551348-3.72827022 5.59240533-7.45654045 8.69929718-10.5634323 16.15583763-15.53445925 39.7682157-22.9909997 61.51645867-18.64135111 4.34964859 0.62137837 8.69929718 1.86413511 13.04894578 3.72827022 4.34964859 1.86413511 8.07791882 3.72827022 11.80618904 6.21378371 3.72827022 2.48551348 7.45654045 5.59240533 10.5634323 8.69929718 3.10689185 3.10689185 6.2137837 6.83516208 8.69929718 10.5634323 2.48551348 3.72827022 4.34964859 7.45654045 6.2137837 11.80618903 1.86413511 4.34964859 3.10689185 8.69929718 3.72827023 13.04894578 0.62137837 4.34964859 1.24275675 8.69929718 1.24275674 13.67032415s-0.62137837 8.69929718-1.24275674 13.04894578c-0.62137837 4.34964859-2.48551348 8.69929718-3.72827023 13.04894578-1.86413511 4.34964859-3.72827022 8.07791882-6.2137837 11.80618904-2.48551348 3.72827022-5.59240533 7.45654045-8.69929718 10.5634323-3.10689185 3.10689185-6.83516208 6.2137837-10.5634323 8.69929717-3.72827022 2.48551348-7.45654045 4.34964859-11.80618904 6.21378371-4.34964859 1.86413511-8.69929718 3.10689185-13.04894578 3.72827022-4.34964859 0.62137837-8.69929718 1.24275675-13.04894577 1.24275674z","p-id":"12321"})]),t.createElementVNode("symbol",{id:"empty-img-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M279.39802075 331.80027259c-4.34964859 0-8.69929718-0.62137837-13.67032416-1.24275674-4.34964859-0.62137837-8.69929718-2.48551348-13.04894577-3.72827022-4.34964859-1.86413511-8.07791882-3.72827022-11.80618904-6.21378371-3.72827022-2.48551348-7.45654045-5.59240533-10.56343229-8.69929717-3.10689185-3.10689185-6.2137837-6.83516208-8.69929719-10.5634323-2.48551348-3.72827022-4.34964859-7.45654045-6.21378371-11.80618904-1.86413511-4.34964859-3.10689185-8.69929718-3.72827022-13.04894578 0-4.34964859-0.62137837-8.69929718-0.62137837-13.04894578s0.62137837-8.69929718 1.24275675-13.67032415c0.62137837-4.34964859 1.86413511-8.69929718 3.72827022-13.04894578 1.86413511-4.34964859 3.72827022-8.07791882 6.2137837-11.80618903 2.48551348-3.72827022 5.59240533-7.45654045 8.69929718-10.5634323 16.15583763-15.53445925 39.7682157-22.9909997 61.51645867-18.64135111 4.34964859 0.62137837 8.69929718 1.86413511 13.04894578 3.72827022 4.34964859 1.86413511 8.07791882 3.72827022 11.80618904 6.21378371 3.72827022 2.48551348 7.45654045 5.59240533 10.5634323 8.69929718 3.10689185 3.10689185 6.2137837 6.83516208 8.69929718 10.5634323 2.48551348 3.72827022 4.34964859 7.45654045 6.2137837 11.80618903 1.86413511 4.34964859 3.10689185 8.69929718 3.72827023 13.04894578 0.62137837 4.34964859 1.24275675 8.69929718 1.24275674 13.67032415s-0.62137837 8.69929718-1.24275674 13.04894578c-0.62137837 4.34964859-2.48551348 8.69929718-3.72827023 13.04894578-1.86413511 4.34964859-3.72827022 8.07791882-6.2137837 11.80618904-2.48551348 3.72827022-5.59240533 7.45654045-8.69929718 10.5634323-3.10689185 3.10689185-6.83516208 6.2137837-10.5634323 8.69929717-3.72827022 2.48551348-7.45654045 4.34964859-11.80618904 6.21378371-4.34964859 1.86413511-8.69929718 3.10689185-13.04894578 3.72827022-4.34964859 0.62137837-8.69929718 1.24275675-13.04894577 1.24275674z","p-id":"12474"}),t.createElementVNode("path",{d:"M832.42477037 21.11108741H179.97748149c-88.85710697 0-161.5583763 72.70126933-161.5583763 161.55837629v652.44728889c0 88.85710697 72.70126933 161.5583763 161.5583763 161.5583763h652.44728888c88.85710697 0 161.5583763-72.70126933 161.5583763-161.5583763V182.6694637c0-88.85710697-72.70126933-161.5583763-161.5583763-161.55837629zM179.97748149 95.67649185h652.44728888c47.84613452 0 86.99297185 39.14683733 86.99297185 86.99297185v338.65121185L754.75247408 356.65540741c-14.29170252-14.29170252-37.90408059-14.29170252-52.81716149 0l-272.16372622 272.16372622L307.36004742 505.7862163c-14.29170252-14.29170252-37.90408059-14.29170252-52.8171615 0l-161.55837628 161.55837629V182.6694637c0-47.84613452 39.14683733-86.99297185 86.99297185-86.99297185z","p-id":"12475"})]),t.createElementVNode("symbol",{id:"fail-img-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M131.50435555 65.93422222c-70.18951111 0-127.22631111 57.0368-127.2263111 127.22631111V829.32622222c0 70.18951111 57.0368 127.22631111 127.2263111 127.22631111h365.79555556l36.68195556-79.51928888 58.74346666-127.22631112s-61.49688889-83.7632-130.19591111-180.03057778c-26.29404445 39.65155555-44.7488 68.7104-44.7488 68.7104s-110.8992-127.22631111-143.13244444-127.2263111-190.85084445 238.54648889-190.85084445 238.54648888V177.2544c0-17.60142222 14.21084445-31.81226667 31.81226667-31.81226667h233.89297778c27.78453333-43.47448889 52.37191111-79.51928889 52.37191111-79.51928888H131.50435555z m477.11573334 890.61831111h286.27626666c70.18951111 0 127.22631111-57.0368 127.22631112-127.22631111V193.16053333c0-70.18951111-57.0368-127.22631111-127.22631112-127.22631111H513.20604445s-22.90346667 36.26097778-49.4136889 79.51928889h447.01013334c17.60142222 0 31.81226667 14.21084445 31.81226666 31.81226667v572.54115555S682.21155555 352.21048889 640.44373333 352.21048889c-19.71768889 0-70.82666667 64.04551111-118.96604444 131.6864C607.99431111 602.64675555 704.05688889 734.11697778 704.05688889 749.80693333c0 15.48515555-28.41031111 75.70773333-54.28337778 127.22631112-21.42435555 42.83733333-41.15342222 79.51928889-41.15342222 79.51928888zM242.83591111 193.16053333c-35.20284445 0-63.61315555 28.41031111-63.61315556 63.61315556v31.81226666c0 35.20284445 28.41031111 63.61315555 63.61315556 63.61315556h31.81226667c11.24124445 0 22.05013333-2.9696 31.17511111-8.27164444-18.65955555-28.84266667-30.53795555-49.19751111-31.17511111-55.34151112-1.27431111-11.8784 15.90613333-45.37457778 37.95626667-82.90986666-10.60408889-7.85066667-23.74542222-12.51555555-37.95626667-12.51555556h-31.81226667z","p-id":"3406"})]),t.createElementVNode("symbol",{id:"download-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M509.66983111 943.08124445c-8.73813333 0-18.05880889-3.49525333-24.46677333-10.48576l-115.34336-115.34336c-13.39847111-13.39847111-13.39847111-35.53507555 0-49.5160889 13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0l90.87658666 90.87658667 90.87658667-90.87658667c13.39847111-13.39847111 35.53507555-13.39847111 49.51608889 0 13.39847111 13.39847111 13.39847111 35.53507555 0 49.5160889L535.30168889 932.59548445c-7.57304889 6.99050667-16.89372445 10.48576-25.63185778 10.48576z","p-id":"12628"}),t.createElementVNode("path",{d:"M797.44568889 838.22364445h-1.74762667c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253334s15.72864-34.95253333 34.95253333-34.95253333h1.74762667c79.22574222-0.58254222 143.88792889-66.40981333 143.88792889-145.63555556 0-80.39082667-65.24472889-145.63555555-145.63555556-145.63555555-10.48576 0.58254222-20.38897778-2.91271111-27.96202667-10.48576-6.99050667-7.57304889-10.48576-18.05880889-9.32067555-27.96202667 1.16508445-8.73813333 1.74762667-17.47626667 1.74762667-26.79694222 0-139.81013333-113.59573333-253.40586667-253.40586667-253.40586667S253.35125333 271.41006222 253.35125333 411.22019555c0 9.32067555 0.58254222 18.05880889 1.74762667 26.79694223 1.16508445 9.90321778-1.74762667 19.80643555-8.15559111 26.79694222-6.40796445 7.57304889-15.72864 11.65084445-25.63185778 11.65084445-78.6432 1.16508445-142.72284445 66.99235555-142.72284444 145.63555555 0 79.22574222 64.07964445 144.47047111 143.30538666 145.63555555h2.91271112c4.66033778 0 8.73813333 1.16508445 12.23338666 2.3301689 4.66033778 1.74762667 8.73813333 4.66033778 12.23338667 8.1555911 4.07779555 4.07779555 6.99050667 9.90321778 8.73813333 15.72864 0.58254222 2.33016889 1.16508445 5.24288 1.16508444 8.15559112 0 6.99050667-1.74762667 13.39847111-5.24288 18.64135111-1.16508445 1.74762667-2.33016889 3.49525333-4.07779555 5.24288-6.40796445 6.40796445-14.56355555 10.48576-24.46677333 10.48576h-7.57304889c-115.92590222-2.91271111-209.7152-99.03217778-209.7152-215.54062223 0-104.27505778 75.73048889-192.82147555 175.34520889-212.04536888 0-178.25792 145.05301333-322.72839111 323.31093333-322.72839112 177.67537778 0 322.14584889 143.88792889 323.31093333 321.56330667 102.52743111 16.31118222 181.17063111 105.44014222 181.17063112 212.62791111 0 120.00369778-95.53692445 216.70570667-213.79299556 217.87079112 0.58254222 0 0 0 0 0z","p-id":"12629"}),t.createElementVNode("path",{d:"M509.66983111 890.65244445c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253334V488.69831111c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253334 34.95253333v367.0016c0 19.22389333-15.72864 34.95253333-34.95253334 34.95253334z","p-id":"12630"})]),t.createElementVNode("symbol",{id:"download-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M514 211c137.83 0 252.148 100.666 273.442 232.485C883.34 450.367 959 530.348 959 628c0 97.52-75.454 177.415-171.166 184.49A8.143 8.143 0 0 1 785 813H279a7.98 7.98 0 0 1-2.928-0.553C157.582 804.275 64 705.567 64 585c0-118.254 90.027-215.481 205.282-226.882C315.826 270.592 407.954 211 514 211z m30.73 213h-64a8 8 0 0 0-8 8v143H397c-5.523 0-10 4.477-10 10a10 10 0 0 0 2.745 6.882l115.23 121.47c3.801 4.007 10.13 4.174 14.137 0.373a10 10 0 0 0 0.373-0.373l115.23-121.47c3.801-4.007 3.634-10.336-0.373-14.137A10 10 0 0 0 627.46 575h-74.73V432a8 8 0 0 0-8-8z","p-id":"92272"})]),t.createElementVNode("symbol",{id:"note-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"12938"}),t.createElementVNode("path",{d:"M512 803.27111111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333V407.1424c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v361.17617778c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333zM512 302.2848c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-34.95253334c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v34.95253334c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"12939"})]),t.createElementVNode("symbol",{id:"note-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M513.536 45.056C258.048 45.056 51.2 252.416 51.2 507.904c0 255.488 206.848 462.336 462.336 462.336s462.336-206.848 462.336-462.336-206.848-462.848-462.336-462.848z m51.2 702.464c0 28.16-23.04 51.2-51.2 51.2s-51.2-23.04-51.2-51.2V428.544c0-28.16 23.04-51.2 51.2-51.2s51.2 23.04 51.2 51.2V747.52z m-51.2-428.544c-28.16 0-51.2-23.04-51.2-51.2s23.04-51.2 51.2-51.2 51.2 23.04 51.2 51.2-23.04 51.2-51.2 51.2z","p-id":"93260"})]),t.createElementVNode("symbol",{id:"stop-play-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M404.22968889 774.144c-5.24288 0-10.48576-1.16508445-15.14609778-3.49525333-12.23338667-5.82542222-19.80643555-18.05880889-19.80643556-31.45728V284.80853333c0-13.39847111 7.57304889-25.63185778 19.80643556-31.45728 12.23338667-5.82542222 26.2144-4.07779555 36.70016 4.07779556l285.44568889 227.19146666c8.15559111 6.40796445 13.39847111 16.89372445 13.39847111 27.37948445s-4.66033778 20.97152-13.39847111 27.37948445l-285.44568889 227.19146666c-6.40796445 5.24288-13.98101333 7.57304889-21.55406222 7.57304889z m34.95253333-417.10023111v309.32992l194.56910223-154.95623111-194.56910223-154.37368889z","p-id":"13246"}),t.createElementVNode("path",{d:"M512 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124445 431.08124445s193.40401778 431.08124445 431.08124445 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"13247"})]),t.createElementVNode("symbol",{id:"stop-paly-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 93.09A418.91 418.91 0 1 0 930.91 512 418.91 418.91 0 0 0 512 93.09z m188.742 442.183L452.189 693.527a30.487 30.487 0 0 1-46.545-25.6V344.902a30.72 30.72 0 0 1 46.545-25.833c66.793 42.822 186.182 124.044 249.018 165.935a30.487 30.487 0 0 1-0.465 50.269z","p-id":"94259"})]),t.createElementVNode("symbol",{id:"question-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M517.82542222 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"13554"}),t.createElementVNode("path",{d:"M517.82542222 803.27111111c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-34.95253333c0-19.22389333 15.72864-34.95253333 34.95253333-34.95253334s34.95253333 15.72864 34.95253333 34.95253334v34.95253333c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333zM517.82542222 631.42115555c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333v-67.57489777c0-5.82542222 1.16508445-11.65084445 4.07779556-16.31118223l2.9127111-5.24288c5.82542222-11.65084445 18.05880889-18.64135111 30.87473778-18.64135111 61.16693333 0 110.68302222-49.51608889 110.68302222-110.68302222s-49.51608889-110.68302222-110.68302222-110.68302222-110.68302222 49.51608889-110.68302222 110.68302222c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333s-34.95253333-15.72864-34.95253333-34.95253333c0-99.61472 80.97336889-180.58808889 180.58808888-180.58808889s180.58808889 80.97336889 180.58808889 180.58808889c0 88.54641778-64.07964445 162.52928-148.54826667 177.67537778v40.77795555c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"13555"})]),t.createElementVNode("symbol",{id:"question-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 81.408a422.4 422.4 0 1 0 422.4 422.4A422.4 422.4 0 0 0 512 81.408z m26.624 629.76a45.056 45.056 0 0 1-31.232 12.288 42.496 42.496 0 0 1-31.232-12.8 41.984 41.984 0 0 1-12.8-30.72 39.424 39.424 0 0 1 12.8-30.72 42.496 42.496 0 0 1 31.232-12.288 43.008 43.008 0 0 1 31.744 12.288 39.424 39.424 0 0 1 12.8 30.72 43.008 43.008 0 0 1-13.312 31.744z m87.04-235.52a617.472 617.472 0 0 1-51.2 47.104 93.184 93.184 0 0 0-25.088 31.232 80.896 80.896 0 0 0-9.728 39.936v10.24h-64v-10.24a119.808 119.808 0 0 1 12.288-57.344A311.296 311.296 0 0 1 555.52 460.8l10.24-11.264a71.168 71.168 0 0 0 16.896-44.032A69.632 69.632 0 0 0 563.2 358.4a69.632 69.632 0 0 0-51.2-17.92 67.072 67.072 0 0 0-58.88 26.112 102.4 102.4 0 0 0-16.384 61.44h-61.44a140.288 140.288 0 0 1 37.888-102.4 140.8 140.8 0 0 1 104.96-38.4 135.68 135.68 0 0 1 96.256 29.184 108.032 108.032 0 0 1 36.352 86.528 116.736 116.736 0 0 1-25.088 73.216z","p-id":"95262"})]),t.createElementVNode("symbol",{id:"add-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M510.0581926 1012.98631111c-276.12501333 0-500.98631111-224.86129778-500.98631111-500.98631111s224.86129778-500.98631111 500.98631111-500.98631111 500.98631111 224.86129778 500.98631111 500.98631111-224.86129778 500.98631111-500.98631111 500.98631111z m0-932.06755556c-237.67722667 0-431.08124445 193.40401778-431.08124444 431.08124445s193.40401778 431.08124445 431.08124444 431.08124445 431.08124445-193.40401778 431.08124445-431.08124445-193.40401778-431.08124445-431.08124445-431.08124445z","p-id":"13862"}),t.createElementVNode("path",{d:"M510.0581926 779.96942222c-19.22389333 0-34.95253333-15.72864-34.95253334-34.95253333V278.98311111c0-19.22389333 15.72864-34.95253333 34.95253334-34.95253333s34.95253333 15.72864 34.95253333 34.95253333v466.03377778c0 19.22389333-15.72864 34.95253333-34.95253333 34.95253333z","p-id":"13863"}),t.createElementVNode("path",{d:"M743.07508149 546.95253333H277.04130371c-19.22389333 0-34.95253333-15.72864-34.95253333-34.95253333s15.72864-34.95253333 34.95253333-34.95253333h466.03377778c19.22389333 0 34.95253333 15.72864 34.95253334 34.95253333s-15.72864 34.95253333-34.95253334 34.95253333z","p-id":"13864"})]),t.createElementVNode("symbol",{id:"add-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M808.448 217.088c-79.36-78.848-184.32-122.368-296.448-122.368S294.912 138.24 215.552 217.088c-79.36 78.848-122.88 183.808-122.88 294.912 0 111.616 43.52 216.576 122.88 294.912 79.36 78.848 184.32 122.368 296.448 122.368s217.088-43.52 296.448-122.368c79.36-78.848 122.88-183.808 122.88-294.912 0-111.616-44.032-216.064-122.88-294.912z m-82.944 327.168h-181.76v181.76c0 17.92-14.336 32.256-32.256 32.256s-32.256-14.336-32.256-32.256v-181.76H298.496c-17.92 0-32.256-14.336-32.256-32.256s14.336-32.256 32.256-32.256h181.76V298.496c0-17.92 14.336-32.256 32.256-32.256s32.256 14.336 32.256 32.256v181.76h181.76c17.92 0 32.256 14.336 32.256 32.256s-15.36 31.744-33.28 31.744z","p-id":"96289"})]),t.createElementVNode("symbol",{id:"message-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M100.14264889 962.88768c-12.81592889 0-25.63185778-4.07779555-36.11761778-12.81592889-16.89372445-13.39847111-25.04931555-34.95253333-21.55406222-55.92405333l30.87473778-171.84995556c-40.77795555-67.57489778-61.74947555-143.88792889-61.74947556-221.36604444 0-253.98840889 224.86129778-460.20835555 500.98631111-460.20835556s500.98631111 206.21994667 500.98631111 460.20835556-224.86129778 460.20835555-500.98631111 460.20835555c-86.21624889 0-170.68487111-20.38897778-245.25027555-58.83676444l-143.88792889 56.50659556c-8.15559111 2.33016889-15.72864 4.07779555-23.30168889 4.07779555z m168.93724444-134.56725333c5.82542222 0 11.65084445 1.74762667 16.89372445 4.66033778 67.57489778 37.86524445 145.63555555 57.67168 226.02638222 57.67168 237.67722667 0 431.08124445-175.34520889 431.08124445-390.3032889s-193.40401778-390.30328889-431.08124445-390.30328888-431.08124445 175.34520889-431.08124445 390.30328888c0 68.73998222 19.80643555 136.31488 58.25422223 195.73418667 4.66033778 7.57304889 6.40796445 16.31118222 5.24288 25.04931556l-29.12711111 165.44199111 141.55776-55.34151111c3.49525333-2.33016889 7.57304889-2.91271111 12.23338666-2.91271111z","p-id":"14172"}),t.createElementVNode("path",{d:"M284.80853333 564.4288c-4.07779555 0-8.15559111-0.58254222-12.81592888-1.16508445-4.07779555-0.58254222-8.15559111-2.33016889-12.23338667-3.49525333-4.07779555-1.74762667-7.57304889-3.49525333-11.06830223-5.82542222-3.49525333-2.33016889-6.99050667-5.24288-9.90321777-8.15559111-11.65084445-12.23338667-18.64135111-28.54456889-18.64135111-45.43829334 0-4.07779555 0.58254222-8.15559111 1.16508444-12.81592888 0.58254222-4.07779555 2.33016889-8.15559111 3.49525334-12.23338667 1.74762667-4.07779555 3.49525333-7.57304889 5.82542222-11.06830222 2.33016889-3.49525333 5.24288-6.99050667 8.15559111-9.90321778 11.65084445-11.65084445 28.54456889-18.64135111 45.43829333-18.64135111 16.89372445 0 33.20490667 6.99050667 45.43829334 18.64135111 2.91271111 2.91271111 5.82542222 6.40796445 8.1555911 9.90321778 2.33016889 3.49525333 4.07779555 6.99050667 5.82542223 11.06830222 1.74762667 4.07779555 2.91271111 8.15559111 3.49525333 12.23338667 1.16508445 4.07779555 1.16508445 8.15559111 1.16508444 12.81592888 0 16.89372445-6.99050667 33.20490667-18.6413511 45.43829334-2.91271111 2.91271111-6.40796445 5.82542222-9.90321778 8.15559111-3.49525333 2.33016889-6.99050667 4.07779555-11.06830222 5.82542222-4.07779555 1.74762667-8.15559111 2.91271111-12.23338667 3.49525333-3.49525333 0.58254222-7.57304889 1.16508445-11.65084445 1.16508445zM517.82542222 564.4288c-4.07779555 0-8.15559111-0.58254222-12.81592889-1.16508445-4.07779555-0.58254222-8.15559111-2.33016889-12.23338666-3.49525333-4.07779555-1.74762667-7.57304889-3.49525333-11.06830222-5.82542222-3.49525333-2.33016889-6.99050667-5.24288-9.90321778-8.15559111-2.91271111-2.91271111-5.82542222-6.40796445-8.15559112-9.90321778-2.33016889-3.49525333-4.07779555-6.99050667-5.82542222-11.06830222-1.74762667-4.07779555-2.91271111-8.15559111-3.49525333-12.23338667 0-4.07779555-0.58254222-8.15559111-0.58254222-12.23338667s0.58254222-8.15559111 1.16508444-12.81592888c0.58254222-4.07779555 2.33016889-8.15559111 3.49525333-12.23338667 1.74762667-4.07779555 3.49525333-7.57304889 5.82542223-11.06830222 2.33016889-3.49525333 5.24288-6.99050667 8.15559111-9.90321778s6.40796445-5.82542222 9.90321778-8.15559111c3.49525333-2.33016889 6.99050667-4.07779555 11.06830222-5.82542222 4.07779555-1.74762667 8.15559111-2.91271111 12.23338666-3.49525334 8.15559111-1.74762667 16.89372445-1.74762667 25.04931556 0 4.07779555 0.58254222 8.15559111 2.33016889 12.23338667 3.49525334 4.07779555 1.74762667 7.57304889 3.49525333 11.06830222 5.82542222 3.49525333 2.33016889 6.99050667 5.24288 9.90321778 8.15559111 2.91271111 2.91271111 5.82542222 6.40796445 8.15559111 9.90321778 2.33016889 3.49525333 4.07779555 6.99050667 5.82542222 11.06830222 1.74762667 4.07779555 2.91271111 8.15559111 3.49525334 12.23338667 1.16508445 4.07779555 1.16508445 8.15559111 1.16508444 12.81592888s-0.58254222 8.15559111-1.16508444 12.23338667c-0.58254222 4.07779555-1.74762667 8.15559111-3.49525334 12.23338667-1.74762667 4.07779555-3.49525333 7.57304889-5.82542222 11.06830222-2.33016889 3.49525333-5.24288 6.99050667-8.15559111 9.90321778-2.91271111 2.91271111-6.40796445 5.82542222-9.90321778 8.15559111-3.49525333 2.33016889-6.99050667 4.07779555-11.06830222 5.82542222-4.07779555 1.74762667-8.15559111 2.91271111-12.23338667 3.49525333-4.66033778 0.58254222-8.73813333 1.16508445-12.81592889 1.16508445zM750.84231111 564.4288c-4.07779555 0-8.15559111-0.58254222-12.81592889-1.16508445-4.07779555-0.58254222-8.15559111-2.33016889-12.23338667-3.49525333-4.07779555-1.74762667-7.57304889-3.49525333-11.06830222-5.82542222-3.49525333-2.33016889-6.99050667-5.24288-9.90321778-8.15559111-11.65084445-12.23338667-18.64135111-28.54456889-18.6413511-45.43829334 0-4.07779555 0.58254222-8.15559111 1.16508444-12.81592888 0.58254222-4.07779555 2.33016889-8.15559111 3.49525333-12.23338667 1.74762667-4.07779555 3.49525333-7.57304889 5.82542223-11.06830222 2.33016889-3.49525333 5.24288-6.99050667 8.1555911-9.90321778s6.40796445-5.82542222 9.90321778-8.15559111c3.49525333-2.33016889 6.99050667-4.07779555 11.06830222-5.82542222 4.07779555-1.74762667 8.15559111-2.91271111 12.23338667-3.49525334 8.15559111-1.74762667 16.89372445-1.74762667 25.04931556 0 4.07779555 0.58254222 8.15559111 2.33016889 12.23338667 3.49525334 4.07779555 1.74762667 7.57304889 3.49525333 11.06830222 5.82542222 3.49525333 2.33016889 6.99050667 5.24288 9.90321778 8.15559111 2.91271111 2.91271111 5.82542222 6.40796445 8.1555911 9.90321778 2.33016889 3.49525333 4.07779555 6.99050667 5.82542223 11.06830222 1.74762667 4.07779555 2.91271111 8.15559111 3.49525333 12.23338667 1.16508445 4.07779555 1.16508445 8.15559111 1.16508444 12.81592888s-0.58254222 8.15559111-1.16508444 12.23338667c-0.58254222 4.07779555-1.74762667 8.15559111-3.49525333 12.23338667-1.74762667 4.07779555-3.49525333 7.57304889-5.82542223 11.06830222-2.33016889 3.49525333-5.24288 6.99050667-8.1555911 9.90321778-2.91271111 2.91271111-6.40796445 5.82542222-9.90321778 8.15559111-3.49525333 2.33016889-6.99050667 4.07779555-11.06830222 5.82542222-4.07779555 1.74762667-8.15559111 2.91271111-12.23338667 3.49525333-4.07779555 0.58254222-8.15559111 1.16508445-12.23338667 1.16508445z","p-id":"14173"})]),t.createElementVNode("symbol",{id:"message-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 0C229.69344 0 0 196.66944 0 438.42048c0 144.384 82.28352 278.33344 220.77952 360.46848l0 203.73504c0 8.21248 4.71552 15.744 12.18048 19.28704 2.92352 1.42848 6.08256 2.08896 9.19552 2.08896 4.80256 0 9.57952-1.62304 13.46048-4.80256l181.59104-147.456c26.79296 3.41504 51.36896 5.07904 74.79296 5.07904 282.28096 0 512-196.69504 512-438.42048S794.28096 0 512 0zM266.50624 487.78752c-27.1872 0-49.2288-22.0416-49.2288-49.2288s22.0416-49.2288 49.2288-49.2288 49.2288 22.0416 49.2288 49.2288S293.69344 487.78752 266.50624 487.78752zM512 487.78752c-27.1872 0-49.2288-22.0416-49.2288-49.2288s22.0416-49.2288 49.2288-49.2288 49.2288 22.0416 49.2288 49.2288S539.1872 487.78752 512 487.78752zM757.22752 487.68c-27.1872 0-49.2288-22.0416-49.2288-49.2288 0-27.1872 22.0416-49.2288 49.2288-49.2288s49.2288 22.0416 49.2288 49.2288C806.4512 465.6384 784.41472 487.68 757.22752 487.68z","p-id":"102378"})]),t.createElementVNode("symbol",{id:"password-show",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 184.32C215.4496 184.32 20.48 481.96266667 20.48 481.96266667S164.6592 839.68 512 839.68s491.52-357.71733333 491.52-357.71733333S808.5504 184.32 512 184.32z m0 535.7568A213.53813333 213.53813333 0 0 1 293.54666667 512a213.53813333 213.53813333 0 0 1 218.45333333-208.0768A213.53813333 213.53813333 0 0 1 730.45333333 512a213.53813333 213.53813333 0 0 1-218.45333333 208.0768zM512 402.77333333a109.22666667 109.22666667 0 1 0 109.22666667 109.22666667 109.22666667 109.22666667 0 0 0-109.22666667-109.22666667z","p-id":"1917"})]),t.createElementVNode("symbol",{id:"password-hide",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M731.15232646 760.06529217c-14.87625845 0-29.38429271-7.58541892-37.58832831-21.25390193l-87.46061662-145.91989372c-12.43124965-20.75311701-5.68538195-47.61875605 15.0530061-60.07946363 20.73838803-12.43124965 47.61875605-5.67065298 60.0500057 15.05300609l87.4606166 145.91989369c12.43124965 20.75311701 5.68538195 47.61875605-15.05300607 60.07946365a43.61689524 43.61689524 0 0 1-22.4616774 6.20089585zM964.35608914 614.14539849c-11.20874525 0-22.41749049-4.27140094-30.96029237-12.8289318l-116.62397479-116.74180655c-17.08560379-17.12979069-17.07087482-44.83498096 0.02945792-61.93531373 17.10033275-17.04141689 44.80552302-17.07087482 61.90585579 0.02945795l116.62397481 116.74180654c17.08560379 17.12979069 17.07087482 44.83498096-0.02945796 61.93531371a43.68612141 43.68612141 0 0 1-30.9455634 12.79947388zM292.83294457 760.06529217c-7.65906378 0-15.4212303-1.98841078-22.4616774-6.24508275-20.75311701-12.43124965-27.46952676-39.2968887-15.05300608-60.05000572l87.4606166-145.91989369c12.43124965-20.72365907 39.31161767-27.49898471 60.05000572-15.02354814 20.75311701 12.43124965 27.46952676 39.2968887 15.05300609 60.0500057l-87.46061661 145.91989369c-8.20403561 13.68321198-22.71206986 21.26863091-37.58832832 21.26863091zM59.64391086 614.14539849c-11.19401627 0-22.38803254-4.27140094-30.93083445-12.79947388-17.10033275-17.10033275-17.11506173-44.80552302-0.02945794-61.93531371l116.6239748-116.74180654c17.10033275-17.10033275 44.80552302-17.07087482 61.9058558-0.02945795 17.10033275 17.10033275 17.11506173 44.80552302 0.02945792 61.93531373l-116.6239748 116.74180655c-8.55753086 8.55753086-19.76627611 12.82893181-30.97502133 12.8289318z","p-id":"2070"}),t.createElementVNode("path",{d:"M526.12508107 584.96731133c-121.98531942 0-301.44307504-41.78608442-463.80049788-240.86282644-1.87057904-2.31244811-3.31401797-4.10938229-4.37450373-5.33188671-16.05457598-15.93674422-17.42437006-41.78608442-2.56284058-59.3430152 15.61270692-18.47012684 43.22952336-20.75311701 61.68492125-5.15513907 1.85585006 1.56127069 6.49547523 6.37764349 13.10878221 14.4785763 140.61746495 172.46149543 292.92973109 208.65057172 395.94413873 208.65057174 177.76392419 0 380.11049728-183.53767997 400.06824997-212.70103816 13.37390365-19.47169673 40.28372961-25.76096639 60.2414823-13.02040838 19.91356579 12.71110005 26.71834937 38.01546843 14.68478188 58.34144531-20.7089301 34.93711395-248.56607712 254.9437206-474.99451415 254.94372061z","p-id":"2071"})]),t.createElementVNode("symbol",{id:"rotate-left",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M0.62577778 341.53813333V85.84533333l110.2848 110.2848c94.52657778-120.03555555 241.10648889-197.08586667 406.12977777-195.49297778 268.89102222 2.60551111 495.42257778 222.1056 505.94702223 490.81457778C1034.39928889 783.23484445 801.24586667 1023.37422222 512 1023.37422222c-189.16693333 0-353.95128889-102.99164445-442.40213333-255.6928h49.81191111C212.32071111 910.07431111 380.24533333 999.03715555 567.33013333 977.57866667c213.56088889-24.48497778 386.7648-198.3488 410.46471112-412.00071112C1009.152 282.70364445 788.54826667 43.23555555 512 43.23555555c-151.22204445 0-284.88817778 72.23751111-370.57422222 183.42115556l114.88142222 114.88142222H0.62577778z","p-id":"3619"})]),t.createElementVNode("symbol",{id:"rotate-right",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M1023.37422222 341.53813333V85.84533333l-110.2848 110.2848C818.57422222 76.10595555 671.99431111-0.95573333 506.97102222 0.64853333 238.06862222 3.24266667 11.54844445 222.75413333 1.024 491.45173333-10.39928889 783.23484445 222.75413333 1023.37422222 512 1023.37422222c189.16693333 0 353.95128889-102.99164445 442.40213333-255.6928h-49.81191111C811.67928889 910.07431111 643.75466667 999.03715555 456.66986667 977.57866667c-213.56088889-24.48497778-386.7648-198.3488-410.46471112-412.00071112C14.848 282.70364445 235.45173333 43.23555555 512 43.23555555c151.22204445 0 284.88817778 72.23751111 370.57422222 183.42115556L767.6928 341.53813333h255.68142222z","p-id":"3925"})]),t.createElementVNode("symbol",{id:"loading-line1",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M782.065 901.684c10.893 18.387 4.797 42.97-14.29 53.363-18.687 10.893-42.47 4.497-53.064-14.29-11.392-18.388-4.796-42.471 13.691-53.364 19.387-10.792 42.77-4.197 53.663 14.29z m-230.342 83.243c0 21.285-17.588 39.073-39.673 39.073-21.285 0-39.073-17.388-39.073-39.073v-27.382c0-21.785 17.887-39.173 39.073-39.173 21.785 0 39.673 17.388 39.673 39.173v27.382z m-241.135-44.17c-11.093 19.287-35.176 25.383-53.664 14.49-18.987-10.693-25.682-34.576-14.49-53.663l29.08-50.866c11.193-18.687 35.176-25.182 54.163-14.49 18.388 10.893 25.183 35.176 13.99 53.664l-29.08 50.865zM123.416 782.765c-18.987 10.593-43.27 4.197-53.664-14.49-11.092-18.388-4.796-42.77 13.99-53.664l78.147-45.269c18.688-10.392 42.971-4.496 53.664 14.49 10.592 18.388 4.097 42.771-14.49 53.664l-77.647 45.269zM40.272 551.823c-21.785 0-39.073-17.588-39.073-39.074 0-21.785 17.288-39.373 39.073-39.373H161.99c21.785 0 39.074 17.588 39.074 39.074 0 21.785-17.289 39.373-39.074 39.373H40.272z m43.57-241.535c-18.986-10.593-25.182-34.576-13.99-53.364 10.393-18.987 34.577-25.382 53.664-14.49l132.31 76.848c18.686 10.692 24.882 34.576 14.49 53.063-11.093 18.987-35.177 25.083-53.564 14.49l-132.91-76.547z m158.592-187.072l92.137 159.99c11.193 18.688 35.176 25.383 53.863 14.29 18.688-10.592 24.883-34.876 13.99-53.663l-92.536-159.69c-10.593-18.488-34.576-25.183-53.064-14.29-18.987 10.892-25.082 34.975-14.39 53.363z m230.643-82.644c0-21.285 17.887-39.373 39.073-39.373 21.785 0 39.673 17.688 39.673 39.373v184.274c0 21.785-17.588 39.373-39.673 39.673-21.286 0-39.073-17.288-39.073-39.673V40.572z m241.135 43.57c11.192-18.987 34.876-25.182 53.663-14.49 18.987 10.593 25.683 34.577 14.49 53.664l-92.337 159.99c-10.393 18.688-34.976 25.283-53.663 14.49-18.687-10.892-24.883-35.176-14.29-53.963l92.137-159.69z m187.671 158.292l-160.19 92.337c-18.687 10.593-25.183 34.577-14.49 53.663 11.092 18.388 35.176 24.584 53.663 14.29l160.29-92.336c18.388-10.593 25.183-34.577 13.991-53.364-10.793-18.987-34.876-25.782-53.264-14.59z m82.344 230.942c21.985 0 39.373 17.588 39.073 39.373 0 21.486-16.988 39.074-39.073 39.074H799.753c-21.285 0-39.173-17.588-39.173-39.373 0-21.486 17.888-39.074 39.173-39.074h184.474z","p-id":"4660"})]),t.createElementVNode("symbol",{id:"tick-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M380.64 755.386L950.847 185.18c17.573-17.573 46.066-17.573 63.64 0 17.573 17.574 17.573 46.066 0 63.64l-582.59 582.59c-28.308 28.308-74.205 28.308-102.512 0L9.18 511.205c-17.573-17.573-17.573-46.066 0-63.64 17.574-17.573 46.066-17.573 63.64 0l307.82 307.821z","p-id":"4747"})]),t.createElementVNode("symbol",{id:"warning-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 85.333333C276.48 85.333333 85.333333 276.48 85.333333 512S276.48 938.666667 512 938.666667 938.666667 747.52 938.666667 512 747.52 85.333333 512 85.333333zM483.555556 307.2c0-15.928889 12.515556-28.444444 28.444444-28.444444s28.444444 12.515556 28.444444 28.444444v238.933333c0 15.928889-12.515556 28.444444-28.444444 28.444445s-28.444444-12.515556-28.444444-28.444445V307.2zM512 722.488889c-21.617778 0-39.822222-18.204444-39.822222-39.822222s18.204444-39.822222 39.822222-39.822223 39.822222 18.204444 39.822222 39.822223-18.204444 39.822222-39.822222 39.822222z","p-id":"5294"})]),t.createElementVNode("symbol",{id:"message-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64C265.6 64 64 265.6 64 512s201.6 448 448 448 448-201.6 448-448S758.4 64 512 64z m32 704h-64V384h64v384z m0-448h-64V256h64v64z","p-id":"16512"})]),t.createElementVNode("symbol",{id:"error-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 97.52381c228.912762 0 414.47619 185.563429 414.47619 414.47619s-185.563429 414.47619-414.47619 414.47619S97.52381 740.912762 97.52381 512 283.087238 97.52381 512 97.52381z m129.29219 233.447619l-129.267809 129.29219-129.316571-129.29219-51.736381 51.736381 129.316571 129.267809-129.316571 129.316571 51.736381 51.736381L512 563.687619l129.29219 129.316571 51.736381-51.73638L563.687619 512l129.316571-129.29219-51.73638-51.736381z","p-id":"17496"})]),t.createElementVNode("symbol",{id:"circular-progress-bar",viewBox:"0 0 100 100"},[t.createElementVNode("path",{class:"el-progress-circle__track",d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",stroke:"#f5f7fa","stroke-linecap":"round","stroke-width":"4.8",fill:"none",style:{"stroke-dasharray":"295.31px, 295.31px","stroke-dashoffset":"0px"}}),t.createElementVNode("path",{class:"el-progress-circle__path",d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",stroke:"#20a0ff",fill:"none",opacity:"1","stroke-linecap":"round","stroke-width":"4.8",style:{"stroke-dasharray":"73.8274px, 295.31px","stroke-dashoffset":"0px",transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease 0s, opacity 0.6s ease 0s"}})]),t.createElementVNode("symbol",{id:"ellipsis",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M221 592c-44.183 0-80-35.817-80-80s35.817-80 80-80 80 35.817 80 80-35.817 80-80 80z m291 0c-44.183 0-80-35.817-80-80s35.817-80 80-80 80 35.817 80 80-35.817 80-80 80z m291 0c-44.183 0-80-35.817-80-80s35.817-80 80-80 80 35.817 80 80-35.817 80-80 80z","p-id":"4273"})]),t.createElementVNode("symbol",{id:"fast-forward",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M240 800c-12.288 0-24.576-4.672-33.92-14.08-18.752-18.752-18.752-49.152 0-67.904l222.08-222.08L206.08 273.92c-18.752-18.752-18.752-49.152 0-67.904s49.152-18.752 67.904 0l256 256c18.752 18.752 18.752 49.152 0 67.904l-256 256C264.576 795.328 252.288 800 240 800z","p-id":"6141"}),t.createElementVNode("path",{d:"M560 800c-12.288 0-24.576-4.672-33.92-14.08-18.752-18.752-18.752-49.152 0-67.904l222.08-222.08L526.08 273.92c-18.752-18.752-18.752-49.152 0-67.904s49.152-18.752 67.904 0l256 256c18.752 18.752 18.752 49.152 0 67.904l-256 256C584.576 795.328 572.288 800 560 800z","p-id":"6142"})]),t.createElementVNode("symbol",{id:"star-half",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M1020.53613 415.3c9.5-9.3 4.3-25.4-8.9-27.3l-326.5-47.5c-5.2-0.8-9.7-4-12-8.8l-146-295.9c-2.9-5.9-8.6-8.9-14.3-8.9s-11.4 3-14.3 8.9l-146 295.9c-2.3 4.7-6.8 8-12 8.8L13.73613 388c-13.1 1.9-18.4 18-8.9 27.3l236.3 230.3c3.8 3.7 5.5 9 4.6 14.2L190.03613 985c-1.8 10.3 6.4 18.7 15.8 18.7 2.5 0 5-0.6 7.5-1.9l292.1-153.5c2.3-1.2 4.9-1.8 7.5-1.8s5.1 0.6 7.5 1.8l292.1 153.5c2.5 1.3 5 1.9 7.5 1.9 9.3 0 17.5-8.4 15.8-18.7L779.73613 659.8c-0.9-5.2 0.8-10.5 4.6-14.2l236.2-230.3zM716.63613 670.6L755.93613 900l-206-108.3c-1.7-0.9-3.5-1.7-5.2-2.5V216.3l71 143.8c11.7 23.6 34.2 40 60.2 43.8l230.3 33.5-166.6 162.4c-18.9 18.3-27.5 44.8-23 70.8z","p-id":"4289"})]),t.createElementVNode("symbol",{id:"star-line",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512.73613 151.4l103 208.7c11.7 23.6 34.2 40 60.2 43.8l230.3 33.5-166.6 162.4c-18.9 18.4-27.5 44.9-23 70.8L755.93613 900l-206-108.3c-11.4-6-24.3-9.2-37.2-9.2-12.9 0-25.8 3.2-37.2 9.2L269.53613 900l39.3-229.4c4.5-26-4.2-52.4-23-70.8L119.23613 437.3l230.3-33.5c26.1-3.8 48.6-20.1 60.2-43.8l103-208.6M512.73613 27c-5.7 0-11.4 3-14.3 8.9l-146 295.9c-2.3 4.7-6.8 8-12 8.8L13.73613 388c-13.1 1.9-18.4 18-8.9 27.3l236.3 230.3c3.8 3.7 5.5 9 4.6 14.2L190.03613 985c-1.8 10.3 6.4 18.7 15.8 18.7 2.5 0 5-0.6 7.4-1.9l292.1-153.5c2.3-1.2 4.9-1.8 7.4-1.8s5.1 0.6 7.4 1.8l292.1 153.5c2.5 1.3 5 1.9 7.4 1.9 9.3 0 17.5-8.4 15.8-18.7l-55.8-325.2c-0.9-5.2 0.8-10.5 4.6-14.2l236.3-230.3c9.5-9.3 4.3-25.4-8.9-27.3l-326.5-47.4c-5.2-0.8-9.7-4-12-8.8l-146-295.9c-3-6-8.7-8.9-14.4-8.9z","p-id":"4457"})]),t.createElementVNode("symbol",{id:"star-fill",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M784.16441 645.6c-3.8 3.7-5.5 9-4.6 14.2L835.36441 985c1.8 10.3-6.4 18.7-15.8 18.7-2.5 0-5-0.6-7.5-1.9L520.16441 848.3c-2.3-1.2-4.9-1.8-7.5-1.8s-5.1 0.6-7.5 1.8l-292.1 153.5c-2.5 1.3-5 1.9-7.5 1.9-9.3 0-17.5-8.4-15.8-18.7L245.66441 659.8c0.9-5.2-0.8-10.5-4.6-14.2L4.86441 415.3C-4.63559 406 0.56441 389.9 13.66441 388l326.5-47.5c5.2-0.8 9.7-4 12-8.8l146-295.9c2.9-5.9 8.6-8.9 14.3-8.9s11.4 3 14.3 8.9l146 295.9c2.3 4.7 6.8 8 12 8.8L1011.66441 388c13.1 1.9 18.4 18 8.9 27.3L784.16441 645.6z","p-id":"4625"})]),t.createElementVNode("symbol",{id:"previous-song",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M339.712 557.056l506.368 272.6912a51.2 51.2 0 0 0 75.52-45.056V239.3088a51.2 51.2 0 0 0-75.4688-45.056L339.7632 466.944a51.2 51.2 0 0 0 0 90.112zM179.2 153.6A76.8 76.8 0 0 0 102.4 230.4v563.2a76.8 76.8 0 0 0 153.6 0v-563.2A76.8 76.8 0 0 0 179.2 153.6z","p-id":"10294"})]),t.createElementVNode("symbol",{id:"next-song",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M684.288 557.056l-506.368 272.6912A51.2 51.2 0 0 1 102.4 784.6912V239.3088a51.2 51.2 0 0 1 75.4688-45.056l506.368 272.6912a51.2 51.2 0 0 1 0 90.112z","p-id":"8796"}),t.createElementVNode("path",{d:"M768 153.6m76.8 0l0 0q76.8 0 76.8 76.8l0 563.2q0 76.8-76.8 76.8l0 0q-76.8 0-76.8-76.8l0-563.2q0-76.8 76.8-76.8Z","p-id":"8797"})]),t.createElementVNode("symbol",{id:"play",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 942C274.9 942 82 749.11 82 512 82 274.9 274.9 82 512 82c237.11 0 430 192.9 430 430 0 237.11-192.89 430-430 430z m0-800c-204.02 0-370 165.98-370 370s165.98 370 370 370 370-165.98 370-370-165.98-370-370-370z","p-id":"8309"}),t.createElementVNode("path",{d:"M432 700.93c-4.87 0-9.75-1.19-14.2-3.57a29.991 29.991 0 0 1-15.8-26.43V353.08c0-11.04 6.07-21.2 15.8-26.43 9.72-5.22 21.55-4.71 30.76 1.42l240 158.92A29.972 29.972 0 0 1 702 512c0 10.06-5.04 19.45-13.44 25.02l-240 158.93c-5 3.3-10.77 4.98-16.56 4.98z m30-292v206.15L617.66 512 462 408.93z","p-id":"8310"})]),t.createElementVNode("symbol",{id:"pause",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M512 64c126.72 3.328 232.192 47.168 316.48 131.456C912.832 279.872 956.672 385.344 960 512c-3.328 126.72-47.168 232.192-131.52 316.48C744.192 912.832 638.72 956.672 512 960c-126.72-3.328-232.192-47.168-316.544-131.52C111.232 744.192 67.392 638.72 64 512c3.328-126.72 47.168-232.192 131.456-316.544C279.872 111.232 385.344 67.392 512 64z m0 832c108.672-2.688 199.168-40.192 271.488-112.512S893.312 620.672 896 512c-2.688-108.672-40.192-199.168-112.512-271.488S620.672 130.688 512 128c-108.672 2.688-199.168 40.192-271.488 112.512S130.688 403.328 128 512c2.688 108.672 40.192 199.168 112.512 271.488S403.328 893.312 512 896zM416 352c21.312 0 32 10.688 32 32v256c0 21.312-10.688 32-32 32-21.312 0-32-10.688-32-32V384c0-21.312 10.688-32 32-32z m192 0c21.312 0 32 10.688 32 32v256c0 21.312-10.688 32-32 32-21.312 0-32-10.688-32-32V384c0-21.312 10.688-32 32-32z","p-id":"7266"})]),t.createElementVNode("symbol",{id:"fullscreen",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M847.104 967.104H176.896a120.170667 120.170667 0 0 1-120-120V176.896c0-66.133333 53.866667-120 120-120h670.208c66.133333 0 120 53.866667 120 120v670.208c0 66.133333-53.866667 120-120 120zM176.896 136.896a40.064 40.064 0 0 0-40 40v670.208c0 22.058667 17.941333 40 40 40h670.208a40.064 40.064 0 0 0 40-40V176.896a40.064 40.064 0 0 0-40-40H176.896z","p-id":"13273"}),t.createElementVNode("path",{d:"M251.562667 483.562667a39.936 39.936 0 0 1-40-40c0-22.144 17.856-40 40-40h96l-115.84-115.84a39.914667 39.914667 0 0 1 0-56.533334c7.744-7.808 17.962667-11.733333 28.288-11.733333 10.218667 0 20.437333 3.925333 28.266666 11.733333l115.306667 115.328-0.021333-94.954666c0-22.144 17.856-40 40-40 22.122667 0 40 17.856 40 40v192a39.936 39.936 0 0 1-40 40h-192zM580.437333 812.437333a39.936 39.936 0 0 1-40-40v-192c0-21.077333 16.213333-38.272 36.885334-39.872l3.114666-0.128h192c22.144 0 40 17.877333 40 40a39.936 39.936 0 0 1-40 40H676.48l115.904 115.84c15.637333 15.637333 15.637333 40.96 0 56.533334a39.914667 39.914667 0 0 1-56.533333 0l-115.392-115.328v94.954666a39.936 39.936 0 0 1-40 40z","p-id":"13274"})]),t.createElementVNode("symbol",{id:"exit-fullscreen",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M731.6 255.9H560c-15.7 0-28.5 12.6-28.8 28.2-0.3 16.2 13.1 29.4 29.4 29.4h102.7L560 416.8c-11.2 11.2-11.2 29.5 0 40.7 11.2 11.2 29.5 11.2 40.7 0L703.2 355v103.2c0 15.7 12.6 28.5 28.2 28.8 16.2 0.3 29.4-13.1 29.4-29.4V285.1c0-16-13.1-29.2-29.2-29.2zM448.9 710.3H346.2L449.6 607c11.2-11.2 11.2-29.5 0-40.7-11.2-11.2-29.5-11.2-40.7 0L306.4 668.8V565.5c0-15.7-12.6-28.5-28.2-28.8-16.2-0.3-29.4 13.1-29.4 29.4v172.5c0 16.2 13.1 29.4 29.4 29.4h171.4c15.7 0 28.5-12.6 28.8-28.2 0.2-16.3-13.2-29.5-29.5-29.5z m0 0","p-id":"9198"}),t.createElementVNode("path",{d:"M765.6 211.1c22.1 0 40 17.9 40 40v521.6c0 22.1-17.9 40-40 40H244c-22.1 0-40-17.9-40-40V251.1c0-22.1 17.9-40 40-40h521.6m0-57.6H244c-13.1 0-25.9 2.6-38 7.7-11.6 4.9-22.1 11.9-31 20.9-9 9-16 19.4-20.9 31-5.1 12.1-7.7 24.9-7.7 38v521.6c0 13.1 2.6 25.9 7.7 38 4.9 11.6 11.9 22.1 20.9 31 9 9 19.4 16 31 20.9 12.1 5.1 24.9 7.7 38 7.7h521.6c13.1 0 25.9-2.6 38-7.7 11.6-4.9 22.1-11.9 31-20.9 9-9 16-19.4 20.9-31 5.1-12.1 7.7-24.9 7.7-38V251.1c0-13.1-2.6-25.9-7.7-38-4.9-11.6-11.9-22.1-20.9-31-9-9-19.4-16-31-20.9-12.1-5.1-24.9-7.7-38-7.7z m0 0","p-id":"9199"})]),t.createElementVNode("symbol",{id:"picture-in-picture",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M898.752 554.688A2.688 2.688 0 0 0 896 552H554.752a2.688 2.688 0 0 0-2.688 2.688v256c0 1.472 1.216 2.688 2.688 2.688H896a2.688 2.688 0 0 0 2.688-2.688v-256z m-0.064-213.312v-128A2.688 2.688 0 0 0 896 210.688H128a2.688 2.688 0 0 0-2.688 2.688v597.312c0 1.472 1.216 2.688 2.688 2.688h213.312a40 40 0 1 1 0 80H128a82.688 82.688 0 0 1-82.688-82.688V213.376c0-45.696 36.992-82.688 82.688-82.688h768c45.632 0 82.688 36.992 82.688 82.688v128a40.064 40.064 0 0 1-80.064 0z m80 469.312c0 45.632-36.992 82.688-82.624 82.688H554.752a82.688 82.688 0 0 1-82.688-82.688v-256c0-45.696 36.992-82.688 82.688-82.688H896c45.632 0 82.688 36.992 82.688 82.688v256z","p-id":"6723"})]),t.createElementVNode("symbol",{id:"settings",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M588.8 128l12 83.2 4.8 34.4 31.2 14.4c12.8 6.4 26.4 13.6 38.4 21.6l28 18.4 31.2-12 81.6-32 76 127.2-67.2 51.2-28 21.6 3.2 35.2c0.8 7.2 0.8 14.4 0.8 20.8s0 13.6-0.8 20.8l-3.2 35.2 28 21.6 67.2 51.2-75.2 127.2-82.4-32-31.2-12-28 18.4c-12.8 8.8-25.6 16-38.4 21.6l-31.2 14.4-4.8 33.6-12 84H435.2l-12-83.2-4.8-34.4-31.2-14.4c-12.8-6.4-26.4-13.6-38.4-21.6l-28-18.4-31.2 12L208 768l-76-127.2 67.2-51.2 28-21.6-3.2-35.2c-0.8-7.2-0.8-14.4-0.8-20.8s0-13.6 0.8-20.8l3.2-35.2-28-21.6-67.2-51.2L207.2 256l82.4 32 31.2 12 28-18.4c12.8-8.8 25.6-16 38.4-21.6l31.2-14.4 4.8-33.6L435.2 128h153.6m8.8-64H426.4c-27.2 0-49.6 19.2-53.6 44.8L360 201.6c-16 7.2-31.2 16-47.2 26.4l-90.4-35.2c-6.4-2.4-12.8-3.2-19.2-3.2-19.2 0-37.6 9.6-46.4 26.4L71.2 360c-13.6 22.4-8 52 12.8 68l76 57.6c-0.8 9.6-1.6 18.4-1.6 26.4s0 16.8 1.6 26.4l-76 57.6c-20.8 16-26.4 44-12.8 68l84.8 143.2c9.6 16.8 28 27.2 47.2 27.2 6.4 0 12-0.8 18.4-3.2L312 796c15.2 10.4 31.2 19.2 47.2 26.4l13.6 92c3.2 25.6 26.4 45.6 53.6 45.6h171.2c27.2 0 49.6-19.2 53.6-44.8l13.6-92.8c16-7.2 31.2-16 47.2-26.4l90.4 35.2c6.4 2.4 12.8 3.2 19.2 3.2 19.2 0 37.6-9.6 46.4-26.4l85.6-144.8c12.8-23.2 7.2-51.2-13.6-67.2l-76-57.6c0.8-8 1.6-16.8 1.6-26.4 0-9.6-0.8-18.4-1.6-26.4l76-57.6c20.8-16 26.4-44 12.8-68l-84.8-143.2c-9.6-16.8-28-27.2-47.2-27.2-6.4 0-12 0.8-18.4 3.2L712 228c-15.2-10.4-31.2-19.2-47.2-26.4l-13.6-92c-4-26.4-26.4-45.6-53.6-45.6zM512 384c70.4 0 128 57.6 128 128s-57.6 128-128 128-128-57.6-128-128 57.6-128 128-128m0-64c-105.6 0-192 86.4-192 192s86.4 192 192 192 192-86.4 192-192-86.4-192-192-192z","p-id":"4850"})]),t.createElementVNode("symbol",{id:"volume",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M257.493333 322.4l215.573334-133.056c24.981333-15.413333 57.877333-7.914667 73.493333 16.746667 5.301333 8.373333 8.106667 18.048 8.106667 27.914666v555.989334C554.666667 819.093333 530.784 842.666667 501.333333 842.666667c-9.994667 0-19.786667-2.773333-28.266666-8L257.493333 701.6H160c-41.237333 0-74.666667-33.013333-74.666667-73.738667V396.138667c0-40.725333 33.429333-73.738667 74.666667-73.738667h97.493333z m26.133334 58.4a32.298667 32.298667 0 0 1-16.96 4.8H160c-5.888 0-10.666667 4.714667-10.666667 10.538667v231.733333c0 5.813333 4.778667 10.538667 10.666667 10.538667h106.666667c5.994667 0 11.872 1.664 16.96 4.8L490.666667 770.986667V253.013333L283.626667 380.8zM800.906667 829.653333a32.288 32.288 0 0 1-45.248-0.757333 31.317333 31.317333 0 0 1 0.768-44.693333c157.653333-150.464 157.653333-393.962667 0-544.426667a31.317333 31.317333 0 0 1-0.768-44.682667 32.288 32.288 0 0 1 45.248-0.757333c183.68 175.306667 183.68 460.010667 0 635.317333z m-106.901334-126.186666a32.288 32.288 0 0 1-45.248-1.216 31.328 31.328 0 0 1 1.237334-44.672c86.229333-80.608 86.229333-210.56 0-291.178667a31.328 31.328 0 0 1-1.237334-44.672 32.288 32.288 0 0 1 45.248-1.216c112.885333 105.546667 112.885333 277.418667 0 382.965333z",fill:"#000000","p-id":"4793"})]),t.createElementVNode("symbol",{id:"lyrics",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M728.615385 472.615385v216.615384a16.935385 16.935385 0 0 1-1.378462 7.089231 108.307692 108.307692 0 1 1-38.006154-100.430769V452.923077a19.692308 19.692308 0 0 1 19.692308-19.692308h59.076923a19.692308 19.692308 0 0 1 0 39.384616zM236.307692 157.538462a78.769231 78.769231 0 0 0-78.76923 78.76923v551.384616a78.769231 78.769231 0 0 0 78.76923 78.76923h551.384616a78.769231 78.769231 0 0 0 78.76923-78.76923V236.307692a78.769231 78.769231 0 0 0-78.76923-78.76923z m0-39.384616h551.384616a118.153846 118.153846 0 0 1 118.153846 118.153846v551.384616a118.153846 118.153846 0 0 1-118.153846 118.153846H236.307692a118.153846 118.153846 0 0 1-118.153846-118.153846V236.307692a118.153846 118.153846 0 0 1 118.153846-118.153846z m384 630.153846a68.923077 68.923077 0 1 0-68.923077-68.923077 68.923077 68.923077 0 0 0 68.923077 68.923077zM571.076923 354.461538a19.692308 19.692308 0 0 1-19.692308 19.692308H295.384615a19.692308 19.692308 0 0 1 0-39.384615h256a19.692308 19.692308 0 0 1 19.692308 19.692307z m-137.846154 177.23077a19.692308 19.692308 0 0 1-19.692307 19.692307h-118.153847a19.692308 19.692308 0 0 1 0-39.384615h118.153847a19.692308 19.692308 0 0 1 19.692307 19.692308z","p-id":"6101"})]),t.createElementVNode("symbol",{id:"floating-play",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{d:"M653.604571 182.857143c64.987429 0 96.841143 6.144 129.938286 23.844571a169.472 169.472 0 0 1 70.326857 70.326857c17.700571 33.097143 23.844571 64.950857 23.844572 129.938286V438.857143a36.571429 36.571429 0 0 1-73.142857 0v-31.890286c0-53.942857-3.949714-74.386286-15.213715-95.451428a96.365714 96.365714 0 0 0-40.301714-40.301715C727.990857 259.949714 707.547429 256 653.604571 256h-283.209142c-53.942857 0-74.386286 3.949714-95.451429 15.213714a96.365714 96.365714 0 0 0-40.301714 40.301715C223.378286 332.580571 219.428571 353.024 219.428571 406.966857v210.066286c0 53.942857 3.949714 74.386286 15.213715 95.451428 9.325714 17.481143 22.820571 30.976 40.301714 40.301715 21.065143 11.264 41.508571 15.213714 95.451429 15.213714H475.428571a36.571429 36.571429 0 0 1 0 73.142857h-105.033142c-64.987429 0-96.841143-6.144-129.938286-23.844571a169.472 169.472 0 0 1-70.326857-70.326857C152.429714 713.874286 146.285714 682.057143 146.285714 617.033143v-210.066286c0-64.987429 6.144-96.841143 23.844572-129.938286a169.472 169.472 0 0 1 70.326857-70.326857C273.554286 189.001143 305.371429 182.857143 370.395429 182.857143h283.209142z","p-id":"3995"}),t.createElementVNode("path",{d:"M856.795429 837.632l-2.304 0.987429a36.315429 36.315429 0 0 1-4.827429 1.536c-0.182857 0-0.329143 0.073143-0.475429 0.109714a36.425143 36.425143 0 0 1-10.24 0.914286L658.285714 841.142857a36.571429 36.571429 0 0 1 0-73.142857h94.537143l-156.964571-157.001143a36.571429 36.571429 0 0 1 51.712-51.712L804.571429 716.251429V621.714286a36.571429 36.571429 0 0 1 32.292571-36.315429L841.142857 585.142857a36.571429 36.571429 0 0 1 36.571429 36.571429v182.857143a35.84 35.84 0 0 1-16.018286 30.281142l-1.462857 0.914286a31.195429 31.195429 0 0 1-2.998857 1.645714l-0.438857 0.219429z","p-id":"3996"})]),t.createElementVNode("symbol",{id:"loading-circular",viewBox:"-10, -10, 50, 50"},[t.createElementVNode("path",{d:"\n M 30 15\n L 28 17\n M 25.61 25.61\n A 15 15, 0, 0, 1, 15 30\n A 15 15, 0, 1, 1, 27.99 7.5\n L 15 15\n ",style:{"stroke-width":"4px",fill:"rgba(0, 0, 0, 0)"}})]),t.createElementVNode("symbol",{id:"test-icon",viewBox:"2 2 20 20"},[t.createElementVNode("path",{d:"M12 2 C17.5228 2 22 6.4772 22 12 C22 17.5228 17.5228 22 12 22 C6.4772 22 2 17.5228 2 12 C2 6.4772 6.4772 2 12 2 Z"}),t.createElementVNode("path",{d:"M11 7 H13 V17 H11 Z",fill:"white"}),t.createElementVNode("path",{d:"M7 11 H17 V13 H7 Z",fill:"white"})])],-1)];const f=l(h,[["render",function(e,n){return t.openBlock(),t.createElementBlock("svg",p,m)}]]),v=Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"})),g=e=>(t.pushScopeId("data-v-21993e67"),e=e(),t.popScopeId(),e),_=["src"],x=["fill"],y=["href"],S=["href"],b={key:0,src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAACCxJREFUeF7tnW2a3CYMgJmTpHuS1idJ9yTpnqTTk7A5SZOTtI9cPPV4bCMJgZCR/2TzDBiQXoQQH74Ff4aWwG3o1nvjgwMwOAQOgAMwuAQGb75bAAdgcAkM3ny3AA4ATQIxxt9DCL+EEL6knPC39vNjmqZ3aiVijFD3P6n5Okz/I4TwM4TwGUIAWcD/UQ/KAiRBfQsh/JaUj3p5w0Qf0zT9QS0vxgh5oF1XewAEkAn8e/pkAYgxQg+BXt/r8zlN00StXIwRYI7UfMbSAwDvZxbhEAAjAgJz98ZRSozx706tGac5uTwAwX0v0S4ARpQP7XHTn1P9/79/hBDuW2vwAoAh5XNNPzh+0PtHfF46zBMAydmzIpw3ire7aDvGCOM+jP+jPk8QbAGwMi5yTT84s1eY9pXC++g8DwAMTYlYjp8x61aq4Fz+x/A5A2BMOFzTf9U5f07ZR7/PclwAoAgH5pZ/pagTt3B2Ps64v4KcXa6BjODcfiXEbGBG8L4AgA32zJkMCGPYKqZQPUQ3MSH6twWAfxASY429iPd6EmEJEKK37zfC+M/yvIXb5q9DSCBZAcxs5wMAwMbEHQCE8HtIQujUdwAAOzd2AHrQLqIOBAA+AQDsDKAYgM1egm00blnD/r4Xs0a025MkCXQHwGrjBSUE6zMOJtJdAUDwMbbNLbY4TPmZz9YNAISKvAh9mqbsZhXzmqrUAILc6/oABP/Ce78gDF0AQKjEtukecCqEgSD7ehbAx/5CLRZk7wUA7PRy3VTv/QWKX7L2AgB2gWndZPf8RwbAPX8B7dP2d1T1AagWwHu/jP4pG3wcACGZd/Uaqz6AWwAhjHoBALvKuDQbFoPglBf6YKOQvC73ml4A4BzAcCsggGMXAEA7mOfvWLt+BeR2mVf0BABYATiJg9mguCjArUAhit0AkKwARARhuzIFAvAFsmfbC+V02exdAZAggI0gEBfAQuAOYQGe3QGwilGDNfg1gbAHAyh+PnjiFoBPQLcA8JvUX8602glWDaBFXcfSqhUOQGVJH2x0ObyFo3J1Xl7vAFSUeObUTRczGAegEgDII1fqEDgAFQAg7m9UhcABEAaAcHpqXbJaRNMBEASgYG+jWizDARACgCDIoxJVICDUu96GECEdqL5G6Eax3fv5ajbMARCQLtLjx5bU1Cl0ALBqOUjHdPpypTZb4HIAcqo4+Z0gPE4pTWYGhDa4D7DVInMTCxaGJk6hA4BVxyadkNOXK726P+AA5FSw83ulcf+oJlUhcACIABAERnzzafJq/gChPe4DgIqEp3xYSKr5Aw4AVgUpXRIYdfMqsZTd5FWGAgeAoRriah+jhMMs4vEBB4CpHkUIRP0BUwCkysLeOtg5jP7cGVPH2WyV4wBH5We/7pWt+CqBGQBOllqbL6As8ruCP2ACAMQ6u2ivIPYgzvU2lCKO0ooMBd0DQKhgtalSTluNooLbaoi0lyDf9nEAQuXWwmm+5dryUECQsQoA3M+2aUBAveMgZ1iwvxe1tVsABMxqkWCw0l+nszg17BIAQUGSo2dpoQc+lca6fURpasi+Lb07ABAeP7VzoiFYCQOdZ1sZa/5AVwAQKlMFgs2wUwKBmakhQeb1nUCBcf8MjFOf4MDysOfagsMYBXby1LAbABots+5CcCIEskA3TqHG95VJlqsLABrvsHnp1ZneShLoBgDqbSeU3n6WFm251AEgVEBKOPCeh4CQTid7Gbb3oYAg/zo+QOVx/wiah2mPMaK+hFpyMaXS1BBluVQBUOodCxTLHUMQwcM87AUnxalh1nKpAYA0vRjFtEyD6lV7FVKCPevEqgBAKLSlcrFloR2snSCRRnzgFFqCLuR8AKVxH6vgXLpsrzp7gZI/cBgDaQ6AkinMKZX6e8lQoLFqeAhtUwAIhVEVopG+BIJuhgKCTsqHACXzVxOOEn9AI0r4MhQ0A+Aipn8LE9sfWN0eir0TWQLkl/o2AcDolA8rcNNDQXUACAVgBd5jumzA5ajSSsPiA1qCfng+gPEpHxa20qEA9j62fmb/pSoAFzf9W4WVbMtSmxVUAyCEcA8hgKc70sPyBxTXCuZTVUg90YaA9LEHWA8f7WFNDRVnSVP6VlNOTyQAYExsOb3JVb7l76yvmhNMsXRbwAJgVkRJAEhX0tL7rAGAla0DgJQU60CK4hCAbFZwABCSYvV+eK+B6bIDgACgZBbQ+4zJAcgAUNL7NeIACJ6fkjgAGYmxen8y/5iNqVSFSad3AE4kevXeD013AE4AKOn9GvsCONbBATiS2jRNN45Eja2VOAAHSh6h9z+GAI0NjZzO1TIPN/YPofLep35rOd5vxkxWCwhKej/3/qMW7dor48MBeBXLKL0fWv4xOzpKW5i0qD8rt2TqB9fdYlbgemr3f55uo4scemr4UV24iz7Wxn5o/wz7AoA7gkkgHEqNdqDZ13nMdX0YCCznT3HTB4fVdZ7Z11kDMLIVKBn7rXn+s/MHvR/+eIp2DWwFRur9T7BvAQBnRuPbOaXmrCT/aL3/6cDLS7xbcTtziRJL8o7U+1/aurvgoXTIsUSJ7LwFiz7Wxv7do26HK16DWAJu74ezERpHv7igH55zzC55pgsfv130TAA37GtlvT8LeBaABbkEwtcEwhUOiGSFs9fdDGz1hkMh32G3D+Z6fDQAa2EkHwEgWED4wrVNivkAAPL3AxIAPbX3J4R1kxxRSl/LnAWAotK8aGEJOADCArX2OgfAmsaE6+sACAvU2uscAGsaE66vAyAsUGuvcwCsaUy4vg6AsECtve5fPhUx/ddNvIkAAAAASUVORK5CYII="},M={key:3,class:"preview-img no-select"},E={class:"flex-cc",style:{height:"100%"}},w=["src"],T=[g((()=>t.createElementVNode("svg",{fill:"white",width:"20",height:"20"},[t.createElementVNode("use",{href:"#close"})],-1)))],C=[g((()=>t.createElementVNode("svg",{fill:"white",width:"20",height:"20"},[t.createElementVNode("use",{href:"#arrow-left"})],-1)))],A=[g((()=>t.createElementVNode("svg",{fill:"white",width:"20",height:"20"},[t.createElementVNode("use",{href:"#arrow-right"})],-1)))],N={class:"opt flex-cc"},R={class:"flex-c"},L=[g((()=>t.createElementVNode("use",{href:"#amplify-line"},null,-1)))],P=[g((()=>t.createElementVNode("use",{href:"#narrow-line"},null,-1)))],q=[g((()=>t.createElementVNode("use",{href:"#rotate-left"},null,-1)))],I=[g((()=>t.createElementVNode("use",{href:"#rotate-right"},null,-1)))],z=l(t.defineComponent({__name:"LymGenericImg",props:{src:{type:String,default:""},type:{type:String,default:"img"},size:{type:[String,Array,Number],default:"20"},hoverSize:{type:[String,Array,Number],default:"20"},fillColor:{type:String,default:"#000000"},hoverColor:{type:String,default:"#000000"},hoverUrl:{type:String,default:""},isHttps:{type:Boolean,default:!1},ossPath:{type:String,default:""},ossType:{type:String,default:"h3"},canPreview:{type:Boolean,default:!1},previewImgs:{type:Array,default:[]},needChangeHoverCusor:{type:Boolean,default:!1}},emits:["error"],setup(e,{emit:n}){const i=e,l=n,s=t.ref(!1),c=t.ref(!1),u=t.ref(!0),d=t.ref(""),h=t.ref(!1),p=t.ref([]),m=t.ref(0),v=t.ref({scale:1,rotate:0}),g=t.ref(!1),z=t.ref({x:0,y:0}),k=t.ref({x:0,y:0}),B=t.ref("leave");t.watch((()=>i.src),((e,t)=>{s.value=!1,e!==t&&(i.ossPath&&i.ossType||(d.value=e),"svgicon"===i.type?d.value=`#${e}`:(u.value=!1,c.value=!0))}),{immediate:!0});const D=t.computed((()=>{let e="",t=i.size,n="",l="";return a(t)?(t=t.toString(),n=l=t+(t.includes("px")?"":"px")):o(t)?2===t.length?(n=t[0]+"px",l=t[1]+"px"):n=l="20px":r(t)&&(n=l=t+"px"),i.needChangeHoverCusor&&i.hoverUrl&&"enter"===B.value&&(t=i.hoverSize,a(t)?(t=t.toString(),n=l=t+(t.includes("px")?"":"px")):o(t)?2===t.length?(n=t[0]+"px",l=t[1]+"px"):n=l="20px":r(t)&&(n=l=t+"px")),e+=`width: ${n};height: ${l};`,i.needChangeHoverCusor&&(e+="cursor: pointer;"),e}));function U(){s.value=!0,u.value=!0,setTimeout((()=>{c.value=!1,l("error")}),300)}function V(){s.value=!1,u.value=!0,setTimeout((()=>{c.value=!1}),300)}function O(){i.canPreview&&(i.previewImgs&&i.previewImgs.length?i.previewImgs.forEach((e=>{p.value.push(e)})):p.value.push(d.value),h.value=!0)}function F(){h.value=!1,p.value=[],v.value.rotate=0,v.value.scale=1,k.value.x=0,k.value.y=0}function H(e){1===e?v.value.scale<3&&(v.value.scale+=.1):2===e?v.value.scale>.4&&(v.value.scale-=.1):3===e?v.value.rotate+=90:4===e&&(v.value.rotate-=90)}function G(e){g.value=!0,z.value.x=e.layerX,z.value.y=e.layerY}function W(e){if(g.value){const t=e.layerX-z.value.x,n=e.layerY-z.value.y;z.value.x=e.layerX,z.value.y=e.layerY,k.value.x+=t,k.value.y+=n}}function X(){g.value=!1}function j(){m.value>0&&(m.value-=1)}function $(){m.value<p.value.length-1&&(m.value+=1)}function K(){B.value="enter"}function Y(){B.value="leave"}return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-generic-img",style:t.normalizeStyle(D.value),onMouseenter:K,onMouseleave:Y},["img"==e.type?(t.openBlock(),t.createElementBlock("img",{key:0,src:d.value,style:t.normalizeStyle({width:s.value?"0":"100%",height:s.value?"0":"100%"}),onLoad:V,onError:U},null,44,_)):t.createCommentVNode("",!0),"svgicon"==e.type?(t.openBlock(),t.createElementBlock("svg",{key:1,fill:e.needChangeHoverCusor&&"enter"===B.value?e.hoverColor:e.fillColor},[e.needChangeHoverCusor&&"enter"===B.value?(t.openBlock(),t.createElementBlock("use",{key:0,href:e.hoverUrl,rel:"external nofollow",class:t.normalizeClass([e.hoverUrl.replace("#","")])},null,10,y)):(t.openBlock(),t.createElementBlock("use",{key:1,href:d.value,rel:"external nofollow",class:t.normalizeClass([d.value.replace("#","")])},null,10,S))],8,x)):t.createCommentVNode("",!0),"img"==e.type?(t.openBlock(),t.createElementBlock("div",{key:2,class:"load-status",onClick:O},[s.value?(t.openBlock(),t.createElementBlock("img",b)):t.createCommentVNode("",!0),c.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["loader",[u.value?"load-status2":"load-status1"]])},null,2)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),h.value?(t.openBlock(),t.createElementBlock("div",M,[t.createElementVNode("div",E,[t.createElementVNode("img",{src:p.value[m.value],onMousedown:G,onMousemove:W,onMouseup:X,onMouseleave:X,onDragstart:i[0]||(i[0]=t.withModifiers((()=>{}),["prevent"])),style:t.normalizeStyle({scale:v.value.scale,transform:"rotate("+v.value.rotate+"deg) translate("+k.value.x+"px, "+k.value.y+"px)",transitionDuration:g.value?"0s":".3s"})},null,44,w)]),t.createElementVNode("div",{class:"close-preview opt-btn flex-cc",onClick:F},T),p.value.length>1&&m.value>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"previous-img opt-btn flex-cc",onClick:j},C)):t.createCommentVNode("",!0),p.value.length>1&&m.value<p.value.length-1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"next-img opt-btn flex-cc",onClick:$},A)):t.createCommentVNode("",!0),t.createElementVNode("div",N,[t.createElementVNode("div",R,[(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"21",height:"21",onClick:i[1]||(i[1]=e=>H(1))},L)),(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"21",height:"21",onClick:i[2]||(i[2]=e=>H(2))},P)),(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"19",height:"19",onClick:i[3]||(i[3]=e=>H(3))},q)),(t.openBlock(),t.createElementBlock("svg",{fill:"white",width:"19",height:"19",onClick:i[4]||(i[4]=e=>H(4))},I))])])])):t.createCommentVNode("",!0),t.createVNode(f)],36))}}),[["__scopeId","data-v-21993e67"]]),k=Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"})),B=l(t.defineComponent({__name:"LymButton",props:{type:{type:String,default:"default"},fontSize:{type:String,default:"14px"},fontWeight:{type:String,default:"normal"},padding:{type:String,default:"8px 15px"},borderRadius:{type:String,default:"4px"},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},circlePadding:{type:String,default:"9px"},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{type:String,default:""},iconSize:{type:[String,Number],default:"14"},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"loading-line1"},iconSpace:{type:String,default:"0"},loadingIconSpace:{type:String,default:"0"}},emits:["update:modelValue","click"],setup(e,{emit:n}){const i=e,a=n,r={default:{color:"#606266",disabledColor:"#a8abb2",disabledPlainColor:"#a8abb2",plainColor:"#606266",hoverColor:"#409eff",plainHoverColor:"#409eff",plainHoverActiveColor:"#409eff"},primary:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#a0cfff",plainColor:"#409eff",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},success:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#b3e19d",plainColor:"#67c23a",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},info:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#c8c9cc",plainColor:"#909399",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},warning:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#f3d19e",plainColor:"#e6a23c",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"},danger:{color:"#ffffff",disabledColor:"#ffffff",disabledPlainColor:"#fab6b6",plainColor:"#f56c6c",hoverColor:"#ffffff",plainHoverColor:"#ffffff",plainHoverActiveColor:"#ffffff"}},o=t.ref("leave"),l=t.inject("formDisabled",null),s=t.computed((()=>{let e=i.borderRadius;i.round&&(e="200px"),i.circle&&(e="50%");let t=i.padding;return i.circle&&(t=i.circlePadding),"font-size: "+i.fontSize+";font-weight: "+i.fontWeight+";padding: "+t+";border-radius: "+e+";"})),c=t.computed((()=>{let e="#606266";return e=i.plain?"leave"===o.value?u.value?r[i.type].disabledPlainColor:r[i.type].plainColor:u.value?r[i.type].disabledPlainColor:i.loading?r[i.type].plainColor:r[i.type].plainHoverColor:"leave"===o.value?u.value?r[i.type].disabledColor:r[i.type].color:u.value?r[i.type].disabledColor:i.loading?r[i.type].color:r[i.type].hoverColor,e})),u=t.computed((()=>!(!i.disabled&&!l)&&l.value));function d(){o.value="enter"}function h(){o.value="leave"}function p(){o.value="down"}function m(){o.value="up"}function f(){u.value||i.loading||a("click")}return t.onMounted((()=>{})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-button",["lym-"+e.type+"-button"+(e.plain?"-plain":"")+(u.value?"-disabled":e.loading?"-loading":"")]]),style:t.normalizeStyle(s.value),onMouseenter:d,onMouseleave:h,onMousedown:p,onMouseup:m,onClick:f},[e.loading?(t.openBlock(),t.createBlock(z,{key:0,src:e.loadingIcon,type:"svgicon","fill-color":c.value,size:e.iconSize+"",class:t.normalizeClass({"lym-button-icon-rotate-anim":e.loading}),style:t.normalizeStyle({marginRight:e.loadingIconSpace,stroke:c.value})},null,8,["src","fill-color","size","class","style"])):t.createCommentVNode("",!0),t.createElementVNode("div",null,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),e.icon?(t.openBlock(),t.createBlock(z,{key:1,src:e.icon,type:"svgicon","fill-color":c.value,size:e.iconSize+"",style:t.normalizeStyle({marginLeft:e.iconSpace})},null,8,["src","fill-color","size","style"])):t.createCommentVNode("",!0)],38))}}),[["__scopeId","data-v-1225bd6d"]]),D=Object.freeze(Object.defineProperty({__proto__:null,default:B},Symbol.toStringTag,{value:"Module"})),U={key:0,class:"lym-card-header"},V={class:"lym-card-body"},O={key:1,class:"lym-card-footer"},F=l(t.defineComponent({__name:"LymCard",props:{shadow:{type:String,default:"always"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref("leave"),r=t.ref(!!t.useSlots().header),o=t.ref(!!t.useSlots().footer),l=t.computed((()=>{let e="";return"always"===i.shadow?e+="box-shadow: 0px 0px 12px rgba(0, 0, 0, .12);":"hover"===i.shadow&&(e+=`box-shadow: ${"enter"===a.value?"0px 0px 12px rgba(0, 0, 0, .12)":"none"};`),e}));function s(){a.value="enter"}function c(){a.value="leave"}return t.onMounted((()=>{})),t.onUpdated((()=>{r.value=!!t.useSlots().header,o.value=!!t.useSlots().footer})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-card",style:t.normalizeStyle(l.value),onMouseenter:s,onMouseleave:c},[r.value?(t.openBlock(),t.createElementBlock("div",U,[t.renderSlot(e.$slots,"header",{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",V,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),o.value?(t.openBlock(),t.createElementBlock("div",O,[t.renderSlot(e.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],36))}}),[["__scopeId","data-v-1b312b9f"]]),H=Object.freeze(Object.defineProperty({__proto__:null,default:F},Symbol.toStringTag,{value:"Module"})),G=["onMouseenter","onClick"],W=l(t.defineComponent({__name:"LymCarousel",props:{data:{type:Array,default:()=>[]},height:{type:String,default:"200px"},width:{type:String,default:"100%"},initialIndex:{type:Number,default:0},trigger:{type:String,default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,default:""},indicatorActiveColor:{type:String,default:"rgba(255, 255, 255, 1)"},indicatorColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},arrow:{type:String,default:"hover"},type:{type:String,default:""},loop:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=t.ref(),r=t.ref([]),o=t.ref([]),l=t.ref("leave"),s=t.ref(!1),c=t.ref(i.initialIndex),u=t.ref(i.initialIndex),d=t.ref({w:0,h:0,top:0,left:0}),h=t.ref(null),p=t.ref(null),m=t.ref(.5),f=t.ref(.5),v=t.ref(!1),g={horizontal:"transiferX",vertical:"transiferY"};t.watch((()=>i.data),((e,n)=>{!function(){(c.value<0||c.value>i.data.length-1)&&(c.value=0);t.nextTick((()=>{if(d.value.w=a.value.offsetWidth,d.value.h=a.value.offsetHeight,d.value.top=a.value.offsetTop,d.value.left=a.value.offsetLeft,r.value=i.data.map(((e,t)=>({...e,index:t,active:t===c.value,carouselId:Math.random().toString(36).substring(2),carouseBgColor:R(),transiferX:(t-c.value)*d.value.w,transiferY:(t-c.value)*d.value.h}))),i.loop&&r.value.length>1){const e="horizontal"===i.direction?d.value.w:d.value.h;if(o.value=JSON.parse(JSON.stringify(r.value)),0===c.value)o.value.forEach(((t,n)=>{t.carouselId=t.carouselId+"_loop",t[g[i.direction]]=(n-o.value.length)*e}));else{const t=r.value[r.value.length-1].transiferX,n=r.value[r.value.length-1].transiferY,a="horizontal"===i.direction?t:n;o.value.forEach(((t,n)=>{t.carouselId=t.carouselId+"_loop",t[g[i.direction]]=a+(n+1)*e}))}}A()}))}()}),{immediate:!0}),t.watch((()=>c.value),((e,t)=>{if(e!==t){const n=Number(e),a=Number(t);u.value=e,function(e,t){const n="horizontal"===i.direction?d.value.w:d.value.h;if(i.loop){if(e<t&&!v.value){const a=t-e;0===e?s.value?(o.value.forEach((e=>{e[g[i.direction]]+=a*n})),m.value=0,r.value.forEach(((e,t)=>{e[g[i.direction]]=(t-r.value.length)*n})),setTimeout((()=>{m.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]+=a*n})),f.value=0,o.value.forEach(((e,t)=>{e[g[i.direction]]=(t-o.value.length)*n})),setTimeout((()=>{f.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]+=a*n})),o.value.forEach((e=>{e[g[i.direction]]+=a*n})))}if(e>t&&!v.value){const a=e-t;e===r.value.length-1?s.value?(o.value.forEach((e=>{e[g[i.direction]]-=a*n})),m.value=0,r.value.forEach(((e,t)=>{e[g[i.direction]]=(t+1)*n})),setTimeout((()=>{m.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]-=a*n})),f.value=0,o.value.forEach(((e,t)=>{e[g[i.direction]]=(t+1)*n})),setTimeout((()=>{f.value=.5}),50)):(r.value.forEach((e=>{e[g[i.direction]]-=a*n})),o.value.forEach((e=>{e[g[i.direction]]-=a*n})))}e===r.value.length-1&&0===t&&v.value&&(s.value=!s.value,r.value.forEach((e=>{e[g[i.direction]]+=n})),o.value.forEach((e=>{e[g[i.direction]]+=n}))),0===e&&t===r.value.length-1&&v.value&&(s.value=!s.value,r.value.forEach((e=>{e[g[i.direction]]-=n})),o.value.forEach((e=>{e[g[i.direction]]-=n})))}else r.value.forEach(((t,a)=>{t[g[i.direction]]=(a-e)*n}))}(n,a)}}),{immediate:!0}),t.watch((()=>i.initialIndex),((e,t)=>{e!==t&&T(e)}));const _=t.computed((()=>{let e=!1;return"never"!==i.arrow&&r.value.length>1&&(e=i.loop||!i.loop&&0!==c.value,e="hover"===i.arrow?e&&"enter"===l.value:e),e})),x=t.computed((()=>{let e=!1;return"never"!==i.arrow&&r.value.length>1&&(e=i.loop||!i.loop&&c.value!==r.value.length-1,e="hover"===i.arrow?e&&"enter"===l.value:e),e})),y=t.computed((()=>{let e="",t=0,n=0;return"horizontal"===i.direction?(t=d.value.top+d.value.h,t+="outside"===i.indicatorPosition?0:-26,n=d.value.left+d.value.w/2):(t=d.value.top+d.value.h/2,n=d.value.left+d.value.w,n+="outside"===i.indicatorPosition?0:-26),"horizontal"===i.direction?e+=`top: ${t}px;left: ${n}px;transform: translateX(-50%);`:e+=`top: ${t}px;left: ${n}px;transform: translateY(-50%);`,e})),S=t.computed((()=>e=>{let t="";return t+=`margin: ${0===e?"0":"horizontal"===i.direction?"0 0 0 8px":"8px 0 0 0"};`,t+=`width: ${"horizontal"===i.direction?"20px":"26px"};`,t+=`height: ${"horizontal"===i.direction?"26px":"20px"};`,t})),b=t.computed((()=>e=>{let t="";return t+=`background-color: ${e===u.value?i.indicatorActiveColor:i.indicatorColor};`,t+=`width: ${"horizontal"===i.direction?"100%":"2px"};`,t+=`height: ${"horizontal"===i.direction?"2px":"100%"};`,t}));function M(){l.value="enter"}function E(){l.value="leave"}function w(e=!1){(i.autoplay||i.loop||c.value!==r.value.length-1)&&(e||x.value)&&(e||(N(),C()),c.value+1>r.value.length-1?(v.value=!0,c.value=0):(v.value=!1,c.value+=1))}function T(e){e<0||e>r.value.length-1||(v.value=!1,N(),C(),c.value=e)}function C(){p.value&&(clearTimeout(p.value),p.value=null),p.value=setTimeout((()=>{A()}),3e3)}function A(){i.autoplay&&r.value.length>1&&(N(),h.value=setInterval((()=>{w(!0)}),i.interval))}function N(){h.value&&(clearInterval(h.value),h.value=null)}function R(){return"rgba("+Math.floor(256*Math.random())+", "+Math.floor(256*Math.random())+", "+Math.floor(256*Math.random())+", 0.2)"}return(n,l)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCarouselRef",ref:a,class:"lym-carousel",style:t.normalizeStyle({height:i.height,width:i.width}),onMouseenter:M,onMouseleave:E},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(i=>(t.openBlock(),t.createElementBlock("div",{key:i.carouselId,class:"lym-carousel__item",style:t.normalizeStyle({transform:"horizontal"===e.direction?`translateX(${i.transiferX}px)`:`translateY(${i.transiferY}px)`,transitionDuration:`${m.value}s`})},[t.renderSlot(n.$slots,"default",{item:i},void 0,!0)],4)))),128)),e.loop?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(o.value,(i=>(t.openBlock(),t.createElementBlock("div",{key:i.carouselId,class:"lym-carousel__item",style:t.normalizeStyle({transform:"horizontal"===e.direction?`translateX(${i.transiferX}px)`:`translateY(${i.transiferY}px)`,transitionDuration:`${f.value}s`})},[t.renderSlot(n.$slots,"default",{item:i},void 0,!0)],4)))),128)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["lym-carousel-prev-icon lym-carousel-arrow-icon lym-flex-cc",["horizontal"===i.direction?"lym-carousel-H-prev-icon-"+(_.value?"show":"hide"):"lym-carousel-V-prev-icon-"+(_.value?"show":"hide")]]),onClick:l[0]||(l[0]=e=>function(e=!1){(i.autoplay||i.loop||0!==c.value)&&(e||_.value)&&(e||(N(),C()),c.value-1<0?(v.value=!0,c.value=r.value.length-1):(v.value=!1,c.value-=1))}(!1))},[t.createVNode(z,{type:"svgicon",src:"horizontal"===e.direction?"arrow-left":"arrow-top",size:"12","fill-color":"white"},null,8,["src"])],2),t.createElementVNode("div",{class:t.normalizeClass(["lym-carousel-next-icon lym-carousel-arrow-icon lym-flex-cc",["horizontal"===i.direction?"lym-carousel-H-next-icon-"+(x.value?"show":"hide"):"lym-carousel-V-next-icon-"+(x.value?"show":"hide")]]),onClick:l[1]||(l[1]=e=>w(!1))},[t.createVNode(z,{type:"svgicon",src:"horizontal"===e.direction?"arrow-right":"arrow-bottom",size:"12","fill-color":"white"},null,8,["src"])],2),"none"!==e.indicatorPosition?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["lym-carousel__indicator-box",["horizontal"===e.direction?"lym-flex-c":"lym-flex-column-c"]]),style:t.normalizeStyle(y.value)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,((e,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:"lym-carousel__indicator-item lym-flex-cc",style:t.normalizeStyle(S.value(n)),onMouseenter:e=>function(e){"hover"===i.trigger&&T(e)}(n),onClick:t.withModifiers((e=>T(n)),["stop"])},[t.createElementVNode("div",{style:t.normalizeStyle(b.value(n))},null,4)],44,G)))),128))],6)):t.createCommentVNode("",!0)],36))}}),[["__scopeId","data-v-9bc32bbe"]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"})),j=l(t.defineComponent({__name:"LymCheckBox",props:{modelValue:{type:Boolean,default:!1},size:{type:Number,default:14},label:{type:String,default:""},labelSpace:{type:String,default:"5px"},labelFontSize:{type:String,default:"14px"},disabled:{type:Boolean,default:!1},isCircle:{type:Boolean,default:!1},value:{type:String,default:""},isIndeterminate:{type:Boolean,default:!1}},emits:["update:modelValue","update:disabled","change"],setup(e,{expose:n,emit:i}){const a=e,r=i,o=t.ref(!1),l=t.ref(""),s=t.inject("getRef",null),c=t.inject("checkChange",null),u=t.ref(),d=t.inject("formDisabled",null),h=t.ref(!1);t.watch((()=>a.modelValue),((e,t)=>{o.value=e})),t.watch((()=>a.value),((e,t)=>{l.value=e}));const p=t.computed((()=>!!(a.disabled||h.value||d)&&d.value));function m(){if(!p.value){const e=!o.value;r("update:modelValue",e),r("change",e),null!==c&&c instanceof Function&&c(a.value)}}function f(e){if(a.value){const t=e.findIndex((e=>e===a.value));o.value=-1!==t,r("update:modelValue",-1!==t)}}function v(e){h.value=e,r("update:disabled",e)}return t.onMounted((()=>{o.value=a.modelValue,t.nextTick((()=>{null!==s&&s instanceof Function&&s(u,f,v,a.value)}))})),n({setCheck:f}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCheckboxRef",ref:u,class:"lym-checkbox lym-flex-c",style:t.normalizeStyle({cursor:p.value?"not-allowed":"pointer"}),onClick:m},[t.createElementVNode("span",{class:t.normalizeClass(["lym-checkbox-inner",[p.value?"lym-checkbox-inner-disabled":o.value||e.isIndeterminate?"lym-checkbox-inner-checked":"lym-checkbox-inner-unchecked"]]),style:t.normalizeStyle({borderRadius:e.isCircle?"50%":"2px",width:e.size+"px",height:e.size+"px"})},[o.value&&!e.isIndeterminate?(t.openBlock(),t.createElementBlock("span",{key:0,class:"lym-checkbox-inner-checked-mark",style:t.normalizeStyle({width:e.size/4.67+"px",height:e.size/2+"px",left:(e.size-e.size/4.67-e.size/14*2)/2+"px",top:(e.size-e.size/2-e.size/14*2)/2-e.size/14+"px",borderWidth:e.size/14+"px",borderColor:p.value?"#a8abb2":"white"})},null,4)):t.createCommentVNode("",!0),e.isIndeterminate?(t.openBlock(),t.createElementBlock("span",{key:1,class:"lym-checkbox-inner-indeterminate",style:t.normalizeStyle({height:e.size/14+"px",backgroundColor:p.value?"#a8abb2":"white",top:(e.size-e.size/14)/2-1+"px"})},null,4)):t.createCommentVNode("",!0)],6),t.createElementVNode("span",{class:"lym-checkbox-label",style:t.normalizeStyle({color:p.value?"#a8abb2":o.value||e.isIndeterminate?"#409eff":"#606266",marginLeft:e.labelSpace,fontSize:e.labelFontSize})},t.toDisplayString(e.label),5)],4))}}),[["__scopeId","data-v-10909607"]]),$=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),K=t.defineComponent({__name:"LymCheckBoxGroup",props:{modelValue:{type:Array,default:()=>[]},max:{type:Number,default:-1},singleCheck:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),o=t.ref([]),l=t.ref();function s(){o.value.forEach((e=>{e.fn(r.value)}))}function c(){for(let e=0;e<l.value.children.length;e++)0!==e&&(l.value.children[e].style.marginLeft="15px")}return t.provide("getRef",(function(e,t,n,i){null!=e.value&&e.value.parentElement===l.value&&o.value.push({value:i,fn:t,disableFn:n})})),t.provide("checkChange",(function(e){const t=r.value.findIndex((t=>t===e));i.singleCheck?r.value=[e]:-1!==t?r.value.splice(t,1):r.value.push(e);a("update:modelValue",[...r.value]),a("change",[...r.value]),s(),i.singleCheck||(i.max>0&&r.value.length===i.max?o.value.forEach((e=>{-1===r.value.findIndex((t=>t===e.value))&&e.disableFn(!0)})):o.value.forEach((e=>{e.disableFn(!1)})))})),t.watch((()=>i.modelValue),((e,t)=>{r.value=e,s()})),t.onMounted((()=>{r.value=[...i.modelValue],c(),setTimeout((()=>{s()}))})),t.onUpdated((()=>{c()})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCheckboxGroupRef",ref:l,class:"lym-checkbox-group lym-flex-wrap-c"},[t.renderSlot(e.$slots,"default")],512))}}),Y=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));function J(e){let t=0,n=0;return"touchend"===e.type?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}}function Z(e,n=""){return new Promise(((i,a)=>{let r=0;const o=window.getComputedStyle(e),l=document.getElementById("app");let s=document.getElementById("lym-calculate-text-w-h-div");s||(s=document.createElement("div"),s.id="lym-calculate-text-w-h-div",s.style.position="fixed",s.style.top="-99999px",s.style.left="-99999px",s.style.whiteSpace="pre-wrap",s.style.wordBreak="break-all"),s.style.fontSize=o.fontSize,s.style.fontFamily=o.fontFamily,s.style.lineHeight=o.lineHeight,s.style.padding=o.padding,s.style.border=o.border,s.style.boxSizing=o.boxSizing,s.style.width=o.width,s.innerText=n,l.appendChild(s),t.nextTick((()=>{s.offsetWidth,r=s.offsetHeight,i(r)}))}))}function Q(e){return new Promise(((n,i)=>{let a=0,r=0;const o=document.getElementById("app");let l=document.getElementById("lym-calculate-text-w-h-div");l||(l=document.createElement("div"),l.id="lym-calculate-text-w-h-div",l.style.position="fixed",l.style.top="-99999px",l.style.left="-99999px",l.style.whiteSpace="pre-wrap",l.style.wordBreak="break-all",l.style.boxSizing="border-box"),l.style.fontSize=e.fontSize+"px",l.style.fontWeight=e.fontWeight||"normal",l.style.padding=e.padding,l.style.border=e.border||"none",l.style.width=e.width+"px",l.innerText=e.content,o.appendChild(l),t.nextTick((()=>{a=l.offsetWidth,r=l.offsetHeight,n(e.isGetW?a:r)}))}))}function ee(e,t){let n=!1;const i=function(e){let n=t.drag;n&&n(e)},a=function(e){let r=t.end;document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",i),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,n=!1,r(e)},r=function(e){n||(e.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",i),document.addEventListener("mouseup",a),document.addEventListener("touchmove",i),document.addEventListener("touchend",a),n=!0)};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r)}function te(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]}function ne(e,t){var n;"string"==typeof(n=e)&&n.includes(".")&&1===Number.parseFloat(n)&&(e="100%");const i=function(e){return"string"==typeof e&&e.includes("%")}(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),i&&(e=Number.parseInt(""+e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)}const ie={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"};function ae(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${ie[t]||t}${ie[n]||n}`}function re({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`${ae(e)}${ae(t)}${ae(n)}`}const oe={A:10,B:11,C:12,D:13,E:14,F:15};function le(e){return 2===e.length?16*(oe[e[0].toUpperCase()]||+e[0])+(oe[e[1].toUpperCase()]||+e[1]):oe[e[1].toUpperCase()]||+e[1]}function se(e,t,n){e=ne(e,255),t=ne(t,255),n=ne(n,255);const i=Math.max(e,t,n),a=Math.min(e,t,n);let r;const o=i,l=i-a,s=0===i?0:l/i;if(i===a)r=0;else{switch(i){case e:r=(t-n)/l+(t<n?6:0);break;case t:r=(n-e)/l+2;break;case n:r=(e-t)/l+4}r/=6}return{h:360*r,s:100*s,v:100*o}}function ce(e,t,n){e=6*ne(e,360),t=ne(t,100),n=ne(n,100);const i=Math.floor(e),a=e-i,r=n*(1-t),o=n*(1-a*t),l=n*(1-(1-a)*t),s=i%6,c=[n,o,r,r,l,n][s],u=[l,n,n,o,r,r][s],d=[r,r,l,n,n,o][s];return{r:Math.round(255*c),g:Math.round(255*u),b:Math.round(255*d)}}let ue=class{constructor(e={}){i(this,"_hue"),i(this,"_saturation"),i(this,"_value"),i(this,"_alpha"),i(this,"enableAlpha"),i(this,"format"),i(this,"value"),this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const t in e)this.option=e[t];e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(1!==arguments.length||"object"!=typeof e)this[`_${e}`]=t,this.doOnChange();else for(const n in e)this.set(n,e[n])}get(e){return"alpha"===e?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return ce(this._hue,this._saturation,this._value)}fromString(e){if(!e)return this._hue=0,this._saturation=100,this._value=100,void this.doOnChange();const t=(e,t,n)=>{this._hue=Math.max(0,Math.min(360,e)),this._saturation=Math.max(0,Math.min(100,t)),this._value=Math.max(0,Math.min(100,n)),this.doOnChange()};if(e.includes("hsl")){const n=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]+""):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:i,v:a}=function(e,t,n){n/=100;let i=t/=100;const a=Math.max(n,.01);return t*=(n*=2)<=1?n:2-n,i*=a<=1?a:2-a,{h:e,s:100*(0===n?2*i/(a+i):2*t/(n+t)),v:(n+t)/2*100}}(n[0],n[1],n[2]);t(e,i,a)}}else if(e.includes("hsv")){const n=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));4===n.length?this._alpha=100*Number.parseFloat(n[3]+""):3===n.length&&(this._alpha=100),n.length>=3&&t(n[0],n[1],n[2])}else if(e.includes("rgb")){const n=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter((e=>""!==e)).map(((e,t)=>t>2?Number.parseFloat(e):Number.parseInt(e,10)));if(4===n.length?this._alpha=100*Number.parseFloat(n[3]+""):3===n.length&&(this._alpha=100),n.length>=3){const{h:e,s:i,v:a}=se(n[0],n[1],n[2]);t(e,i,a)}}else if(e.includes("#")){const n=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(n))return;let i="",a="",r="";3===n.length?(i=le(n[0]+n[0]),a=le(n[1]+n[1]),r=le(n[2]+n[2])):6!==n.length&&8!==n.length||(i=le(n.slice(0,2)),a=le(n.slice(2,4)),r=le(n.slice(4,6))),8===n.length?this._alpha=le(n.slice(6))/255*100:3!==n.length&&6!==n.length||(this._alpha=100);const{h:o,s:l,v:s}=se(i,a,r);t(o,l,s)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:i,format:a}=this;if(this.enableAlpha)switch(a){case"hsl":const a=te(e,t/100,n/100);this.value=`hsla(${e}, ${Math.round(100*a[1])}%, ${Math.round(100*a[2])}%, ${this.get("alpha")/100})`;break;case"hsv":this.value=`hsva(${e}, ${Math.round(t)}%, ${Math.round(n)}%, ${this.get("alpha")/100})`;break;case"hex":this.value=`${re(ce(e,t,n))}${ae(255*i/100)}`;break;default:const{r:r,g:o,b:l}=ce(e,t,n);this.value=`rgba(${r}, ${o}, ${l}, ${this.get("alpha")/100})`}else switch(a){case"hsl":const i=te(e,t/100,n/100);this.value=`hsl(${e}, ${Math.round(100*i[1])}%, ${Math.round(100*i[2])}%)`;break;case"hsv":this.value=`hsv(${e}, ${Math.round(t)}%, ${Math.round(n)}%)`;break;case"rgb":const{r:a,g:r,b:o}=ce(e,t,n);this.value=`rgb(${a}, ${r}, ${o})`;break;default:this.value=re(ce(e,t,n))}}};const de=e=>(t.pushScopeId("data-v-52cfed2c"),e=e(),t.popScopeId(),e),he={class:"color-box"},pe={class:"lym-flex-df",style:{height:"183px"}},me=de((()=>t.createElementVNode("div",{class:"lym-color-svpanel__white"},null,-1))),fe=de((()=>t.createElementVNode("div",{class:"lym-color-svpanel__black"},null,-1))),ve=[de((()=>t.createElementVNode("div",null,null,-1)))],ge={class:"lym-hue-slider"},_e={key:0,style:{margin:"12px 24px 0 0"}},xe={key:1,class:"lym-color-predefine"},ye={class:"lym-color-predefine__colors"},Se=["onClick"],be={class:"lym-flex-cb",style:{"margin-top":"10px"}},Me={class:"lym-flex-c"},Ee=l(t.defineComponent({__name:"LymColorPicker",props:{modelValue:{type:String,default:""},showAlpha:{type:Boolean,default:!1},predefine:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(""),o=t.ref(""),l=t.ref(!1),s=t.ref(!1),c=t.ref(""),u=t.ref(""),d=t.ref(),h=t.ref(),p=t.ref(),m=t.ref(0),f=t.ref({x:0,y:0}),v=t.ref(),g=t.ref(""),_=t.ref(0),x=t.ref(),y=t.ref(),S=t.ref({x:0,y:0}),b=new ue,M=t.ref([]),E=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,t)=>{r.value=e})),t.watch((()=>i.predefine),((e,t)=>{q()}));const w=t.computed((()=>!(!i.disabled&&!E)&&E.value));function T(){w.value||(l.value?(s.value=!0,setTimeout((()=>{s.value=!1,l.value=!1}),150)):(l.value=!0,t.nextTick((()=>{!function(){const e={drag:e=>{C(e)},end:e=>{C(e)}};ee(h.value,e),ee(p.value,e);const t={drag:e=>{N(e)},end:e=>{N(e)}};if(ee(v.value,t),i.showAlpha){const e={drag:e=>{A(e)},end:e=>{A(e)}};ee(x.value,e),ee(y.value,e)}r.value?b.fromString(r.value):b.fromString("#FF0000");R()}()}))))}function C(e){if(!h.value||!p.value)return;const{clientY:t}=J(e);let n;const i=h.value.getBoundingClientRect();let a=t-i.top;a=Math.min(a,i.height-p.value.offsetHeight/2),a=Math.max(p.value.offsetHeight/2,a),n=Math.round((a-p.value.offsetHeight/2)/(i.height-p.value.offsetHeight)*360),b.set("hue",n),R()}function A(e){if(!x.value)return;const{clientX:t}=J(e),n=x.value.getBoundingClientRect();let i=t-n.left;i=Math.max(y.value.offsetWidth/2,i),i=Math.min(i,n.width-y.value.offsetWidth/2),b.set("alpha",Math.round((i-y.value.offsetWidth/2)/(n.width-y.value.offsetWidth)*100)),R()}function N(e){const t=v.value.getBoundingClientRect(),{clientX:n,clientY:i}=J(e);let a=n-t.left,r=i-t.top;a=Math.max(0,a),a=Math.min(a,t.width),r=Math.max(0,r),r=Math.min(r,t.height),b.set("saturation",a/t.width*100),b.set("value",100-r/t.height*100),R()}function R(){u.value=`hsl(${b.get("hue")}, 100%, 50%)`;const e=b.get("saturation"),t=b.get("value");f.value.x=e*v.value.clientWidth/100,f.value.y=(100-t)*v.value.clientHeight/100;const n=b.get("hue");if(m.value=n*(h.value.offsetHeight-p.value.offsetHeight/2)/360,i.showAlpha){const e=b.get("alpha");_.value=Math.round(e*(x.value.offsetWidth-y.value.offsetWidth/2)/100);const{r:t,g:n,b:i}=b.toRgb();g.value=`linear-gradient(to right, rgba(${t}, ${n}, ${i}, 0) 0%, rgba(${t}, ${n}, ${i}, 1) 100%)`,r.value=c.value=`rgba(${t}, ${n}, ${i}, ${e/100})`}else r.value=c.value=`#${b.value}`}function L(){c.value&&(r.value=c.value,o.value=r.value),a("update:modelValue",r.value),T()}function P(){r.value=o.value="",c.value="",T()}function q(){M.value=[];const e=new ue;e.format="rgb",i.predefine.forEach((t=>{let n=!1;e.fromString(t);const i=e.get("alpha");100!=i&&(n=!0),t=100==i?e.value:e.value.replace(")",`, ${i/100})`),M.value.push({color:t,isAlpha:n,selected:!1})}))}function I(){const e=new ue;e.format="rgb",e.fromString(c.value),"FF0000"!==e.value&&(b.fromString(c.value),R())}return t.onMounted((()=>{window.addEventListener("mousedown",(e=>{S.value.x=e.clientX,S.value.y=e.clientY})),window.addEventListener("mouseup",(e=>{if(d.value){const t=d.value.getBoundingClientRect(),n=S.value.x<t.left||S.value.x>t.right||S.value.y<t.top||S.value.y>t.bottom,i=e.clientX<t.left||e.clientX>t.right||e.clientY<t.top||e.clientY>t.bottom;n&&i&&l.value&&(s.value=!0,setTimeout((()=>{s.value=!1,l.value=!1}),150),r.value=o.value)}})),b.set("hue",0),o.value=r.value=i.modelValue,q()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-color-picker",{"lym-color-picker-disabled":w.value}])},[t.createElementVNode("div",{class:"trigger-box",style:t.normalizeStyle({borderColor:l.value?"#409eff":"",cursor:w.value?"not-allowed":"pointer"}),onClick:t.withModifiers(T,["stop"])},[t.createElementVNode("span",he,[t.createElementVNode("span",{class:"color-inner",style:t.normalizeStyle({background:r.value})},[r.value?(t.openBlock(),t.createBlock(z,{key:0,src:"arrow-bottom",type:"svgicon","fill-color":"white",size:"8"})):(t.openBlock(),t.createBlock(z,{key:1,src:"close",type:"svgicon","fill-color":"#909399",size:"8"}))],4)])],4),l.value?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"lymChooseColorPopRef",ref:d,class:t.normalizeClass(["lym-choose-color-pop",[s.value?"lym-hide-pop":"lym-show-pop"]]),onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",pe,[t.createElementVNode("div",{ref_key:"lymColorSvpanelRef",ref:v,class:"lym-color-svpanel",style:t.normalizeStyle({backgroundColor:u.value})},[me,fe,t.createElementVNode("div",{class:"lym-color-svpanel__cursor",style:t.normalizeStyle({left:f.value.x+"px",top:f.value.y+"px"})},ve,4)],4),t.createElementVNode("div",ge,[t.createElementVNode("div",{ref_key:"lymHueSliderBarRef",ref:h,class:"lym-hue-slider__bar"},null,512),t.createElementVNode("div",{ref_key:"lymHueSliderThumbRef",ref:p,class:"lym-hue-slider__thumb",style:t.normalizeStyle({top:m.value+"px"})},null,4)])]),e.showAlpha?(t.openBlock(),t.createElementBlock("div",_e,[t.createElementVNode("div",{ref_key:"lymColorAlphaSliderRef",ref:x,class:"lym-color-alpha-slider"},[t.createElementVNode("div",{class:"lym-color-alpha-slider__bar",style:t.normalizeStyle({background:g.value})},null,4),t.createElementVNode("div",{ref_key:"lymColorAlphaSliderThumbRef",ref:y,class:"lym-color-alpha-slider__thumb",style:t.normalizeStyle({left:_.value+"px"})},null,4)],512)])):t.createCommentVNode("",!0),M.value.length?(t.openBlock(),t.createElementBlock("div",xe,[t.createElementVNode("div",ye,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(M.value,((e,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,class:t.normalizeClass(["lym-color-predefine__color-selector",{"lym-alpha-bg":e.isAlpha,"lym-color-predefine__selected":e.selected}]),onClick:t.withModifiers((e=>function(e){M.value.forEach((e=>{e.selected=!1})),M.value[e].selected=!0,b.fromString(M.value[e].color),R()}(n)),["stop"])},[t.createElementVNode("div",{style:t.normalizeStyle({backgroundColor:e.color})},null,4)],10,Se)))),128))])])):t.createCommentVNode("",!0),t.createElementVNode("div",be,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),maxlength:"20",class:"input-color",onBlur:I},null,544),[[t.vModelText,c.value]]),t.createElementVNode("div",Me,[t.createVNode(B,{type:"danger",plain:"",padding:"5px 10px",fontSize:"12px",onClick:P},{default:t.withCtx((()=>[t.createTextVNode("Clear")])),_:1}),t.createVNode(B,{type:"primary",plain:"",padding:"5px 10px",fontSize:"12px",style:{"margin-left":"12px"},onClick:L},{default:t.withCtx((()=>[t.createTextVNode("OK")])),_:1})])])],2)):t.createCommentVNode("",!0)],2))}}),[["__scopeId","data-v-52cfed2c"]]),we=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),Te={class:"text-screen-number"},Ce=500,Ae=l(t.defineComponent({__name:"LymCountTo",props:{modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref(0),r=t.ref(0),o=t.ref(0),l=t.ref(0),s=t.ref(10),c=t.ref(null),u=t.ref(!0);return t.watch((()=>i.modelValue),((e,t)=>{e!==t&&(u.value=e>t,o.value=e>t?e-t:t-e,a.value=t,r.value=0,s.value=10,l.value=1,function(){c.value&&(clearInterval(c.value),c.value=null);o.value<10?l.value=Ce/o.value:l.value=49;const e=()=>{r.value++,u.value?a.value++:a.value--,clearInterval(c.value),r.value>o.value-10&&s.value<Ce&&(s.value=Math.min(s.value+l.value,Ce)),r.value>=o.value?(clearInterval(c.value),c.value=null):c.value=setInterval(e,s.value)};c.value=setInterval(e,10)}())})),t.onMounted((()=>{a.value=i.modelValue})),(e,n)=>(t.openBlock(),t.createElementBlock("div",Te,t.toDisplayString(a.value),1))}}),[["__scopeId","data-v-f439a3ce"]]),Ne=Object.freeze(Object.defineProperty({__proto__:null,default:Ae},Symbol.toStringTag,{value:"Module"})),Re=l(t.defineComponent({__name:"LymDialog",props:{modelValue:{type:Boolean,default:!1},zIndex:{type:Number,default:2200},width:{type:String,default:"500px"},padding:{type:String,default:"16px"},title:{type:String,default:""},isTitleCenter:{type:Boolean,default:!0},isFooterCenter:{type:Boolean,default:!1},canCloseByClickCover:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},bodyMaxH:{type:String,default:""},alignTop:{type:Boolean,default:!1},top:{type:String,default:"15vh"},modal:{type:Boolean,default:!0}},emits:["update:modelValue","close"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(!1),o=t.ref(!1),l=t.ref(!1),s=t.ref(!1);t.watch((()=>i.modelValue),((e,t)=>{e?(r.value=e,o.value=!0,l.value=!0):d()}));const c=t.computed((()=>{let e=`z-index: ${i.zIndex};`;return e+=i.modal?"background-color: rgba(0, 0, 0, .5);":"background-color: transparent;",e})),u=t.computed((()=>{let e=`width: ${i.width};padding: ${i.padding};`;return i.alignTop&&(e+=`margin-top: ${i.top};`),e}));function d(){o.value=!1,l.value=!1,setTimeout((()=>{r.value=!1,a("update:modelValue",!1),a("close")}),200)}function h(){i.canCloseByClickCover&&d()}function p(){s.value=!1}function m(){s.value=!0}return t.onMounted((()=>{})),(n,i)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-dialog-cover",["lym-dialog-conver"+(o.value?"-show":"-hide"),e.alignTop?"lym-flex-column-c":"lym-flex-cc"]]),style:t.normalizeStyle(c.value),onClick:h},[t.createElementVNode("div",{class:t.normalizeClass(["lym-dialog-content",["lym-dialog-content"+(l.value?"-show":"-hide")]]),style:t.normalizeStyle(u.value),onClick:i[0]||(i[0]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-dialog-content-head",style:t.normalizeStyle({textAlign:e.isTitleCenter?"center":"left",padding:e.isTitleCenter?"0 35px 16px 35px":"0 35px 16px 0"})},[t.renderSlot(n.$slots,"header",{closeFn:d},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),!0)],4),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-dialog-close lym-flex-cc",onMouseleave:p,onMouseenter:m,onClick:d},[t.createVNode(z,{src:"close",type:"svgicon","fill-color":s.value?"#409eff":"#909399",size:"10"},null,8,["fill-color"])],32)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"lym-dialog-content-body lym-custom-scrollbar",style:t.normalizeStyle({maxHeight:e.bodyMaxH})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4),t.createElementVNode("div",{class:"lym-dialog-content-footer",style:t.normalizeStyle({textAlign:e.isFooterCenter?"center":"right"})},[t.renderSlot(n.$slots,"footer",{},void 0,!0)],4)],6)],6)):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-ed019f02"]]),Le=Object.freeze(Object.defineProperty({__proto__:null,default:Re},Symbol.toStringTag,{value:"Module"})),Pe=l(t.defineComponent({__name:"LymDivider",props:{direction:{type:String,default:"horizontal"},contentPosition:{type:String,default:"center"},fontSize:{type:String,default:"14px"},lineColor:{type:String,default:"#dcdfe6"},lineStyle:{type:String,default:"solid"},lineW:{type:String,default:"100%"},lineH:{type:String,default:"24px"},lineWide:{type:String,default:"1px"},linePadding:{type:String,default:"0"}},setup:e=>(n,i)=>(t.openBlock(),t.createElementBlock("div",null,["horizontal"===e.direction?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-divider-horizontal",["center"===e.contentPosition?"lym-flex-cc":"left"===e.contentPosition?"lym-flex-cl":"lym-flex-cr"]]),style:t.normalizeStyle({width:e.lineW})},[t.createElementVNode("div",{class:"lym-divider-line-horizontal",style:t.normalizeStyle({borderColor:e.lineColor,borderStyle:e.lineStyle,borderTopWidth:e.lineWide})},null,4),t.createElementVNode("div",{class:"lym-divider-text",style:t.normalizeStyle({margin:"center"===e.contentPosition?"0 0":"left"===e.contentPosition?"0 0 0 20px":"0 20px 0 0",fontSize:e.fontSize})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)],6)):(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({height:e.lineH,width:"1px",padding:e.linePadding})},[t.createElementVNode("div",{class:"lym-divider-line-vertical",style:t.normalizeStyle({borderColor:e.lineColor,borderStyle:e.lineStyle,borderLeftWidth:e.lineWide})},null,4)],4))]))}),[["__scopeId","data-v-8c9d2fcf"]]),qe=Object.freeze(Object.defineProperty({__proto__:null,default:Pe},Symbol.toStringTag,{value:"Module"})),Ie={class:"lym-dialog-content-body lym-custom-scrollbar"},ze=l(t.defineComponent({__name:"LymDrawer",props:{modelValue:{type:Boolean,default:!1},direction:{type:String,default:"rtl"},zIndex:{type:Number,default:2200},size:{type:String,default:"500px"},padding:{type:String,default:"16px"},title:{type:String,default:""},isTitleCenter:{type:Boolean,default:!0},isFooterCenter:{type:Boolean,default:!1},canCloseByClickCover:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},beforeClose:{type:Function,default:null}},emits:["update:modelValue","close","beforeClose"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(!1),o=t.ref(!1),l=t.ref(!1),s=t.ref(!1);t.useAttrs();t.watch((()=>i.modelValue),((e,t)=>{e?(r.value=e,o.value=!0,l.value=!1,setTimeout((()=>{l.value=!0}))):d()}));const c=t.computed((()=>{let e=`z-index: ${i.zIndex};`;return e+=i.modal?"background-color: rgba(0, 0, 0, .5);":"background-color: transparent;",e})),u=t.computed((()=>{let e=`width: ${i.size};padding: ${i.padding};`;switch(i.direction){case"ltr":e+="top: 0;bottom: 0;left: 0;height: 100%;width: "+i.size;break;case"rtl":e+="top: 0;bottom: 0;right: 0;height: 100%;width: "+i.size;break;case"ttb":e+="left: 0;right: 0;top: 0;width: 100%;height: "+i.size;break;case"btt":e+="left: 0;right: 0;bottom: 0;width: 100%;height: "+i.size;break;default:e+="top: 0;bottom: 0;right: 0;width: "+i.size}return e}));function d(){if(i.beforeClose&&"function"==typeof i.beforeClose){(0,i.beforeClose)(h)}else h()}function h(){o.value=!1,l.value=!1,setTimeout((()=>{r.value=!1,a("update:modelValue",!1),a("close")}),200)}function p(){i.canCloseByClickCover&&d()}function m(){s.value=!1}function f(){s.value=!0}return(n,i)=>r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-dialog-cover",["lym-dialog-conver"+(o.value?"-show":"-hide")]]),style:t.normalizeStyle(c.value),onClick:p},[t.createElementVNode("div",{class:t.normalizeClass(["lym-dialog-content lym-flex-column",["lym-drawer-"+e.direction+(l.value?"-show":"-hide")]]),style:t.normalizeStyle(u.value),onClick:i[0]||(i[0]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-dialog-content-head",style:t.normalizeStyle({textAlign:e.isTitleCenter?"center":"left",padding:e.isTitleCenter?"0 35px 16px 35px":"0 35px 16px 0"})},[t.renderSlot(n.$slots,"header",{closeFn:d},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),!0)],4),e.showClose?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-dialog-close lym-flex-cc",onMouseleave:m,onMouseenter:f,onClick:d},[t.createVNode(z,{src:"close",type:"svgicon","fill-color":s.value?"#409eff":"#909399",size:"10"},null,8,["fill-color"])],32)):t.createCommentVNode("",!0),t.createElementVNode("div",Ie,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),t.createElementVNode("div",{class:"lym-dialog-content-footer",style:t.normalizeStyle({textAlign:e.isFooterCenter?"center":"right"})},[t.renderSlot(n.$slots,"footer",{},void 0,!0)],4)],6)],6)):t.createCommentVNode("",!0)}}),[["__scopeId","data-v-69c0f05e"]]),ke=Object.freeze(Object.defineProperty({__proto__:null,default:ze},Symbol.toStringTag,{value:"Module"})),Be=t.defineComponent({__name:"LymForm",props:{model:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"left"},labelAlignType:{type:String,default:"right"},labelWidth:{type:[Number,String],default:""},showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{expose:n,emit:i}){const r=e,l=t.ref(),s=t.ref([]),c=t.ref(!1);return t.provide("getRef",(function(e,t,n,i,a,o,c,u){if(null!=e.value&&e.value.parentElement===l.value){const l={refInstance:e,prop:t,setErrorText:i,setRule:n,rule:{},setLabelWidth:a,setLabelPosition:o,setLabelAlignType:c,setShowMessage:u};r.rules[t]&&(n(r.rules[t]),l.rule=r.rules[t]),a(r.labelWidth),o(r.labelPosition),c(r.labelAlignType),u(r.showMessage),s.value.push(l)}})),t.provide("removeRef",(function(){const e=[];for(let t=0;t<s.value.length;t++){const n=s.value[t];if(n.refInstance){const t=n.refInstance.getAttribute("data-custom-atrribute");if(t!==n.prop){const e=s.value.findIndex((e=>e.prop===t));n.prop=s.value[e].prop,n.rule=s.value[e].rule,n.setRule(n.rule)}e.push(n)}}s.value=e})),t.provide("formDisabled",c),t.watch((()=>r.rules),((e,t)=>{const n=Object.keys(e);s.value.forEach((t=>{n.includes(t.prop)?t.rule=e[t.prop]:t.rule={},t.setRule(t.rule)}))}),{deep:!0}),t.watch((()=>r.labelPosition),((e,t)=>{s.value.forEach((t=>{t.setLabelPosition(e)}))}),{immediate:!0}),t.watch((()=>r.labelWidth),((e,t)=>{s.value.forEach((t=>{t.setLabelWidth(e)}))}),{immediate:!0}),t.watch((()=>r.labelAlignType),((e,t)=>{s.value.forEach((t=>{t.setLabelAlignType(e)}))}),{immediate:!0}),t.watch((()=>r.showMessage),((e,t)=>{s.value.forEach((t=>{t.setShowMessage(e)}))}),{immediate:!0}),t.watch((()=>r.disabled),((e,t)=>{c.value=e}),{immediate:!0}),t.computed((()=>0)),n({validate:function(e){let t=0;for(let i=0;i<s.value.length;i++){const e=s.value[i],l=e.rule;if(Object.keys(l).length)if(l.validator)l.validator(r.model[e.prop],((n="")=>{e.setErrorText(n),0===t&&n.length&&(t=1),r.scrollToError&&n.length&&0===t&&(t=1,e.refInstance.scrollIntoView({behavior:"smooth"}))}));else{const i=r.model[e.prop];let s=!i||a(i)&&!i||o(i)&&!i.length||(n=i,"[object Object]"===Object.prototype.toString.call(n)&&!Object.keys(i).length);e.setErrorText(s?l.message:""),0===t&&s&&(t=1),r.scrollToError&&Object.keys(l).length>0&&s&&0===t&&(t=1,e.refInstance.scrollIntoView({behavior:"smooth"}))}}var n;e(0===t)},validateField:function(){},resetFields:function(){},scrollToField:function(){},clearValidate:function(){s.value.forEach((e=>{e.setErrorText("")}))}}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymFormRef",ref:l,class:t.normalizeClass(["lym-form",[e.inline?"lym-form-inline":"",c.value?"lym-form-disabled":""]])},[t.renderSlot(n.$slots,"default")],2))}}),De=Object.freeze(Object.defineProperty({__proto__:null,default:Be},Symbol.toStringTag,{value:"Module"}));const Ue=["data-custom-atrribute"],Ve={key:0,style:{color:"red"}},Oe={key:0,style:{color:"red"}},Fe=t.defineComponent({__name:"LymFormItem",props:{prop:{type:String,default:"",required:!0},label:{type:String,default:""},labelWidth:{type:[Number,String],default:""},labelPosition:{type:String,default:"left"},labelAlignType:{type:String,default:"right"},required:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0},trigger:{type:String,default:"change"}},emits:["update:modelValue"],setup(e,{expose:n,emit:i}){const o=e,l=t.ref(),s=t.ref(""),c=t.ref(0),u=t.ref(!1),d=t.ref(o.labelPosition),h=t.ref(o.labelAlignType),p=t.ref(o.showMessage),m=t.ref({x:0,y:0}),f=t.inject("getRef",null),v=t.inject("removeRef",null);function g(e){const n=function(e){let t=0;if(r(e)&&!isNaN(e)&&(t=e),a(e)){const n=e.replace(/\bpx\b/g,"");t=isNaN(Number(n))?0:Number(n)}return t}(e);n>0&&(c.value=n),t.nextTick((()=>{setTimeout((()=>{n<=0&&("right"===d.value?c.value=l.value.children[0].children[1].offsetWidth+1:c.value=l.value.children[0].children[0].offsetWidth+1),m.value.x=l.value.offsetLeft+c.value,m.value.y=l.value.offsetTop+l.value.children[0].offsetHeight+1}))}))}function _(e){d.value=e,g("")}function x(e){h.value=e}function y(e){p.value=e}function S(e){u.value=Object.keys(e).length>0}function b(e){s.value=e}return t.watch((()=>o.labelWidth),((e,t)=>{g(e)}),{immediate:!0}),t.watch((()=>o.labelPosition),((e,t)=>{d.value=e}),{immediate:!0}),t.watch((()=>o.labelAlignType),((e,t)=>{h.value=e}),{immediate:!0}),t.watch((()=>o.showMessage),((e,t)=>{p.value=e}),{immediate:!0}),t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==f&&f instanceof Function&&f(l,o.prop,S,b,g,_,x,y)}))})),t.onUnmounted((()=>{null!==v&&v instanceof Function&&v()})),n({setRule:S}),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymFormItemRef",ref:l,class:"lym-form-item","data-custom-atrribute":e.prop},[t.createElementVNode("div",{class:t.normalizeClass(["lym-form-item-content",["top"===d.value?"lym-flex-column-l":"lym-flex-c"]])},["right"!==d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-form-item-label",style:t.normalizeStyle({width:c.value>0?c.value+"px":"auto",textAlign:h.value,paddingBottom:"top"===d.value?"10px":"0"})},[e.required||u.value?(t.openBlock(),t.createElementBlock("span",Ve,"*")):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),!0)],4)):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"default",{},void 0,!0),"right"===d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-form-item-label",style:t.normalizeStyle({width:c.value>0?c.value+"px":"auto",textAlign:h.value})},[e.required||u.value?(t.openBlock(),t.createElementBlock("span",Oe,"*")):t.createCommentVNode("",!0),t.renderSlot(n.$slots,"label",{},(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),!0)],4)):t.createCommentVNode("",!0)],2),p.value&&s.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-form-item-error",style:t.normalizeStyle({top:m.value.y+"px",left:m.value.x+"px"})},t.toDisplayString(s.value),5)):t.createCommentVNode("",!0)],8,Ue))}}),He=l(Fe,[["__scopeId","data-v-b3ae8614"]]),Ge=Object.freeze(Object.defineProperty({__proto__:null,default:He},Symbol.toStringTag,{value:"Module"})),We={key:0,class:"lym-input-prepend lym-flex-cc"},Xe={key:0,style:{"margin-left":"8px","min-width":"16px"}},je=["id","placeholder","disabled","maxlength"],$e={key:2,style:{flex:"1"}},Ke=["placeholder","disabled","maxlength","type"],Ye={key:3,style:{width:"16px","margin-left":"8px"}},Je={key:4,style:{"margin-left":"8px","min-width":"16px"}},Ze={key:5,style:{"margin-left":"8px","min-width":"16px"}},Qe={key:1,class:"lym-input-append lym-flex-cc"},et=t.defineComponent({__name:"LymInput",props:{modelValue:{type:String,default:""},width:{type:[String,Number],default:"240px"},type:{type:String,default:""},placeholder:{type:String,default:"请输入"},disabled:{type:Boolean,default:!1},maxlength:{type:String,default:"20"},clearable:{type:Boolean,default:!1},formatter:{type:Function,default:null},showPassword:{type:Boolean,default:!1},noSpaces:{type:Boolean,default:!0},rows:{type:Number,default:0},autosize:{type:Boolean,default:!1},autosizeRange:{type:Object,default:()=>null},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},showWordLimit:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},max:{type:Number,default:999999},min:{type:Number,default:0}},emits:["update:modelValue","focuse","blur"],setup(e,{emit:n}){const i=e,o=n,l=t.ref("leave"),s=t.ref(!1),c=t.ref(""),u=t.ref(!1),d=t.ref(""),h=t.ref(0),p=t.ref(!!t.useSlots().prepend),m=t.ref(!!t.useSlots().append),f=t.ref(),v=t.ref(),g=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,t)=>{c.value=e})),t.watch((()=>i.type),((e,t)=>{"textarea"===e&&T()})),t.onMounted((()=>{i.autoFocus&&("textarea"===i.type?v.value.focus():f.value.focus())})),t.onUpdated((()=>{p.value=!!t.useSlots().prepend,m.value=!!t.useSlots().append}));const _=t.computed((()=>{let e="";return a(i.width)?(e=i.width.toString(),e+=e.includes("px")||e.includes("%")?"":"px"):r(i.width)&&(e+="px"),e})),x=t.computed((()=>{let e="";S.value?e="border-color: #e4e7ed;background-color: #f5f7fa;cursor: not-allowed;":(e+="cursor: text;background-color: #ffffff;",s.value?e+="border-color: #409eff;":e+="leave"===l.value?"border-color: #dcdfe6;":"border-color: #c0c4cc;");let t="border-radius: 4px;";return p.value&&(t="border-radius: 0 4px 4px 0;"),m.value&&(t="border-radius: 4px 0 0 4px;"),p.value&&m.value&&(t="border-radius: 0;"),e+=t,"textarea"!==i.type?e+="padding: 1px 11px;":e+=i.showWordLimit?"padding: 5px 11px 25px 11px;":"padding: 5px 11px;",e})),y=t.computed((()=>i.clearable&&c.value&&("enter"===l.value||s.value))),S=t.computed((()=>!(!i.disabled&&!g)&&g.value));function b(){s.value=!0,o("focuse")}function M(){s.value=!1,o("blur")}function E(){l.value="enter"}function w(){l.value="leave"}function T(){t.nextTick((async()=>{const e=document.getElementById(d.value),t=window.getComputedStyle(e),n=parseFloat(t.paddingTop.replace("px",""))+parseFloat(t.paddingBottom.replace("px",""));let a=await Z(e,"1111");if(a-=n,i.autosize)if(null!==i.autosizeRange){const t=a*i.autosizeRange.minRow+n,r=a*i.autosizeRange.maxRow+n,o=await Z(e,e.value);h.value=o<t?t:o>r?r:o}else if(e.value.length){const t=await Z(e,e.value);h.value=t}else h.value=a+n;else i.rows>0?h.value=a*i.rows+n:h.value=a+n}))}function C(){"textarea"===i.type&&T(),t.nextTick((()=>{let e=c.value;i.noSpaces&&(e=function(e){let t=e;return t.replace(/\s/g,"")}(e)),"price"===i.type?e=function(e){let t=e;t=t.replace(/[^\d.]/g,""),t=t.replace(/\.{2,}/g,"."),t=t.replace(".","$#$").replace(/\./g,"").replace("$#$","."),t=t.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),t.indexOf(".")<0&&""!==t&&(t=parseFloat(t));t>99999999&&(t=99999999);return t+""}(e):"number"===i.type&&(e=function(e){let t=e;return t.replace(/\D/g,"")}(e),parseFloat(e)>i.max&&(e=`${i.max}`),parseFloat(e)<=i.min&&(e=`${i.min}`),e.length>1&&0===e.indexOf("0")&&(e=e.substring(1,e.length))),i.formatter&&(e=i.formatter(e)),c.value=e,o("update:modelValue",e)}))}function A(){c.value="",o("update:modelValue",c.value)}return t.onMounted((()=>{c.value=i.modelValue,d.value="lymInputtextarea"+Math.random(),"textarea"===i.type&&T()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-input lym-flex-df",style:t.normalizeStyle({width:_.value}),onMouseenter:E,onMouseleave:w},[p.value?(t.openBlock(),t.createElementBlock("div",We,[t.renderSlot(n.$slots,"prepend",{},void 0,!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"lym-input_wrapper lym-flex-c",style:t.normalizeStyle(x.value)},[e.prefixIcon?(t.openBlock(),t.createElementBlock("div",Xe,[t.createVNode(z,{src:e.prefixIcon,type:"svgicon","fill-color":"#a8abb2",size:"16"},null,8,["src"])])):t.createCommentVNode("",!0),"textarea"===e.type?t.withDirectives((t.openBlock(),t.createElementBlock("textarea",{key:1,ref_key:"lymTextareaInner",ref:v,"onUpdate:modelValue":i[0]||(i[0]=e=>c.value=e),id:d.value,class:"lym-textarea_inner lym-custom-scrollbar",placeholder:e.placeholder,disabled:S.value,maxlength:e.maxlength,style:t.normalizeStyle({cursor:S.value?"not-allowed":"",height:h.value+"px"}),onFocus:b,onBlur:M,onInput:C},null,44,je)),[[t.vModelText,c.value]]):(t.openBlock(),t.createElementBlock("div",$e,[t.withDirectives(t.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=e=>c.value=e),ref_key:"lymInputInner",ref:f,class:"lym-input_inner",placeholder:e.placeholder,disabled:S.value,maxlength:e.maxlength,type:e.showPassword&&u.value?"password":"text",style:t.normalizeStyle({cursor:S.value?"not-allowed":""}),onFocus:b,onBlur:M,onInput:C},null,44,Ke),[[t.vModelDynamic,c.value]])])),y.value&&"textarea"!==e.type?(t.openBlock(),t.createElementBlock("div",Ye,[t.createVNode(z,{src:"close-circle-line",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":"",onClick:A})])):t.createCommentVNode("",!0),e.showPassword?(t.openBlock(),t.createElementBlock("div",Je,[t.createVNode(z,{src:u.value?"password-hide":"password-show","hover-url":u.value?"#password-hide":"#password-show",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":"",onClick:i[2]||(i[2]=e=>u.value=!u.value)},null,8,["src","hover-url"])])):t.createCommentVNode("",!0),e.suffixIcon?(t.openBlock(),t.createElementBlock("div",Ze,[t.createVNode(z,{src:e.suffixIcon,type:"svgicon","fill-color":"#a8abb2",size:"16"},null,8,["src"])])):t.createCommentVNode("",!0),e.showWordLimit?(t.openBlock(),t.createElementBlock("div",{key:6,class:t.normalizeClass(["lym-word-limit"+("textarea"===e.type?"-textarea":"")])},t.toDisplayString(c.value.length)+"/"+t.toDisplayString(e.maxlength),3)):t.createCommentVNode("",!0)],4),m.value?(t.openBlock(),t.createElementBlock("div",Qe,[t.renderSlot(n.$slots,"append",{},void 0,!0)])):t.createCommentVNode("",!0)],36))}}),tt=l(et,[["__scopeId","data-v-2776b363"]]),nt=Object.freeze(Object.defineProperty({__proto__:null,default:tt},Symbol.toStringTag,{value:"Module"})),it=["href","target"],at=t.defineComponent({__name:"LymLink",props:{href:{type:String,default:""},type:{type:String,default:"default"},disabled:{type:Boolean,default:!1},hasUnderline:{type:Boolean,default:!0},customColors:{type:Object,default:{}},target:{type:String,default:"_blank"},leftIcon:{type:String,default:""},rightIcon:{type:String,default:""},iconSize:{type:[String,Number],default:"12"},iconSpace:{type:String,default:"0"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref("leave"),r={default:{color:"#606266",hoverColor:"#409eff",disabledColor:"#a8abb2"},primary:{color:"#409eff",hoverColor:"#79bbff",disabledColor:"#a0cfff"},success:{color:"#67c23a",hoverColor:"#95d475",disabledColor:"#b3e19d"},info:{color:"#909399",hoverColor:"#b1b3b8",disabledColor:"#c8c9cc"},warning:{color:"#e6a23c",hoverColor:"#eebe77",disabledColor:"#f3d19e"},danger:{color:"#f56c6c",hoverColor:"#f89898",disabledColor:"#fab6b6"}},o=t.computed((()=>!("leave"===a.value||!i.hasUnderline))),l=t.computed((()=>i.customColors.color?"leave"!==a.value?i.customColors.hoverColor:i.customColors.color:i.disabled?r[i.type].disabledColor:"leave"!==a.value?r[i.type].hoverColor:r[i.type].color)),s=t.computed((()=>i.customColors.color?i.customColors.color:i.disabled?r[i.type].disabledColor:"default"===i.type?r[i.type].hoverColor:r[i.type].color));function c(){a.value="enter"}function u(){a.value="leave"}function d(){a.value="down"}function h(){a.value="up"}function p(e){i.disabled&&e.preventDefault()}return(n,i)=>(t.openBlock(),t.createElementBlock("a",{href:e.href,class:"lym-link",target:e.target,style:t.normalizeStyle({color:l.value,cursor:e.disabled?"not-allowed":""}),onMouseenter:c,onMouseleave:u,onMousedown:d,onMouseup:h,onClick:p},[e.leftIcon?(t.openBlock(),t.createBlock(z,{key:0,src:e.leftIcon,type:"svgicon","fill-color":l.value,size:e.iconSize+"",style:t.normalizeStyle([{marginRight:e.iconSpace},{display:"inline-block"}])},null,8,["src","fill-color","size","style"])):t.createCommentVNode("",!0),t.createElementVNode("span",null,[t.renderSlot(n.$slots,"default",{},void 0,!0)]),e.rightIcon?(t.openBlock(),t.createBlock(z,{key:1,src:e.rightIcon,type:"svgicon","fill-color":l.value,size:e.iconSize+"",style:t.normalizeStyle([{marginLeft:e.iconSpace},{display:"inline-block"}])},null,8,["src","fill-color","size","style"])):t.createCommentVNode("",!0),o.value&&!e.disabled?(t.openBlock(),t.createElementBlock("div",{key:2,class:"under-line",style:t.normalizeStyle({background:s.value})},null,4)):t.createCommentVNode("",!0)],44,it))}}),rt=l(at,[["__scopeId","data-v-391bbcf0"]]),ot=Object.freeze(Object.defineProperty({__proto__:null,default:rt},Symbol.toStringTag,{value:"Module"})),lt={class:"lym-cascader lym-flex-df"},st=["onClick","onMouseenter"],ct={class:"lym-cli-left lym-flex-cc"},ut=t.defineComponent({__name:"LymCascader",props:{modelValue:{type:Array,default:()=>[]},options:{type:Array,required:!0,default:()=>[]},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"label"},levelW:{type:String,default:"200px"},levelH:{type:String,default:"200px"},expandTrigger:{type:String,default:"click"},multiple:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},needRefresh:{type:Boolean,default:!1}},emits:["update:modelValue","completed"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),o=t.ref(1),l=t.ref([]),s=t.ref([]),c=t.ref([]),u=t.ref([]),d=t.ref([]),h=t.ref([]),p=t.ref(!1);function m(){l.value=[],o.value=1,l.value[0]=JSON.parse(JSON.stringify(r.value)),f([...r.value]),setTimeout((()=>{for(let e=0;e<o.value-1;e++)l.value.push([]),s.value.push(-1)})),S()}function f(e){const t=e.filter((e=>e.children&&e.children.length));if(t.length){o.value++;let e=[];for(let n=0;n<t.length;n++)e=e.concat(t[n].children);f(e)}}function v(e,t,n){const a=c.value.length&&c.value[c.value.length-1][i.valueKey]==n[i.valueKey],r=s.value[e]==t;let o=!1;if(i.checkStrictly){let e=[];u.value.forEach((t=>{e=Array.from(new Set(e.concat(t)))}));o=-1!==e.findIndex((e=>e[i.valueKey]==n[i.valueKey]))}else o=n.checked;return!!(r||a||o)}function g(e,t){const n=l.value[e][t];if(n.disabled)return;const a=n.children&&n.children.length;if(e!==o.value-1&&a&&(s.value[e]=t),a&&e!==o.value-1){if(JSON.stringify(l.value[e+1])!==JSON.stringify(n.children)){l.value[e+1]=n.children,s.value[e+1]=-1;const t=o.value-1-e-1;for(let n=1;n<=t;n++)l.value[e+1+n]=[],s.value[e+1+n]=-1}}if(c.value.length){const e=c.value[c.value.length-1];a&&n.children.forEach(((t,n)=>{t[i.valueKey]==e[i.valueKey]&&(s.value[c.value.length-1]=n)}))}}function _(e,t,n){let a=[];for(let i=0;i<t;i++)a.push(l.value[i][s.value[i]]);const r=l.value[t][n];r.isIndeterminate&&e&&(l.value[t][n].isIndeterminate=!1),a.push(r);const o=u.value.findIndex((e=>e.map((e=>e[i.valueKey])).join("")==a.map((e=>e[i.valueKey])).join("")));e?-1===o&&u.value.push(a):-1!==o&&u.value.splice(o,1),i.checkStrictly||(x(r,e,a),function(e){for(let t=e.length-2;t>=0;t--){d.value=[],y(e[t]);const n=d.value.filter((e=>!e.checked));n&&(0===n.length?(l.value[t][s.value[t]].isIndeterminate=!1,l.value[t][s.value[t]].checked=!0):n.length>0&&n.length<d.value.length?(l.value[t][s.value[t]].isIndeterminate=!0,l.value[t][s.value[t]].checked=!1):(l.value[t][s.value[t]].isIndeterminate=!1,l.value[t][s.value[t]].checked=!1))}}(a)),setTimeout((()=>{w()}))}function x(e,t,n){e.children&&e.children.forEach((e=>{e.checked=t;const a=[...n];a.push(e);const r=u.value.findIndex((e=>e.map((e=>e[i.valueKey])).join("")==a.map((e=>e[i.valueKey])).join("")));t?-1===r&&u.value.push(a):-1!==r&&u.value.splice(r,1),x(e,t,a)}))}function y(e){e.children&&e.children.forEach((e=>{d.value.push(e),y(e)}))}function S(){if(i.multiple)u.value=[],b(l.value[0],[]),i.checkStrictly||setTimeout((()=>{const e=[];for(let t=0;t<u.value.length;t++){const n=u.value[t].slice(0,u.value[t].length-1),i=M(n);e.push({nodes:n,indexs:i})}for(let t=0;t<e.length;t++){const n=e[t];for(let e=n.nodes.length-1;e>=0;e--){d.value=[],y(n.nodes[e]);const t=d.value.filter((e=>!e.checked));t&&(0===t.length?E(n.indexs.slice(0,e+1),!0,!1):t.length>0&&t.length<d.value.length?E(n.indexs.slice(0,e+1),!1,!0):E(n.indexs.slice(0,e+1),!1,!1))}}}));else{let e=[];e=i.modelValue.map((e=>({value:e})));const t=M(e);let n=[...l.value[0]];t.forEach((e=>{c.value.push(n[e]),n=n[e].children}))}}function b(e,t){e.forEach((e=>{-1!==i.modelValue.findIndex((t=>t[t.length-1]==e[i.valueKey]))&&(e.checked=!0,u.value.push([...t,e])),e.children&&b(e.children,[...t,e])}))}function M(e){let t=[...l.value[0]],n=[];for(let a=0;a<e.length;a++){const r=t.findIndex((t=>t[i.valueKey]==e[a][i.valueKey]));-1!==r&&(n.push(r),t[r].children&&(t=t[r].children))}return n}function E(e,t,n){let i=l.value[0];for(;e.length>0;){if(1===e.length){i[e[0]].isIndeterminate=n,i[e[0]].checked=t;break}i=i[e.shift()].children}}function w(){let e=t.ref([]);i.multiple?(e=i.checkStrictly?[...u.value]:u.value.filter((e=>{if(!e[e.length-1].children)return e})),h.value=e.map((e=>e.map((e=>e[i.valueKey]))))):(e=[...c.value],h.value=e.map((e=>e[i.valueKey]))),p.value=!0,a("update:modelValue",[...h.value]),a("completed")}return t.watch((()=>i.options),((e,t)=>{r.value=[...e],m()})),t.watch((()=>i.modelValue),((e,t)=>{p.value?p.value=!1:i.needRefresh?m():S()}),{deep:!0}),t.computed((()=>0)),t.onMounted((()=>{r.value=[...i.options],m()})),(n,a)=>(t.openBlock(),t.createElementBlock("div",lt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,(a=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"lym-cascader-level lym-custom-scrollbar",style:t.normalizeStyle({width:l.value[a-1]&&l.value[a-1].length?e.levelW:"0px",maxHeight:e.levelH,borderColor:a-1!=0&&l.value[a-1]&&l.value[a-1].length?"rgba(128, 128, 128, 0.3)":"transparent"})},[l.value[a-1]&&l.value[a-1].length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.value[a-1],((r,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,class:t.normalizeClass(["lym-flex-c",["lym-cascader-level-item"+(r.disabled?"-disabled":"")]]),onClick:e=>function(e,t){"click"===i.expandTrigger&&g(e,t);const n=l.value[e][t];if(!(n.children&&n.children.length||i.multiple)){c.value=[];for(let t=0;t<e;t++)c.value.push(l.value[t][s.value[t]]);c.value.push(l.value[e][t]),s.value[e]=t,w()}}(a-1,o),onMouseenter:e=>function(e,t){"hover"===i.expandTrigger&&g(e,t)}(a-1,o)},[t.createElementVNode("div",ct,[c.value.length&&c.value[c.value.length-1][e.valueKey]==r[e.valueKey]?(t.openBlock(),t.createBlock(z,{key:0,src:"tick-line",type:"svgicon","fill-color":"#409eff",size:"12"})):t.createCommentVNode("",!0),e.multiple?(t.openBlock(),t.createBlock(j,{key:1,modelValue:r.checked,"onUpdate:modelValue":e=>r.checked=e,"is-indeterminate":r.isIndeterminate,onChange:e=>{_(e,a-1,o)}},null,8,["modelValue","onUpdate:modelValue","is-indeterminate","onChange"])):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"lym-cli-label",style:t.normalizeStyle({fontWeight:v(a-1,o,r)?"bold":"normal",color:v(a-1,o,r)?"#409eff":r.disabled?"#A8ABB2":"#333333"})},[t.renderSlot(n.$slots,"cascaderContent",{cascaderItem:r},(()=>[t.createTextVNode(t.toDisplayString(r.label),1)]),!0)],4),r.children?(t.openBlock(),t.createBlock(z,{key:0,src:"arrow-right",type:"svgicon","fill-color":s.value[a-1]==o?"#409eff":r.disabled?"#A8ABB2":"#333333",size:"10"},null,8,["fill-color"])):t.createCommentVNode("",!0)],42,st)))),128)):t.createCommentVNode("",!0)],4)))),128))]))}}),dt=l(ut,[["__scopeId","data-v-9844dc44"]]),ht=Object.freeze(Object.defineProperty({__proto__:null,default:dt},Symbol.toStringTag,{value:"Module"})),pt=e=>(t.pushScopeId("data-v-9e51ab42"),e=e(),t.popScopeId(),e),mt={class:"lym-select__wrapper lym-flex-cb no-select"},ft={style:{flex:"1"}},vt={class:"lym-flex-c lym-select__multiple-item"},gt={style:{flex:"1"}},_t=pt((()=>t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle"},null,-1))),xt={class:"lym-select_dropdown-content lym-flex-wrap",style:{padding:"10px 10px 5px 10px"}},yt={style:{flex:"1"}},St=["placeholder"],bt={key:3,style:{color:"#a8abb2"}},Mt={key:4,style:{color:"#606266"}},Et={class:"lym-select_dropdown-content"},wt={key:0},Tt=["onClick"],Ct={style:{flex:"1"}},At={key:1,style:{width:"11px"}},Nt={key:1,class:"lym-select__no-match-data"},Rt={key:2,class:"lym-flex-cc",style:{padding:"10px 0"}},Lt=pt((()=>t.createElementVNode("span",{style:{"margin-left":"10px",color:"#a8abb2"}},"数据加载中...",-1))),Pt=t.defineComponent({__name:"LymSelect",props:{modelValue:{type:[String,Array],default:""},options:{type:Array,default:()=>[]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},width:{type:[String,Number],default:"240px"},ddbWidth:{type:[String,Number],default:"240px"},fontSize:{type:[String,Number],default:"14px"},padding:{type:String,default:"4px 12px"},scrollMaxH:{type:String,default:"200px"},filterable:{type:Boolean,default:!1},remote:{type:Boolean,default:!1},remoteMethod:{type:Function,default:null},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},isCascader:{type:Boolean,default:!1},cascaderLevelH:{type:String,default:"200px"},cascaderExpandTrigger:{type:String,default:"click"},cascaderMultiple:{type:Boolean,default:!1},cascaderCheckStrictly:{type:Boolean,default:!1},cascaderShowAllLevels:{type:Boolean,default:!0},needIntervalForPoints:{type:Boolean,default:!1}},emits:["update:modelValue","selectCompleted"],setup(e,{expose:n,emit:i}){const o=e,l=i,s=t.ref([]),c=t.ref("leave"),u=t.ref(!1),d=t.ref(!1),h=t.ref(!1),p=t.ref({}),m=t.ref(""),f=t.ref("请选择"),v="selectMultipleBoxId"+1e3*Math.random(),g=t.ref(!1),_=t.ref(!1),x=t.ref(null),y=t.ref(!1),S=t.ref(!1),b=t.ref(!1),M=t.ref(0),E=t.ref(""),w=t.ref([]),T=t.ref(!1),C=t.ref(),A=t.ref({x:0,y:0}),N=t.inject("formDisabled",null);t.watch((()=>o.modelValue),((e,t)=>{e!==t&&(y.value?y.value=!1:I())})),t.watch((()=>o.options),((e,t)=>{s.value=e,b.value&&(S.value=!1,b.value=!1)})),t.watch((()=>o.ddbWidth),((e,t)=>{let n="";a(e)&&(n=e,n=n.replace("px","")),M.value=Number(n)}),{immediate:!0}),t.onMounted((()=>{I()}));const R=t.computed((()=>!(!o.disabled&&!N)&&N.value)),L=t.computed((()=>{let e="",t=o.width;a(t)?e+=`width: ${t};`:r(t)&&(e+=`width: ${t}px;`);let n=o.fontSize;return a(n)?e+=`font-size: ${n};`:r(n)&&(e+=`font-size: ${n}px;`),e+=`padding: ${o.padding};`,e+="border-color: "+(R.value?"#e4e7ed":u.value?"#409eff":"leave"===c.value?"#dcdfe6":"#c0c4cc")+";",e+="background-color: "+(R.value?"#F5F7FA":"white")+";",e+="cursor: "+(R.value?"not-allowed":"pointer")+";",e})),P=t.computed((()=>{let e=!1;return e=o.multiple||o.isCascader?p.value.length>0:!!p.value[o.valueKey],!R.value&&o.clearable&&e&&"enter"===c.value})),q=t.computed((()=>{let e=!1;return e=o.multiple||o.isCascader?!!p.value.length:!!p.value[o.valueKey],e}));function I(){if(s.value=o.options,o.isCascader)p.value=[...o.modelValue],o.cascaderMultiple?E.value=o.cascaderShowAllLevels?p.value.map((e=>e.join(" / "))):p.value.map((e=>e[e.length-1])):(E.value=o.cascaderShowAllLevels?p.value.join(" / "):p.value[p.value.length-1],m.value=E.value),o.filterable&&(w.value=[],$(s.value)),j();else if(s.value.forEach((e=>{e.checked=!1})),o.multiple){p.value=[];const e=[];for(let t=0;t<s.value.length;t++){const n=s.value[t];-1!==o.modelValue.indexOf(n[o.valueKey])&&(n.checked=!0,e.push(n))}p.value=e,j()}else{p.value={};const e=s.value.find((e=>e[o.valueKey]===o.modelValue));p.value=e||{},m.value=e?e[o.labelKey]:""}t.nextTick((()=>{A.value.x=C.value.offsetLeft,A.value.y=C.value.offsetTop+C.value.offsetHeight+15}))}function k(e){const t=e.target,n=[t.offsetLeft,t.offsetLeft+t.offsetWidth],i=[t.offsetTop,t.offsetTop+t.offsetHeight];e.x>n[0]&&e.x<n[1]&&e.y>i[0]&&e.y<i[1]&&(c.value="enter")}function B(){c.value="leave"}function D(){R.value||(u.value=!u.value,V(!0))}function U(){u.value=!1,V(!0)}function V(e=!1){u.value?(o.filterable&&(p.value[o.labelKey]?(m.value="",f.value=p.value[o.labelKey]):f.value="请选择"),g.value=!1,o.filterable&&o.remote&&e||(d.value=!0)):(o.filterable&&(o.isCascader&&o.cascaderMultiple?m.value="":m.value=o.isCascader?E.value||"":p.value[o.labelKey]||""),h.value=!0,setTimeout((()=>{d.value=!1,h.value=!1,T.value&&(T.value=!1,s.value=o.options)}),150))}function O(){if(!m.value)return T.value=!1,void(s.value=o.options);var e;o.remote&&o.remoteMethod&&(e=o.remoteMethod,"[object Function]"===Object.prototype.toString.call(e))?(b.value=!0,S.value=!0,o.remoteMethod(m.value)):o.isCascader?(s.value=w.value.filter((e=>e[o.labelKey].toLowerCase().includes(m.value.toLowerCase()))),s.value.forEach((e=>{const t=p.value.findIndex((t=>JSON.stringify(t)===JSON.stringify(e[o.valueKey])));if(e.checked=-1!==t,!o.cascaderShowAllLevels){const t=e[o.labelKey].split("/");e[o.labelKey]=t[t.length-1]}})),T.value=!0):s.value=o.options.filter((e=>e[o.labelKey].toLowerCase().includes(m.value.toLowerCase()))),t.nextTick((()=>{u.value=!0,V()}))}function F(e){u.value||D()}function H(){R.value||(o.multiple||o.isCascader?(o.multiple&&p.value.forEach((e=>{e.checked=!1})),p.value=[],E.value=[]):p.value={},f.value="请选择",U(),K())}function G(e){R.value||(s.value.forEach((t=>{o.isCascader?JSON.stringify(t[o.valueKey])==JSON.stringify(p.value[e])&&(t.checked=!1):t[o.valueKey]==p.value[e][o.valueKey]&&(t.checked=!1)})),g.value&&(_.value.splice(e-1,1),g.value=!1),p.value.splice(e,1),j(),K())}function W(){null===x.value&&(x.value=setTimeout((()=>{g.value=!1}),300))}function X(){d.value||(x.value&&(clearTimeout(x.value),x.value=null),_.value=o.isCascader?E.value.slice(1,E.value.length):p.value.slice(1,p.value.length),g.value=!0)}function j(){(o.multiple||!o.isCascader||o.cascaderMultiple)&&t.nextTick((()=>{let e=[],t=[];const n=document.getElementById(v);for(let i=0;i<n.children.length;i++){const a=n.children[i];0!==i&&a.offsetTop-t[t.length-1].top>10&&(e.push([...t]),t=[]),t.push({dom:a,top:a.offsetTop}),i===n.children.length-1&&(e.push([...t]),t=[])}e.forEach(((t,n)=>{t.forEach(((i,a)=>{i.dom.style.marginBottom=n===e.length-1?"0px":"5px",i.dom.style.marginRight=a===t.length-1?"0px":"5px"}))}))}))}function $(e,t="",n=[]){for(let i=0;i<e.length;i++){const a=e[i];a.children&&$(a.children,`${t}${a[o.labelKey]}/`,n.concat([a[o.valueKey]])),(o.cascaderCheckStrictly||!o.cascaderCheckStrictly&&!a.children)&&w.value.push({label:`${t}${a[o.labelKey]}`,value:n.concat([a[o.valueKey]])})}}function K(){let e;o.isCascader?(e=[...p.value],o.cascaderMultiple?E.value=o.cascaderShowAllLevels?p.value.map((e=>e.join(" / "))):p.value.map((e=>e[e.length-1])):E.value=o.cascaderShowAllLevels?p.value.join(" / "):p.value[p.value.length-1],j()):e=o.multiple?p.value.map((e=>e[o.valueKey])):p.value[o.valueKey]||"",y.value=!0,l("update:modelValue",e),l("selectCompleted")}return n({setDropdownBoxPoints:function(e,t){A.value.x=e+C.value.offsetLeft,A.value.y=t+C.value.offsetTop+C.value.offsetHeight+15}}),(n,i)=>{const a=t.resolveDirective("lym-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"lymSelectRef",ref:C,class:"lym-select",style:t.normalizeStyle(L.value),onMouseenter:k,onMouseleave:B,onClick:D},[t.createElementVNode("div",mt,[t.createElementVNode("div",{id:v,class:"lym-flex-wrap",style:{flex:"1","margin-right":"10px"}},[!e.multiple&&!e.cascaderMultiple||e.collapseTags?t.createCommentVNode("",!0):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.isCascader?E.value:p.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item"},[t.createElementVNode("div",ft,[t.renderSlot(n.$slots,"selectedContent",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?i:i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>G(a)),["stop"])},null,8,["onClick"])])))),128)),(e.multiple||E.value)&&e.collapseTags&&q.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",vt,[t.createElementVNode("div",gt,[t.renderSlot(n.$slots,"selectedContent",{selectedData:e.isCascader?E.value[0]:p.value[0]},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?E.value[0]:p.value[0][e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:i[0]||(i[0]=t.withModifiers((e=>G(0)),["stop"]))})]),p.value.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-flex-c lym-select__multiple-item",onMouseenter:X,onMouseleave:W},[t.createTextVNode(" +"+t.toDisplayString(p.value.length-1)+" ",1),g.value&&e.collapseTagsTooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-select__multiple-over-items",onMouseenter:X,onMouseleave:W,onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},[_t,t.createElementVNode("div",xt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item",style:{margin:"0 5px 5px 0"}},[t.createElementVNode("div",yt,[t.renderSlot(n.$slots,"selectedcollapseTags",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?i:i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>G(a+1)),["stop"])},null,8,["onClick"])])))),128))])],32)):t.createCommentVNode("",!0)],32)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.filterable?t.withDirectives((t.openBlock(),t.createElementBlock("input",{key:2,"onUpdate:modelValue":i[2]||(i[2]=e=>m.value=e),placeholder:f.value,onInput:O,onClick:t.withModifiers(F,["stop"])},null,40,St)),[[t.vModelText,m.value]]):t.createCommentVNode("",!0),e.filterable||q.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",bt,t.toDisplayString(f.value),1)),e.filterable||e.multiple||e.cascaderMultiple||!q.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Mt,[t.renderSlot(n.$slots,"selectedContent",{selectedData:p.value},(()=>[t.createTextVNode(t.toDisplayString(e.isCascader?E.value:p.value[e.labelKey]),1)]),!0)]))]),P.value?(t.openBlock(),t.createElementBlock("div",{key:0,style:{width:"16px"},onClick:t.withModifiers(H,["stop"])},[t.createVNode(z,{src:"close-circle-line",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":""})])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-select__suffix",style:t.normalizeStyle({transform:"rotate("+(u.value?"180deg":"0")+")"})},[t.createVNode(z,{src:"arrow-bottom",type:"svgicon","fill-color":"#a8abb2",size:"11"})],4))]),d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-select__dropdown-box-"+(h.value?"hide":"show")]),style:t.normalizeStyle({width:e.isCascader?"auto":M.value+"px",minWidth:e.isCascader&&T.value?M.value+"px":"",left:A.value.x+"px",top:A.value.y+"px"}),onClick:i[4]||(i[4]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle",style:t.normalizeStyle({left:3*M.value/4/2+"px"})},null,4),t.createElementVNode("div",Et,[e.isCascader&&!T.value?(t.openBlock(),t.createBlock(dt,{key:0,modelValue:p.value,"onUpdate:modelValue":i[3]||(i[3]=e=>p.value=e),options:s.value,"value-key":e.valueKey,"label-key":e.labelKey,"level-w":3*M.value/4+"px","level-h":e.cascaderLevelH,"expand-trigger":e.cascaderExpandTrigger,multiple:e.cascaderMultiple,"check-strictly":e.cascaderCheckStrictly,"need-refresh":"",onCompleted:K},{cascaderContent:t.withCtx((({cascaderItem:e})=>[t.renderSlot(n.$slots,"selectCascaderContent",{cascaderItem:e},(()=>[t.createTextVNode(t.toDisplayString(e[o.labelKey]),1)]),!0)])),_:3},8,["modelValue","options","value-key","label-key","level-w","level-h","expand-trigger","multiple","check-strictly"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[S.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",wt,[t.renderSlot(n.$slots,"optionHeader",{},void 0,!0),t.createElementVNode("div",{class:"lym-custom-scrollbar",style:t.normalizeStyle([{maxHeight:e.scrollMaxH},{"overflow-y":"auto"}])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value,(i=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:t.normalizeClass(["lym-select__dropdown-item lym-flex-c",{"lym-select__dropdown-item-disabled":i.disabled}]),style:t.normalizeStyle({fontWeight:p.value[e.valueKey]==i[e.valueKey]||i.checked?"bold":"normal",color:i.disabled?"#A8ABB2":p.value[e.valueKey]==i[e.valueKey]||i.checked?"#409eff":"#333333"}),onClick:e=>function(e){if(!R.value){if(o.isCascader)if(o.cascaderMultiple){const t=p.value.findIndex((t=>JSON.stringify(t)==JSON.stringify(e[o.valueKey])));-1===t?(e.checked=!0,p.value.push(e[o.valueKey])):(e.checked=!1,p.value.splice(t,1)),j()}else p.value=[...e.value],U(),setTimeout((()=>{T.value=!1,s.value=o.options}),300);else if(o.multiple){const t=p.value.findIndex((t=>t[o.valueKey]==e[o.valueKey]));-1===t?(e.checked=!0,p.value.push(e)):(e.checked=!1,p.value.splice(t,1)),j()}else p.value=e,U();K()}}(i)},[t.createElementVNode("div",Ct,[t.renderSlot(n.$slots,"optionContent",{optionItem:i},(()=>[t.createTextVNode(t.toDisplayString(i[e.labelKey]),1)]),!0)]),i.checked?(t.openBlock(),t.createBlock(z,{key:0,src:"tick-line",type:"svgicon","fill-color":"#409eff",size:"11"})):(t.openBlock(),t.createElementBlock("div",At))],14,Tt)))),128))],4)])),s.value.length||S.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Nt,"没有匹配的数据")),S.value?(t.openBlock(),t.createElementBlock("div",Rt,[S.value?(t.openBlock(),t.createBlock(z,{key:0,src:"loading-line1",type:"svgicon","fill-color":"#409eff",size:"14",class:"lym-icon-rotate-anim"})):t.createCommentVNode("",!0),Lt])):t.createCommentVNode("",!0)],64))])],6)):t.createCommentVNode("",!0)],36)),[[a,U]])}}}),qt=l(Pt,[["__scopeId","data-v-9e51ab42"]]),It=Object.freeze(Object.defineProperty({__proto__:null,default:qt},Symbol.toStringTag,{value:"Module"})),zt={key:0,style:{"margin-right":"5px"}},kt={class:"content lym-flex-c"},Bt=["onClick","onMouseenter"],Dt={key:0},Ut=t.defineComponent({__name:"LymPagination",props:{modelValue:{type:Object,default:()=>({size:10,current:1,total:0})},background:{type:Boolean,default:!1},maxPageCount:{type:Number,default:8},pageSizeList:{type:Array,default:()=>[{label:"10条/页",value:"10"},{label:"20条/页",value:"20"},{label:"30条/页",value:"30"},{label:"40条/页",value:"40"},{label:"50条/页",value:"50"}]},showPageSizeList:{type:Boolean,default:!0},layout:{type:String,default:"total, sizes, prev, pager, next, jumper"},prevText:{type:String,default:"上一页"},prevIcon:{type:String,default:"arrow-left"},nextText:{type:String,default:"下一页"},nextIcon:{type:String,default:"arrow-right"},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},fontSize:{type:[Number,String],default:"14px"},iconSize:{type:[Number,String],default:"10px"}},emits:["update:modelValue","change","sizeChange","currentChange","prevClick","nextClick"],setup(e,{emit:n}){const i=e,a=n,o=t.ref(0),l=t.ref(0),s=t.ref(0),c=t.ref(""),u=t.ref(""),d=t.ref(1),h=t.ref(""),p=t.ref(0),m=t.ref([]),f=t.ref(0),v=t.ref(0),g=t.ref(!1),_=t.ref(!1);t.watch((()=>i.modelValue),((e,t)=>{e.current===d.value&&e.size===parseInt(h.value)&&e.total===p.value||(h.value=e.size+"",d.value=e.current,p.value=e.total,S())}),{immediate:!0,deep:!0});const x=t.computed((()=>{let e="";return e+=`width: ${l.value+20}px;height: ${l.value+1.0714*o.value}px;background-color: ${i.background?"#f0f2f5":""};padding: ${.5357*o.value}px 10px;`,e+=`margin: ${i.background?"0 4px":""};`,e})),y=t.computed((()=>e=>{let t="";return t+=`font-size: ${o.value}px;`,i.disabled?(t+=`color: ${d.value===e.name?"#909399":"#a8abb2"};`,t+=`font-weight: ${d.value===e.name?"bold":"normal"};`):t+=`color: ${i.background?d.value===e.name?"white":"":d.value===e.name?"#409eff":""};`,i.disabled?t+=`background-color: ${i.background?d.value===e.name?"#ebedf0":"#f5f7fa":""};`:t+=`background-color: ${i.background?d.value===e.name?"#409eff":"#f0f2f5":""};`,t+=`padding: ${"···"===e.name?"0 6.4px":""};display: ${e.hide?"none":""};`,t+=`margin: ${i.background?"0 4px":""};`,t}));function S(){if(r(i.fontSize)||(o.value=Number(String(i.fontSize).replace("px",""))),r(i.iconSize)||(l.value=Number(String(i.iconSize).replace("px",""))),s.value=Math.ceil(i.modelValue.total/parseInt(h.value)),!(s.value<=0))if(d.value=1,m.value=[],f.value=0,v.value=0,s.value>i.maxPageCount){for(let e=1;e<=s.value;e++)e<i.maxPageCount||e===s.value?m.value.push({id:"pageId"+e,name:e,hide:!1}):(v.value+=1,m.value.push({id:"pageId"+e,name:e,hide:!0}));m.value.splice(1,0,{id:"ellipsis1",name:"···",hide:!0}),m.value.splice(m.value.length-1,0,{id:"ellipsis2",name:"···",hide:!1})}else for(let e=1;e<=s.value;e++)m.value.push({id:"pageId"+e,name:e,hide:!1})}function b(){i.disabled||(c.value="enter")}function M(){c.value="leave"}function E(){i.disabled||(u.value="enter")}function w(){u.value="leave"}function T(){g.value=!1,_.value=!1}function C(e){if(i.disabled)return;const t=m.value.find((t=>t.name===d.value+("prev"===e?-1:1)));t&&A(t)}function A(e){if(!i.disabled&&e.name!==d.value)if("···"===e.name)"ellipsis1"===e.id?N(3):"ellipsis2"===e.id&&R(3);else{const t=m.value.filter((e=>!e.hide)),n=t.findIndex((t=>t.name===e.name)),r=Math.floor(t.length/2)-1;0===n?N(1e4):n===t.length-1?R(1e4):n>r?R(1):N(1),d.value=e.name,a("update:modelValue",{size:parseInt(h.value),current:d.value,total:i.modelValue.total}),a("change")}}function N(e){if(0!==f.value)if(f.value>=e){m.value[m.value.length-2].hide=!1;for(let t=2+f.value-e;t<2+f.value;t++)m.value[t].hide=!1;f.value-=e,0===f.value&&(m.value[1].hide=!0);for(let t=m.value.length-2-v.value-e;t<m.value.length-2-v.value;t++)m.value[t].hide=!0;v.value+=e}else{m.value[m.value.length-2].hide=!1,m.value[1].hide=!0;const e=i.maxPageCount-2;let t=0,n=0;if(f.value>=e){t=2,n=2+e;for(let e=t;e<n;e++)m.value[e].hide=!1;t=m.value.length-2-v.value-e,n=m.value.length-2-v.value;for(let e=t;e<n;e++)m.value[e].hide=!0,v.value+=1}else{t=2,n=2+f.value;for(let e=t;e<n;e++)m.value[e].hide=!1;t=m.value.length-2-v.value-f.value,n=m.value.length-2-v.value;for(let e=t;e<n;e++)m.value[e].hide=!0,v.value+=1}f.value=0}}function R(e){if(0!==v.value)if(v.value>=e){m.value[1].hide=!1;for(let t=m.value.length-2-v.value;t<m.value.length-2-v.value+e;t++)m.value[t].hide=!1;v.value-=e,0===v.value&&(m.value[m.value.length-2].hide=!0);for(let t=2+f.value;t<2+f.value+e;t++)m.value[t].hide=!0;f.value+=e}else{m.value[m.value.length-2].hide=!0,m.value[1].hide=!1;const e=i.maxPageCount-2;let t=0,n=0;if(v.value>=e){t=m.value.length-2-e,n=m.value.length-2;for(let e=t;e<n;e++)m.value[e].hide=!1;t=2+f.value,n=2+f.value+e;for(let e=t;e<n;e++)m.value[e].hide=!0,f.value+=1}else{t=m.value.length-2-v.value,n=m.value.length-2;for(let e=t;e<n;e++)m.value[e].hide=!1;t=2+f.value,n=2+f.value+v.value;for(let e=t;e<n;e++)m.value[e].hide=!0,f.value+=1}v.value=0}}function L(){a("update:modelValue",{size:parseInt(h.value),current:d.value,total:i.modelValue.total}),a("change"),S()}return t.onMounted((()=>{})),(n,a)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-pagination lym-flex-c",style:t.normalizeStyle({cursor:e.disabled?"not-allowed":"pointer",display:m.value.length>1?"":"none"})},[e.showPageSizeList?(t.openBlock(),t.createElementBlock("div",zt,[t.createVNode(qt,{modelValue:h.value,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value=e),options:e.pageSizeList,width:"100px",ddbWidth:"100px",disabled:e.disabled,onSelectCompleted:L},null,8,["modelValue","options","disabled"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"prev-icon",style:t.normalizeStyle(x.value),onMouseenter:b,onMouseleave:M,onClick:a[1]||(a[1]=e=>C("prev"))},[t.createVNode(z,{src:e.prevIcon,type:"svgicon",size:l.value+"px",fillColor:e.disabled?"#a8abb2":"enter"===c.value?"#409eff":"black"},null,8,["src","size","fillColor"])],36),t.createElementVNode("div",kt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value,(n=>(t.openBlock(),t.createElementBlock("div",{key:n.id,class:"content-item",style:t.normalizeStyle(y.value(n)),onClick:e=>A(n),onMouseenter:e=>function(e){i.disabled||("ellipsis1"===e.id?g.value=!0:"ellipsis2"===e.id&&(_.value=!0))}(n),onMouseleave:T},["···"!==n.name?(t.openBlock(),t.createElementBlock("div",Dt,t.toDisplayString(n.name),1)):(t.openBlock(),t.createElementBlock("div",{key:1,style:t.normalizeStyle({transform:"ellipsis1"===n.id?"rotate(180deg)":"",padding:.3571*o.value+"px 0px"})},[t.createVNode(z,{type:"svgicon",src:"ellipsis1"===n.id?g.value?"fast-forward":"ellipsis":_.value?"fast-forward":"ellipsis",fillColor:e.disabled?"#a8abb2":"ellipsis1"===n.id?g.value?"#409eff":"black":_.value?"#409eff":"black",size:"15"},null,8,["src","fillColor"])],4))],44,Bt)))),128))]),t.createElementVNode("div",{class:"next-icon",style:t.normalizeStyle(x.value),onMouseenter:E,onMouseleave:w,onClick:a[2]||(a[2]=e=>C("next"))},[t.createVNode(z,{src:e.nextIcon,type:"svgicon",size:l.value+"px",fillColor:e.disabled?"#a8abb2":"enter"===u.value?"#409eff":"black"},null,8,["src","size","fillColor"])],36)],4))}}),Vt=l(Ut,[["__scopeId","data-v-88403e99"]]),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:Vt},Symbol.toStringTag,{value:"Module"})),Ft=t.defineComponent({__name:"LymPopover",props:{content:{type:String,default:""},direction:{type:String,default:"bottom"},offsetX:{type:[Number,String],default:0},offsetY:{type:[Number,String],default:0},bubbleMaxW:{type:String,default:"auto"},bubbleZIndex:{type:[Number,String],default:2300},trigger:{type:String,default:"hover"}},setup(e){const n=e,i=t.ref(!1),a="lymTooltip"+Math.random().toString(36).substring(2),r=t.ref(),o=t.ref(null);function l(){"click"!==n.trigger&&(null!==o.value&&(clearTimeout(o.value),o.value=null),i.value=!0)}function s(){"click"!==n.trigger&&null===o.value&&(o.value=setTimeout((()=>{i.value=!1}),300))}function c(){"hover"!==n.trigger&&(i.value=!i.value)}function d(){"hover"!==n.trigger&&(i.value=!1)}return t.onMounted((()=>{r.value=document.getElementById(a)})),(n,o)=>{const h=t.resolveDirective("lym-click-outside");return t.openBlock(),t.createElementBlock("div",{id:a,class:"lym-popover"},[t.withDirectives((t.openBlock(),t.createElementBlock("div",{onMouseenter:l,onMouseleave:s,onClick:c},[t.renderSlot(n.$slots,"reference",{},void 0,!0)],32)),[[h,d]]),t.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),direction:e.direction,"position-target":r.value,"offset-x":e.offsetX,"offset-y":e.offsetY,"max-w":e.bubbleMaxW,"z-index":e.bubbleZIndex,onMouseenter:l,onMouseleave:s},{default:t.withCtx((()=>[t.renderSlot(n.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]),!0)])),_:3},8,["modelValue","direction","position-target","offset-x","offset-y","max-w","z-index"])])}}}),Ht=l(Ft,[["__scopeId","data-v-608882d4"]]),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:Ht},Symbol.toStringTag,{value:"Module"})),Wt={key:0,style:{"margin-right":"6px",color:"white"}},Xt={key:0,viewBox:"0 0 100 100",style:{width:"100%",height:"100%"}},jt=["stroke-width"],$t=["stroke","stroke-width","opacity"],Kt={key:1,viewBox:"0 0 100 100",style:{width:"100%",height:"100%"}},Yt=["stroke-width"],Jt=["stroke","stroke-width","opacity"],Zt={class:"lym-progress-circle__text"},Qt={key:1},en={key:2,class:"lym-progress-text"},tn={key:1},nn=t.defineComponent({__name:"LymProgress",props:{percentage:{type:Number,required:!0},type:{type:String,default:"line"},lineSize:{type:Number,default:6},circleSize:{type:Number,default:100},status:{type:String,default:""},indeterminate:{type:Boolean,default:!1},transitionDuration:{type:Number,default:.3},animateDuration:{type:Number,default:6},color:{type:String,default:"#409eff"},bgColor:{type:String,default:"#ebeef5"},lineRadius:{type:Number,default:100},textInside:{type:Boolean,default:!1},fontSize:{type:Number,default:14},striped:{type:Boolean,default:!1},stripedFlow:{type:Boolean,default:!1}},setup(e){const n=e,i=t.ref(0);t.watch((()=>n.percentage),((e,t)=>{i.value=e<0?0:e>100?100:e}),{immediate:!0});const a=t.computed((()=>{let e="";return n.textInside?(e+=`height: ${n.fontSize+6}px;`,e+=`line-height: ${n.fontSize+6}px;`):e+=`height: ${n.lineSize}px;`,"line"===n.type&&(e+="flex: 1;"),e})),r=t.computed((()=>{let e="";return e+=`background-color: ${n.bgColor};`,e+=`border-radius: ${n.lineRadius}px;`,e})),o=t.computed((()=>{let e="";e+=`width: ${i.value}%;`;let t=n.color;return"success"===n.status?t="#67c23a":"exception"===n.status?t="#f56c6c":"warning"===n.status&&(t="#e6a23c"),e+=`background-color: ${t};`,e+=`border-radius: ${n.lineRadius}px;`,e+=`transition-duration: ${n.transitionDuration}s;`,(n.indeterminate||n.stripedFlow)&&(e+=`animation-duration: ${n.animateDuration}s;`),e}));return(n,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-progress",{"lym-flex-c":"line"===e.type}]),style:t.normalizeStyle({fontSize:e.fontSize+"px"})},["line"===e.type?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-progress-bar",style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:"lym-progress-bar__outer",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{class:t.normalizeClass(["lym-progress-bar__inner",{"lym-progress-indeterminate":e.indeterminate,"lym-progress-striped":e.striped,"lym-progress-striped-flow":e.stripedFlow}]),style:t.normalizeStyle(o.value)},[e.textInside?(t.openBlock(),t.createElementBlock("div",Wt,[t.renderSlot(n.$slots,"default",{percentData:{currentPercentage:i.value}},(()=>[t.createTextVNode(t.toDisplayString(i.value)+"%",1)]),!0)])):t.createCommentVNode("",!0)],6)],4)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-progress-circle",style:t.normalizeStyle({width:e.circleSize+"px",height:e.circleSize+"px"})},["circle"===e.type?(t.openBlock(),t.createElementBlock("svg",Xt,[t.createElementVNode("path",{d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",stroke:"#f5f7fa","stroke-linecap":"round","stroke-width":e.lineSize,fill:"none",style:{"stroke-dasharray":"296px, 296px","stroke-dashoffset":"0px"}},null,8,jt),t.createElementVNode("path",{d:"M 50 50 m 0 -47 a 47 47 0 1 1 0 94 a 47 47 0 1 1 0 -94",fill:"none","stroke-linecap":"round",stroke:"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"warning"===e.status?"#e6a23c":"#409eff","stroke-width":e.lineSize,style:t.normalizeStyle([{"stroke-dashoffset":"0px",transition:"all 0.6s ease 0s"},{strokeDasharray:296*i.value/100+"px, 296px"}]),opacity:0===i.value?"0":"1"},null,12,$t)])):t.createCommentVNode("",!0),"dashboard"===e.type?(t.openBlock(),t.createElementBlock("svg",Kt,[t.createElementVNode("path",{d:"M 50 50 m 0 47 a 47 47 0 1 1 0 -94 a 47 47 0 1 1 0 94",stroke:"#f5f7fa","stroke-linecap":"round","stroke-width":e.lineSize,fill:"none",style:{"stroke-dasharray":"221px, 296px","stroke-dashoffset":"-36px"}},null,8,Yt),t.createElementVNode("path",{d:"M 50 50 m 0 47 a 47 47 0 1 1 0 -94 a 47 47 0 1 1 0 94",fill:"none","stroke-linecap":"round",stroke:"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"warning"===e.status?"#e6a23c":"#409eff","stroke-width":e.lineSize,style:t.normalizeStyle([{"stroke-dashoffset":"-36px",transition:"all 0.6s ease 0s"},{strokeDasharray:230*i.value/100+"px, 296px"}]),opacity:0===i.value?"0":"1"},null,12,Jt)])):t.createCommentVNode("",!0),t.createElementVNode("div",Zt,[""!==e.status?(t.openBlock(),t.createBlock(z,{key:0,type:"svgicon",size:e.circleSize/9,src:"success"===e.status?"success-line":"exception"===e.status?"error-line":"tip-fill","fill-color":"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"#e6a23c"},null,8,["size","src","fill-color"])):(t.openBlock(),t.createElementBlock("div",Qt,[t.renderSlot(n.$slots,"default",{percentData:{currentPercentage:i.value}},(()=>[t.createTextVNode(t.toDisplayString(i.value)+"%",1)]),!0)]))])],4)),"line"!==e.type||e.textInside?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",en,[""!==e.status?(t.openBlock(),t.createBlock(z,{key:0,type:"svgicon",size:"14",src:"success"===e.status?"success-line":"exception"===e.status?"error-line":"tip-fill","fill-color":"success"===e.status?"#67c23a":"exception"===e.status?"#f56c6c":"#e6a23c"},null,8,["src","fill-color"])):(t.openBlock(),t.createElementBlock("div",tn,[t.renderSlot(n.$slots,"default",{percentData:{currentPercentage:i.value}},(()=>[t.createTextVNode(t.toDisplayString(i.value)+"%",1)]),!0)]))]))],6))}}),an=l(nn,[["__scopeId","data-v-32b4d899"]]),rn=Object.freeze(Object.defineProperty({__proto__:null,default:an},Symbol.toStringTag,{value:"Module"})),on=["onClick"],ln=t.defineComponent({__name:"LymRate",props:{modelValue:{type:Number,default:0},max:{type:Number,default:5},size:{type:Number,default:20},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},thresholds:{type:Array,default:()=>[]},defalutColor:{type:String,default:"#f7ba2a"},disabledDefaultColor:{type:String,default:"#cdd0d6"},icon:{type:String,default:"star"},defaultIcon:{type:String,default:"star-fill"},disabledDefaultIcon:{type:String,default:"star"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),o=t.ref(!1),l=t.ref({x:0,y:0}),s=t.ref(),c=t.ref({w:0,h:0,x:0,y:0}),u=t.ref(0),d=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,n)=>{e!==u.value&&(u.value=e,function(){r.value=[];for(let e=0;e<i.max;e++)u.value>0&&e<u.value?u.value%1>0&&e===Math.ceil(u.value-1)&&i.allowHalf?r.value.push({checked:!1,halfChecked:!0,isHover:!1,isHalf:!1}):r.value.push({checked:!0,halfChecked:!1,isHover:!1,isHalf:!1}):r.value.push({checked:!1,halfChecked:!1,isHover:!1,isHalf:!1});t.nextTick((()=>{s.value&&(c.value.w=s.value.offsetWidth,c.value.h=s.value.offsetHeight,c.value.x=s.value.offsetLeft,c.value.y=s.value.offsetTop)}))}())}),{immediate:!0});const h=t.computed((()=>!(!i.disabled&&!d)&&d.value)),p=t.computed((()=>e=>{let t="star-line";return t=h.value?e.halfChecked?"star-half":e.checked?"star-fill":"star-line":e.isHalf?"star-half":e.isHover?"star-fill":o.value?"star-line":e.halfChecked?"star-half":e.checked?"star-fill":"star-line",t}));function m(e){o.value=!0,l.value.x=e.clientX-c.value.x,l.value.y=e.clientY-c.value.y,g()}function f(){o.value=!1,r.value.forEach((e=>{e.isHover=!1,e.isHalf=!1}))}function v(e){l.value.x=e.clientX-c.value.x,l.value.y=e.clientY-c.value.y,g()}function g(){const e=c.value.w/i.max,t=Math.ceil(l.value.x/e);if(i.allowHalf){const t=Math.floor(l.value.x/e),n=l.value.x%e;n>0&&n<e/2?(r.value[t].isHover=!1,r.value[t].isHalf=!0):n>=e/2&&(r.value[t].isHover=!0,r.value[t].isHalf=!1)}for(let n=0;n<t;n++)r.value[n].isHover=!0;for(let n=t;n<i.max;n++)r.value[n].isHover=!1,r.value[n].isHalf=!1}return(n,o)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymRateRef",ref:s,class:"lym-rate",style:t.normalizeStyle({cursor:h.value?"not-allowed":"pointer"}),onMouseenter:m,onMouseleave:f,onMousemove:v},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,((n,o)=>(t.openBlock(),t.createElementBlock("div",{key:o,class:"lym-rate-item",onClick:e=>function(e){if(!h.value)for(let t=0;t<r.value.length;t++)t===e?(i.allowHalf?(r.value[t].halfChecked=!!r.value[t].isHalf,r.value[t].checked=!r.value[t].isHalf):r.value[t].checked=!0,u.value=r.value[t].halfChecked?t+1.5:t+1,a("update:modelValue",u.value),a("change")):t<e?(r.value[t].checked=!0,r.value[t].halfChecked=!1):(r.value[t].checked=!1,r.value[t].halfChecked=!1)}(o)},[t.createVNode(z,{type:"svgicon",src:p.value(n),fillColor:h.value?e.disabledDefaultColor:e.defalutColor,size:e.size},null,8,["src","fillColor","size"])],8,on)))),128))],36))}}),sn=l(ln,[["__scopeId","data-v-01ffc8f6"]]),cn=Object.freeze(Object.defineProperty({__proto__:null,default:sn},Symbol.toStringTag,{value:"Module"})),un={class:"lym-skeleton"},dn=t.defineComponent({__name:"LymSkeleton",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;return t.inject("global"),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{})),(e,n)=>(t.openBlock(),t.createElementBlock("div",un))}}),hn=l(dn,[["__scopeId","data-v-be55da3e"]]),pn=Object.freeze(Object.defineProperty({__proto__:null,default:hn},Symbol.toStringTag,{value:"Module"})),mn=e=>(t.pushScopeId("data-v-fb2efe09"),e=e(),t.popScopeId(),e),fn=mn((()=>t.createElementVNode("div",{class:"lym-slider__pop-tip-arrow"},null,-1))),vn=t.defineComponent({__name:"LymSlider",props:{modelValue:{type:Number,default:0},runwayColor:{type:String,default:"#e4e7ed"},barColor:{type:String,default:"#409eff"},thumbColor:{type:String,default:"#ffffff"},disabled:{type:Boolean,default:!1},disabledColor:{type:String,default:"#a8abb2"},runwaySize:{type:[String,Number],default:"6px"},thumbSize:{type:[String,Number],default:"20px"},thumbPadding:{type:[String,Number],default:"8px"},min:{type:Number,default:0},max:{type:Number,default:100},height:{type:String,default:"100%"},width:{type:String,default:"100%"},step:{type:Number,default:1},showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:e=>e},inputSize:{type:String,default:"default"},size:{type:String,default:"default"},range:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},rangeStartLabel:{type:String,default:""},rangeEndLabel:{type:String,default:""},formatValueText:{type:Function,default:e=>`${e}`},tooltipClass:{type:String,default:""},placement:{type:String,default:"top"}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,r=n,o=t.ref(),l=t.ref({w:0,h:0,x:0,y:0}),s=t.ref("leave"),c=t.ref({x:0,y:0}),u=t.ref(i.modelValue);t.watch((()=>i.modelValue),((e,t)=>{e!==Math.floor(u.value)&&(u.value=e)}));const d=t.computed((()=>S(i.runwaySize,6))),h=t.computed((()=>S(i.thumbSize,20))),p=t.computed((()=>S(i.thumbPadding,8))),m=t.computed((()=>(u.value-i.min)/(i.max-i.min))),f=t.computed((()=>{let e="";return i.vertical?e+=`width: ${h.value+2*p.value}px;height: ${i.height};`:e+=`height: ${h.value+2*p.value}px;width: ${i.width};`,i.disabled&&(e+="opacity: 0.3;cursor: not-allowed;"),e})),v=t.computed((()=>{let e="";return i.vertical?e+=`width: ${d.value}px;`:e+=`height: ${d.value}px;`,e+=`background-color: ${i.runwayColor};border-radius: ${d.value}px;`,i.disabled&&(e+="cursor: not-allowed;"),e})),g=t.computed((()=>{let e="";return i.vertical?e+=`top: 0%;left: 0;right: 0;height: ${100*m.value}%;`:e+=`top: 0;bottom: 0;left: 0%;width: ${m.value*(l.value.w-4*h.value/3)}px;`,e+=`background-color: ${i.barColor};border-radius: ${d.value}px;`,i.disabled&&(e+="cursor: not-allowed;"),e})),_=t.computed((()=>{let e="";const t=h.value+2*p.value;return e+=`width: ${t}px;height: ${t}px;padding: ${p.value}px;`,i.vertical?e+=`left: -${(t-d.value)/2}px;top: calc(${m.value*(l.value.h-4*h.value/3)}px - ${t/2}px);`:e+=`top: -${(t-d.value)/2}px;left: calc(${m.value*(l.value.w-4*h.value/3)}px - ${t/2}px);`,e+=`cursor: ${i.disabled?"not-allowed":"down"===s.value?"grabbing":"grab"};`,e})),x=t.computed((()=>{let e="";return e+=`background-color: ${i.thumbColor};width: ${h.value}px;height: ${h.value}px;`,e+=`border: 2px solid ${i.barColor};`,e})),y=t.computed((()=>{let e="";if(i.vertical){const t=l.value.y+(l.value.h-4*h.value/3)*m.value;e+=`left: ${l.value.x+l.value.w/2}px;top: ${t-4}px;transform: translate(-50%, -120%);`}else{const t=l.value.x+(l.value.w-4*h.value/3)*m.value+2*h.value/3;e+=`top: ${l.value.y-4}px;left: ${t}px;transform: translate(-50%, -100%);`}return e}));function S(e,t){let n=e;return a(e)&&(n=n.replace("px","")),n=Number(n),isNaN(n)&&(n=t),n}function b(){"down"===s.value||i.disabled||(s.value="enter")}function M(){"down"!==s.value&&(s.value="up")}function E(e){i.disabled||(e.preventDefault(),s.value="down",c.value.x=e.clientX,c.value.y=e.clientY)}function w(e){s.value="up"}function T(e){if(!i.disabled&&(e.preventDefault(),"down"===s.value)){const t=2*h.value/3;let n=0;if(i.vertical){const a=e.clientY<l.value.y+t,o=e.clientY>l.value.y+l.value.h-t,s=(l.value.h-2*t)*m.value;let d;n=e.clientY-c.value.y,c.value.x=e.clientX,c.value.y=e.clientY,d=a||o?a?0:l.value.h-2*t:s+n<0?0:s+n>=l.value.h-2*t?l.value.h-2*t:s+n;const h=d/(l.value.h-2*t);u.value=i.max*h;const p=Math.floor(u.value);r("update:modelValue",p)}else{const a=e.clientX<l.value.x+t,o=e.clientX>l.value.x+l.value.w-t,s=(l.value.w-2*t)*m.value;let d;n=e.clientX-c.value.x,c.value.x=e.clientX,c.value.y=e.clientY,d=a||o?a?0:l.value.w-2*t:s+n<0?0:s+n>=l.value.w-2*t?l.value.w-2*t:s+n;const h=d/(l.value.w-2*t);u.value=i.max*h;const p=Math.floor(u.value);r("update:modelValue",p)}}}return t.onMounted((()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",w),t.nextTick((()=>{l.value.w=o.value.offsetWidth,l.value.h=o.value.offsetHeight,l.value.x=o.value.offsetLeft,l.value.y=o.value.offsetTop}))})),t.onUnmounted((()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",w)})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymSliderRef",ref:o,class:t.normalizeClass(["lym-slider",[e.vertical?"lym-flex-column-c":"lym-flex-c"]]),style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{style:t.normalizeStyle({width:2*h.value/3+"px",height:2*h.value/3+"px"})},null,4),t.createElementVNode("div",{class:"lym-slider__runway",style:t.normalizeStyle(v.value)},[t.createElementVNode("div",{class:"lym-slider__bar",style:t.normalizeStyle(g.value)},null,4),t.createElementVNode("div",{class:"lym-slider__thumb",style:t.normalizeStyle(_.value),onMousedown:E,onMouseenter:b,onMouseleave:M},[t.createElementVNode("div",{class:"lym-slider__thumb-inner",style:t.normalizeStyle(x.value)},null,4)],36)],4),t.createElementVNode("div",{style:t.normalizeStyle({width:2*h.value/3+"px",height:2*h.value/3+"px"})},null,4),e.showTooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-slider__pop-tip",["enter"===s.value||"down"===s.value?"pop-tip-show":"pop-tip-hide"]]),style:t.normalizeStyle(y.value)},[t.renderSlot(n.$slots,"default",{},(()=>[t.createTextVNode(t.toDisplayString(e.modelValue),1)]),!0),fn],6)):t.createCommentVNode("",!0)],6))}}),gn=l(vn,[["__scopeId","data-v-fb2efe09"]]),_n=Object.freeze(Object.defineProperty({__proto__:null,default:gn},Symbol.toStringTag,{value:"Module"})),xn={class:"lym-steps lym-custom-scrollbar"},yn=t.defineComponent({__name:"LymSteps",props:{modelValue:{type:[String,Number],default:""},valueKey:{type:String,default:"id"},data:{type:Array,default:()=>[]},orientation:{type:String,default:"vertical"},fontSize:{type:[Number,String],default:"14px"},pointSize:{type:[Number,String],default:"12px"},lineSize:{type:[Number,String],default:"2px"},color:{type:String,default:"#303133"},activeColor:{type:String,default:"#409eff"},pointColor:{type:String,default:"#e4e7ed"},center:{type:Boolean,default:!1},contentPd:{type:String,default:"0 0 20px 14px"},contentItemWidth:{type:[String,Number],default:"100px"},noPointAndLine:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,o=t.ref([]),l=t.ref(""),s=t.ref(""),c=t.ref(""),u=t.ref(""),d=t.ref(-1);t.watch((()=>i.modelValue),((e,t)=>{v()})),t.watch((()=>i.data),((e,n)=>{o.value=[...e],v(),t.nextTick((()=>{const e=document.getElementsByClassName("lym-steps");e[0]&&("vertical"===i.orientation?e[0].scrollTop=0:e[0].scrollLeft=0)}))}),{immediate:!0});const h=t.computed((()=>{let e="";return l.value||g(),"vertical"===i.orientation?e+=`width: ${l.value};`:e+=`height: ${l.value};`,e})),p=t.computed((()=>{let e="";return l.value||g(),e+="position: absolute;box-sizing: border-box;z-index: 2;",e+=`width: ${l.value};`,e+=`height: ${l.value};`,"vertical"===i.orientation?e+=i.center?`top: calc(50% - ${l.value}/2);`:"top: 0;":e+=i.center?`left: calc(50% - ${l.value}/2);`:"left: 0;",e})),m=t.computed((()=>e=>{let t="";return s.value||g(),t+="position: absolute;boxsizing: border-box;z-index: 1;transition-duration: .3s;",i.center?t+=`background-color: ${e<=d.value?i.activeColor:i.pointColor};`:t+=`background-color: ${e<d.value?i.activeColor:i.pointColor};`,"vertical"===i.orientation?(i.center?(t+=`width: ${s.value};`,t+=0===e?"height: 0%;bottom: 0;":"height: 100%;top: -50%;"):t+=e===o.value.length-1?"width: 0;height: 100%;":`width: ${s.value};height: 100%;`,t+=`left: calc(50% - ${s.value}/2);`):(i.center?(t+=`height: ${s.value};`,t+=0===e?"width: 0%;right: 0;":"width: 100%;left: -50%;"):t+=e===o.value.length-1?"height: 0;width: 100%;":`height: ${s.value};width: 100%;`,t+=`top: calc(50% - ${s.value}/2);`),t})),f=t.computed((()=>{let e="";return c.value||g(),e+=`padding: ${i.contentPd};`,"vertical"===i.orientation&&(e+="flex: 1;"),e+=`font-size: ${c.value};`,e+=`color: ${i.color};`,"horizontal"===i.orientation&&(e+=`width: ${u.value};`),e}));function v(){if(i.modelValue){const e=o.value.findIndex((e=>e[i.valueKey]==i.modelValue));d.value=-1!==e?e:-1}}function g(){let e=i.pointSize;r(e)&&(e+="px"),a(e)&&(e=e.replace("px",""),isNaN(Number(e))?e="12px":e+="px"),l.value=e;let t=i.lineSize;r(t)&&(t+="px"),a(t)&&(t=t.replace("px",""),isNaN(Number(t))?t="2px":t+="px"),s.value=t;let n=i.fontSize;r(n)&&(n+="px"),a(n)&&(n=n.replace("px",""),isNaN(Number(n))?n="14px":n+="px"),c.value=n;let o=i.contentItemWidth;r(o)&&(o+="px"),a(o)&&(o=o.replace("px",""),isNaN(Number(o))?o="14px":o+="px"),u.value=o}return t.onMounted((()=>{})),(n,i)=>(t.openBlock(),t.createElementBlock("div",xn,[t.createElementVNode("div",{class:t.normalizeClass({"lym-flex-df":"horizontal"===e.orientation}),style:{"box-sizing":"border-box"}},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(["step-item",["vertical"===e.orientation?"lym-flex-df":"lym-flex-column"]])},[e.noPointAndLine?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"line-section",style:t.normalizeStyle(h.value)},[t.createElementVNode("div",{class:"point",style:t.normalizeStyle(p.value)},[t.renderSlot(n.$slots,"point",{row:{item:i,index:a,currentIndex:d.value,pointSize:e.pointSize,pointColor:e.pointColor,activeColor:e.activeColor}},(()=>[t.createElementVNode("div",{class:"default-point",style:t.normalizeStyle({backgroundColor:Number(a)<=Number(d.value)?e.activeColor:e.pointColor})},null,4)]),!0)],4),t.createElementVNode("div",{class:"line",style:t.normalizeStyle(m.value(Number(a)))},null,4)],4)),t.createElementVNode("div",{class:"content-section",style:t.normalizeStyle(f.value)},[t.renderSlot(n.$slots,"default",{row:{item:i,index:a,currentIndex:d.value,color:e.color,activeColor:e.activeColor}},void 0,!0)],4)],2)))),128))],2)]))}}),Sn=l(yn,[["__scopeId","data-v-bb115ead"]]),bn=Object.freeze(Object.defineProperty({__proto__:null,default:Sn},Symbol.toStringTag,{value:"Module"})),Mn=t.defineComponent({__name:"LymSwitch",props:{modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},width:{type:[String,Number],default:"40px"},height:{type:[String,Number],default:"20px"},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:"#409EFF"},inactiveColor:{type:String,default:"#C0CCDA"},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeIcon:{type:String,default:""},inactiveIcon:{type:String,default:""}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,o=n,l=t.ref(i.modelValue),s=t.ref(0),c=t.ref(0),u=t.inject("formDisabled",null);t.watch((()=>i.modelValue),((e,t)=>{e!==t&&(l.value=e)})),t.watch((()=>i.width),((e,t)=>{e!==t&&(r(e)&&(s.value=Number(e)),a(e)&&(s.value=Number(String(e).replace("px",""))))}),{immediate:!0}),t.watch((()=>i.height),((e,t)=>{e!==t&&(r(e)&&(c.value=Number(e)),a(e)&&(c.value=Number(String(e).replace("px",""))))}),{immediate:!0});const d=t.computed((()=>!(!i.disabled&&!u)&&u.value)),h=t.computed((()=>{let e="";return e+=`width: ${s.value}px;height: ${c.value}px;`,e+=`cursor: ${d.value?"not-allowed":"pointer"};`,e+=`opacity: ${d.value?.3:i.loading?.6:1};`,e})),p=t.computed((()=>{let e=!1;return l.value===i.activeValue&&(e=!0),e})),m=t.computed((()=>{let e="";return e+=`background-color: ${p.value?i.activeColor:i.inactiveColor};`,e+=`border-radius: ${c.value}px;`,e})),f=t.computed((()=>{let e="";return e+=`width: ${c.value-4}px;height: ${c.value-4}px;};`,e+=p.value?`left: ${s.value-c.value+2}px;`:"left: 2px;",e})),v=t.computed((()=>{let e="";return e+="color: white;",e+=`width: ${s.value-c.value}px;height: ${c.value-4}px;`,e+=`left: ${p.value?2:c.value-2}px;`,e+=`font-size: ${.6*c.value}px;line-height: ${.84*c.value}px;`,e}));function g(){d.value||i.loading||(l.value=p.value?i.inactiveValue:i.activeValue,o("update:modelValue",l.value))}return t.onMounted((()=>{})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-switch",style:t.normalizeStyle(h.value),onClick:g},[t.createElementVNode("div",{class:"lym-switch__core",style:t.normalizeStyle(m.value)},[e.activeText&&e.inactiveText?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-switch__text lym-ellipsis-line1",style:t.normalizeStyle(v.value)},t.toDisplayString(p.value?e.activeText:e.inactiveText),5)):t.createCommentVNode("",!0),e.activeIcon&&e.inactiveIcon?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-switch__text lym-flex-cc",style:t.normalizeStyle(v.value)},[t.createVNode(z,{type:"svgicon",src:p.value?e.activeIcon:e.inactiveIcon,size:.6*c.value,"fill-color":"#ffffff"},null,8,["src","size"])],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"lym-switch__action",style:t.normalizeStyle(f.value)},[e.loading?(t.openBlock(),t.createBlock(z,{key:0,class:"lym-switch-loading",type:"svgicon",src:"loading-line1",size:c.value-12,"fill-color":e.activeColor},null,8,["size","fill-color"])):t.createCommentVNode("",!0)],4)],4)],4))}}),En=l(Mn,[["__scopeId","data-v-6f687e26"]]),wn=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Tn={class:"lym-tag"},Cn=t.defineComponent({__name:"LymTag",props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"primary"},padding:{type:String,default:"2px 9px"},fontSize:{type:[Number,String],default:"12px"},round:{type:Boolean,default:!1},effect:{type:String,default:"light"},closable:{type:Boolean,default:!1}},emits:["update:modelValue","close"],setup(e,{emit:n}){const i=e,a=n,o={primary:{lightColor:"#409eff",lightBgColor:"#ecf5ff",lightBorderColor:"#d9ecff",lightHoverColor:"#409eff",darkColor:"#ffffff",darkBgColor:"#409eff",darkBorderColor:"#409eff",darkHoverColor:"#79bbff",plainColor:"#409eff",plainBgColor:"#ffffff",plainBorderColor:"#a0cfff",plainHoverColor:"#409eff"},success:{lightColor:"#67c23a",lightBgColor:"#f0f9eb",lightBorderColor:"#e1f3d8",lightHoverColor:"#67c23a",darkColor:"#ffffff",darkBgColor:"#67c23a",darkBorderColor:"#67c23a",darkHoverColor:"#95d475",plainColor:"#67c23a",plainBgColor:"#ffffff",plainBorderColor:"#b3e19d",plainHoverColor:"#67c23a"},info:{lightColor:"#909399",lightBgColor:"#f4f4f5",lightBorderColor:"#e9e9eb",lightHoverColor:"#909399",darkColor:"#ffffff",darkBgColor:"#909399",darkBorderColor:"#909399",darkHoverColor:"#909399",plainColor:"#909399",plainBgColor:"#ffffff",plainBorderColor:"#c8c9cc",plainHoverColor:"#909399"},warning:{lightColor:"#e6a23c",lightBgColor:"#fdf6ec",lightBorderColor:"#faecd8",lightHoverColor:"#e6a23c",darkColor:"#ffffff",darkBgColor:"#e6a23c",darkBorderColor:"#e6a23c",darkHoverColor:"#eebe77",plainColor:"#e6a23c",plainBgColor:"#ffffff",plainBorderColor:"#f3d19e",plainHoverColor:"#e6a23c"},danger:{lightColor:"#f56c6c",lightBgColor:"#fef0f0",lightBorderColor:"#fde2e2",lightHoverColor:"#f56c6c",darkColor:"#ffffff",darkBgColor:"#f56c6c",darkBorderColor:"#f56c6c",darkHoverColor:"#f89898",plainColor:"#f56c6c",plainBgColor:"#ffffff",plainBorderColor:"#fab6b6",plainHoverColor:"#f56c6c"}},l=t.ref(12);t.watch((()=>i.modelValue),((e,t)=>{}));const s=t.computed((()=>{let e="";return e+=`background-color: ${o[i.type][i.effect+"BgColor"]};`,e+=`border: 1px solid ${o[i.type][i.effect+"BorderColor"]};`,e+=`color: ${o[i.type][i.effect+"Color"]};`,e+=`padding: ${i.padding};`,e+=`font-size: ${r(i.fontSize)?i.fontSize+"px":i.fontSize};`,e+=`border-radius: ${i.round?"20px":"4px"};`,e}));function c(){a("close")}return t.onMounted((()=>{!function(){if(r(i.fontSize))l.value=Number(i.fontSize);else{const e=String(i.fontSize);l.value=Number(e.replace("px",""))}}()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",Tn,[t.createElementVNode("div",{class:"lym-tag-content lym-flex-c",style:t.normalizeStyle(s.value)},[t.renderSlot(n.$slots,"default",{},void 0,!0),e.closable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-flex-cc",style:t.normalizeStyle([{"margin-left":"4px"},{width:l.value+4+"px",height:l.value+4+"px"}]),onClick:c},[t.createVNode(z,{src:"close","hover-url":"#close-circle-fill",type:"svgicon",size:l.value-4,"fill-color":o[e.type][e.effect+"Color"],"need-change-hover-cusor":"","hover-color":o[e.type][e.effect+"Color"],"hover-size":l.value+4,style:{}},null,8,["size","fill-color","hover-color","hover-size"])],4)):t.createCommentVNode("",!0)],4)]))}}),An=l(Cn,[["__scopeId","data-v-fe0e21c6"]]),Nn=Object.freeze(Object.defineProperty({__proto__:null,default:An},Symbol.toStringTag,{value:"Module"})),Rn=t.defineComponent({__name:"LymTooltip",props:{content:{type:String,default:""},direction:{type:String,default:"bottom"},offsetX:{type:[Number,String],default:0},offsetY:{type:[Number,String],default:0},bubbleMaxW:{type:String,default:"auto"},bubbleZIndex:{type:[Number,String],default:2300},trigger:{type:String,default:"hover"}},setup(e){const n=e,i=t.ref(!1),a="lymTooltip"+Math.random().toString(36).substring(2),r=t.ref(),o=t.ref(null);function l(){"click"!==n.trigger&&(null!==o.value&&(clearTimeout(o.value),o.value=null),i.value=!0)}function s(){"click"!==n.trigger&&null===o.value&&(o.value=setTimeout((()=>{i.value=!1}),300))}function c(){"hover"!==n.trigger&&(i.value=!i.value)}function d(){"hover"!==n.trigger&&(i.value=!1)}return t.onMounted((()=>{r.value=document.getElementById(a)})),(n,o)=>{const h=t.resolveDirective("lym-click-outside");return t.openBlock(),t.createElementBlock("div",{id:a,class:"lym-tooltip"},[t.withDirectives((t.openBlock(),t.createElementBlock("div",{onMouseenter:l,onMouseleave:s,onClick:c},[t.renderSlot(n.$slots,"default",{},void 0,!0)],32)),[[h,d]]),t.createVNode(u,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),direction:e.direction,"position-target":r.value,"offset-x":e.offsetX,"offset-y":e.offsetY,"max-w":e.bubbleMaxW,"z-index":e.bubbleZIndex,onMouseenter:l,onMouseleave:s},{default:t.withCtx((()=>[t.renderSlot(n.$slots,"content",{},(()=>[t.createTextVNode(t.toDisplayString(e.content),1)]),!0)])),_:3},8,["modelValue","direction","position-target","offset-x","offset-y","max-w","z-index"])])}}}),Ln=l(Rn,[["__scopeId","data-v-e07bd0f3"]]),Pn=Object.freeze(Object.defineProperty({__proto__:null,default:Ln},Symbol.toStringTag,{value:"Module"})),qn=l(t.defineComponent({__name:"LymCollapse",props:{modelValue:{type:[String,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref([]),r=t.ref();return t.provide("getRef",(function(e,t,n,i){null!=e.value&&e.value.parentElement===r.value&&a.value.push({ref:e,id:t,openFn:n,closeFn:i})})),t.provide("changeOpen",(function(e,t){i.accordion&&t&&a.value.forEach((t=>{t.id!==e&&t.closeFn()}))})),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{setTimeout((()=>{a.value[0].openFn()}),3e3)})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCollapseRef",ref:r,class:"lym-collapse"},[t.renderSlot(e.$slots,"default",{},void 0,!0)],512))}}),[["__scopeId","data-v-4997daf7"]]),In=Object.freeze(Object.defineProperty({__proto__:null,default:qn},Symbol.toStringTag,{value:"Module"})),zn={style:{flex:"1"}},kn=l(t.defineComponent({__name:"LymCollapseItem",props:{identifier:{type:[String,Number],default:""},title:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.inject("getRef",null),r=t.inject("changeOpen",null),o=t.ref(),l="lymCollapseItemContentId"+Math.random().toString(36).substring(2),s=t.ref(0),c=t.ref(!1);function u(){c.value=!c.value,t.nextTick((()=>{r(i.identifier,c.value)}))}function d(){c.value=!0}function h(){c.value=!1}return t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==a&&a instanceof Function&&a(o,i.identifier,d,h);const e=document.getElementById(l);s.value=e.offsetHeight+20}))})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymCollapseItemRef",ref:o,class:"lym-collapse-item"},[t.createElementVNode("div",{class:"lym-collapse-item-title lym-flex-c",onClick:u},[t.createElementVNode("div",zn,[t.renderSlot(n.$slots,"title",{},(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),!0)]),t.createVNode(z,{type:"svgicon",src:"arrow-right",size:10,"fill-color":"#333",style:t.normalizeStyle([{"margin-right":"10px"},{transform:c.value?"rotate(90deg)":"rotate(0deg)",transitionDuration:"0.3s"}])},null,8,["style"])]),t.createElementVNode("div",{class:"lym-collapse-item-content",style:t.normalizeStyle({height:c.value?s.value+"px":"0"})},[t.createElementVNode("div",{id:l},[t.renderSlot(n.$slots,"default",{},void 0,!0)])],4)],512))}}),[["__scopeId","data-v-4085f023"]]),Bn=Object.freeze(Object.defineProperty({__proto__:null,default:kn},Symbol.toStringTag,{value:"Module"})),Dn={class:"lym-date-picker"},Un=l(t.defineComponent({__name:"LymDatePicker",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;return t.inject("global"),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{})),(e,n)=>(t.openBlock(),t.createElementBlock("div",Dn))}}),[["__scopeId","data-v-0b173540"]]),Vn=Object.freeze(Object.defineProperty({__proto__:null,default:Un},Symbol.toStringTag,{value:"Module"})),On={class:"lym-date-time-picker"},Fn=l(t.defineComponent({__name:"LymDateTimePicker",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e;return t.inject("global"),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{})),(e,n)=>(t.openBlock(),t.createElementBlock("div",On))}}),[["__scopeId","data-v-391d01b4"]]),Hn=Object.freeze(Object.defineProperty({__proto__:null,default:Fn},Symbol.toStringTag,{value:"Module"})),Gn=l(t.defineComponent({__name:"LymTimePicker",props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},isRange:{type:Boolean,default:!1},arrowControl:{type:Boolean,default:!1},popperClass:{type:String,default:""},rangeSeparator:{type:String,default:"-"},format:{type:String,default:""},valueFormat:{type:String,default:""},prefixIcon:{type:String,default:""},suffixIcon:{type:String,default:""},clearIcon:{type:String,default:""},disabledHours:{type:Function,default:null},disabledMinutes:{type:Function,default:null},disabledSeconds:{type:Function,default:null}},emits:["update:modelValue","change","blur","focus","clear","visible-change"],setup(e,{emit:n}){const i=e,a=t.ref(""),r=t.ref(!1),o=t.ref(!1);t.ref({x:0,y:0});const l=t.ref({x:0,y:0,w:0,h:0}),s=t.ref();function c(){r.value?(o.value=!0,setTimeout((()=>{r.value=!1,o.value=!1}),150)):r.value=!0}return t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{l.value.x=s.value.offsetLeft,l.value.y=s.value.offsetTop,l.value.w=s.value.offsetWidth,l.value.h=s.value.offsetHeight})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTimePickerRef",ref:s,class:"lym-time-picker"},[t.createVNode(tt,{modelValue:a.value,"onUpdate:modelValue":n[0]||(n[0]=e=>a.value=e),clearable:"",onClicc:c},null,8,["modelValue"]),r.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-picker__dropdown-box-"+(o.value?"hide":"show")]),style:t.normalizeStyle({width:"240px",height:"300px",left:l.value.x+"px",top:l.value.y+l.value.h+"px"})},null,6)):t.createCommentVNode("",!0)],512))}}),[["__scopeId","data-v-3d25fec6"]]),Wn=Object.freeze(Object.defineProperty({__proto__:null,default:Gn},Symbol.toStringTag,{value:"Module"})),Xn={class:"lym-loading__text"},jn=l(t.defineComponent({__name:"LymLoading",props:{target:{type:HTMLElement,default:null},text:{type:String,default:"加载中.."},textColor:{type:String,default:"#409eff"},textSize:{type:Number,default:14},textWeight:{type:String,default:"normal"},textAlign:{type:String,default:"vertical-center"},bgColor:{type:String,default:"rgba(255, 255, 255, 0.9)"},icon:{type:String,default:"loading-line1"},iconSize:{type:Number,default:20},iconColor:{type:String,default:"#409eff"},zIndex:{type:Number,default:2200},duration:{type:Number,default:0}},setup(e){const n=e,i=t.ref(!1),a=t.computed((()=>{let e="";if(e+=`background-color: ${n.bgColor};`,e+=`z-index: ${n.zIndex};`,e+=`color: ${n.textColor};`,e+=`font-size: ${n.textSize}px;`,e+=`font-weight: ${n.textWeight};`,n.target){const t=n.target.offsetLeft;e+=`top: ${n.target.offsetTop}px;left: ${t}px;width: ${n.target.offsetWidth}px;height: ${n.target.offsetHeight}px;`}else e+="top: 0;left: 0;right: 0;bottom: 0;";return e}));return t.onMounted((()=>{i.value=!1,n.duration&&setTimeout((()=>{i.value=!0,setTimeout((()=>{i.value=!1}),300)}),n.duration-300)})),(n,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["lym-loading lym-flex-cc",[i.value?"lym-gradually-display":"lym-gradually-appear"]]),style:t.normalizeStyle(a.value)},[t.createElementVNode("div",{class:t.normalizeClass(["lym-loading__content",["horizontal-center"===e.textAlign?"lym-flex-cc":"lym-flex-column-cc"]])},[e.icon?(t.openBlock(),t.createBlock(z,{key:0,src:e.icon,type:"svgicon","fill-color":e.iconColor,size:e.iconSize,class:"lym-loading__icon lym-icon-rotate-anim"},null,8,["src","fill-color","size"])):t.createCommentVNode("",!0),t.createElementVNode("div",Xn,t.toDisplayString(e.text),1)],2)],6))}}),[["__scopeId","data-v-9fee0884"]]),$n=Object.freeze(Object.defineProperty({__proto__:null,default:jn},Symbol.toStringTag,{value:"Module"})),Kn={class:"lym-notification__content"},Yn=l(t.defineComponent({__name:"LymNotification",props:{content:{type:String,default:""},type:{type:String,default:"info"},top:{type:Number,default:60},openDuration:{type:Number,default:3e3},maxWidth:{type:Number,default:400},maxHeight:{type:Number,default:40},fontSize:{type:Number,default:14},padding:{type:String,default:"8px 12px"},isPlain:{type:Boolean,default:!1},callback:{type:Function,default:()=>{}}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a="lym-notification-"+Math.random().toString(36).substring(2,15),r=t.ref(!1),o=t.ref(!1),l=t.ref(),s=t.ref(null),c=t.ref(0),u={success:{color:"#67c23a",icon:"success-line"},warning:{color:"#e6a23c",icon:"warning-icon"},danger:{color:"#f56c6c",icon:"error-icon"},default:{color:"#909399",icon:"message-icon"}},d=t.computed((()=>{let e="";switch(e+=`max-width: ${i.maxWidth}px;`,e+=`max-height: ${i.maxHeight}px;`,e+=`font-size: ${i.fontSize}px;`,e+=`padding: ${i.padding};`,i.type){case"success":i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #67c23a;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #e1f3d8;background-color: #f0f9eb;color: #67c23a;";break;case"warning":i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #e6a23c;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #faecd8;background-color: #fdf6ec;color: #e6a23c;";break;case"danger":i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #f56c6c;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #fde2e2;background-color: #fef0f0;color: #f56c6c;";break;default:i.isPlain?e+="border-color: #ffffff;background-color: #ffffff;color: #909399;box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);":e+="border-color: #e9e9eb;background-color: #f4f4f5;color: #909399;"}return e}));function h(){null!==s.value&&(clearTimeout(s.value),s.value=null)}function p(){c.value=c.value-i.maxHeight-10<=0?0:c.value-i.maxHeight-10,l.value.style.top=`${c.value}px`}return t.onMounted((()=>{c.value=i.top,o.value=!1,r.value=!0,l.value.style.top=c.value-20+"px",l.value.style.opacity=0,setTimeout((()=>{l.value.style.top=`${c.value}px`,l.value.style.opacity=1}),10),h(),s.value=setTimeout((()=>{o.value=!0,l.value.style.top=c.value-20+"px",l.value.style.opacity=0}),i.openDuration-300),i.callback(p)})),t.onUnmounted((()=>{h()})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{id:a,ref_key:"lymNotification",ref:l,class:"lym-notification",style:t.normalizeStyle(d.value)},[t.createVNode(z,{src:u[e.type].icon,type:"svgicon","fill-color":u[e.type].color,size:"22",style:{"margin-right":"8px"}},null,8,["src","fill-color"]),t.createElementVNode("div",Kn,t.toDisplayString(e.content),1)],4))}}),[["__scopeId","data-v-48e86de8"]]),Jn=Object.freeze(Object.defineProperty({__proto__:null,default:Yn},Symbol.toStringTag,{value:"Module"})),Zn={class:"lym-flex-cr"},Qn=t.defineComponent({__name:"LymNotificationBox",props:{title:{type:String,default:"提示"},content:{type:String,default:""},sureText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},textCenter:{type:Boolean,default:!1},textColor:{type:String,default:"#606266"},showCancel:{type:Boolean,default:!0},sureCallback:{type:Function,default:()=>{}},cancelCallback:{type:Function,default:()=>{}}},setup(e){const n=e,i=t.ref(!1);function a(){i.value=!1,n.sureCallback()}function r(){i.value=!1,n.cancelCallback()}return t.onMounted((()=>{i.value=!0})),(n,o)=>(t.openBlock(),t.createBlock(Re,{modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=e=>i.value=e),"z-index":999999,"show-close":!1,title:e.title},{footer:t.withCtx((()=>[t.createElementVNode("div",Zn,[t.createVNode(B,{type:"primary",onClick:a},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.sureText),1)])),_:1}),e.showCancel?(t.openBlock(),t.createBlock(B,{key:0,style:{"margin-left":"15px"},onClick:r},{default:t.withCtx((()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)])),_:1})):t.createCommentVNode("",!0)])])),default:t.withCtx((()=>[t.createElementVNode("div",{class:"lym-notification-box-content",style:t.normalizeStyle({textAlign:e.textCenter?"center":"left",color:e.textColor})},t.toDisplayString(e.content),5)])),_:1},8,["modelValue","title"]))}}),ei=Object.freeze(Object.defineProperty({__proto__:null,default:Qn},Symbol.toStringTag,{value:"Module"})),ti={class:"lym-table-header lym-flex-df"},ni={class:"lym-table-body"},ii=["id"],ai=l(t.defineComponent({__name:"LymTable",props:{modelValue:{type:Boolean,default:!1},data:{type:Object,default:()=>({})},height:{type:[String,Number],default:"auto"},maxHeight:{type:[String,Number],default:""},stripe:{type:Boolean,default:!1},borderHorizontal:{type:Boolean,default:!1},borderVertical:{type:Boolean,default:!1},size:{type:String,default:""},fit:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},highlightCurrentRow:{type:Boolean,default:!1},currentRowKey:{type:String,default:""},rowClassName:{type:[Function,String],default:""},rowStyle:{type:[Function,Object],default:()=>({})},cellClassName:{type:[Function,String],default:""},cellStyle:{type:[Function,Object],default:()=>({})},headerRowClassName:{type:[Function,String],default:""},headerRowStyle:{type:[Function,Object],default:()=>({})},headerCellClassName:{type:[Function,String],default:""},headerCellStyle:{type:[Function,Object],default:()=>({})},rowKey:{type:[Function,String],default:""},emptyText:{type:String,default:"暂无数据"},defaultExpandAll:{type:Boolean,default:!1},expandRowKeys:{type:Array,default:()=>[]},defaultSort:{type:Object,default:()=>({})},tooltipEffect:{type:String,default:"dark"},showSummary:{type:Boolean,default:!1},sumText:{type:String,default:"合计"},summaryMethod:{type:Function,default:null},spanMethod:{type:Function,default:null},selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},lazy:{type:Boolean,default:!1},load:{type:Function,default:null},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},showOverflowTooltip:{type:Boolean,default:!1}},emits:["update:modelValue","select","selectAll","selectionChange","cellMouseEnter","cellMouseLeave","cellClick","cellDblclick","cellContextmenu","rowClick","rowContextmenu","rowDblclick","headerClick","headerContextmenu","sortChange","filterChange","currentChange","headerDragend","expandChange"],setup(e,{emit:n}){const i=e,a=t.ref(),r=t.ref([]),o=t.ref([]),l=t.ref([]),s=t.ref(0),c=t.ref(0);return t.provide("getRef",(function(e,t,n,r){if(null!=e.value&&e.value.parentElement.parentElement.parentElement===a.value){o.value.push({ref:e,setMaxH:r});const t=parseInt(e.value.parentElement.id.replace("lymTableRow",""));n(i.data[t],t)}})),t.provide("getRowH",(function(e){l.value.push(e),function(){if(l.value.length!==s.value)return;const e=[];for(let t=0;t<c.value;t++){const n=l.value.map((e=>e[t])),i=Math.max(...n);e.push(i)}o.value.forEach((t=>{t.setMaxH(e)}))}()})),t.provide("changeStyle",(function(e,t){r.value.forEach((n=>{n.headerName===t&&(n.style=e)}))})),t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{l.value=[],r.value=[];let e=[],t=[];for(let n=0;n<i.data.length;n++){c.value++;const a=i.data[n];t=Object.keys(a),t.length>=e.length&&(e=[...t])}for(let n=0;n<e.length;n++){const t=e[n];r.value.push({headerName:t,style:""})}s.value=r.value.length})),(n,i)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTableRef",ref:a,class:"lym-table"},[t.createElementVNode("div",ti,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,((e,n)=>(t.openBlock(),t.createElementBlock("div",{key:"lymTableHeader"+n},t.toDisplayString(e),1)))),128))]),t.createElementVNode("div",ni,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,((e,i)=>(t.openBlock(),t.createElementBlock("div",{class:"lym-table__row lym-flex-df",key:"lymTableRow"+i,id:"lymTableRow"+i},[t.renderSlot(n.$slots,"default",{},void 0,!0)],8,ii)))),128))]),t.renderSlot(n.$slots,"append",{},void 0,!0),t.renderSlot(n.$slots,"empty",{},void 0,!0)],512))}}),[["__scopeId","data-v-e88e724d"]]),ri=Object.freeze(Object.defineProperty({__proto__:null,default:ai},Symbol.toStringTag,{value:"Module"})),oi={style:{"text-align":"center"}},li=l(t.defineComponent({__name:"LymTableColumn",props:{type:{type:String,default:"default"},index:{type:[Number,Function],default:-1},label:{type:String,default:""},columnKey:{type:String,default:""},prop:{type:String,default:""},width:{type:[Number,String],default:""},minWidth:{type:[Number,String],default:""},fixed:{type:[Boolean,String],default:!1},renderHeader:{type:Function,default:null},sortable:{type:[Boolean,String],default:!1},sortMethod:{type:Function,default:null},sortBy:{type:[Function,String,Object],default:null},sortOrders:{type:Array,default:()=>["ascending",null,"descending"]},resizable:{type:Boolean,default:!0},formatter:{type:Function,default:null},showOverflowTooltip:{type:Boolean,default:!1},align:{type:String,default:"center"},headerAlign:{type:String,default:"center"},className:{type:String,default:""},labelClassName:{type:String,default:""},selectable:{type:Function,default:null},reserveSelection:{type:Boolean,default:!1},filters:{type:Array,default:()=>[]},filterPlacement:{type:String,default:"bottom"},filterMultiple:{type:Boolean,default:!0},filterMethod:{type:Function,default:null},filteredValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(e,{expose:n,emit:i}){const a=e;t.ref([]);const r=t.ref({}),o=t.inject("getRef",null);t.inject("getRowH",null);const l=t.inject("changeStyle",null),s=t.ref(),c=t.ref(-1);function u(e,t){r.value=e,c.value=t}function d(e){}return t.watch((()=>a.headerAlign),((e,t)=>{var n;e!==t&&(n={"text-align":e},null!==l&&l instanceof Function&&l(n,a.prop))}),{immediate:!0}),t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==o&&o instanceof Function&&o(s,a.prop,u,d)}))})),n({setDataList:u}),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTableColumnRef",ref:s,class:"lym-table-column"},[t.createElementVNode("div",oi,[t.renderSlot(e.$slots,"default",{rowData:{row:r.value,index:c.value}},(()=>[t.createTextVNode(t.toDisplayString(r.value[a.prop]),1)]),!0)]),t.renderSlot(e.$slots,"filter-icon",{},void 0,!0)],512))}}),[["__scopeId","data-v-718e58a8"]]),si=Object.freeze(Object.defineProperty({__proto__:null,default:li},Symbol.toStringTag,{value:"Module"})),ci=t.defineComponent({__name:"LymTabPane",props:{identifier:{type:[String,Number],default:!1},label:{type:String,default:""},closable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.inject("getRef",null),r=t.inject("removeRef",null),o=t.ref();return t.computed((()=>0)),t.onMounted((()=>{t.nextTick((()=>{null!==a&&a instanceof Function&&a(o,i.identifier,i.label,i.disabled)}))})),t.onUnmounted((()=>{null!==r&&r instanceof Function&&r(i.identifier)})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTabPaneRef",ref:o,class:"lym-tab-pane"},[t.renderSlot(e.$slots,"default")],512))}}),ui=Object.freeze(Object.defineProperty({__proto__:null,default:ci},Symbol.toStringTag,{value:"Module"})),di=["onClick","onMouseover"],hi=l(t.defineComponent({__name:"LymTabs",props:{modelValue:{type:[String,Number],default:""},type:{type:String,default:""},tabPosition:{type:String,default:"top"},closable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},stretch:{type:Boolean,default:!1},fontSize:{type:[String,Number],default:"14px"},fontWeight:{type:String,default:"normal"},color:{type:String,default:"#333"},activeColor:{type:String,default:"#409eff"},headerLineColor:{type:String,default:"#e4e7ed"},headerActiveLineColor:{type:String,default:"#409eff"},headerLineHeight:{type:[String,Number],default:"2px"},headerItemPadding:{type:String,default:"5px 10px"},headerItemWidth:{type:[String,Number],default:"auto"},isFirstHeaderItemNoLeftPd:{type:Boolean,default:!1},tabContentPadding:{type:String,default:"10px"}},emits:["update:modelValue","tabChange","tabRemove","tabAdd"],setup(e,{emit:n}){const i=e,r=n,o=t.ref([]),l=t.ref(),s=t.ref(""),c=t.ref(0),u=t.ref(null),d=t.ref("0"),h=t.ref("0"),p=t.ref(0),m=t.ref(0),f=t.ref(-1),v=t.ref(0),g=t.ref(0),_=t.ref([]),x=t.ref(null);t.provide("getRef",(function(e,t,n,i){null!=e.value&&e.value.parentElement.parentElement===l.value&&(e.value.style.display="none",o.value.push({id:t,ref:e,label:n,contentWOrH:0,disabled:i}));x.value&&(clearTimeout(x.value),x.value=null);x.value=setTimeout((()=>{E()}),300)})),t.provide("removeRef",(function(e){const t=o.value.findIndex((t=>t.id==e));-1!==t&&o.value.splice(t,1);s.value==e&&(s.value=o.value.length?o.value[0].id:"",c.value=0,r("update:modelValue",s.value));x.value&&(clearTimeout(x.value),x.value=null);x.value=setTimeout((()=>{E()}),300)})),t.watch((()=>i.modelValue),((e,n)=>{e!==n&&(s.value=e,t.nextTick((()=>{w()})))}));const y=t.computed((()=>{let e="lym-flex-column";return e="left"===i.tabPosition||"right"===i.tabPosition?" lym-flex-df":"lym-flex-column",e})),S=t.computed((()=>(e,t)=>{let n="";n+=`font-size: ${a(i.fontSize)?i.fontSize:i.fontSize+"px"};`,n+=`color: ${e.disabled?"#ccc":s.value==e.id||f.value===t?i.activeColor:i.color};`,n+=`font-weight: ${i.fontWeight};`;const r=i.headerItemPadding.split(" ");m.value=parseInt(r[0].replace("px","")),p.value=parseInt(r[r.length-1].replace("px","")),i.isFirstHeaderItemNoLeftPd?n+=`padding: ${0===t?m.value+"px "+p.value+"px "+m.value+"px 0px":i.headerItemPadding};`:n+=`padding: ${i.headerItemPadding};`,"left"!==i.tabPosition&&"right"!==i.tabPosition||(n+="white-space: wrap;word-break: break-all;"),"card"===i.type&&(n+=`border-top: 1px solid ${i.headerLineColor};`,"right"===i.tabPosition?n+=`border-right: 1px solid ${i.headerLineColor};`:n+=`border-left: 1px solid ${i.headerLineColor};`,t===o.value.length-1&&("left"===i.tabPosition||"right"===i.tabPosition?(n+=`border-bottom: 1px solid ${i.headerLineColor};`,n+="left"===i.tabPosition?"border-bottom-left-radius: 4px;":"border-bottom-right-radius: 4px;"):(n+=`border-right: 1px solid ${i.headerLineColor};`,n+="border-top-right-radius: 4px;")),0===t&&(n+="right"===i.tabPosition?"border-top-right-radius: 4px;":"border-top-left-radius: 4px;")),"border-card"===i.type&&(c.value!==t?(n+="background-color: #F5F7FA;","top"===i.tabPosition?n+=`border-bottom: 1px solid ${i.headerLineColor};`:"bottom"===i.tabPosition?n+=`border-top: 1px solid ${i.headerLineColor};`:"left"===i.tabPosition?n+=`border-right: 1px solid ${i.headerLineColor};`:n+=`border-left: 1px solid ${i.headerLineColor};`):(n+="background-color: white;",0===t?"top"===i.tabPosition||"bottom"===i.tabPosition?n+=`border-right: 1px solid ${i.headerLineColor};`:n+=`border-bottom: 1px solid ${i.headerLineColor};`:"top"===i.tabPosition||"bottom"===i.tabPosition?(n+=`border-right: 1px solid ${i.headerLineColor};`,n+=`border-left: 1px solid ${i.headerLineColor};`):(n+=`border-bottom: 1px solid ${i.headerLineColor};`,n+=`border-top: 1px solid ${i.headerLineColor};`)));let l="auto";return"auto"!==i.headerItemWidth?l=a(i.headerItemWidth)?i.headerItemWidth:i.headerItemWidth+"px":"left"!==i.tabPosition&&"right"!==i.tabPosition||(l="100px"),n+=`width: ${l};`,n})),b=t.computed((()=>{let e="";e+=`background-color: ${i.headerLineColor};`;const t=a(i.headerLineHeight)?i.headerLineHeight:i.headerLineHeight+"px";let n=!1;return"top"===i.tabPosition||"bottom"===i.tabPosition?(e+=`height: ${""===i.type?t:"1px"};`,l.value&&(n=g.value>l.value.clientWidth),n?"top"!==i.tabPosition&&"bottom"!==i.tabPosition||"border-card"!==i.type?e+=`width: ${g.value}px;`:e+="position: absolute;right: 0;top: 1000px;":"border-card"===i.type&&l.value&&("top"===i.tabPosition?e+=`width: ${l.value.clientWidth-g.value-2}px;margin-left: ${g.value+2}px;margin-top: -1px;`:e+=`width: ${l.value.clientWidth-g.value-2}px;position: absolute;right: 0;top: 0;`)):(e+=`width: ${""===i.type?t:"1px"};`,l.value&&(n=g.value>l.value.clientHeight),n?"left"!==i.tabPosition&&"right"!==i.tabPosition||"border-card"!==i.type?e+=`height: ${g.value}px;`:e+="position: absolute;left: 1000px;top: 0;":"border-card"===i.type&&l.value&&("left"===i.tabPosition?e+=`height: ${l.value.clientHeight-g.value-2}px;margin-top: ${g.value+2}px;margin-left: -1px;`:e+=`height: ${l.value.clientHeight-g.value-2}px;position: absolute;left: 0;bottom: 0;`)),e})),M=t.computed((()=>{let e="";e+=`background-color: ${i.headerActiveLineColor};`;const t=a(i.headerLineHeight)?i.headerLineHeight:i.headerLineHeight+"px",n=o.value.length?o.value[c.value].contentWOrH+"px":"0";return"top"===i.tabPosition||"bottom"===i.tabPosition?(e+=`height: ${t};`,e+=`width: ${n};`,e+=`left: ${d.value};`):(e+=`height: ${n};`,e+=`width: ${t};`,e+=`top: ${h.value};`),e}));function E(){s.value=i.modelValue;const e=document.getElementsByClassName("lym-tabs-content");e&&e.length&&(v.value=e[0].children.length),u.value&&(clearInterval(u.value),u.value=null),u.value=setInterval((()=>{o.value.length===v.value&&(s.value||(s.value=o.value[0].id,o.value[0].ref.style.display="block",r("update:modelValue",o.value[0].id)),t.nextTick((()=>{w()})),clearInterval(u.value),u.value=null)}),100)}async function w(){if(!_.value.length){const e=document.getElementsByClassName("lym-tabs-header");e&&e.length&&(_.value=e[0].children)}let e=0;g.value=0;for(let t=0;t<o.value.length;t++){const n=o.value[t],a=1,r=2,l=window.getComputedStyle(_.value[t]),u=Number(l.width.replace("px","")),f=Number(l.height.replace("px",""));"top"===i.tabPosition||"bottom"===i.tabPosition?(g.value+=u,n.contentWOrH=u,n.contentWOrH-=i.isFirstHeaderItemNoLeftPd&&0===t?p.value:2*p.value,n.contentWOrH-=r):(g.value+=f,n.contentWOrH=f,n.contentWOrH-=2*m.value,n.contentWOrH-=r),n.id===s.value&&("top"===i.tabPosition||"bottom"===i.tabPosition?(e+=i.isFirstHeaderItemNoLeftPd&&0===t?0:p.value,e+=a):(e+=m.value,e+=a),c.value=t,o.value[t].ref.style.display="block",h.value=d.value=e+"px");const v=1*p.value+n.contentWOrH+r,x=2*p.value+n.contentWOrH+r,y=2*m.value+n.contentWOrH+r;"top"===i.tabPosition||"bottom"===i.tabPosition?e+=i.isFirstHeaderItemNoLeftPd&&0===t?v:x:e+=y}}return t.onMounted((()=>{})),(n,a)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymTabsRef",ref:l,class:t.normalizeClass(["lym-tabs",[y.value]]),style:t.normalizeStyle({border:"border-card"===e.type?"1px solid "+e.headerLineColor:"none"})},["bottom"===e.tabPosition||"right"===e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-tabs-content",style:t.normalizeStyle({padding:e.tabContentPadding})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["top"===i.tabPosition||"bottom"===i.tabPosition?"lym-flex-column lym-custom-scrollbar":"lym-flex-df no-scrollbar"]),style:{overflow:"auto","background-color":"white",position:"relative"}},["right"===e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-tabs-header-line",style:t.normalizeStyle(b.value)},[""===e.type?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(M.value)},null,4)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["lym-tabs-header",["top"===i.tabPosition||"bottom"===i.tabPosition?"lym-flex-c":"lym-flex-column"]]),style:t.normalizeStyle({backgroundColor:"border-card"===e.type?"#F5F7FA":"white"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.value,((i,l)=>(t.openBlock(),t.createElementBlock("div",{key:i.id,class:"lym-tabs-item lym-flex-cc",style:t.normalizeStyle(S.value(i,l)),onClick:e=>function(e){o.value[c.value].ref.style.display="none",o.value[e].ref.style.display="block",c.value=e,r("update:modelValue",o.value[e].id),r("tabChange",o.value[e].id)}(l),onMouseover:e=>f.value=l,onMouseleave:a[0]||(a[0]=e=>f.value=-1)},[t.renderSlot(n.$slots,"label",{labelData:{item:i,index:l,checked:c.value===l||f.value===l,actColor:e.activeColor,color:e.color}},(()=>[t.createTextVNode(t.toDisplayString(i.label),1)]),!0)],44,di)))),128))],6),"right"!==e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-tabs-header-line",style:t.normalizeStyle(b.value)},[""===e.type?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(M.value)},null,4)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)],2),"top"===e.tabPosition||"left"===e.tabPosition?(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-tabs-content",style:t.normalizeStyle({padding:e.tabContentPadding})},[t.renderSlot(n.$slots,"default",{},void 0,!0)],4)):t.createCommentVNode("",!0)],6))}}),[["__scopeId","data-v-0987ba76"]]),pi=Object.freeze(Object.defineProperty({__proto__:null,default:hi},Symbol.toStringTag,{value:"Module"})),mi="166",fi=1,vi=2,gi=3,_i=0,xi=1,yi=2,Si=100,bi=101,Mi=102,Ei=200,wi=201,Ti=202,Ci=203,Ai=204,Ni=205,Ri=206,Li=207,Pi=208,qi=209,Ii=210,zi=211,ki=212,Bi=213,Di=214,Ui=0,Vi=1,Oi=2,Fi=0,Hi=1,Gi=2,Wi=3,Xi=4,ji=5,$i=6,Ki=7,Yi=301,Ji=302,Zi=306,Qi=1e3,ea=1001,ta=1002,na=1003,ia=1004,aa=1005,ra=1006,oa=1007,la=1008,sa=1009,ca=1010,ua=1011,da=1012,ha=1013,pa=1014,ma=1015,fa=1016,va=1017,ga=1018,_a=1020,xa=35902,ya=1021,Sa=1022,ba=1023,Ma=1024,Ea=1025,wa=1026,Ta=1027,Ca=1028,Aa=1029,Na=1030,Ra=1031,La=1033,Pa=33776,qa=33777,Ia=33778,za=33779,ka=35840,Ba=35841,Da=35842,Ua=35843,Va=36196,Oa=37492,Fa=37496,Ha=37808,Ga=37809,Wa=37810,Xa=37811,ja=37812,$a=37813,Ka=37814,Ya=37815,Ja=37816,Za=37817,Qa=37818,er=37819,tr=37820,nr=37821,ir=36492,ar=36494,rr=36495,or=36283,lr=36284,sr=36285,cr=36286,ur="",dr="srgb",hr="srgb-linear",pr="display-p3",mr="display-p3-linear",fr="linear",vr="srgb",gr="rec709",_r="p3",xr=7680,yr=512,Sr=513,br=514,Mr=515,Er=516,wr=517,Tr=518,Cr=519,Ar="300 es",Nr=2e3,Rr=2001;class Lr{addEventListener(e,t){void 0===this._listeners&&(this._listeners={});const n=this._listeners;void 0===n[e]&&(n[e]=[]),-1===n[e].indexOf(t)&&n[e].push(t)}hasEventListener(e,t){if(void 0===this._listeners)return!1;const n=this._listeners;return void 0!==n[e]&&-1!==n[e].indexOf(t)}removeEventListener(e,t){if(void 0===this._listeners)return;const n=this._listeners[e];if(void 0!==n){const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}dispatchEvent(e){if(void 0===this._listeners)return;const t=this._listeners[e.type];if(void 0!==t){e.target=this;const n=t.slice(0);for(let t=0,i=n.length;t<i;t++)n[t].call(this,e);e.target=null}}}const Pr=["00","01","02","03","04","05","06","07","08","09","0a","0b","0c","0d","0e","0f","10","11","12","13","14","15","16","17","18","19","1a","1b","1c","1d","1e","1f","20","21","22","23","24","25","26","27","28","29","2a","2b","2c","2d","2e","2f","30","31","32","33","34","35","36","37","38","39","3a","3b","3c","3d","3e","3f","40","41","42","43","44","45","46","47","48","49","4a","4b","4c","4d","4e","4f","50","51","52","53","54","55","56","57","58","59","5a","5b","5c","5d","5e","5f","60","61","62","63","64","65","66","67","68","69","6a","6b","6c","6d","6e","6f","70","71","72","73","74","75","76","77","78","79","7a","7b","7c","7d","7e","7f","80","81","82","83","84","85","86","87","88","89","8a","8b","8c","8d","8e","8f","90","91","92","93","94","95","96","97","98","99","9a","9b","9c","9d","9e","9f","a0","a1","a2","a3","a4","a5","a6","a7","a8","a9","aa","ab","ac","ad","ae","af","b0","b1","b2","b3","b4","b5","b6","b7","b8","b9","ba","bb","bc","bd","be","bf","c0","c1","c2","c3","c4","c5","c6","c7","c8","c9","ca","cb","cc","cd","ce","cf","d0","d1","d2","d3","d4","d5","d6","d7","d8","d9","da","db","dc","dd","de","df","e0","e1","e2","e3","e4","e5","e6","e7","e8","e9","ea","eb","ec","ed","ee","ef","f0","f1","f2","f3","f4","f5","f6","f7","f8","f9","fa","fb","fc","fd","fe","ff"],qr=Math.PI/180,Ir=180/Math.PI;function zr(){const e=4294967295*Math.random()|0,t=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(Pr[255&e]+Pr[e>>8&255]+Pr[e>>16&255]+Pr[e>>24&255]+"-"+Pr[255&t]+Pr[t>>8&255]+"-"+Pr[t>>16&15|64]+Pr[t>>24&255]+"-"+Pr[63&n|128]+Pr[n>>8&255]+"-"+Pr[n>>16&255]+Pr[n>>24&255]+Pr[255&i]+Pr[i>>8&255]+Pr[i>>16&255]+Pr[i>>24&255]).toLowerCase()}function kr(e,t,n){return Math.max(t,Math.min(n,e))}function Br(e,t,n){return(1-n)*e+n*t}function Dr(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw new Error("Invalid component type.")}}function Ur(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(4294967295*e);case Uint16Array:return Math.round(65535*e);case Uint8Array:return Math.round(255*e);case Int32Array:return Math.round(2147483647*e);case Int16Array:return Math.round(32767*e);case Int8Array:return Math.round(127*e);default:throw new Error("Invalid component type.")}}class Vr{constructor(e=0,t=0){Vr.prototype.isVector2=!0,this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){const t=this.x,n=this.y,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6],this.y=i[1]*t+i[4]*n+i[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(kr(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){const n=Math.cos(t),i=Math.sin(t),a=this.x-e.x,r=this.y-e.y;return this.x=a*n-r*i+e.x,this.y=a*i+r*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class Or{constructor(e,t,n,i,a,r,o,l,s){Or.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1],void 0!==e&&this.set(e,t,n,i,a,r,o,l,s)}set(e,t,n,i,a,r,o,l,s){const c=this.elements;return c[0]=e,c[1]=i,c[2]=o,c[3]=t,c[4]=a,c[5]=l,c[6]=n,c[7]=r,c[8]=s,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){const t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,a=this.elements,r=n[0],o=n[3],l=n[6],s=n[1],c=n[4],u=n[7],d=n[2],h=n[5],p=n[8],m=i[0],f=i[3],v=i[6],g=i[1],_=i[4],x=i[7],y=i[2],S=i[5],b=i[8];return a[0]=r*m+o*g+l*y,a[3]=r*f+o*_+l*S,a[6]=r*v+o*x+l*b,a[1]=s*m+c*g+u*y,a[4]=s*f+c*_+u*S,a[7]=s*v+c*x+u*b,a[2]=d*m+h*g+p*y,a[5]=d*f+h*_+p*S,a[8]=d*v+h*x+p*b,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[1],i=e[2],a=e[3],r=e[4],o=e[5],l=e[6],s=e[7],c=e[8];return t*r*c-t*o*s-n*a*c+n*o*l+i*a*s-i*r*l}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],a=e[3],r=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=c*r-o*s,d=o*l-c*a,h=s*a-r*l,p=t*u+n*d+i*h;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return e[0]=u*m,e[1]=(i*s-c*n)*m,e[2]=(o*n-i*r)*m,e[3]=d*m,e[4]=(c*t-i*l)*m,e[5]=(i*a-o*t)*m,e[6]=h*m,e[7]=(n*l-s*t)*m,e[8]=(r*t-n*a)*m,this}transpose(){let e;const t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){const t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,i,a,r,o){const l=Math.cos(a),s=Math.sin(a);return this.set(n*l,n*s,-n*(l*r+s*o)+r+e,-i*s,i*l,-i*(-s*r+l*o)+o+t,0,0,1),this}scale(e,t){return this.premultiply(Fr.makeScale(e,t)),this}rotate(e){return this.premultiply(Fr.makeRotation(-e)),this}translate(e,t){return this.premultiply(Fr.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<9;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return(new this.constructor).fromArray(this.elements)}}const Fr=new Or;function Hr(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Gr(e){return document.createElementNS("http://www.w3.org/1999/xhtml",e)}function Wr(){const e=Gr("canvas");return e.style.display="block",e}const Xr={};function jr(e){e in Xr||(Xr[e]=!0)}const $r=(new Or).set(.8224621,.177538,0,.0331941,.9668058,0,.0170827,.0723974,.9105199),Kr=(new Or).set(1.2249401,-.2249404,0,-.0420569,1.0420571,0,-.0196376,-.0786361,1.0982735),Yr={[hr]:{transfer:fr,primaries:gr,toReference:e=>e,fromReference:e=>e},[dr]:{transfer:vr,primaries:gr,toReference:e=>e.convertSRGBToLinear(),fromReference:e=>e.convertLinearToSRGB()},[mr]:{transfer:fr,primaries:_r,toReference:e=>e.applyMatrix3(Kr),fromReference:e=>e.applyMatrix3($r)},[pr]:{transfer:vr,primaries:_r,toReference:e=>e.convertSRGBToLinear().applyMatrix3(Kr),fromReference:e=>e.applyMatrix3($r).convertLinearToSRGB()}},Jr=new Set([hr,mr]),Zr={enabled:!0,_workingColorSpace:hr,get workingColorSpace(){return this._workingColorSpace},set workingColorSpace(e){if(!Jr.has(e))throw new Error(`Unsupported working color space, "${e}".`);this._workingColorSpace=e},convert:function(e,t,n){if(!1===this.enabled||t===n||!t||!n)return e;const i=Yr[t].toReference;return(0,Yr[n].fromReference)(i(e))},fromWorkingColorSpace:function(e,t){return this.convert(e,this._workingColorSpace,t)},toWorkingColorSpace:function(e,t){return this.convert(e,t,this._workingColorSpace)},getPrimaries:function(e){return Yr[e].primaries},getTransfer:function(e){return e===ur?fr:Yr[e].transfer}};function Qr(e){return e<.04045?.0773993808*e:Math.pow(.9478672986*e+.0521327014,2.4)}function eo(e){return e<.0031308?12.92*e:1.055*Math.pow(e,.41666)-.055}let to;class no{static getDataURL(e){if(/^data:/i.test(e.src))return e.src;if("undefined"==typeof HTMLCanvasElement)return e.src;let t;if(e instanceof HTMLCanvasElement)t=e;else{void 0===to&&(to=Gr("canvas")),to.width=e.width,to.height=e.height;const n=to.getContext("2d");e instanceof ImageData?n.putImageData(e,0,0):n.drawImage(e,0,0,e.width,e.height),t=to}return t.width>2048||t.height>2048?t.toDataURL("image/jpeg",.6):t.toDataURL("image/png")}static sRGBToLinear(e){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap){const t=Gr("canvas");t.width=e.width,t.height=e.height;const n=t.getContext("2d");n.drawImage(e,0,0,e.width,e.height);const i=n.getImageData(0,0,e.width,e.height),a=i.data;for(let e=0;e<a.length;e++)a[e]=255*Qr(a[e]/255);return n.putImageData(i,0,0),t}if(e.data){const t=e.data.slice(0);for(let e=0;e<t.length;e++)t instanceof Uint8Array||t instanceof Uint8ClampedArray?t[e]=Math.floor(255*Qr(t[e]/255)):t[e]=Qr(t[e]);return{data:t,width:e.width,height:e.height}}return e}}let io=0;class ao{constructor(e=null){this.isSource=!0,Object.defineProperty(this,"id",{value:io++}),this.uuid=zr(),this.data=e,this.dataReady=!0,this.version=0}set needsUpdate(e){!0===e&&this.version++}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.images[this.uuid])return e.images[this.uuid];const n={uuid:this.uuid,url:""},i=this.data;if(null!==i){let e;if(Array.isArray(i)){e=[];for(let t=0,n=i.length;t<n;t++)i[t].isDataTexture?e.push(ro(i[t].image)):e.push(ro(i[t]))}else e=ro(i);n.url=e}return t||(e.images[this.uuid]=n),n}}function ro(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap?no.getDataURL(e):e.data?{data:Array.from(e.data),width:e.width,height:e.height,type:e.data.constructor.name}:{}}let oo=0;class lo extends Lr{constructor(e=lo.DEFAULT_IMAGE,t=lo.DEFAULT_MAPPING,n=1001,i=1001,a=1006,r=1008,o=ba,l=sa,s=lo.DEFAULT_ANISOTROPY,c=""){super(),this.isTexture=!0,Object.defineProperty(this,"id",{value:oo++}),this.uuid=zr(),this.name="",this.source=new ao(e),this.mipmaps=[],this.mapping=t,this.channel=0,this.wrapS=n,this.wrapT=i,this.magFilter=a,this.minFilter=r,this.anisotropy=s,this.format=o,this.internalFormat=null,this.type=l,this.offset=new Vr(0,0),this.repeat=new Vr(1,1),this.center=new Vr(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new Or,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.colorSpace=c,this.userData={},this.version=0,this.onUpdate=null,this.isRenderTargetTexture=!1,this.pmremVersion=0}get image(){return this.source.data}set image(e=null){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}clone(){return(new this.constructor).copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}toJSON(e){const t=void 0===e||"string"==typeof e;if(!t&&void 0!==e.textures[this.uuid])return e.textures[this.uuid];const n={metadata:{version:4.6,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(e){if(300!==this.mapping)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Qi:e.x=e.x-Math.floor(e.x);break;case ea:e.x=e.x<0?0:1;break;case ta:1===Math.abs(Math.floor(e.x)%2)?e.x=Math.ceil(e.x)-e.x:e.x=e.x-Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Qi:e.y=e.y-Math.floor(e.y);break;case ea:e.y=e.y<0?0:1;break;case ta:1===Math.abs(Math.floor(e.y)%2)?e.y=Math.ceil(e.y)-e.y:e.y=e.y-Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){!0===e&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){!0===e&&this.pmremVersion++}}lo.DEFAULT_IMAGE=null,lo.DEFAULT_MAPPING=300,lo.DEFAULT_ANISOTROPY=1;class so{constructor(e=0,t=0,n=0,i=1){so.prototype.isVector4=!0,this.x=e,this.y=t,this.z=n,this.w=i}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,i){return this.x=e,this.y=t,this.z=n,this.w=i,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=void 0!==e.w?e.w:1,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,a=this.w,r=e.elements;return this.x=r[0]*t+r[4]*n+r[8]*i+r[12]*a,this.y=r[1]*t+r[5]*n+r[9]*i+r[13]*a,this.z=r[2]*t+r[6]*n+r[10]*i+r[14]*a,this.w=r[3]*t+r[7]*n+r[11]*i+r[15]*a,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);const t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,i,a;const r=.01,o=.1,l=e.elements,s=l[0],c=l[4],u=l[8],d=l[1],h=l[5],p=l[9],m=l[2],f=l[6],v=l[10];if(Math.abs(c-d)<r&&Math.abs(u-m)<r&&Math.abs(p-f)<r){if(Math.abs(c+d)<o&&Math.abs(u+m)<o&&Math.abs(p+f)<o&&Math.abs(s+h+v-3)<o)return this.set(1,0,0,0),this;t=Math.PI;const e=(s+1)/2,l=(h+1)/2,g=(v+1)/2,_=(c+d)/4,x=(u+m)/4,y=(p+f)/4;return e>l&&e>g?e<r?(n=0,i=.707106781,a=.707106781):(n=Math.sqrt(e),i=_/n,a=x/n):l>g?l<r?(n=.707106781,i=0,a=.707106781):(i=Math.sqrt(l),n=_/i,a=y/i):g<r?(n=.707106781,i=.707106781,a=0):(a=Math.sqrt(g),n=x/a,i=y/a),this.set(n,i,a,t),this}let g=Math.sqrt((f-p)*(f-p)+(u-m)*(u-m)+(d-c)*(d-c));return Math.abs(g)<.001&&(g=1),this.x=(f-p)/g,this.y=(u-m)/g,this.z=(d-c)/g,this.w=Math.acos((s+h+v-1)/2),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this.w=t[15],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this.w=Math.min(this.w,e.w),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this.w=Math.max(this.w,e.w),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this.w=Math.max(e.w,Math.min(t.w,this.w)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this.w=Math.max(e,Math.min(t,this.w)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this.w=Math.trunc(this.w),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z+this.w*e.w}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this.w+=(e.w-this.w)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this.w=e.w+(t.w-e.w)*n,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z&&e.w===this.w}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this.w=e[t+3],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e[t+3]=this.w,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this.w=e.getW(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this.w=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z,yield this.w}}class co extends Lr{constructor(e=1,t=1,n={}){super(),this.isRenderTarget=!0,this.width=e,this.height=t,this.depth=1,this.scissor=new so(0,0,e,t),this.scissorTest=!1,this.viewport=new so(0,0,e,t);const i={width:e,height:t,depth:1};n=Object.assign({generateMipmaps:!1,internalFormat:null,minFilter:ra,depthBuffer:!0,stencilBuffer:!1,resolveDepthBuffer:!0,resolveStencilBuffer:!0,depthTexture:null,samples:0,count:1},n);const a=new lo(i,n.mapping,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.colorSpace);a.flipY=!1,a.generateMipmaps=n.generateMipmaps,a.internalFormat=n.internalFormat,this.textures=[];const r=n.count;for(let o=0;o<r;o++)this.textures[o]=a.clone(),this.textures[o].isRenderTargetTexture=!0;this.depthBuffer=n.depthBuffer,this.stencilBuffer=n.stencilBuffer,this.resolveDepthBuffer=n.resolveDepthBuffer,this.resolveStencilBuffer=n.resolveStencilBuffer,this.depthTexture=n.depthTexture,this.samples=n.samples}get texture(){return this.textures[0]}set texture(e){this.textures[0]=e}setSize(e,t,n=1){if(this.width!==e||this.height!==t||this.depth!==n){this.width=e,this.height=t,this.depth=n;for(let i=0,a=this.textures.length;i<a;i++)this.textures[i].image.width=e,this.textures[i].image.height=t,this.textures[i].image.depth=n;this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return(new this.constructor).copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let n=0,i=e.textures.length;n<i;n++)this.textures[n]=e.textures[n].clone(),this.textures[n].isRenderTargetTexture=!0;const t=Object.assign({},e.texture.image);return this.texture.source=new ao(t),this.depthBuffer=e.depthBuffer,this.stencilBuffer=e.stencilBuffer,this.resolveDepthBuffer=e.resolveDepthBuffer,this.resolveStencilBuffer=e.resolveStencilBuffer,null!==e.depthTexture&&(this.depthTexture=e.depthTexture.clone()),this.samples=e.samples,this}dispose(){this.dispatchEvent({type:"dispose"})}}class uo extends co{constructor(e=1,t=1,n={}){super(e,t,n),this.isWebGLRenderTarget=!0}}class ho extends lo{constructor(e=null,t=1,n=1,i=1){super(null),this.isDataArrayTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=na,this.minFilter=na,this.wrapR=ea,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1,this.layerUpdates=new Set}addLayerUpdate(e){this.layerUpdates.add(e)}clearLayerUpdates(){this.layerUpdates.clear()}}class po extends lo{constructor(e=null,t=1,n=1,i=1){super(null),this.isData3DTexture=!0,this.image={data:e,width:t,height:n,depth:i},this.magFilter=na,this.minFilter=na,this.wrapR=ea,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}}class mo{constructor(e=0,t=0,n=0,i=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=i}static slerpFlat(e,t,n,i,a,r,o){let l=n[i+0],s=n[i+1],c=n[i+2],u=n[i+3];const d=a[r+0],h=a[r+1],p=a[r+2],m=a[r+3];if(0===o)return e[t+0]=l,e[t+1]=s,e[t+2]=c,void(e[t+3]=u);if(1===o)return e[t+0]=d,e[t+1]=h,e[t+2]=p,void(e[t+3]=m);if(u!==m||l!==d||s!==h||c!==p){let e=1-o;const t=l*d+s*h+c*p+u*m,n=t>=0?1:-1,i=1-t*t;if(i>Number.EPSILON){const a=Math.sqrt(i),r=Math.atan2(a,t*n);e=Math.sin(e*r)/a,o=Math.sin(o*r)/a}const a=o*n;if(l=l*e+d*a,s=s*e+h*a,c=c*e+p*a,u=u*e+m*a,e===1-o){const e=1/Math.sqrt(l*l+s*s+c*c+u*u);l*=e,s*=e,c*=e,u*=e}}e[t]=l,e[t+1]=s,e[t+2]=c,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,i,a,r){const o=n[i],l=n[i+1],s=n[i+2],c=n[i+3],u=a[r],d=a[r+1],h=a[r+2],p=a[r+3];return e[t]=o*p+c*u+l*h-s*d,e[t+1]=l*p+c*d+s*u-o*h,e[t+2]=s*p+c*h+o*d-l*u,e[t+3]=c*p-o*u-l*d-s*h,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,i){return this._x=e,this._y=t,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){const n=e._x,i=e._y,a=e._z,r=e._order,o=Math.cos,l=Math.sin,s=o(n/2),c=o(i/2),u=o(a/2),d=l(n/2),h=l(i/2),p=l(a/2);switch(r){case"XYZ":this._x=d*c*u+s*h*p,this._y=s*h*u-d*c*p,this._z=s*c*p+d*h*u,this._w=s*c*u-d*h*p;break;case"YXZ":this._x=d*c*u+s*h*p,this._y=s*h*u-d*c*p,this._z=s*c*p-d*h*u,this._w=s*c*u+d*h*p;break;case"ZXY":this._x=d*c*u-s*h*p,this._y=s*h*u+d*c*p,this._z=s*c*p+d*h*u,this._w=s*c*u-d*h*p;break;case"ZYX":this._x=d*c*u-s*h*p,this._y=s*h*u+d*c*p,this._z=s*c*p-d*h*u,this._w=s*c*u+d*h*p;break;case"YZX":this._x=d*c*u+s*h*p,this._y=s*h*u+d*c*p,this._z=s*c*p-d*h*u,this._w=s*c*u-d*h*p;break;case"XZY":this._x=d*c*u-s*h*p,this._y=s*h*u-d*c*p,this._z=s*c*p+d*h*u,this._w=s*c*u+d*h*p}return!0===t&&this._onChangeCallback(),this}setFromAxisAngle(e,t){const n=t/2,i=Math.sin(n);return this._x=e.x*i,this._y=e.y*i,this._z=e.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){const t=e.elements,n=t[0],i=t[4],a=t[8],r=t[1],o=t[5],l=t[9],s=t[2],c=t[6],u=t[10],d=n+o+u;if(d>0){const e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(c-l)*e,this._y=(a-s)*e,this._z=(r-i)*e}else if(n>o&&n>u){const e=2*Math.sqrt(1+n-o-u);this._w=(c-l)/e,this._x=.25*e,this._y=(i+r)/e,this._z=(a+s)/e}else if(o>u){const e=2*Math.sqrt(1+o-n-u);this._w=(a-s)/e,this._x=(i+r)/e,this._y=.25*e,this._z=(l+c)/e}else{const e=2*Math.sqrt(1+u-n-o);this._w=(r-i)/e,this._x=(a+s)/e,this._y=(l+c)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<Number.EPSILON?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(kr(this.dot(e),-1,1)))}rotateTowards(e,t){const n=this.angleTo(e);if(0===n)return this;const i=Math.min(1,t/n);return this.slerp(e,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){const n=e._x,i=e._y,a=e._z,r=e._w,o=t._x,l=t._y,s=t._z,c=t._w;return this._x=n*c+r*o+i*s-a*l,this._y=i*c+r*l+a*o-n*s,this._z=a*c+r*s+n*l-i*o,this._w=r*c-n*o-i*l-a*s,this._onChangeCallback(),this}slerp(e,t){if(0===t)return this;if(1===t)return this.copy(e);const n=this._x,i=this._y,a=this._z,r=this._w;let o=r*e._w+n*e._x+i*e._y+a*e._z;if(o<0?(this._w=-e._w,this._x=-e._x,this._y=-e._y,this._z=-e._z,o=-o):this.copy(e),o>=1)return this._w=r,this._x=n,this._y=i,this._z=a,this;const l=1-o*o;if(l<=Number.EPSILON){const e=1-t;return this._w=e*r+t*this._w,this._x=e*n+t*this._x,this._y=e*i+t*this._y,this._z=e*a+t*this._z,this.normalize(),this}const s=Math.sqrt(l),c=Math.atan2(s,o),u=Math.sin((1-t)*c)/s,d=Math.sin(t*c)/s;return this._w=r*u+this._w*d,this._x=n*u+this._x*d,this._y=i*u+this._y*d,this._z=a*u+this._z*d,this._onChangeCallback(),this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){const e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),i=Math.sqrt(1-n),a=Math.sqrt(n);return this.set(i*Math.sin(e),i*Math.cos(e),a*Math.sin(t),a*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class fo{constructor(e=0,t=0,n=0){fo.prototype.isVector3=!0,this.x=e,this.y=t,this.z=n}set(e,t,n){return void 0===n&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw new Error("index is out of range: "+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(go.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(go.setFromAxisAngle(e,t))}applyMatrix3(e){const t=this.x,n=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[3]*n+a[6]*i,this.y=a[1]*t+a[4]*n+a[7]*i,this.z=a[2]*t+a[5]*n+a[8]*i,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){const t=this.x,n=this.y,i=this.z,a=e.elements,r=1/(a[3]*t+a[7]*n+a[11]*i+a[15]);return this.x=(a[0]*t+a[4]*n+a[8]*i+a[12])*r,this.y=(a[1]*t+a[5]*n+a[9]*i+a[13])*r,this.z=(a[2]*t+a[6]*n+a[10]*i+a[14])*r,this}applyQuaternion(e){const t=this.x,n=this.y,i=this.z,a=e.x,r=e.y,o=e.z,l=e.w,s=2*(r*i-o*n),c=2*(o*t-a*i),u=2*(a*n-r*t);return this.x=t+l*s+r*u-o*c,this.y=n+l*c+o*s-a*u,this.z=i+l*u+a*c-r*s,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){const t=this.x,n=this.y,i=this.z,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*i,this.y=a[1]*t+a[5]*n+a[9]*i,this.z=a[2]*t+a[6]*n+a[10]*i,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Math.max(e.x,Math.min(t.x,this.x)),this.y=Math.max(e.y,Math.min(t.y,this.y)),this.z=Math.max(e.z,Math.min(t.z,this.z)),this}clampScalar(e,t){return this.x=Math.max(e,Math.min(t,this.x)),this.y=Math.max(e,Math.min(t,this.y)),this.z=Math.max(e,Math.min(t,this.z)),this}clampLength(e,t){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(e,Math.min(t,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){const n=e.x,i=e.y,a=e.z,r=t.x,o=t.y,l=t.z;return this.x=i*l-a*o,this.y=a*r-n*l,this.z=n*o-i*r,this}projectOnVector(e){const t=e.lengthSq();if(0===t)return this.set(0,0,0);const n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return vo.copy(this).projectOnVector(e),this.sub(vo)}reflect(e){return this.sub(vo.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){const t=Math.sqrt(this.lengthSq()*e.lengthSq());if(0===t)return Math.PI/2;const n=this.dot(e)/t;return Math.acos(kr(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){const t=this.x-e.x,n=this.y-e.y,i=this.z-e.z;return t*t+n*n+i*i}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){const i=Math.sin(t)*e;return this.x=i*Math.sin(n),this.y=Math.cos(t)*e,this.z=i*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){const t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){const t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),i=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=i,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,4*t)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,3*t)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const e=Math.random()*Math.PI*2,t=2*Math.random()-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const vo=new fo,go=new mo;class _o{constructor(e=new fo(1/0,1/0,1/0),t=new fo(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t+=3)this.expandByPoint(yo.fromArray(e,t));return this}setFromBufferAttribute(e){this.makeEmpty();for(let t=0,n=e.count;t<n;t++)this.expandByPoint(yo.fromBufferAttribute(e,t));return this}setFromPoints(e){this.makeEmpty();for(let t=0,n=e.length;t<n;t++)this.expandByPoint(e[t]);return this}setFromCenterAndSize(e,t){const n=yo.copy(t).multiplyScalar(.5);return this.min.copy(e).sub(n),this.max.copy(e).add(n),this}setFromObject(e,t=!1){return this.makeEmpty(),this.expandByObject(e,t)}clone(){return(new this.constructor).copy(this)}copy(e){return this.min.copy(e.min),this.max.copy(e.max),this}makeEmpty(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this}isEmpty(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z}getCenter(e){return this.isEmpty()?e.set(0,0,0):e.addVectors(this.min,this.max).multiplyScalar(.5)}getSize(e){return this.isEmpty()?e.set(0,0,0):e.subVectors(this.max,this.min)}expandByPoint(e){return this.min.min(e),this.max.max(e),this}expandByVector(e){return this.min.sub(e),this.max.add(e),this}expandByScalar(e){return this.min.addScalar(-e),this.max.addScalar(e),this}expandByObject(e,t=!1){e.updateWorldMatrix(!1,!1);const n=e.geometry;if(void 0!==n){const i=n.getAttribute("position");if(!0===t&&void 0!==i&&!0!==e.isInstancedMesh)for(let t=0,n=i.count;t<n;t++)!0===e.isMesh?e.getVertexPosition(t,yo):yo.fromBufferAttribute(i,t),yo.applyMatrix4(e.matrixWorld),this.expandByPoint(yo);else void 0!==e.boundingBox?(null===e.boundingBox&&e.computeBoundingBox(),So.copy(e.boundingBox)):(null===n.boundingBox&&n.computeBoundingBox(),So.copy(n.boundingBox)),So.applyMatrix4(e.matrixWorld),this.union(So)}const i=e.children;for(let a=0,r=i.length;a<r;a++)this.expandByObject(i[a],t);return this}containsPoint(e){return!(e.x<this.min.x||e.x>this.max.x||e.y<this.min.y||e.y>this.max.y||e.z<this.min.z||e.z>this.max.z)}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return!(e.max.x<this.min.x||e.min.x>this.max.x||e.max.y<this.min.y||e.min.y>this.max.y||e.max.z<this.min.z||e.min.z>this.max.z)}intersectsSphere(e){return this.clampPoint(e.center,yo),yo.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Ao),No.subVectors(this.max,Ao),bo.subVectors(e.a,Ao),Mo.subVectors(e.b,Ao),Eo.subVectors(e.c,Ao),wo.subVectors(Mo,bo),To.subVectors(Eo,Mo),Co.subVectors(bo,Eo);let t=[0,-wo.z,wo.y,0,-To.z,To.y,0,-Co.z,Co.y,wo.z,0,-wo.x,To.z,0,-To.x,Co.z,0,-Co.x,-wo.y,wo.x,0,-To.y,To.x,0,-Co.y,Co.x,0];return!!Po(t,bo,Mo,Eo,No)&&(t=[1,0,0,0,1,0,0,0,1],!!Po(t,bo,Mo,Eo,No)&&(Ro.crossVectors(wo,To),t=[Ro.x,Ro.y,Ro.z],Po(t,bo,Mo,Eo,No)))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,yo).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=.5*this.getSize(yo).length()),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(xo[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),xo[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),xo[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),xo[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),xo[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),xo[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),xo[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),xo[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(xo)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}}const xo=[new fo,new fo,new fo,new fo,new fo,new fo,new fo,new fo],yo=new fo,So=new _o,bo=new fo,Mo=new fo,Eo=new fo,wo=new fo,To=new fo,Co=new fo,Ao=new fo,No=new fo,Ro=new fo,Lo=new fo;function Po(e,t,n,i,a){for(let r=0,o=e.length-3;r<=o;r+=3){Lo.fromArray(e,r);const o=a.x*Math.abs(Lo.x)+a.y*Math.abs(Lo.y)+a.z*Math.abs(Lo.z),l=t.dot(Lo),s=n.dot(Lo),c=i.dot(Lo);if(Math.max(-Math.max(l,s,c),Math.min(l,s,c))>o)return!1}return!0}const qo=new _o,Io=new fo,zo=new fo;class ko{constructor(e=new fo,t=-1){this.isSphere=!0,this.center=e,this.radius=t}set(e,t){return this.center.copy(e),this.radius=t,this}setFromPoints(e,t){const n=this.center;void 0!==t?n.copy(t):qo.setFromPoints(e).getCenter(n);let i=0;for(let a=0,r=e.length;a<r;a++)i=Math.max(i,n.distanceToSquared(e[a]));return this.radius=Math.sqrt(i),this}copy(e){return this.center.copy(e.center),this.radius=e.radius,this}isEmpty(){return this.radius<0}makeEmpty(){return this.center.set(0,0,0),this.radius=-1,this}containsPoint(e){return e.distanceToSquared(this.center)<=this.radius*this.radius}distanceToPoint(e){return e.distanceTo(this.center)-this.radius}intersectsSphere(e){const t=this.radius+e.radius;return e.center.distanceToSquared(this.center)<=t*t}intersectsBox(e){return e.intersectsSphere(this)}intersectsPlane(e){return Math.abs(e.distanceToPoint(this.center))<=this.radius}clampPoint(e,t){const n=this.center.distanceToSquared(e);return t.copy(e),n>this.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius=this.radius*e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Io.subVectors(e,this.center);const t=Io.lengthSq();if(t>this.radius*this.radius){const e=Math.sqrt(t),n=.5*(e-this.radius);this.center.addScaledVector(Io,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(!0===this.center.equals(e.center)?this.radius=Math.max(this.radius,e.radius):(zo.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Io.copy(e.center).add(zo)),this.expandByPoint(Io.copy(e.center).sub(zo))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return(new this.constructor).copy(this)}}const Bo=new fo,Do=new fo,Uo=new fo,Vo=new fo,Oo=new fo,Fo=new fo,Ho=new fo;class Go{constructor(e=new fo,t=new fo(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Bo)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);const n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){const t=Bo.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Bo.copy(this.origin).addScaledVector(this.direction,t),Bo.distanceToSquared(e))}distanceSqToSegment(e,t,n,i){Do.copy(e).add(t).multiplyScalar(.5),Uo.copy(t).sub(e).normalize(),Vo.copy(this.origin).sub(Do);const a=.5*e.distanceTo(t),r=-this.direction.dot(Uo),o=Vo.dot(this.direction),l=-Vo.dot(Uo),s=Vo.lengthSq(),c=Math.abs(1-r*r);let u,d,h,p;if(c>0)if(u=r*l-o,d=r*o-l,p=a*c,u>=0)if(d>=-p)if(d<=p){const e=1/c;u*=e,d*=e,h=u*(u+r*d+2*o)+d*(r*u+d+2*l)+s}else d=a,u=Math.max(0,-(r*d+o)),h=-u*u+d*(d+2*l)+s;else d=-a,u=Math.max(0,-(r*d+o)),h=-u*u+d*(d+2*l)+s;else d<=-p?(u=Math.max(0,-(-r*a+o)),d=u>0?-a:Math.min(Math.max(-a,-l),a),h=-u*u+d*(d+2*l)+s):d<=p?(u=0,d=Math.min(Math.max(-a,-l),a),h=d*(d+2*l)+s):(u=Math.max(0,-(r*a+o)),d=u>0?a:Math.min(Math.max(-a,-l),a),h=-u*u+d*(d+2*l)+s);else d=r>0?-a:a,u=Math.max(0,-(r*d+o)),h=-u*u+d*(d+2*l)+s;return n&&n.copy(this.origin).addScaledVector(this.direction,u),i&&i.copy(Do).addScaledVector(Uo,d),h}intersectSphere(e,t){Bo.subVectors(e.center,this.origin);const n=Bo.dot(this.direction),i=Bo.dot(Bo)-n*n,a=e.radius*e.radius;if(i>a)return null;const r=Math.sqrt(a-i),o=n-r,l=n+r;return l<0?null:o<0?this.at(l,t):this.at(o,t)}intersectsSphere(e){return this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){const t=e.normal.dot(this.direction);if(0===t)return 0===e.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){const n=this.distanceToPlane(e);return null===n?null:this.at(n,t)}intersectsPlane(e){const t=e.distanceToPoint(this.origin);if(0===t)return!0;return e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,i,a,r,o,l;const s=1/this.direction.x,c=1/this.direction.y,u=1/this.direction.z,d=this.origin;return s>=0?(n=(e.min.x-d.x)*s,i=(e.max.x-d.x)*s):(n=(e.max.x-d.x)*s,i=(e.min.x-d.x)*s),c>=0?(a=(e.min.y-d.y)*c,r=(e.max.y-d.y)*c):(a=(e.max.y-d.y)*c,r=(e.min.y-d.y)*c),n>r||a>i?null:((a>n||isNaN(n))&&(n=a),(r<i||isNaN(i))&&(i=r),u>=0?(o=(e.min.z-d.z)*u,l=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,l=(e.min.z-d.z)*u),n>l||o>i?null:((o>n||n!=n)&&(n=o),(l<i||i!=i)&&(i=l),i<0?null:this.at(n>=0?n:i,t)))}intersectsBox(e){return null!==this.intersectBox(e,Bo)}intersectTriangle(e,t,n,i,a){Oo.subVectors(t,e),Fo.subVectors(n,e),Ho.crossVectors(Oo,Fo);let r,o=this.direction.dot(Ho);if(o>0){if(i)return null;r=1}else{if(!(o<0))return null;r=-1,o=-o}Vo.subVectors(this.origin,e);const l=r*this.direction.dot(Fo.crossVectors(Vo,Fo));if(l<0)return null;const s=r*this.direction.dot(Oo.cross(Vo));if(s<0)return null;if(l+s>o)return null;const c=-r*Vo.dot(Ho);return c<0?null:this.at(c/o,a)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return(new this.constructor).copy(this)}}class Wo{constructor(e,t,n,i,a,r,o,l,s,c,u,d,h,p,m,f){Wo.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],void 0!==e&&this.set(e,t,n,i,a,r,o,l,s,c,u,d,h,p,m,f)}set(e,t,n,i,a,r,o,l,s,c,u,d,h,p,m,f){const v=this.elements;return v[0]=e,v[4]=t,v[8]=n,v[12]=i,v[1]=a,v[5]=r,v[9]=o,v[13]=l,v[2]=s,v[6]=c,v[10]=u,v[14]=d,v[3]=h,v[7]=p,v[11]=m,v[15]=f,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return(new Wo).fromArray(this.elements)}copy(e){const t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t[9]=n[9],t[10]=n[10],t[11]=n[11],t[12]=n[12],t[13]=n[13],t[14]=n[14],t[15]=n[15],this}copyPosition(e){const t=this.elements,n=e.elements;return t[12]=n[12],t[13]=n[13],t[14]=n[14],this}setFromMatrix3(e){const t=e.elements;return this.set(t[0],t[3],t[6],0,t[1],t[4],t[7],0,t[2],t[5],t[8],0,0,0,0,1),this}extractBasis(e,t,n){return e.setFromMatrixColumn(this,0),t.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(e,t,n){return this.set(e.x,t.x,n.x,0,e.y,t.y,n.y,0,e.z,t.z,n.z,0,0,0,0,1),this}extractRotation(e){const t=this.elements,n=e.elements,i=1/Xo.setFromMatrixColumn(e,0).length(),a=1/Xo.setFromMatrixColumn(e,1).length(),r=1/Xo.setFromMatrixColumn(e,2).length();return t[0]=n[0]*i,t[1]=n[1]*i,t[2]=n[2]*i,t[3]=0,t[4]=n[4]*a,t[5]=n[5]*a,t[6]=n[6]*a,t[7]=0,t[8]=n[8]*r,t[9]=n[9]*r,t[10]=n[10]*r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromEuler(e){const t=this.elements,n=e.x,i=e.y,a=e.z,r=Math.cos(n),o=Math.sin(n),l=Math.cos(i),s=Math.sin(i),c=Math.cos(a),u=Math.sin(a);if("XYZ"===e.order){const e=r*c,n=r*u,i=o*c,a=o*u;t[0]=l*c,t[4]=-l*u,t[8]=s,t[1]=n+i*s,t[5]=e-a*s,t[9]=-o*l,t[2]=a-e*s,t[6]=i+n*s,t[10]=r*l}else if("YXZ"===e.order){const e=l*c,n=l*u,i=s*c,a=s*u;t[0]=e+a*o,t[4]=i*o-n,t[8]=r*s,t[1]=r*u,t[5]=r*c,t[9]=-o,t[2]=n*o-i,t[6]=a+e*o,t[10]=r*l}else if("ZXY"===e.order){const e=l*c,n=l*u,i=s*c,a=s*u;t[0]=e-a*o,t[4]=-r*u,t[8]=i+n*o,t[1]=n+i*o,t[5]=r*c,t[9]=a-e*o,t[2]=-r*s,t[6]=o,t[10]=r*l}else if("ZYX"===e.order){const e=r*c,n=r*u,i=o*c,a=o*u;t[0]=l*c,t[4]=i*s-n,t[8]=e*s+a,t[1]=l*u,t[5]=a*s+e,t[9]=n*s-i,t[2]=-s,t[6]=o*l,t[10]=r*l}else if("YZX"===e.order){const e=r*l,n=r*s,i=o*l,a=o*s;t[0]=l*c,t[4]=a-e*u,t[8]=i*u+n,t[1]=u,t[5]=r*c,t[9]=-o*c,t[2]=-s*c,t[6]=n*u+i,t[10]=e-a*u}else if("XZY"===e.order){const e=r*l,n=r*s,i=o*l,a=o*s;t[0]=l*c,t[4]=-u,t[8]=s*c,t[1]=e*u+a,t[5]=r*c,t[9]=n*u-i,t[2]=i*u-n,t[6]=o*c,t[10]=a*u+e}return t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}makeRotationFromQuaternion(e){return this.compose($o,e,Ko)}lookAt(e,t,n){const i=this.elements;return Zo.subVectors(e,t),0===Zo.lengthSq()&&(Zo.z=1),Zo.normalize(),Yo.crossVectors(n,Zo),0===Yo.lengthSq()&&(1===Math.abs(n.z)?Zo.x+=1e-4:Zo.z+=1e-4,Zo.normalize(),Yo.crossVectors(n,Zo)),Yo.normalize(),Jo.crossVectors(Zo,Yo),i[0]=Yo.x,i[4]=Jo.x,i[8]=Zo.x,i[1]=Yo.y,i[5]=Jo.y,i[9]=Zo.y,i[2]=Yo.z,i[6]=Jo.z,i[10]=Zo.z,this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){const n=e.elements,i=t.elements,a=this.elements,r=n[0],o=n[4],l=n[8],s=n[12],c=n[1],u=n[5],d=n[9],h=n[13],p=n[2],m=n[6],f=n[10],v=n[14],g=n[3],_=n[7],x=n[11],y=n[15],S=i[0],b=i[4],M=i[8],E=i[12],w=i[1],T=i[5],C=i[9],A=i[13],N=i[2],R=i[6],L=i[10],P=i[14],q=i[3],I=i[7],z=i[11],k=i[15];return a[0]=r*S+o*w+l*N+s*q,a[4]=r*b+o*T+l*R+s*I,a[8]=r*M+o*C+l*L+s*z,a[12]=r*E+o*A+l*P+s*k,a[1]=c*S+u*w+d*N+h*q,a[5]=c*b+u*T+d*R+h*I,a[9]=c*M+u*C+d*L+h*z,a[13]=c*E+u*A+d*P+h*k,a[2]=p*S+m*w+f*N+v*q,a[6]=p*b+m*T+f*R+v*I,a[10]=p*M+m*C+f*L+v*z,a[14]=p*E+m*A+f*P+v*k,a[3]=g*S+_*w+x*N+y*q,a[7]=g*b+_*T+x*R+y*I,a[11]=g*M+_*C+x*L+y*z,a[15]=g*E+_*A+x*P+y*k,this}multiplyScalar(e){const t=this.elements;return t[0]*=e,t[4]*=e,t[8]*=e,t[12]*=e,t[1]*=e,t[5]*=e,t[9]*=e,t[13]*=e,t[2]*=e,t[6]*=e,t[10]*=e,t[14]*=e,t[3]*=e,t[7]*=e,t[11]*=e,t[15]*=e,this}determinant(){const e=this.elements,t=e[0],n=e[4],i=e[8],a=e[12],r=e[1],o=e[5],l=e[9],s=e[13],c=e[2],u=e[6],d=e[10],h=e[14];return e[3]*(+a*l*u-i*s*u-a*o*d+n*s*d+i*o*h-n*l*h)+e[7]*(+t*l*h-t*s*d+a*r*d-i*r*h+i*s*c-a*l*c)+e[11]*(+t*s*u-t*o*h-a*r*u+n*r*h+a*o*c-n*s*c)+e[15]*(-i*o*c-t*l*u+t*o*d+i*r*u-n*r*d+n*l*c)}transpose(){const e=this.elements;let t;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this}setPosition(e,t,n){const i=this.elements;return e.isVector3?(i[12]=e.x,i[13]=e.y,i[14]=e.z):(i[12]=e,i[13]=t,i[14]=n),this}invert(){const e=this.elements,t=e[0],n=e[1],i=e[2],a=e[3],r=e[4],o=e[5],l=e[6],s=e[7],c=e[8],u=e[9],d=e[10],h=e[11],p=e[12],m=e[13],f=e[14],v=e[15],g=u*f*s-m*d*s+m*l*h-o*f*h-u*l*v+o*d*v,_=p*d*s-c*f*s-p*l*h+r*f*h+c*l*v-r*d*v,x=c*m*s-p*u*s+p*o*h-r*m*h-c*o*v+r*u*v,y=p*u*l-c*m*l-p*o*d+r*m*d+c*o*f-r*u*f,S=t*g+n*_+i*x+a*y;if(0===S)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const b=1/S;return e[0]=g*b,e[1]=(m*d*a-u*f*a-m*i*h+n*f*h+u*i*v-n*d*v)*b,e[2]=(o*f*a-m*l*a+m*i*s-n*f*s-o*i*v+n*l*v)*b,e[3]=(u*l*a-o*d*a-u*i*s+n*d*s+o*i*h-n*l*h)*b,e[4]=_*b,e[5]=(c*f*a-p*d*a+p*i*h-t*f*h-c*i*v+t*d*v)*b,e[6]=(p*l*a-r*f*a-p*i*s+t*f*s+r*i*v-t*l*v)*b,e[7]=(r*d*a-c*l*a+c*i*s-t*d*s-r*i*h+t*l*h)*b,e[8]=x*b,e[9]=(p*u*a-c*m*a-p*n*h+t*m*h+c*n*v-t*u*v)*b,e[10]=(r*m*a-p*o*a+p*n*s-t*m*s-r*n*v+t*o*v)*b,e[11]=(c*o*a-r*u*a-c*n*s+t*u*s+r*n*h-t*o*h)*b,e[12]=y*b,e[13]=(c*m*i-p*u*i+p*n*d-t*m*d-c*n*f+t*u*f)*b,e[14]=(p*o*i-r*m*i-p*n*l+t*m*l+r*n*f-t*o*f)*b,e[15]=(r*u*i-c*o*i+c*n*l-t*u*l-r*n*d+t*o*d)*b,this}scale(e){const t=this.elements,n=e.x,i=e.y,a=e.z;return t[0]*=n,t[4]*=i,t[8]*=a,t[1]*=n,t[5]*=i,t[9]*=a,t[2]*=n,t[6]*=i,t[10]*=a,t[3]*=n,t[7]*=i,t[11]*=a,this}getMaxScaleOnAxis(){const e=this.elements,t=e[0]*e[0]+e[1]*e[1]+e[2]*e[2],n=e[4]*e[4]+e[5]*e[5]+e[6]*e[6],i=e[8]*e[8]+e[9]*e[9]+e[10]*e[10];return Math.sqrt(Math.max(t,n,i))}makeTranslation(e,t,n){return e.isVector3?this.set(1,0,0,e.x,0,1,0,e.y,0,0,1,e.z,0,0,0,1):this.set(1,0,0,e,0,1,0,t,0,0,1,n,0,0,0,1),this}makeRotationX(e){const t=Math.cos(e),n=Math.sin(e);return this.set(1,0,0,0,0,t,-n,0,0,n,t,0,0,0,0,1),this}makeRotationY(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,0,n,0,0,1,0,0,-n,0,t,0,0,0,0,1),this}makeRotationZ(e){const t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,0,n,t,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(e,t){const n=Math.cos(t),i=Math.sin(t),a=1-n,r=e.x,o=e.y,l=e.z,s=a*r,c=a*o;return this.set(s*r+n,s*o-i*l,s*l+i*o,0,s*o+i*l,c*o+n,c*l-i*r,0,s*l-i*o,c*l+i*r,a*l*l+n,0,0,0,0,1),this}makeScale(e,t,n){return this.set(e,0,0,0,0,t,0,0,0,0,n,0,0,0,0,1),this}makeShear(e,t,n,i,a,r){return this.set(1,n,a,0,e,1,r,0,t,i,1,0,0,0,0,1),this}compose(e,t,n){const i=this.elements,a=t._x,r=t._y,o=t._z,l=t._w,s=a+a,c=r+r,u=o+o,d=a*s,h=a*c,p=a*u,m=r*c,f=r*u,v=o*u,g=l*s,_=l*c,x=l*u,y=n.x,S=n.y,b=n.z;return i[0]=(1-(m+v))*y,i[1]=(h+x)*y,i[2]=(p-_)*y,i[3]=0,i[4]=(h-x)*S,i[5]=(1-(d+v))*S,i[6]=(f+g)*S,i[7]=0,i[8]=(p+_)*b,i[9]=(f-g)*b,i[10]=(1-(d+m))*b,i[11]=0,i[12]=e.x,i[13]=e.y,i[14]=e.z,i[15]=1,this}decompose(e,t,n){const i=this.elements;let a=Xo.set(i[0],i[1],i[2]).length();const r=Xo.set(i[4],i[5],i[6]).length(),o=Xo.set(i[8],i[9],i[10]).length();this.determinant()<0&&(a=-a),e.x=i[12],e.y=i[13],e.z=i[14],jo.copy(this);const l=1/a,s=1/r,c=1/o;return jo.elements[0]*=l,jo.elements[1]*=l,jo.elements[2]*=l,jo.elements[4]*=s,jo.elements[5]*=s,jo.elements[6]*=s,jo.elements[8]*=c,jo.elements[9]*=c,jo.elements[10]*=c,t.setFromRotationMatrix(jo),n.x=a,n.y=r,n.z=o,this}makePerspective(e,t,n,i,a,r,o=2e3){const l=this.elements,s=2*a/(t-e),c=2*a/(n-i),u=(t+e)/(t-e),d=(n+i)/(n-i);let h,p;if(o===Nr)h=-(r+a)/(r-a),p=-2*r*a/(r-a);else{if(o!==Rr)throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: "+o);h=-r/(r-a),p=-r*a/(r-a)}return l[0]=s,l[4]=0,l[8]=u,l[12]=0,l[1]=0,l[5]=c,l[9]=d,l[13]=0,l[2]=0,l[6]=0,l[10]=h,l[14]=p,l[3]=0,l[7]=0,l[11]=-1,l[15]=0,this}makeOrthographic(e,t,n,i,a,r,o=2e3){const l=this.elements,s=1/(t-e),c=1/(n-i),u=1/(r-a),d=(t+e)*s,h=(n+i)*c;let p,m;if(o===Nr)p=(r+a)*u,m=-2*u;else{if(o!==Rr)throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: "+o);p=a*u,m=-1*u}return l[0]=2*s,l[4]=0,l[8]=0,l[12]=-d,l[1]=0,l[5]=2*c,l[9]=0,l[13]=-h,l[2]=0,l[6]=0,l[10]=m,l[14]=-p,l[3]=0,l[7]=0,l[11]=0,l[15]=1,this}equals(e){const t=this.elements,n=e.elements;for(let i=0;i<16;i++)if(t[i]!==n[i])return!1;return!0}fromArray(e,t=0){for(let n=0;n<16;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){const n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e[t+9]=n[9],e[t+10]=n[10],e[t+11]=n[11],e[t+12]=n[12],e[t+13]=n[13],e[t+14]=n[14],e[t+15]=n[15],e}}const Xo=new fo,jo=new Wo,$o=new fo(0,0,0),Ko=new fo(1,1,1),Yo=new fo,Jo=new fo,Zo=new fo,Qo=new Wo,el=new mo;class tl{constructor(e=0,t=0,n=0,i=tl.DEFAULT_ORDER){this.isEuler=!0,this._x=e,this._y=t,this._z=n,this._order=i}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get order(){return this._order}set order(e){this._order=e,this._onChangeCallback()}set(e,t,n,i=this._order){return this._x=e,this._y=t,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(e){return this._x=e._x,this._y=e._y,this._z=e._z,this._order=e._order,this._onChangeCallback(),this}setFromRotationMatrix(e,t=this._order,n=!0){const i=e.elements,a=i[0],r=i[4],o=i[8],l=i[1],s=i[5],c=i[9],u=i[2],d=i[6],h=i[10];switch(t){case"XYZ":this._y=Math.asin(kr(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,h),this._z=Math.atan2(-r,a)):(this._x=Math.atan2(d,s),this._z=0);break;case"YXZ":this._x=Math.asin(-kr(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(o,h),this._z=Math.atan2(l,s)):(this._y=Math.atan2(-u,a),this._z=0);break;case"ZXY":this._x=Math.asin(kr(d,-1,1)),Math.abs(d)<.9999999?(this._y=Math.atan2(-u,h),this._z=Math.atan2(-r,s)):(this._y=0,this._z=Math.atan2(l,a));break;case"ZYX":this._y=Math.asin(-kr(u,-1,1)),Math.abs(u)<.9999999?(this._x=Math.atan2(d,h),this._z=Math.atan2(l,a)):(this._x=0,this._z=Math.atan2(-r,s));break;case"YZX":this._z=Math.asin(kr(l,-1,1)),Math.abs(l)<.9999999?(this._x=Math.atan2(-c,s),this._y=Math.atan2(-u,a)):(this._x=0,this._y=Math.atan2(o,h));break;case"XZY":this._z=Math.asin(-kr(r,-1,1)),Math.abs(r)<.9999999?(this._x=Math.atan2(d,s),this._y=Math.atan2(o,a)):(this._x=Math.atan2(-c,h),this._y=0)}return this._order=t,!0===n&&this._onChangeCallback(),this}setFromQuaternion(e,t,n){return Qo.makeRotationFromQuaternion(e),this.setFromRotationMatrix(Qo,t,n)}setFromVector3(e,t=this._order){return this.set(e.x,e.y,e.z,t)}reorder(e){return el.setFromEuler(this),this.setFromQuaternion(el,e)}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._order===this._order}fromArray(e){return this._x=e[0],this._y=e[1],this._z=e[2],void 0!==e[3]&&(this._order=e[3]),this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._order,e}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}tl.DEFAULT_ORDER="XYZ";class nl{constructor(){this.mask=1}set(e){this.mask=1<<e>>>0}enable(e){this.mask|=1<<e}enableAll(){this.mask=-1}toggle(e){this.mask^=1<<e}disable(e){this.mask&=~(1<<e)}disableAll(){this.mask=0}test(e){return!!(this.mask&e.mask)}isEnabled(e){return!!(this.mask&1<<e)}}let il=0;const al=new fo,rl=new mo,ol=new Wo,ll=new fo,sl=new fo,cl=new fo,ul=new mo,dl=new fo(1,0,0),hl=new fo(0,1,0),pl=new fo(0,0,1),ml={type:"added"},fl={type:"removed"},vl={type:"childadded",child:null},gl={type:"childremoved",child:null};class _l extends Lr{constructor(){super(),this.isObject3D=!0,Object.defineProperty(this,"id",{value:il++}),this.uuid=zr(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=_l.DEFAULT_UP.clone();const e=new fo,t=new tl,n=new mo,i=new fo(1,1,1);t._onChange((function(){n.setFromEuler(t,!1)})),n._onChange((function(){t.setFromQuaternion(n,void 0,!1)})),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:e},rotation:{configurable:!0,enumerable:!0,value:t},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Wo},normalMatrix:{value:new Or}}),this.matrix=new Wo,this.matrixWorld=new Wo,this.matrixAutoUpdate=_l.DEFAULT_MATRIX_AUTO_UPDATE,this.matrixWorldAutoUpdate=_l.DEFAULT_MATRIX_WORLD_AUTO_UPDATE,this.matrixWorldNeedsUpdate=!1,this.layers=new nl,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.animations=[],this.userData={}}onBeforeShadow(){}onAfterShadow(){}onBeforeRender(){}onAfterRender(){}applyMatrix4(e){this.matrixAutoUpdate&&this.updateMatrix(),this.matrix.premultiply(e),this.matrix.decompose(this.position,this.quaternion,this.scale)}applyQuaternion(e){return this.quaternion.premultiply(e),this}setRotationFromAxisAngle(e,t){this.quaternion.setFromAxisAngle(e,t)}setRotationFromEuler(e){this.quaternion.setFromEuler(e,!0)}setRotationFromMatrix(e){this.quaternion.setFromRotationMatrix(e)}setRotationFromQuaternion(e){this.quaternion.copy(e)}rotateOnAxis(e,t){return rl.setFromAxisAngle(e,t),this.quaternion.multiply(rl),this}rotateOnWorldAxis(e,t){return rl.setFromAxisAngle(e,t),this.quaternion.premultiply(rl),this}rotateX(e){return this.rotateOnAxis(dl,e)}rotateY(e){return this.rotateOnAxis(hl,e)}rotateZ(e){return this.rotateOnAxis(pl,e)}translateOnAxis(e,t){return al.copy(e).applyQuaternion(this.quaternion),this.position.add(al.multiplyScalar(t)),this}translateX(e){return this.translateOnAxis(dl,e)}translateY(e){return this.translateOnAxis(hl,e)}translateZ(e){return this.translateOnAxis(pl,e)}localToWorld(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(this.matrixWorld)}worldToLocal(e){return this.updateWorldMatrix(!0,!1),e.applyMatrix4(ol.copy(this.matrixWorld).invert())}lookAt(e,t,n){e.isVector3?ll.copy(e):ll.set(e,t,n);const i=this.parent;this.updateWorldMatrix(!0,!1),sl.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?ol.lookAt(sl,ll,this.up):ol.lookAt(ll,sl,this.up),this.quaternion.setFromRotationMatrix(ol),i&&(ol.extractRotation(i.matrixWorld),rl.setFromRotationMatrix(ol),this.quaternion.premultiply(rl.invert()))}add(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return e===this||e&&e.isObject3D&&(e.removeFromParent(),e.parent=this,this.children.push(e),e.dispatchEvent(ml),vl.child=e,this.dispatchEvent(vl),vl.child=null),this}remove(e){if(arguments.length>1){for(let e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}const t=this.children.indexOf(e);return-1!==t&&(e.parent=null,this.children.splice(t,1),e.dispatchEvent(fl),gl.child=e,this.dispatchEvent(gl),gl.child=null),this}removeFromParent(){const e=this.parent;return null!==e&&e.remove(this),this}clear(){return this.remove(...this.children)}attach(e){return this.updateWorldMatrix(!0,!1),ol.copy(this.matrixWorld).invert(),null!==e.parent&&(e.parent.updateWorldMatrix(!0,!1),ol.multiply(e.parent.matrixWorld)),e.applyMatrix4(ol),e.removeFromParent(),e.parent=this,this.children.push(e),e.updateWorldMatrix(!1,!0),e.dispatchEvent(ml),vl.child=e,this.dispatchEvent(vl),vl.child=null,this}getObjectById(e){return this.getObjectByProperty("id",e)}getObjectByName(e){return this.getObjectByProperty("name",e)}getObjectByProperty(e,t){if(this[e]===t)return this;for(let n=0,i=this.children.length;n<i;n++){const i=this.children[n].getObjectByProperty(e,t);if(void 0!==i)return i}}getObjectsByProperty(e,t,n=[]){this[e]===t&&n.push(this);const i=this.children;for(let a=0,r=i.length;a<r;a++)i[a].getObjectsByProperty(e,t,n);return n}getWorldPosition(e){return this.updateWorldMatrix(!0,!1),e.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(sl,e,cl),e}getWorldScale(e){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(sl,ul,e),e}getWorldDirection(e){this.updateWorldMatrix(!0,!1);const t=this.matrixWorld.elements;return e.set(t[8],t[9],t[10]).normalize()}raycast(){}traverse(e){e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverse(e)}traverseVisible(e){if(!1===this.visible)return;e(this);const t=this.children;for(let n=0,i=t.length;n<i;n++)t[n].traverseVisible(e)}traverseAncestors(e){const t=this.parent;null!==t&&(e(t),t.traverseAncestors(e))}updateMatrix(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0}updateMatrixWorld(e){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||e)&&(!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),this.matrixWorldNeedsUpdate=!1,e=!0);const t=this.children;for(let n=0,i=t.length;n<i;n++){t[n].updateMatrixWorld(e)}}updateWorldMatrix(e,t){const n=this.parent;if(!0===e&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),!0===this.matrixWorldAutoUpdate&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix)),!0===t){const e=this.children;for(let t=0,n=e.length;t<n;t++){e[t].updateWorldMatrix(!1,!0)}}}toJSON(e){const t=void 0===e||"string"==typeof e,n={};t&&(e={geometries:{},materials:{},textures:{},images:{},shapes:{},skeletons:{},animations:{},nodes:{}},n.metadata={version:4.6,type:"Object",generator:"Object3D.toJSON"});const i={};function a(t,n){return void 0===t[n.uuid]&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),Object.keys(this.userData).length>0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(i.type="BatchedMesh",i.perObjectFrustumCulled=this.perObjectFrustumCulled,i.sortObjects=this.sortObjects,i.drawRanges=this._drawRanges,i.reservedRanges=this._reservedRanges,i.visibility=this._visibility,i.active=this._active,i.bounds=this._bounds.map((e=>({boxInitialized:e.boxInitialized,boxMin:e.box.min.toArray(),boxMax:e.box.max.toArray(),sphereInitialized:e.sphereInitialized,sphereRadius:e.sphere.radius,sphereCenter:e.sphere.center.toArray()}))),i.maxInstanceCount=this._maxInstanceCount,i.maxVertexCount=this._maxVertexCount,i.maxIndexCount=this._maxIndexCount,i.geometryInitialized=this._geometryInitialized,i.geometryCount=this._geometryCount,i.matricesTexture=this._matricesTexture.toJSON(e),null!==this._colorsTexture&&(i.colorsTexture=this._colorsTexture.toJSON(e)),null!==this.boundingSphere&&(i.boundingSphere={center:i.boundingSphere.center.toArray(),radius:i.boundingSphere.radius}),null!==this.boundingBox&&(i.boundingBox={min:i.boundingBox.min.toArray(),max:i.boundingBox.max.toArray()})),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=a(e.geometries,this.geometry);const t=this.geometry.parameters;if(void 0!==t&&void 0!==t.shapes){const n=t.shapes;if(Array.isArray(n))for(let t=0,i=n.length;t<i;t++){const i=n[t];a(e.shapes,i)}else a(e.shapes,n)}}if(this.isSkinnedMesh&&(i.bindMode=this.bindMode,i.bindMatrix=this.bindMatrix.toArray(),void 0!==this.skeleton&&(a(e.skeletons,this.skeleton),i.skeleton=this.skeleton.uuid)),void 0!==this.material)if(Array.isArray(this.material)){const t=[];for(let n=0,i=this.material.length;n<i;n++)t.push(a(e.materials,this.material[n]));i.material=t}else i.material=a(e.materials,this.material);if(this.children.length>0){i.children=[];for(let t=0;t<this.children.length;t++)i.children.push(this.children[t].toJSON(e).object)}if(this.animations.length>0){i.animations=[];for(let t=0;t<this.animations.length;t++){const n=this.animations[t];i.animations.push(a(e.animations,n))}}if(t){const t=r(e.geometries),i=r(e.materials),a=r(e.textures),o=r(e.images),l=r(e.shapes),s=r(e.skeletons),c=r(e.animations),u=r(e.nodes);t.length>0&&(n.geometries=t),i.length>0&&(n.materials=i),a.length>0&&(n.textures=a),o.length>0&&(n.images=o),l.length>0&&(n.shapes=l),s.length>0&&(n.skeletons=s),c.length>0&&(n.animations=c),u.length>0&&(n.nodes=u)}return n.object=i,n;function r(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}}clone(e){return(new this.constructor).copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),!0===t)for(let n=0;n<e.children.length;n++){const t=e.children[n];this.add(t.clone())}return this}}_l.DEFAULT_UP=new fo(0,1,0),_l.DEFAULT_MATRIX_AUTO_UPDATE=!0,_l.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;const xl=new fo,yl=new fo,Sl=new fo,bl=new fo,Ml=new fo,El=new fo,wl=new fo,Tl=new fo,Cl=new fo,Al=new fo;class Nl{constructor(e=new fo,t=new fo,n=new fo){this.a=e,this.b=t,this.c=n}static getNormal(e,t,n,i){i.subVectors(n,t),xl.subVectors(e,t),i.cross(xl);const a=i.lengthSq();return a>0?i.multiplyScalar(1/Math.sqrt(a)):i.set(0,0,0)}static getBarycoord(e,t,n,i,a){xl.subVectors(i,t),yl.subVectors(n,t),Sl.subVectors(e,t);const r=xl.dot(xl),o=xl.dot(yl),l=xl.dot(Sl),s=yl.dot(yl),c=yl.dot(Sl),u=r*s-o*o;if(0===u)return a.set(0,0,0),null;const d=1/u,h=(s*l-o*c)*d,p=(r*c-o*l)*d;return a.set(1-h-p,p,h)}static containsPoint(e,t,n,i){return null!==this.getBarycoord(e,t,n,i,bl)&&(bl.x>=0&&bl.y>=0&&bl.x+bl.y<=1)}static getInterpolation(e,t,n,i,a,r,o,l){return null===this.getBarycoord(e,t,n,i,bl)?(l.x=0,l.y=0,"z"in l&&(l.z=0),"w"in l&&(l.w=0),null):(l.setScalar(0),l.addScaledVector(a,bl.x),l.addScaledVector(r,bl.y),l.addScaledVector(o,bl.z),l)}static isFrontFacing(e,t,n,i){return xl.subVectors(n,t),yl.subVectors(e,t),xl.cross(yl).dot(i)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,i){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[i]),this}setFromAttributeAndIndices(e,t,n,i){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,i),this}clone(){return(new this.constructor).copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return xl.subVectors(this.c,this.b),yl.subVectors(this.a,this.b),.5*xl.cross(yl).length()}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(e){return Nl.getNormal(this.a,this.b,this.c,e)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(e,t){return Nl.getBarycoord(e,this.a,this.b,this.c,t)}getInterpolation(e,t,n,i,a){return Nl.getInterpolation(e,this.a,this.b,this.c,t,n,i,a)}containsPoint(e){return Nl.containsPoint(e,this.a,this.b,this.c)}isFrontFacing(e){return Nl.isFrontFacing(this.a,this.b,this.c,e)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){const n=this.a,i=this.b,a=this.c;let r,o;Ml.subVectors(i,n),El.subVectors(a,n),Tl.subVectors(e,n);const l=Ml.dot(Tl),s=El.dot(Tl);if(l<=0&&s<=0)return t.copy(n);Cl.subVectors(e,i);const c=Ml.dot(Cl),u=El.dot(Cl);if(c>=0&&u<=c)return t.copy(i);const d=l*u-c*s;if(d<=0&&l>=0&&c<=0)return r=l/(l-c),t.copy(n).addScaledVector(Ml,r);Al.subVectors(e,a);const h=Ml.dot(Al),p=El.dot(Al);if(p>=0&&h<=p)return t.copy(a);const m=h*s-l*p;if(m<=0&&s>=0&&p<=0)return o=s/(s-p),t.copy(n).addScaledVector(El,o);const f=c*p-h*u;if(f<=0&&u-c>=0&&h-p>=0)return wl.subVectors(a,i),o=(u-c)/(u-c+(h-p)),t.copy(i).addScaledVector(wl,o);const v=1/(f+m+d);return r=m*v,o=d*v,t.copy(n).addScaledVector(Ml,r).addScaledVector(El,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}}const Rl={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Ll={h:0,s:0,l:0},Pl={h:0,s:0,l:0};function ql(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+6*(t-e)*(2/3-n):e}class Il{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(void 0===t&&void 0===n){const t=e;t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=dr){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(255&e)/255,Zr.toWorkingColorSpace(this,t),this}setRGB(e,t,n,i=Zr.workingColorSpace){return this.r=e,this.g=t,this.b=n,Zr.toWorkingColorSpace(this,i),this}setHSL(e,t,n,i=Zr.workingColorSpace){var a;if(e=(e%(a=1)+a)%a,t=kr(t,0,1),n=kr(n,0,1),0===t)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+t):n+t-n*t,a=2*n-i;this.r=ql(a,i,e+1/3),this.g=ql(a,i,e),this.b=ql(a,i,e-1/3)}return Zr.toWorkingColorSpace(this,i),this}setStyle(e,t=dr){function n(e){void 0!==e&&parseFloat(e)}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(e)){let e;const a=i[1],r=i[2];switch(a){case"rgb":case"rgba":if(e=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return n(e[4]),this.setRGB(Math.min(255,parseInt(e[1],10))/255,Math.min(255,parseInt(e[2],10))/255,Math.min(255,parseInt(e[3],10))/255,t);if(e=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return n(e[4]),this.setRGB(Math.min(100,parseInt(e[1],10))/100,Math.min(100,parseInt(e[2],10))/100,Math.min(100,parseInt(e[3],10))/100,t);break;case"hsl":case"hsla":if(e=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(r))return n(e[4]),this.setHSL(parseFloat(e[1])/360,parseFloat(e[2])/100,parseFloat(e[3])/100,t)}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(e)){const e=i[1],n=e.length;if(3===n)return this.setRGB(parseInt(e.charAt(0),16)/15,parseInt(e.charAt(1),16)/15,parseInt(e.charAt(2),16)/15,t);if(6===n)return this.setHex(parseInt(e,16),t)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=dr){const n=Rl[e.toLowerCase()];return void 0!==n&&this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Qr(e.r),this.g=Qr(e.g),this.b=Qr(e.b),this}copyLinearToSRGB(e){return this.r=eo(e.r),this.g=eo(e.g),this.b=eo(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=dr){return Zr.fromWorkingColorSpace(zl.copy(this),e),65536*Math.round(kr(255*zl.r,0,255))+256*Math.round(kr(255*zl.g,0,255))+Math.round(kr(255*zl.b,0,255))}getHexString(e=dr){return("000000"+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Zr.workingColorSpace){Zr.fromWorkingColorSpace(zl.copy(this),t);const n=zl.r,i=zl.g,a=zl.b,r=Math.max(n,i,a),o=Math.min(n,i,a);let l,s;const c=(o+r)/2;if(o===r)l=0,s=0;else{const e=r-o;switch(s=c<=.5?e/(r+o):e/(2-r-o),r){case n:l=(i-a)/e+(i<a?6:0);break;case i:l=(a-n)/e+2;break;case a:l=(n-i)/e+4}l/=6}return e.h=l,e.s=s,e.l=c,e}getRGB(e,t=Zr.workingColorSpace){return Zr.fromWorkingColorSpace(zl.copy(this),t),e.r=zl.r,e.g=zl.g,e.b=zl.b,e}getStyle(e=dr){Zr.fromWorkingColorSpace(zl.copy(this),e);const t=zl.r,n=zl.g,i=zl.b;return e!==dr?`color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})`:`rgb(${Math.round(255*t)},${Math.round(255*n)},${Math.round(255*i)})`}offsetHSL(e,t,n){return this.getHSL(Ll),this.setHSL(Ll.h+e,Ll.s+t,Ll.l+n)}add(e){return this.r+=e.r,this.g+=e.g,this.b+=e.b,this}addColors(e,t){return this.r=e.r+t.r,this.g=e.g+t.g,this.b=e.b+t.b,this}addScalar(e){return this.r+=e,this.g+=e,this.b+=e,this}sub(e){return this.r=Math.max(0,this.r-e.r),this.g=Math.max(0,this.g-e.g),this.b=Math.max(0,this.b-e.b),this}multiply(e){return this.r*=e.r,this.g*=e.g,this.b*=e.b,this}multiplyScalar(e){return this.r*=e,this.g*=e,this.b*=e,this}lerp(e,t){return this.r+=(e.r-this.r)*t,this.g+=(e.g-this.g)*t,this.b+=(e.b-this.b)*t,this}lerpColors(e,t,n){return this.r=e.r+(t.r-e.r)*n,this.g=e.g+(t.g-e.g)*n,this.b=e.b+(t.b-e.b)*n,this}lerpHSL(e,t){this.getHSL(Ll),e.getHSL(Pl);const n=Br(Ll.h,Pl.h,t),i=Br(Ll.s,Pl.s,t),a=Br(Ll.l,Pl.l,t);return this.setHSL(n,i,a),this}setFromVector3(e){return this.r=e.x,this.g=e.y,this.b=e.z,this}applyMatrix3(e){const t=this.r,n=this.g,i=this.b,a=e.elements;return this.r=a[0]*t+a[3]*n+a[6]*i,this.g=a[1]*t+a[4]*n+a[7]*i,this.b=a[2]*t+a[5]*n+a[8]*i,this}equals(e){return e.r===this.r&&e.g===this.g&&e.b===this.b}fromArray(e,t=0){return this.r=e[t],this.g=e[t+1],this.b=e[t+2],this}toArray(e=[],t=0){return e[t]=this.r,e[t+1]=this.g,e[t+2]=this.b,e}fromBufferAttribute(e,t){return this.r=e.getX(t),this.g=e.getY(t),this.b=e.getZ(t),this}toJSON(){return this.getHex()}*[Symbol.iterator](){yield this.r,yield this.g,yield this.b}}const zl=new Il;Il.NAMES=Rl;let kl=0;class Bl extends Lr{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:kl++}),this.uuid=zr(),this.name="",this.type="Material",this.blending=1,this.side=_i,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=Si,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new Il(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=xr,this.stencilZFail=xr,this.stencilZPass=xr,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(void 0!==e)for(const t in e){const n=e[t];if(void 0===n)continue;const i=this[t];void 0!==i&&(i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[t]=n)}}toJSON(e){const t=void 0===e||"string"==typeof e;t&&(e={textures:{},images:{}});const n={metadata:{version:4.6,type:"Material",generator:"Material.toJSON"}};function i(e){const t=[];for(const n in e){const i=e[n];delete i.metadata,t.push(i)}return t}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),void 0!==this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.dispersion&&(n.dispersion=this.dispersion),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),void 0!==this.anisotropy&&(n.anisotropy=this.anisotropy),void 0!==this.anisotropyRotation&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapRotation&&(n.envMapRotation=this.envMapRotation.toArray()),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),1!==this.blending&&(n.blending=this.blending),this.side!==_i&&(n.side=this.side),!0===this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=!0),204!==this.blendSrc&&(n.blendSrc=this.blendSrc),205!==this.blendDst&&(n.blendDst=this.blendDst),this.blendEquation!==Si&&(n.blendEquation=this.blendEquation),null!==this.blendSrcAlpha&&(n.blendSrcAlpha=this.blendSrcAlpha),null!==this.blendDstAlpha&&(n.blendDstAlpha=this.blendDstAlpha),null!==this.blendEquationAlpha&&(n.blendEquationAlpha=this.blendEquationAlpha),this.blendColor&&this.blendColor.isColor&&(n.blendColor=this.blendColor.getHex()),0!==this.blendAlpha&&(n.blendAlpha=this.blendAlpha),3!==this.depthFunc&&(n.depthFunc=this.depthFunc),!1===this.depthTest&&(n.depthTest=this.depthTest),!1===this.depthWrite&&(n.depthWrite=this.depthWrite),!1===this.colorWrite&&(n.colorWrite=this.colorWrite),255!==this.stencilWriteMask&&(n.stencilWriteMask=this.stencilWriteMask),519!==this.stencilFunc&&(n.stencilFunc=this.stencilFunc),0!==this.stencilRef&&(n.stencilRef=this.stencilRef),255!==this.stencilFuncMask&&(n.stencilFuncMask=this.stencilFuncMask),this.stencilFail!==xr&&(n.stencilFail=this.stencilFail),this.stencilZFail!==xr&&(n.stencilZFail=this.stencilZFail),this.stencilZPass!==xr&&(n.stencilZPass=this.stencilZPass),!0===this.stencilWrite&&(n.stencilWrite=this.stencilWrite),void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaHash&&(n.alphaHash=!0),!0===this.alphaToCoverage&&(n.alphaToCoverage=!0),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=!0),!0===this.forceSinglePass&&(n.forceSinglePass=!0),!0===this.wireframe&&(n.wireframe=!0),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=!0),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),t){const t=i(e.textures),a=i(e.images);t.length>0&&(n.textures=t),a.length>0&&(n.images=a)}return n}clone(){return(new this.constructor).copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;const t=e.clippingPlanes;let n=null;if(null!==t){const e=t.length;n=new Array(e);for(let i=0;i!==e;++i)n[i]=t[i].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(e){!0===e&&this.version++}onBuild(){}onBeforeRender(){}}class Dl extends Bl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type="MeshBasicMaterial",this.color=new Il(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new tl,this.combine=Ui,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}}const Ul=new fo,Vl=new Vr;class Ol{constructor(e,t,n=!1){if(Array.isArray(e))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=e,this.itemSize=t,this.count=void 0!==e?e.length/t:0,this.normalized=n,this.usage=35044,this._updateRange={offset:0,count:-1},this.updateRanges=[],this.gpuType=ma,this.version=0}onUploadCallback(){}set needsUpdate(e){!0===e&&this.version++}get updateRange(){return jr("THREE.BufferAttribute: updateRange() is deprecated and will be removed in r169. Use addUpdateRange() instead."),this._updateRange}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let i=0,a=this.itemSize;i<a;i++)this.array[e+i]=t.array[n+i];return this}copyArray(e){return this.array.set(e),this}applyMatrix3(e){if(2===this.itemSize)for(let t=0,n=this.count;t<n;t++)Vl.fromBufferAttribute(this,t),Vl.applyMatrix3(e),this.setXY(t,Vl.x,Vl.y);else if(3===this.itemSize)for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.applyMatrix3(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}applyMatrix4(e){for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.applyMatrix4(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}applyNormalMatrix(e){for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.applyNormalMatrix(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}transformDirection(e){for(let t=0,n=this.count;t<n;t++)Ul.fromBufferAttribute(this,t),Ul.transformDirection(e),this.setXYZ(t,Ul.x,Ul.y,Ul.z);return this}set(e,t=0){return this.array.set(e,t),this}getComponent(e,t){let n=this.array[e*this.itemSize+t];return this.normalized&&(n=Dr(n,this.array)),n}setComponent(e,t,n){return this.normalized&&(n=Ur(n,this.array)),this.array[e*this.itemSize+t]=n,this}getX(e){let t=this.array[e*this.itemSize];return this.normalized&&(t=Dr(t,this.array)),t}setX(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize]=t,this}getY(e){let t=this.array[e*this.itemSize+1];return this.normalized&&(t=Dr(t,this.array)),t}setY(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize+1]=t,this}getZ(e){let t=this.array[e*this.itemSize+2];return this.normalized&&(t=Dr(t,this.array)),t}setZ(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize+2]=t,this}getW(e){let t=this.array[e*this.itemSize+3];return this.normalized&&(t=Dr(t,this.array)),t}setW(e,t){return this.normalized&&(t=Ur(t,this.array)),this.array[e*this.itemSize+3]=t,this}setXY(e,t,n){return e*=this.itemSize,this.normalized&&(t=Ur(t,this.array),n=Ur(n,this.array)),this.array[e+0]=t,this.array[e+1]=n,this}setXYZ(e,t,n,i){return e*=this.itemSize,this.normalized&&(t=Ur(t,this.array),n=Ur(n,this.array),i=Ur(i,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this}setXYZW(e,t,n,i,a){return e*=this.itemSize,this.normalized&&(t=Ur(t,this.array),n=Ur(n,this.array),i=Ur(i,this.array),a=Ur(a,this.array)),this.array[e+0]=t,this.array[e+1]=n,this.array[e+2]=i,this.array[e+3]=a,this}onUpload(e){return this.onUploadCallback=e,this}clone(){return new this.constructor(this.array,this.itemSize).copy(this)}toJSON(){const e={itemSize:this.itemSize,type:this.array.constructor.name,array:Array.from(this.array),normalized:this.normalized};return""!==this.name&&(e.name=this.name),35044!==this.usage&&(e.usage=this.usage),e}}class Fl extends Ol{constructor(e,t,n){super(new Uint16Array(e),t,n)}}class Hl extends Ol{constructor(e,t,n){super(new Uint32Array(e),t,n)}}class Gl extends Ol{constructor(e,t,n){super(new Float32Array(e),t,n)}}let Wl=0;const Xl=new Wo,jl=new _l,$l=new fo,Kl=new _o,Yl=new _o,Jl=new fo;class Zl extends Lr{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Wl++}),this.uuid=zr(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}getIndex(){return this.index}setIndex(e){return Array.isArray(e)?this.index=new(Hr(e)?Hl:Fl)(e,1):this.index=e,this}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return void 0!==this.attributes[e]}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){const t=this.attributes.position;void 0!==t&&(t.applyMatrix4(e),t.needsUpdate=!0);const n=this.attributes.normal;if(void 0!==n){const t=(new Or).getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}const i=this.attributes.tangent;return void 0!==i&&(i.transformDirection(e),i.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this}applyQuaternion(e){return Xl.makeRotationFromQuaternion(e),this.applyMatrix4(Xl),this}rotateX(e){return Xl.makeRotationX(e),this.applyMatrix4(Xl),this}rotateY(e){return Xl.makeRotationY(e),this.applyMatrix4(Xl),this}rotateZ(e){return Xl.makeRotationZ(e),this.applyMatrix4(Xl),this}translate(e,t,n){return Xl.makeTranslation(e,t,n),this.applyMatrix4(Xl),this}scale(e,t,n){return Xl.makeScale(e,t,n),this.applyMatrix4(Xl),this}lookAt(e){return jl.lookAt(e),jl.updateMatrix(),this.applyMatrix4(jl.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter($l).negate(),this.translate($l.x,$l.y,$l.z),this}setFromPoints(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n];t.push(i.x,i.y,i.z||0)}return this.setAttribute("position",new Gl(t,3)),this}computeBoundingBox(){null===this.boundingBox&&(this.boundingBox=new _o);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingBox.set(new fo(-1/0,-1/0,-1/0),new fo(1/0,1/0,1/0));else{if(void 0!==e){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e<n;e++){const n=t[e];Kl.setFromBufferAttribute(n),this.morphTargetsRelative?(Jl.addVectors(this.boundingBox.min,Kl.min),this.boundingBox.expandByPoint(Jl),Jl.addVectors(this.boundingBox.max,Kl.max),this.boundingBox.expandByPoint(Jl)):(this.boundingBox.expandByPoint(Kl.min),this.boundingBox.expandByPoint(Kl.max))}}else this.boundingBox.makeEmpty();isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z)}}computeBoundingSphere(){null===this.boundingSphere&&(this.boundingSphere=new ko);const e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)this.boundingSphere.set(new fo,1/0);else if(e){const n=this.boundingSphere.center;if(Kl.setFromBufferAttribute(e),t)for(let e=0,a=t.length;e<a;e++){const n=t[e];Yl.setFromBufferAttribute(n),this.morphTargetsRelative?(Jl.addVectors(Kl.min,Yl.min),Kl.expandByPoint(Jl),Jl.addVectors(Kl.max,Yl.max),Kl.expandByPoint(Jl)):(Kl.expandByPoint(Yl.min),Kl.expandByPoint(Yl.max))}Kl.getCenter(n);let i=0;for(let t=0,a=e.count;t<a;t++)Jl.fromBufferAttribute(e,t),i=Math.max(i,n.distanceToSquared(Jl));if(t)for(let a=0,r=t.length;a<r;a++){const r=t[a],o=this.morphTargetsRelative;for(let t=0,a=r.count;t<a;t++)Jl.fromBufferAttribute(r,t),o&&($l.fromBufferAttribute(e,t),Jl.add($l)),i=Math.max(i,n.distanceToSquared(Jl))}this.boundingSphere.radius=Math.sqrt(i),isNaN(this.boundingSphere.radius)}}computeTangents(){const e=this.index,t=this.attributes;if(null===e||void 0===t.position||void 0===t.normal||void 0===t.uv)return;const n=t.position,i=t.normal,a=t.uv;!1===this.hasAttribute("tangent")&&this.setAttribute("tangent",new Ol(new Float32Array(4*n.count),4));const r=this.getAttribute("tangent"),o=[],l=[];for(let M=0;M<n.count;M++)o[M]=new fo,l[M]=new fo;const s=new fo,c=new fo,u=new fo,d=new Vr,h=new Vr,p=new Vr,m=new fo,f=new fo;function v(e,t,i){s.fromBufferAttribute(n,e),c.fromBufferAttribute(n,t),u.fromBufferAttribute(n,i),d.fromBufferAttribute(a,e),h.fromBufferAttribute(a,t),p.fromBufferAttribute(a,i),c.sub(s),u.sub(s),h.sub(d),p.sub(d);const r=1/(h.x*p.y-p.x*h.y);isFinite(r)&&(m.copy(c).multiplyScalar(p.y).addScaledVector(u,-h.y).multiplyScalar(r),f.copy(u).multiplyScalar(h.x).addScaledVector(c,-p.x).multiplyScalar(r),o[e].add(m),o[t].add(m),o[i].add(m),l[e].add(f),l[t].add(f),l[i].add(f))}let g=this.groups;0===g.length&&(g=[{start:0,count:e.count}]);for(let M=0,E=g.length;M<E;++M){const t=g[M],n=t.start;for(let i=n,a=n+t.count;i<a;i+=3)v(e.getX(i+0),e.getX(i+1),e.getX(i+2))}const _=new fo,x=new fo,y=new fo,S=new fo;function b(e){y.fromBufferAttribute(i,e),S.copy(y);const t=o[e];_.copy(t),_.sub(y.multiplyScalar(y.dot(t))).normalize(),x.crossVectors(S,t);const n=x.dot(l[e])<0?-1:1;r.setXYZW(e,_.x,_.y,_.z,n)}for(let M=0,E=g.length;M<E;++M){const t=g[M],n=t.start;for(let i=n,a=n+t.count;i<a;i+=3)b(e.getX(i+0)),b(e.getX(i+1)),b(e.getX(i+2))}}computeVertexNormals(){const e=this.index,t=this.getAttribute("position");if(void 0!==t){let n=this.getAttribute("normal");if(void 0===n)n=new Ol(new Float32Array(3*t.count),3),this.setAttribute("normal",n);else for(let e=0,t=n.count;e<t;e++)n.setXYZ(e,0,0,0);const i=new fo,a=new fo,r=new fo,o=new fo,l=new fo,s=new fo,c=new fo,u=new fo;if(e)for(let d=0,h=e.count;d<h;d+=3){const h=e.getX(d+0),p=e.getX(d+1),m=e.getX(d+2);i.fromBufferAttribute(t,h),a.fromBufferAttribute(t,p),r.fromBufferAttribute(t,m),c.subVectors(r,a),u.subVectors(i,a),c.cross(u),o.fromBufferAttribute(n,h),l.fromBufferAttribute(n,p),s.fromBufferAttribute(n,m),o.add(c),l.add(c),s.add(c),n.setXYZ(h,o.x,o.y,o.z),n.setXYZ(p,l.x,l.y,l.z),n.setXYZ(m,s.x,s.y,s.z)}else for(let e=0,d=t.count;e<d;e+=3)i.fromBufferAttribute(t,e+0),a.fromBufferAttribute(t,e+1),r.fromBufferAttribute(t,e+2),c.subVectors(r,a),u.subVectors(i,a),c.cross(u),n.setXYZ(e+0,c.x,c.y,c.z),n.setXYZ(e+1,c.x,c.y,c.z),n.setXYZ(e+2,c.x,c.y,c.z);this.normalizeNormals(),n.needsUpdate=!0}}normalizeNormals(){const e=this.attributes.normal;for(let t=0,n=e.count;t<n;t++)Jl.fromBufferAttribute(e,t),Jl.normalize(),e.setXYZ(t,Jl.x,Jl.y,Jl.z)}toNonIndexed(){function e(e,t){const n=e.array,i=e.itemSize,a=e.normalized,r=new n.constructor(t.length*i);let o=0,l=0;for(let s=0,c=t.length;s<c;s++){o=e.isInterleavedBufferAttribute?t[s]*e.data.stride+e.offset:t[s]*i;for(let e=0;e<i;e++)r[l++]=n[o++]}return new Ol(r,i,a)}if(null===this.index)return this;const t=new Zl,n=this.index.array,i=this.attributes;for(const o in i){const a=e(i[o],n);t.setAttribute(o,a)}const a=this.morphAttributes;for(const o in a){const i=[],r=a[o];for(let t=0,a=r.length;t<a;t++){const a=e(r[t],n);i.push(a)}t.morphAttributes[o]=i}t.morphTargetsRelative=this.morphTargetsRelative;const r=this.groups;for(let o=0,l=r.length;o<l;o++){const e=r[o];t.addGroup(e.start,e.count,e.materialIndex)}return t}toJSON(){const e={metadata:{version:4.6,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(e.uuid=this.uuid,e.type=this.type,""!==this.name&&(e.name=this.name),Object.keys(this.userData).length>0&&(e.userData=this.userData),void 0!==this.parameters){const t=this.parameters;for(const n in t)void 0!==t[n]&&(e[n]=t[n]);return e}e.data={attributes:{}};const t=this.index;null!==t&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});const n=this.attributes;for(const l in n){const t=n[l];e.data.attributes[l]=t.toJSON(e.data)}const i={};let a=!1;for(const l in this.morphAttributes){const t=this.morphAttributes[l],n=[];for(let i=0,a=t.length;i<a;i++){const a=t[i];n.push(a.toJSON(e.data))}n.length>0&&(i[l]=n,a=!0)}a&&(e.data.morphAttributes=i,e.data.morphTargetsRelative=this.morphTargetsRelative);const r=this.groups;r.length>0&&(e.data.groups=JSON.parse(JSON.stringify(r)));const o=this.boundingSphere;return null!==o&&(e.data.boundingSphere={center:o.center.toArray(),radius:o.radius}),e}clone(){return(new this.constructor).copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const t={};this.name=e.name;const n=e.index;null!==n&&this.setIndex(n.clone(t));const i=e.attributes;for(const s in i){const e=i[s];this.setAttribute(s,e.clone(t))}const a=e.morphAttributes;for(const s in a){const e=[],n=a[s];for(let i=0,a=n.length;i<a;i++)e.push(n[i].clone(t));this.morphAttributes[s]=e}this.morphTargetsRelative=e.morphTargetsRelative;const r=e.groups;for(let s=0,c=r.length;s<c;s++){const e=r[s];this.addGroup(e.start,e.count,e.materialIndex)}const o=e.boundingBox;null!==o&&(this.boundingBox=o.clone());const l=e.boundingSphere;return null!==l&&(this.boundingSphere=l.clone()),this.drawRange.start=e.drawRange.start,this.drawRange.count=e.drawRange.count,this.userData=e.userData,this}dispose(){this.dispatchEvent({type:"dispose"})}}const Ql=new Wo,es=new Go,ts=new ko,ns=new fo,is=new fo,as=new fo,rs=new fo,os=new fo,ls=new fo,ss=new Vr,cs=new Vr,us=new Vr,ds=new fo,hs=new fo,ps=new fo,ms=new fo,fs=new fo;class vs extends _l{constructor(e=new Zl,t=new Dl){super(),this.isMesh=!0,this.type="Mesh",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),void 0!==e.morphTargetInfluences&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),void 0!==e.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}getVertexPosition(e,t){const n=this.geometry,i=n.attributes.position,a=n.morphAttributes.position,r=n.morphTargetsRelative;t.fromBufferAttribute(i,e);const o=this.morphTargetInfluences;if(a&&o){ls.set(0,0,0);for(let n=0,i=a.length;n<i;n++){const i=o[n],l=a[n];0!==i&&(os.fromBufferAttribute(l,e),r?ls.addScaledVector(os,i):ls.addScaledVector(os.sub(t),i))}t.add(ls)}return t}raycast(e,t){const n=this.geometry,i=this.material,a=this.matrixWorld;if(void 0!==i){if(null===n.boundingSphere&&n.computeBoundingSphere(),ts.copy(n.boundingSphere),ts.applyMatrix4(a),es.copy(e.ray).recast(e.near),!1===ts.containsPoint(es.origin)){if(null===es.intersectSphere(ts,ns))return;if(es.origin.distanceToSquared(ns)>(e.far-e.near)**2)return}Ql.copy(a).invert(),es.copy(e.ray).applyMatrix4(Ql),null!==n.boundingBox&&!1===es.intersectsBox(n.boundingBox)||this._computeIntersections(e,t,es)}}_computeIntersections(e,t,n){let i;const a=this.geometry,r=this.material,o=a.index,l=a.attributes.position,s=a.attributes.uv,c=a.attributes.uv1,u=a.attributes.normal,d=a.groups,h=a.drawRange;if(null!==o)if(Array.isArray(r))for(let p=0,m=d.length;p<m;p++){const a=d[p],l=r[a.materialIndex];for(let r=Math.max(a.start,h.start),d=Math.min(o.count,Math.min(a.start+a.count,h.start+h.count));r<d;r+=3){i=gs(this,l,e,n,s,c,u,o.getX(r),o.getX(r+1),o.getX(r+2)),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=a.materialIndex,t.push(i))}}else{for(let a=Math.max(0,h.start),l=Math.min(o.count,h.start+h.count);a<l;a+=3){i=gs(this,r,e,n,s,c,u,o.getX(a),o.getX(a+1),o.getX(a+2)),i&&(i.faceIndex=Math.floor(a/3),t.push(i))}}else if(void 0!==l)if(Array.isArray(r))for(let p=0,m=d.length;p<m;p++){const a=d[p],o=r[a.materialIndex];for(let r=Math.max(a.start,h.start),d=Math.min(l.count,Math.min(a.start+a.count,h.start+h.count));r<d;r+=3){i=gs(this,o,e,n,s,c,u,r,r+1,r+2),i&&(i.faceIndex=Math.floor(r/3),i.face.materialIndex=a.materialIndex,t.push(i))}}else{for(let a=Math.max(0,h.start),o=Math.min(l.count,h.start+h.count);a<o;a+=3){i=gs(this,r,e,n,s,c,u,a,a+1,a+2),i&&(i.faceIndex=Math.floor(a/3),t.push(i))}}}}function gs(e,t,n,i,a,r,o,l,s,c){e.getVertexPosition(l,is),e.getVertexPosition(s,as),e.getVertexPosition(c,rs);const u=function(e,t,n,i,a,r,o,l){let s;if(s=t.side===xi?i.intersectTriangle(o,r,a,!0,l):i.intersectTriangle(a,r,o,t.side===_i,l),null===s)return null;fs.copy(l),fs.applyMatrix4(e.matrixWorld);const c=n.ray.origin.distanceTo(fs);return c<n.near||c>n.far?null:{distance:c,point:fs.clone(),object:e}}(e,t,n,i,is,as,rs,ms);if(u){a&&(ss.fromBufferAttribute(a,l),cs.fromBufferAttribute(a,s),us.fromBufferAttribute(a,c),u.uv=Nl.getInterpolation(ms,is,as,rs,ss,cs,us,new Vr)),r&&(ss.fromBufferAttribute(r,l),cs.fromBufferAttribute(r,s),us.fromBufferAttribute(r,c),u.uv1=Nl.getInterpolation(ms,is,as,rs,ss,cs,us,new Vr)),o&&(ds.fromBufferAttribute(o,l),hs.fromBufferAttribute(o,s),ps.fromBufferAttribute(o,c),u.normal=Nl.getInterpolation(ms,is,as,rs,ds,hs,ps,new fo),u.normal.dot(i.direction)>0&&u.normal.multiplyScalar(-1));const e={a:l,b:s,c:c,normal:new fo,materialIndex:0};Nl.getNormal(is,as,rs,e.normal),u.face=e}return u}class _s extends Zl{constructor(e=1,t=1,n=1,i=1,a=1,r=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:a,depthSegments:r};const o=this;i=Math.floor(i),a=Math.floor(a),r=Math.floor(r);const l=[],s=[],c=[],u=[];let d=0,h=0;function p(e,t,n,i,a,r,p,m,f,v,g){const _=r/f,x=p/v,y=r/2,S=p/2,b=m/2,M=f+1,E=v+1;let w=0,T=0;const C=new fo;for(let o=0;o<E;o++){const r=o*x-S;for(let l=0;l<M;l++){const d=l*_-y;C[e]=d*i,C[t]=r*a,C[n]=b,s.push(C.x,C.y,C.z),C[e]=0,C[t]=0,C[n]=m>0?1:-1,c.push(C.x,C.y,C.z),u.push(l/f),u.push(1-o/v),w+=1}}for(let o=0;o<v;o++)for(let e=0;e<f;e++){const t=d+e+M*o,n=d+e+M*(o+1),i=d+(e+1)+M*(o+1),a=d+(e+1)+M*o;l.push(t,n,a),l.push(n,i,a),T+=6}o.addGroup(h,T,g),h+=T,d+=w}p("z","y","x",-1,-1,n,t,e,r,a,0),p("z","y","x",1,-1,n,t,-e,r,a,1),p("x","z","y",1,1,e,n,t,i,r,2),p("x","z","y",1,-1,e,n,-t,i,r,3),p("x","y","z",1,-1,e,t,n,i,a,4),p("x","y","z",-1,-1,e,t,-n,i,a,5),this.setIndex(l),this.setAttribute("position",new Gl(s,3)),this.setAttribute("normal",new Gl(c,3)),this.setAttribute("uv",new Gl(u,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new _s(e.width,e.height,e.depth,e.widthSegments,e.heightSegments,e.depthSegments)}}function xs(e){const t={};for(const n in e){t[n]={};for(const i in e[n]){const a=e[n][i];a&&(a.isColor||a.isMatrix3||a.isMatrix4||a.isVector2||a.isVector3||a.isVector4||a.isTexture||a.isQuaternion)?a.isRenderTargetTexture?t[n][i]=null:t[n][i]=a.clone():Array.isArray(a)?t[n][i]=a.slice():t[n][i]=a}}return t}function ys(e){const t={};for(let n=0;n<e.length;n++){const i=xs(e[n]);for(const e in i)t[e]=i[e]}return t}function Ss(e){const t=e.getRenderTarget();return null===t?e.outputColorSpace:!0===t.isXRRenderTarget?t.texture.colorSpace:Zr.workingColorSpace}const bs={clone:xs,merge:ys};class Ms extends Bl{constructor(e){super(),this.isShaderMaterial=!0,this.type="ShaderMaterial",this.defines={},this.uniforms={},this.uniformsGroups=[],this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.forceSinglePass=!0,this.extensions={clipCullDistance:!1,multiDraw:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv1:[0,0]},this.index0AttributeName=void 0,this.uniformsNeedUpdate=!1,this.glslVersion=null,void 0!==e&&this.setValues(e)}copy(e){return super.copy(e),this.fragmentShader=e.fragmentShader,this.vertexShader=e.vertexShader,this.uniforms=xs(e.uniforms),this.uniformsGroups=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].clone());return t}(e.uniformsGroups),this.defines=Object.assign({},e.defines),this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.fog=e.fog,this.lights=e.lights,this.clipping=e.clipping,this.extensions=Object.assign({},e.extensions),this.glslVersion=e.glslVersion,this}toJSON(e){const t=super.toJSON(e);t.glslVersion=this.glslVersion,t.uniforms={};for(const i in this.uniforms){const n=this.uniforms[i].value;n&&n.isTexture?t.uniforms[i]={type:"t",value:n.toJSON(e).uuid}:n&&n.isColor?t.uniforms[i]={type:"c",value:n.getHex()}:n&&n.isVector2?t.uniforms[i]={type:"v2",value:n.toArray()}:n&&n.isVector3?t.uniforms[i]={type:"v3",value:n.toArray()}:n&&n.isVector4?t.uniforms[i]={type:"v4",value:n.toArray()}:n&&n.isMatrix3?t.uniforms[i]={type:"m3",value:n.toArray()}:n&&n.isMatrix4?t.uniforms[i]={type:"m4",value:n.toArray()}:t.uniforms[i]={value:n}}Object.keys(this.defines).length>0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;const n={};for(const i in this.extensions)!0===this.extensions[i]&&(n[i]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}}class Es extends _l{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new Wo,this.projectionMatrix=new Wo,this.projectionMatrixInverse=new Wo,this.coordinateSystem=Nr}copy(e,t){return super.copy(e,t),this.matrixWorldInverse.copy(e.matrixWorldInverse),this.projectionMatrix.copy(e.projectionMatrix),this.projectionMatrixInverse.copy(e.projectionMatrixInverse),this.coordinateSystem=e.coordinateSystem,this}getWorldDirection(e){return super.getWorldDirection(e).negate()}updateMatrixWorld(e){super.updateMatrixWorld(e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(e,t){super.updateWorldMatrix(e,t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return(new this.constructor).copy(this)}}const ws=new fo,Ts=new Vr,Cs=new Vr;class As extends Es{constructor(e=50,t=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=e,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=t,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.fov=e.fov,this.zoom=e.zoom,this.near=e.near,this.far=e.far,this.focus=e.focus,this.aspect=e.aspect,this.view=null===e.view?null:Object.assign({},e.view),this.filmGauge=e.filmGauge,this.filmOffset=e.filmOffset,this}setFocalLength(e){const t=.5*this.getFilmHeight()/e;this.fov=2*Ir*Math.atan(t),this.updateProjectionMatrix()}getFocalLength(){const e=Math.tan(.5*qr*this.fov);return.5*this.getFilmHeight()/e}getEffectiveFOV(){return 2*Ir*Math.atan(Math.tan(.5*qr*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}getViewBounds(e,t,n){ws.set(-1,-1,.5).applyMatrix4(this.projectionMatrixInverse),t.set(ws.x,ws.y).multiplyScalar(-e/ws.z),ws.set(1,1,.5).applyMatrix4(this.projectionMatrixInverse),n.set(ws.x,ws.y).multiplyScalar(-e/ws.z)}getViewSize(e,t){return this.getViewBounds(e,Ts,Cs),t.subVectors(Cs,Ts)}setViewOffset(e,t,n,i,a,r){this.aspect=e/t,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=a,this.view.height=r,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=this.near;let t=e*Math.tan(.5*qr*this.fov)/this.zoom,n=2*t,i=this.aspect*n,a=-.5*i;const r=this.view;if(null!==this.view&&this.view.enabled){const e=r.fullWidth,o=r.fullHeight;a+=r.offsetX*i/e,t-=r.offsetY*n/o,i*=r.width/e,n*=r.height/o}const o=this.filmOffset;0!==o&&(a+=e*o/this.getFilmWidth()),this.projectionMatrix.makePerspective(a,a+i,t,t-n,e,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}const Ns=-90;class Rs extends _l{constructor(e,t,n){super(),this.type="CubeCamera",this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;const i=new As(Ns,1,e,t);i.layers=this.layers,this.add(i);const a=new As(Ns,1,e,t);a.layers=this.layers,this.add(a);const r=new As(Ns,1,e,t);r.layers=this.layers,this.add(r);const o=new As(Ns,1,e,t);o.layers=this.layers,this.add(o);const l=new As(Ns,1,e,t);l.layers=this.layers,this.add(l);const s=new As(Ns,1,e,t);s.layers=this.layers,this.add(s)}updateCoordinateSystem(){const e=this.coordinateSystem,t=this.children.concat(),[n,i,a,r,o,l]=t;for(const s of t)this.remove(s);if(e===Nr)n.up.set(0,1,0),n.lookAt(1,0,0),i.up.set(0,1,0),i.lookAt(-1,0,0),a.up.set(0,0,-1),a.lookAt(0,1,0),r.up.set(0,0,1),r.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),l.up.set(0,1,0),l.lookAt(0,0,-1);else{if(e!==Rr)throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: "+e);n.up.set(0,-1,0),n.lookAt(-1,0,0),i.up.set(0,-1,0),i.lookAt(1,0,0),a.up.set(0,0,1),a.lookAt(0,1,0),r.up.set(0,0,-1),r.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),l.up.set(0,-1,0),l.lookAt(0,0,-1)}for(const s of t)this.add(s),s.updateMatrixWorld()}update(e,t){null===this.parent&&this.updateMatrixWorld();const{renderTarget:n,activeMipmapLevel:i}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());const[a,r,o,l,s,c]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),h=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;const m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,e.setRenderTarget(n,0,i),e.render(t,a),e.setRenderTarget(n,1,i),e.render(t,r),e.setRenderTarget(n,2,i),e.render(t,o),e.setRenderTarget(n,3,i),e.render(t,l),e.setRenderTarget(n,4,i),e.render(t,s),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,i),e.render(t,c),e.setRenderTarget(u,d,h),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}}class Ls extends lo{constructor(e,t,n,i,a,r,o,l,s,c){super(e=void 0!==e?e:[],t=void 0!==t?t:Yi,n,i,a,r,o,l,s,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}}class Ps extends uo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;const n={width:e,height:e,depth:1},i=[n,n,n,n,n,n];this.texture=new Ls(i,t.mapping,t.wrapS,t.wrapT,t.magFilter,t.minFilter,t.format,t.type,t.anisotropy,t.colorSpace),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==t.generateMipmaps&&t.generateMipmaps,this.texture.minFilter=void 0!==t.minFilter?t.minFilter:ra}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include <begin_vertex>\n\t\t\t\t\t#include <project_vertex>\n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include <common>\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new _s(5,5,5),a=new Ms({name:"CubemapFromEquirect",uniforms:xs(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:xi,blending:0});a.uniforms.tEquirect.value=t;const r=new vs(i,a),o=t.minFilter;t.minFilter===la&&(t.minFilter=ra);return new Rs(1,10,this).update(e,r),t.minFilter=o,r.geometry.dispose(),r.material.dispose(),this}clear(e,t,n,i){const a=e.getRenderTarget();for(let r=0;r<6;r++)e.setRenderTarget(this,r),e.clear(t,n,i);e.setRenderTarget(a)}}const qs=new fo,Is=new fo,zs=new Or;class ks{constructor(e=new fo(1,0,0),t=0){this.isPlane=!0,this.normal=e,this.constant=t}set(e,t){return this.normal.copy(e),this.constant=t,this}setComponents(e,t,n,i){return this.normal.set(e,t,n),this.constant=i,this}setFromNormalAndCoplanarPoint(e,t){return this.normal.copy(e),this.constant=-t.dot(this.normal),this}setFromCoplanarPoints(e,t,n){const i=qs.subVectors(n,t).cross(Is.subVectors(e,t)).normalize();return this.setFromNormalAndCoplanarPoint(i,e),this}copy(e){return this.normal.copy(e.normal),this.constant=e.constant,this}normalize(){const e=1/this.normal.length();return this.normal.multiplyScalar(e),this.constant*=e,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(e){return this.normal.dot(e)+this.constant}distanceToSphere(e){return this.distanceToPoint(e.center)-e.radius}projectPoint(e,t){return t.copy(e).addScaledVector(this.normal,-this.distanceToPoint(e))}intersectLine(e,t){const n=e.delta(qs),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(e.start)?t.copy(e.start):null;const a=-(e.start.dot(this.normal)+this.constant)/i;return a<0||a>1?null:t.copy(e.start).addScaledVector(n,a)}intersectsLine(e){const t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){const n=t||zs.getNormalMatrix(e),i=this.coplanarPoint(qs).applyMatrix4(e),a=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(a),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return(new this.constructor).copy(this)}}const Bs=new ko,Ds=new fo;class Us{constructor(e=new ks,t=new ks,n=new ks,i=new ks,a=new ks,r=new ks){this.planes=[e,t,n,i,a,r]}set(e,t,n,i,a,r){const o=this.planes;return o[0].copy(e),o[1].copy(t),o[2].copy(n),o[3].copy(i),o[4].copy(a),o[5].copy(r),this}copy(e){const t=this.planes;for(let n=0;n<6;n++)t[n].copy(e.planes[n]);return this}setFromProjectionMatrix(e,t=2e3){const n=this.planes,i=e.elements,a=i[0],r=i[1],o=i[2],l=i[3],s=i[4],c=i[5],u=i[6],d=i[7],h=i[8],p=i[9],m=i[10],f=i[11],v=i[12],g=i[13],_=i[14],x=i[15];if(n[0].setComponents(l-a,d-s,f-h,x-v).normalize(),n[1].setComponents(l+a,d+s,f+h,x+v).normalize(),n[2].setComponents(l+r,d+c,f+p,x+g).normalize(),n[3].setComponents(l-r,d-c,f-p,x-g).normalize(),n[4].setComponents(l-o,d-u,f-m,x-_).normalize(),t===Nr)n[5].setComponents(l+o,d+u,f+m,x+_).normalize();else{if(t!==Rr)throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: "+t);n[5].setComponents(o,u,m,_).normalize()}return this}intersectsObject(e){if(void 0!==e.boundingSphere)null===e.boundingSphere&&e.computeBoundingSphere(),Bs.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);else{const t=e.geometry;null===t.boundingSphere&&t.computeBoundingSphere(),Bs.copy(t.boundingSphere).applyMatrix4(e.matrixWorld)}return this.intersectsSphere(Bs)}intersectsSprite(e){return Bs.center.set(0,0,0),Bs.radius=.7071067811865476,Bs.applyMatrix4(e.matrixWorld),this.intersectsSphere(Bs)}intersectsSphere(e){const t=this.planes,n=e.center,i=-e.radius;for(let a=0;a<6;a++){if(t[a].distanceToPoint(n)<i)return!1}return!0}intersectsBox(e){const t=this.planes;for(let n=0;n<6;n++){const i=t[n];if(Ds.x=i.normal.x>0?e.max.x:e.min.x,Ds.y=i.normal.y>0?e.max.y:e.min.y,Ds.z=i.normal.z>0?e.max.z:e.min.z,i.distanceToPoint(Ds)<0)return!1}return!0}containsPoint(e){const t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return(new this.constructor).copy(this)}}function Vs(){let e=null,t=!1,n=null,i=null;function a(t,r){n(t,r),i=e.requestAnimationFrame(a)}return{start:function(){!0!==t&&null!==n&&(i=e.requestAnimationFrame(a),t=!0)},stop:function(){e.cancelAnimationFrame(i),t=!1},setAnimationLoop:function(e){n=e},setContext:function(t){e=t}}}function Os(e){const t=new WeakMap;return{get:function(e){return e.isInterleavedBufferAttribute&&(e=e.data),t.get(e)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);const i=t.get(n);i&&(e.deleteBuffer(i.buffer),t.delete(n))},update:function(n,i){if(n.isGLBufferAttribute){const e=t.get(n);return void((!e||e.version<n.version)&&t.set(n,{buffer:n.buffer,type:n.type,bytesPerElement:n.elementSize,version:n.version}))}n.isInterleavedBufferAttribute&&(n=n.data);const a=t.get(n);if(void 0===a)t.set(n,function(t,n){const i=t.array,a=t.usage,r=i.byteLength,o=e.createBuffer();let l;if(e.bindBuffer(n,o),e.bufferData(n,i,a),t.onUploadCallback(),i instanceof Float32Array)l=e.FLOAT;else if(i instanceof Uint16Array)l=t.isFloat16BufferAttribute?e.HALF_FLOAT:e.UNSIGNED_SHORT;else if(i instanceof Int16Array)l=e.SHORT;else if(i instanceof Uint32Array)l=e.UNSIGNED_INT;else if(i instanceof Int32Array)l=e.INT;else if(i instanceof Int8Array)l=e.BYTE;else if(i instanceof Uint8Array)l=e.UNSIGNED_BYTE;else{if(!(i instanceof Uint8ClampedArray))throw new Error("THREE.WebGLAttributes: Unsupported buffer data format: "+i);l=e.UNSIGNED_BYTE}return{buffer:o,type:l,bytesPerElement:i.BYTES_PER_ELEMENT,version:t.version,size:r}}(n,i));else if(a.version<n.version){if(a.size!==n.array.byteLength)throw new Error("THREE.WebGLAttributes: The size of the buffer attribute's array buffer does not match the original size. Resizing buffer attributes is not supported.");!function(t,n,i){const a=n.array,r=n._updateRange,o=n.updateRanges;if(e.bindBuffer(i,t),-1===r.count&&0===o.length&&e.bufferSubData(i,0,a),0!==o.length){for(let t=0,n=o.length;t<n;t++){const n=o[t];e.bufferSubData(i,n.start*a.BYTES_PER_ELEMENT,a,n.start,n.count)}n.clearUpdateRanges()}-1!==r.count&&(e.bufferSubData(i,r.offset*a.BYTES_PER_ELEMENT,a,r.offset,r.count),r.count=-1),n.onUploadCallback()}(a.buffer,n,i),a.version=n.version}}}}class Fs extends Zl{constructor(e=1,t=1,n=1,i=1){super(),this.type="PlaneGeometry",this.parameters={width:e,height:t,widthSegments:n,heightSegments:i};const a=e/2,r=t/2,o=Math.floor(n),l=Math.floor(i),s=o+1,c=l+1,u=e/o,d=t/l,h=[],p=[],m=[],f=[];for(let v=0;v<c;v++){const e=v*d-r;for(let t=0;t<s;t++){const n=t*u-a;p.push(n,-e,0),m.push(0,0,1),f.push(t/o),f.push(1-v/l)}}for(let v=0;v<l;v++)for(let e=0;e<o;e++){const t=e+s*v,n=e+s*(v+1),i=e+1+s*(v+1),a=e+1+s*v;h.push(t,n,a),h.push(n,i,a)}this.setIndex(h),this.setAttribute("position",new Gl(p,3)),this.setAttribute("normal",new Gl(m,3)),this.setAttribute("uv",new Gl(f,2))}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}static fromJSON(e){return new Fs(e.width,e.height,e.widthSegments,e.heightSegments)}}const Hs={alphahash_fragment:"#ifdef USE_ALPHAHASH\n\tif ( diffuseColor.a < getAlphaHashThreshold( vPosition ) ) discard;\n#endif",alphahash_pars_fragment:"#ifdef USE_ALPHAHASH\n\tconst float ALPHA_HASH_SCALE = 0.05;\n\tfloat hash2D( vec2 value ) {\n\t\treturn fract( 1.0e4 * sin( 17.0 * value.x + 0.1 * value.y ) * ( 0.1 + abs( sin( 13.0 * value.y + value.x ) ) ) );\n\t}\n\tfloat hash3D( vec3 value ) {\n\t\treturn hash2D( vec2( hash2D( value.xy ), value.z ) );\n\t}\n\tfloat getAlphaHashThreshold( vec3 position ) {\n\t\tfloat maxDeriv = max(\n\t\t\tlength( dFdx( position.xyz ) ),\n\t\t\tlength( dFdy( position.xyz ) )\n\t\t);\n\t\tfloat pixScale = 1.0 / ( ALPHA_HASH_SCALE * maxDeriv );\n\t\tvec2 pixScales = vec2(\n\t\t\texp2( floor( log2( pixScale ) ) ),\n\t\t\texp2( ceil( log2( pixScale ) ) )\n\t\t);\n\t\tvec2 alpha = vec2(\n\t\t\thash3D( floor( pixScales.x * position.xyz ) ),\n\t\t\thash3D( floor( pixScales.y * position.xyz ) )\n\t\t);\n\t\tfloat lerpFactor = fract( log2( pixScale ) );\n\t\tfloat x = ( 1.0 - lerpFactor ) * alpha.x + lerpFactor * alpha.y;\n\t\tfloat a = min( lerpFactor, 1.0 - lerpFactor );\n\t\tvec3 cases = vec3(\n\t\t\tx * x / ( 2.0 * a * ( 1.0 - a ) ),\n\t\t\t( x - 0.5 * a ) / ( 1.0 - a ),\n\t\t\t1.0 - ( ( 1.0 - x ) * ( 1.0 - x ) / ( 2.0 * a * ( 1.0 - a ) ) )\n\t\t);\n\t\tfloat threshold = ( x < ( 1.0 - a ) )\n\t\t\t? ( ( x < a ) ? cases.x : cases.y )\n\t\t\t: cases.z;\n\t\treturn clamp( threshold , 1.0e-6, 1.0 );\n\t}\n#endif",alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vAlphaMapUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef USE_ALPHATEST\n\t#ifdef ALPHA_TO_COVERAGE\n\tdiffuseColor.a = smoothstep( alphaTest, alphaTest + fwidth( diffuseColor.a ), diffuseColor.a );\n\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\tif ( diffuseColor.a < alphaTest ) discard;\n\t#endif\n#endif",alphatest_pars_fragment:"#ifdef USE_ALPHATEST\n\tuniform float alphaTest;\n#endif",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_CLEARCOAT ) \n\t\tclearcoatSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_SHEEN ) \n\t\tsheenSpecularIndirect *= ambientOcclusion;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometryNormal, geometryViewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );\n\t#endif\n#endif",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",batching_pars_vertex:"#ifdef USE_BATCHING\n\t#if ! defined( GL_ANGLE_multi_draw )\n\t#define gl_DrawID _gl_DrawID\n\tuniform int _gl_DrawID;\n\t#endif\n\tuniform highp sampler2D batchingTexture;\n\tuniform highp usampler2D batchingIdTexture;\n\tmat4 getBatchingMatrix( const in float i ) {\n\t\tint size = textureSize( batchingTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( batchingTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( batchingTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( batchingTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( batchingTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n\tfloat getIndirectIndex( const in int i ) {\n\t\tint size = textureSize( batchingIdTexture, 0 ).x;\n\t\tint x = i % size;\n\t\tint y = i / size;\n\t\treturn float( texelFetch( batchingIdTexture, ivec2( x, y ), 0 ).r );\n\t}\n#endif\n#ifdef USE_BATCHING_COLOR\n\tuniform sampler2D batchingColorTexture;\n\tvec3 getBatchingColor( const in float i ) {\n\t\tint size = textureSize( batchingColorTexture, 0 ).x;\n\t\tint j = int( i );\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\treturn texelFetch( batchingColorTexture, ivec2( x, y ), 0 ).rgb;\n\t}\n#endif",batching_vertex:"#ifdef USE_BATCHING\n\tmat4 batchingMatrix = getBatchingMatrix( getIndirectIndex( gl_DrawID ) );\n#endif",begin_vertex:"vec3 transformed = vec3( position );\n#ifdef USE_ALPHAHASH\n\tvPosition = vec3( position );\n#endif",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"float G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, 1.0, dotVH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n} // validated",iridescence_fragment:"#ifdef USE_IRIDESCENCE\n\tconst mat3 XYZ_TO_REC709 = mat3(\n\t\t 3.2404542, -0.9692660, 0.0556434,\n\t\t-1.5371385, 1.8760108, -0.2040259,\n\t\t-0.4985314, 0.0415560, 1.0572252\n\t);\n\tvec3 Fresnel0ToIor( vec3 fresnel0 ) {\n\t\tvec3 sqrtF0 = sqrt( fresnel0 );\n\t\treturn ( vec3( 1.0 ) + sqrtF0 ) / ( vec3( 1.0 ) - sqrtF0 );\n\t}\n\tvec3 IorToFresnel0( vec3 transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - vec3( incidentIor ) ) / ( transmittedIor + vec3( incidentIor ) ) );\n\t}\n\tfloat IorToFresnel0( float transmittedIor, float incidentIor ) {\n\t\treturn pow2( ( transmittedIor - incidentIor ) / ( transmittedIor + incidentIor ));\n\t}\n\tvec3 evalSensitivity( float OPD, vec3 shift ) {\n\t\tfloat phase = 2.0 * PI * OPD * 1.0e-9;\n\t\tvec3 val = vec3( 5.4856e-13, 4.4201e-13, 5.2481e-13 );\n\t\tvec3 pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );\n\t\tvec3 var = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );\n\t\tvec3 xyz = val * sqrt( 2.0 * PI * var ) * cos( pos * phase + shift ) * exp( - pow2( phase ) * var );\n\t\txyz.x += 9.7470e-14 * sqrt( 2.0 * PI * 4.5282e+09 ) * cos( 2.2399e+06 * phase + shift[ 0 ] ) * exp( - 4.5282e+09 * pow2( phase ) );\n\t\txyz /= 1.0685e-7;\n\t\tvec3 rgb = XYZ_TO_REC709 * xyz;\n\t\treturn rgb;\n\t}\n\tvec3 evalIridescence( float outsideIOR, float eta2, float cosTheta1, float thinFilmThickness, vec3 baseF0 ) {\n\t\tvec3 I;\n\t\tfloat iridescenceIOR = mix( outsideIOR, eta2, smoothstep( 0.0, 0.03, thinFilmThickness ) );\n\t\tfloat sinTheta2Sq = pow2( outsideIOR / iridescenceIOR ) * ( 1.0 - pow2( cosTheta1 ) );\n\t\tfloat cosTheta2Sq = 1.0 - sinTheta2Sq;\n\t\tif ( cosTheta2Sq < 0.0 ) {\n\t\t\treturn vec3( 1.0 );\n\t\t}\n\t\tfloat cosTheta2 = sqrt( cosTheta2Sq );\n\t\tfloat R0 = IorToFresnel0( iridescenceIOR, outsideIOR );\n\t\tfloat R12 = F_Schlick( R0, 1.0, cosTheta1 );\n\t\tfloat T121 = 1.0 - R12;\n\t\tfloat phi12 = 0.0;\n\t\tif ( iridescenceIOR < outsideIOR ) phi12 = PI;\n\t\tfloat phi21 = PI - phi12;\n\t\tvec3 baseIOR = Fresnel0ToIor( clamp( baseF0, 0.0, 0.9999 ) );\t\tvec3 R1 = IorToFresnel0( baseIOR, iridescenceIOR );\n\t\tvec3 R23 = F_Schlick( R1, 1.0, cosTheta2 );\n\t\tvec3 phi23 = vec3( 0.0 );\n\t\tif ( baseIOR[ 0 ] < iridescenceIOR ) phi23[ 0 ] = PI;\n\t\tif ( baseIOR[ 1 ] < iridescenceIOR ) phi23[ 1 ] = PI;\n\t\tif ( baseIOR[ 2 ] < iridescenceIOR ) phi23[ 2 ] = PI;\n\t\tfloat OPD = 2.0 * iridescenceIOR * thinFilmThickness * cosTheta2;\n\t\tvec3 phi = vec3( phi21 ) + phi23;\n\t\tvec3 R123 = clamp( R12 * R23, 1e-5, 0.9999 );\n\t\tvec3 r123 = sqrt( R123 );\n\t\tvec3 Rs = pow2( T121 ) * R23 / ( vec3( 1.0 ) - R123 );\n\t\tvec3 C0 = R12 + Rs;\n\t\tI = C0;\n\t\tvec3 Cm = Rs - T121;\n\t\tfor ( int m = 1; m <= 2; ++ m ) {\n\t\t\tCm *= r123;\n\t\t\tvec3 Sm = 2.0 * evalSensitivity( float( m ) * OPD, float( m ) * phi );\n\t\t\tI += Cm * Sm;\n\t\t}\n\t\treturn max( I, vec3( 0.0 ) );\n\t}\n#endif",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vBumpMapUv );\n\t\tvec2 dSTdy = dFdy( vBumpMapUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vBumpMapUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vBumpMapUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = normalize( dFdx( surf_pos.xyz ) );\n\t\tvec3 vSigmaY = normalize( dFdy( surf_pos.xyz ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#ifdef ALPHA_TO_COVERAGE\n\t\tfloat distanceToPlane, distanceGradient;\n\t\tfloat clipOpacity = 1.0;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\tclipOpacity *= smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\tif ( clipOpacity == 0.0 ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tfloat unionClipOpacity = 1.0;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tdistanceToPlane = - dot( vClipPosition, plane.xyz ) + plane.w;\n\t\t\t\tdistanceGradient = fwidth( distanceToPlane ) / 2.0;\n\t\t\t\tunionClipOpacity *= 1.0 - smoothstep( - distanceGradient, distanceGradient, distanceToPlane );\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tclipOpacity *= 1.0 - unionClipOpacity;\n\t\t#endif\n\t\tdiffuseColor.a *= clipOpacity;\n\t\tif ( diffuseColor.a == 0.0 ) discard;\n\t#else\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\t\tbool clipped = true;\n\t\t\t#pragma unroll_loop_start\n\t\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\t\tplane = clippingPlanes[ i ];\n\t\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t\t}\n\t\t\t#pragma unroll_loop_end\n\t\t\tif ( clipped ) discard;\n\t\t#endif\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR ) || defined( USE_BATCHING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif\n#ifdef USE_BATCHING_COLOR\n\tvec3 batchingColor = getBatchingColor( getIndirectIndex( gl_DrawID ) );\n\tvColor.xyz *= batchingColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\n#ifdef USE_ALPHAHASH\n\tvarying vec3 vPosition;\n#endif\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = objectTangent;\n#endif\n#ifdef USE_BATCHING\n\tmat3 bm = mat3( batchingMatrix );\n\ttransformedNormal /= vec3( dot( bm[ 0 ], bm[ 0 ] ), dot( bm[ 1 ], bm[ 1 ] ), dot( bm[ 2 ], bm[ 2 ] ) );\n\ttransformedNormal = bm * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = bm * transformedTangent;\n\t#endif\n#endif\n#ifdef USE_INSTANCING\n\tmat3 im = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( im[ 0 ], im[ 0 ] ), dot( im[ 1 ], im[ 1 ] ), dot( im[ 2 ], im[ 2 ] ) );\n\ttransformedNormal = im * transformedNormal;\n\t#ifdef USE_TANGENT\n\t\ttransformedTangent = im * transformedTangent;\n\t#endif\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\ttransformedTangent = ( modelViewMatrix * vec4( transformedTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",colorspace_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",colorspace_pars_fragment:"\nconst mat3 LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = mat3(\n\tvec3( 0.8224621, 0.177538, 0.0 ),\n\tvec3( 0.0331941, 0.9668058, 0.0 ),\n\tvec3( 0.0170827, 0.0723974, 0.9105199 )\n);\nconst mat3 LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.2249401, - 0.2249404, 0.0 ),\n\tvec3( - 0.0420569, 1.0420571, 0.0 ),\n\tvec3( - 0.0196376, - 0.0786361, 1.0982735 )\n);\nvec4 LinearSRGBToLinearDisplayP3( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_SRGB_TO_LINEAR_DISPLAY_P3, value.a );\n}\nvec4 LinearDisplayP3ToLinearSRGB( in vec4 value ) {\n\treturn vec4( value.rgb * LINEAR_DISPLAY_P3_TO_LINEAR_SRGB, value.a );\n}\nvec4 LinearTransferOETF( in vec4 value ) {\n\treturn value;\n}\nvec4 sRGBTransferOETF( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn sRGBTransferOETF( value );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, envMapRotation * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform mat3 envMapRotation;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#ifdef USE_ENVMAP\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, envMapRotation * reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\t#ifdef USE_ANISOTROPY\n\t\tvec3 getIBLAnisotropyRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in vec3 bitangent, const in float anisotropy ) {\n\t\t\t#ifdef ENVMAP_TYPE_CUBE_UV\n\t\t\t\tvec3 bentNormal = cross( bitangent, viewDir );\n\t\t\t\tbentNormal = normalize( cross( bentNormal, bitangent ) );\n\t\t\t\tbentNormal = normalize( mix( bentNormal, normal, pow2( pow2( 1.0 - anisotropy * ( 1.0 - roughness ) ) ) ) );\n\t\t\t\treturn getIBLRadiance( viewDir, bentNormal, roughness );\n\t\t\t#else\n\t\t\t\treturn vec3( 0.0 );\n\t\t\t#endif\n\t\t}\n\t#endif\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\n#if defined( USE_LIGHT_PROBES )\n\tuniform vec3 lightProbe[ 9 ];\n#endif\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif ( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in vec3 geometryPosition, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometryPosition;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometryNormal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometryViewDir, geometryNormal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( nonPerturbedNormal ) ), abs( dFdy( nonPerturbedNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_DISPERSION\n\tmaterial.dispersion = dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\t#ifdef USE_ANISOTROPYMAP\n\t\tmat2 anisotropyMat = mat2( anisotropyVector.x, anisotropyVector.y, - anisotropyVector.y, anisotropyVector.x );\n\t\tvec3 anisotropyPolar = texture2D( anisotropyMap, vAnisotropyMapUv ).rgb;\n\t\tvec2 anisotropyV = anisotropyMat * normalize( 2.0 * anisotropyPolar.rg - vec2( 1.0 ) ) * anisotropyPolar.b;\n\t#else\n\t\tvec2 anisotropyV = anisotropyVector;\n\t#endif\n\tmaterial.anisotropy = length( anisotropyV );\n\tif( material.anisotropy == 0.0 ) {\n\t\tanisotropyV = vec2( 1.0, 0.0 );\n\t} else {\n\t\tanisotropyV /= material.anisotropy;\n\t\tmaterial.anisotropy = saturate( material.anisotropy );\n\t}\n\tmaterial.alphaT = mix( pow2( material.roughness ), 1.0, pow2( material.anisotropy ) );\n\tmaterial.anisotropyT = tbn[ 0 ] * anisotropyV.x + tbn[ 1 ] * anisotropyV.y;\n\tmaterial.anisotropyB = tbn[ 1 ] * anisotropyV.x - tbn[ 0 ] * anisotropyV.y;\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\tfloat dispersion;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat anisotropy;\n\t\tfloat alphaT;\n\t\tvec3 anisotropyT;\n\t\tvec3 anisotropyB;\n\t#endif\n};\nvec3 clearcoatSpecularDirect = vec3( 0.0 );\nvec3 clearcoatSpecularIndirect = vec3( 0.0 );\nvec3 sheenSpecularDirect = vec3( 0.0 );\nvec3 sheenSpecularIndirect = vec3(0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_ANISOTROPY\n\tfloat V_GGX_SmithCorrelated_Anisotropic( const in float alphaT, const in float alphaB, const in float dotTV, const in float dotBV, const in float dotTL, const in float dotBL, const in float dotNV, const in float dotNL ) {\n\t\tfloat gv = dotNL * length( vec3( alphaT * dotTV, alphaB * dotBV, dotNV ) );\n\t\tfloat gl = dotNV * length( vec3( alphaT * dotTL, alphaB * dotBL, dotNL ) );\n\t\tfloat v = 0.5 / ( gv + gl );\n\t\treturn saturate(v);\n\t}\n\tfloat D_GGX_Anisotropic( const in float alphaT, const in float alphaB, const in float dotNH, const in float dotTH, const in float dotBH ) {\n\t\tfloat a2 = alphaT * alphaB;\n\t\thighp vec3 v = vec3( alphaB * dotTH, alphaT * dotBH, a2 * dotNH );\n\t\thighp float v2 = dot( v, v );\n\t\tfloat w2 = a2 / v2;\n\t\treturn RECIPROCAL_PI * a2 * pow2 ( w2 );\n\t}\n#endif\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\t#ifdef USE_ANISOTROPY\n\t\tfloat dotTL = dot( material.anisotropyT, lightDir );\n\t\tfloat dotTV = dot( material.anisotropyT, viewDir );\n\t\tfloat dotTH = dot( material.anisotropyT, halfDir );\n\t\tfloat dotBL = dot( material.anisotropyB, lightDir );\n\t\tfloat dotBV = dot( material.anisotropyB, viewDir );\n\t\tfloat dotBH = dot( material.anisotropyB, halfDir );\n\t\tfloat V = V_GGX_SmithCorrelated_Anisotropic( material.alphaT, alpha, dotTV, dotBV, dotTL, dotBL, dotNV, dotNL );\n\t\tfloat D = D_GGX_Anisotropic( material.alphaT, alpha, dotNH, dotTH, dotBH );\n\t#else\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t#endif\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometryNormal;\n\t\tvec3 viewDir = geometryViewDir;\n\t\tvec3 position = geometryPosition;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometryNormal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometryClearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecularDirect += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometryViewDir, geometryClearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularDirect += irradiance * BRDF_Sheen( directLight.direction, geometryViewDir, geometryNormal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometryViewDir, geometryNormal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecularIndirect += clearcoatRadiance * EnvironmentBRDF( geometryClearcoatNormal, geometryViewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecularIndirect += irradiance * material.sheenColor * IBLSheenBRDF( geometryNormal, geometryViewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometryNormal, geometryViewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nvec3 geometryPosition = - vViewPosition;\nvec3 geometryNormal = normal;\nvec3 geometryViewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\nvec3 geometryClearcoatNormal = vec3( 0.0 );\n#ifdef USE_CLEARCOAT\n\tgeometryClearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometryViewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometryPosition, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowIntensity, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometryPosition, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowIntensity, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowIntensity, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#if defined( USE_LIGHT_PROBES )\n\t\tirradiance += getLightProbeIrradiance( lightProbe, geometryNormal );\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometryNormal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometryNormal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\t#ifdef USE_ANISOTROPY\n\t\tradiance += getIBLAnisotropyRadiance( geometryViewDir, geometryNormal, material.roughness, material.anisotropyB, material.anisotropy );\n\t#else\n\t\tradiance += getIBLRadiance( geometryViewDir, geometryNormal, material.roughness );\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometryViewDir, geometryClearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tgl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\tvFragDepth = 1.0 + gl_Position.w;\n\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphinstance_vertex:"#ifdef USE_INSTANCING_MORPH\n\tfloat morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\tfloat morphTargetBaseInfluence = texelFetch( morphTexture, ivec2( 0, gl_InstanceID ), 0 ).r;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tmorphTargetInfluences[i] = texelFetch( morphTexture, ivec2( i + 1, gl_InstanceID ), 0 ).r;\n\t}\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_INSTANCING_MORPH\n\t\tuniform float morphTargetBaseInfluence;\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t#endif\n\tuniform sampler2DArray morphTargetsTexture;\n\tuniform ivec2 morphTargetsTextureSize;\n\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t}\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t}\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#if defined( USE_NORMALMAP_TANGENTSPACE ) || defined( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY )\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal,\n\t\t#if defined( USE_NORMALMAP )\n\t\t\tvNormalMapUv\n\t\t#elif defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tvClearcoatNormalMapUv\n\t\t#else\n\t\t\tvUv\n\t\t#endif\n\t\t);\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 nonPerturbedNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) || defined( USE_ANISOTROPY ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = nonPerturbedNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",opaque_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_BATCHING\n\tmvPosition = batchingMatrix * mvPosition;\n#endif\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn mix( 1.0, shadow, shadowIntensity );\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowIntensity, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tfloat shadow = 1.0;\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\t\n\t\tfloat lightToPositionLength = length( lightToPosition );\n\t\tif ( lightToPositionLength - shadowCameraFar <= 0.0 && lightToPositionLength - shadowCameraNear >= 0.0 ) {\n\t\t\tfloat dp = ( lightToPositionLength - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\t\tdp += shadowBias;\n\t\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\t\tshadow = (\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t\t) * ( 1.0 / 9.0 );\n\t\t\t#else\n\t\t\t\tshadow = texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t\t#endif\n\t\t}\n\t\treturn mix( 1.0, shadow, shadowIntensity );\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowIntensity;\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowIntensity, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowIntensity, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowIntensity, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tint size = textureSize( boneTexture, 0 ).x;\n\t\tint j = int( i ) * 4;\n\t\tint x = j % size;\n\t\tint y = j / size;\n\t\tvec4 v1 = texelFetch( boneTexture, ivec2( x, y ), 0 );\n\t\tvec4 v2 = texelFetch( boneTexture, ivec2( x + 1, y ), 0 );\n\t\tvec4 v3 = texelFetch( boneTexture, ivec2( x + 2, y ), 0 );\n\t\tvec4 v4 = texelFetch( boneTexture, ivec2( x + 3, y ), 0 );\n\t\treturn mat4( v1, v2, v3, v4 );\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn saturate( toneMappingExposure * color );\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nconst mat3 LINEAR_REC2020_TO_LINEAR_SRGB = mat3(\n\tvec3( 1.6605, - 0.1246, - 0.0182 ),\n\tvec3( - 0.5876, 1.1329, - 0.1006 ),\n\tvec3( - 0.0728, - 0.0083, 1.1187 )\n);\nconst mat3 LINEAR_SRGB_TO_LINEAR_REC2020 = mat3(\n\tvec3( 0.6274, 0.0691, 0.0164 ),\n\tvec3( 0.3293, 0.9195, 0.0880 ),\n\tvec3( 0.0433, 0.0113, 0.8956 )\n);\nvec3 agxDefaultContrastApprox( vec3 x ) {\n\tvec3 x2 = x * x;\n\tvec3 x4 = x2 * x2;\n\treturn + 15.5 * x4 * x2\n\t\t- 40.14 * x4 * x\n\t\t+ 31.96 * x4\n\t\t- 6.868 * x2 * x\n\t\t+ 0.4298 * x2\n\t\t+ 0.1191 * x\n\t\t- 0.00232;\n}\nvec3 AgXToneMapping( vec3 color ) {\n\tconst mat3 AgXInsetMatrix = mat3(\n\t\tvec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ),\n\t\tvec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ),\n\t\tvec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 )\n\t);\n\tconst mat3 AgXOutsetMatrix = mat3(\n\t\tvec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ),\n\t\tvec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ),\n\t\tvec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 )\n\t);\n\tconst float AgxMinEv = - 12.47393;\tconst float AgxMaxEv = 4.026069;\n\tcolor *= toneMappingExposure;\n\tcolor = LINEAR_SRGB_TO_LINEAR_REC2020 * color;\n\tcolor = AgXInsetMatrix * color;\n\tcolor = max( color, 1e-10 );\tcolor = log2( color );\n\tcolor = ( color - AgxMinEv ) / ( AgxMaxEv - AgxMinEv );\n\tcolor = clamp( color, 0.0, 1.0 );\n\tcolor = agxDefaultContrastApprox( color );\n\tcolor = AgXOutsetMatrix * color;\n\tcolor = pow( max( vec3( 0.0 ), color ), vec3( 2.2 ) );\n\tcolor = LINEAR_REC2020_TO_LINEAR_SRGB * color;\n\tcolor = clamp( color, 0.0, 1.0 );\n\treturn color;\n}\nvec3 NeutralToneMapping( vec3 color ) {\n\tconst float StartCompression = 0.8 - 0.04;\n\tconst float Desaturation = 0.15;\n\tcolor *= toneMappingExposure;\n\tfloat x = min( color.r, min( color.g, color.b ) );\n\tfloat offset = x < 0.08 ? x - 6.25 * x * x : 0.04;\n\tcolor -= offset;\n\tfloat peak = max( color.r, max( color.g, color.b ) );\n\tif ( peak < StartCompression ) return color;\n\tfloat d = 1. - StartCompression;\n\tfloat newPeak = 1. - d * d / ( peak + d - StartCompression );\n\tcolor *= newPeak / peak;\n\tfloat g = 1. - 1. / ( Desaturation * ( peak - newPeak ) + 1. );\n\treturn mix( color, vec3( newPeak ), g );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmitted = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.dispersion, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmitted.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmitted.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 volumeAttenuation( const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn vec3( 1.0 );\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float dispersion, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec4 transmittedLight;\n\t\tvec3 transmittance;\n\t\t#ifdef USE_DISPERSION\n\t\t\tfloat halfSpread = ( ior - 1.0 ) * 0.025 * dispersion;\n\t\t\tvec3 iors = vec3( ior - halfSpread, ior, ior + halfSpread );\n\t\t\tfor ( int i = 0; i < 3; i ++ ) {\n\t\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, iors[ i ], modelMatrix );\n\t\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\n\t\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\t\trefractionCoords += 1.0;\n\t\t\t\trefractionCoords /= 2.0;\n\t\t\n\t\t\t\tvec4 transmissionSample = getTransmissionSample( refractionCoords, roughness, iors[ i ] );\n\t\t\t\ttransmittedLight[ i ] = transmissionSample[ i ];\n\t\t\t\ttransmittedLight.a += transmissionSample.a;\n\t\t\t\ttransmittance[ i ] = diffuseColor[ i ] * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance )[ i ];\n\t\t\t}\n\t\t\ttransmittedLight.a /= 3.0;\n\t\t\n\t\t#else\n\t\t\n\t\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\t\trefractionCoords += 1.0;\n\t\t\trefractionCoords /= 2.0;\n\t\t\ttransmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\t\ttransmittance = diffuseColor * volumeAttenuation( length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\t\n\t\t#endif\n\t\tvec3 attenuatedColor = transmittance * transmittedLight.rgb;\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\tfloat transmittanceFactor = ( transmittance.r + transmittance.g + transmittance.b ) / 3.0;\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor, 1.0 - ( 1.0 - transmittedLight.a ) * transmittanceFactor );\n\t}\n#endif",uv_pars_fragment:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tuniform mat3 anisotropyMapTransform;\n\tvarying vec2 vAnisotropyMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#if defined( USE_UV ) || defined( USE_ANISOTROPY )\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ANISOTROPYMAP\n\tvAnisotropyMapUv = ( anisotropyMapTransform * vec3( ANISOTROPYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_BATCHING\n\t\tworldPosition = batchingMatrix * worldPosition;\n\t#endif\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nuniform mat3 backgroundRotation;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, backgroundRotation * vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, backgroundRotation * vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",depth_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <logdepthbuf_fragment>\n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <skinbase_vertex>\n\t#include <morphinstance_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <clipping_planes_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",meshbasic_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinbase_vertex>\n\t\t#include <skinnormal_vertex>\n\t\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_lambert_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_lambert_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <color_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include <common>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <normal_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( 0.0, 0.0, 0.0, opacity );\n\t#include <clipping_planes_fragment>\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), diffuseColor.a );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_DISPERSION\n\tuniform float dispersion;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\n#ifdef USE_ANISOTROPY\n\tuniform vec2 anisotropyVector;\n\t#ifdef USE_ANISOTROPYMAP\n\t\tuniform sampler2D anisotropyMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <iridescence_fragment>\n#include <cube_uv_reflection_fragment>\n#include <envmap_common_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_physical_pars_fragment>\n#include <transmission_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <clearcoat_pars_fragment>\n#include <iridescence_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <clearcoat_normal_fragment_begin>\n\t#include <clearcoat_normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include <transmission_fragment>\n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecularDirect + sheenSpecularIndirect;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometryClearcoatNormal, geometryViewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + ( clearcoatSpecularDirect + clearcoatSpecularIndirect ) * material.clearcoat;\n\t#endif\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include <common>\n#include <batching_pars_vertex>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <normal_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <normal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <gradientmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <normal_pars_fragment>\n#include <lights_toon_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_toon_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include <color_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphcolor_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n}",shadow_vert:"#include <common>\n#include <batching_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <batching_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphinstance_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <logdepthbuf_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <alphatest_pars_fragment>\n#include <alphahash_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <alphahash_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\t#include <opaque_fragment>\n\t#include <tonemapping_fragment>\n\t#include <colorspace_fragment>\n\t#include <fog_fragment>\n}"},Gs={common:{diffuse:{value:new Il(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new Or},alphaMap:{value:null},alphaMapTransform:{value:new Or},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new Or}},envmap:{envMap:{value:null},envMapRotation:{value:new Or},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new Or}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new Or}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new Or},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new Or},normalScale:{value:new Vr(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new Or},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new Or}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new Or}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new Or}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Il(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Il(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new Or},alphaTest:{value:0},uvTransform:{value:new Or}},sprite:{diffuse:{value:new Il(16777215)},opacity:{value:1},center:{value:new Vr(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new Or},alphaMap:{value:null},alphaMapTransform:{value:new Or},alphaTest:{value:0}}},Ws={basic:{uniforms:ys([Gs.common,Gs.specularmap,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.fog]),vertexShader:Hs.meshbasic_vert,fragmentShader:Hs.meshbasic_frag},lambert:{uniforms:ys([Gs.common,Gs.specularmap,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)}}]),vertexShader:Hs.meshlambert_vert,fragmentShader:Hs.meshlambert_frag},phong:{uniforms:ys([Gs.common,Gs.specularmap,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)},specular:{value:new Il(1118481)},shininess:{value:30}}]),vertexShader:Hs.meshphong_vert,fragmentShader:Hs.meshphong_frag},standard:{uniforms:ys([Gs.common,Gs.envmap,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.roughnessmap,Gs.metalnessmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Hs.meshphysical_vert,fragmentShader:Hs.meshphysical_frag},toon:{uniforms:ys([Gs.common,Gs.aomap,Gs.lightmap,Gs.emissivemap,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.gradientmap,Gs.fog,Gs.lights,{emissive:{value:new Il(0)}}]),vertexShader:Hs.meshtoon_vert,fragmentShader:Hs.meshtoon_frag},matcap:{uniforms:ys([Gs.common,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,Gs.fog,{matcap:{value:null}}]),vertexShader:Hs.meshmatcap_vert,fragmentShader:Hs.meshmatcap_frag},points:{uniforms:ys([Gs.points,Gs.fog]),vertexShader:Hs.points_vert,fragmentShader:Hs.points_frag},dashed:{uniforms:ys([Gs.common,Gs.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Hs.linedashed_vert,fragmentShader:Hs.linedashed_frag},depth:{uniforms:ys([Gs.common,Gs.displacementmap]),vertexShader:Hs.depth_vert,fragmentShader:Hs.depth_frag},normal:{uniforms:ys([Gs.common,Gs.bumpmap,Gs.normalmap,Gs.displacementmap,{opacity:{value:1}}]),vertexShader:Hs.meshnormal_vert,fragmentShader:Hs.meshnormal_frag},sprite:{uniforms:ys([Gs.sprite,Gs.fog]),vertexShader:Hs.sprite_vert,fragmentShader:Hs.sprite_frag},background:{uniforms:{uvTransform:{value:new Or},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Hs.background_vert,fragmentShader:Hs.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new Or}},vertexShader:Hs.backgroundCube_vert,fragmentShader:Hs.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Hs.cube_vert,fragmentShader:Hs.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Hs.equirect_vert,fragmentShader:Hs.equirect_frag},distanceRGBA:{uniforms:ys([Gs.common,Gs.displacementmap,{referencePosition:{value:new fo},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Hs.distanceRGBA_vert,fragmentShader:Hs.distanceRGBA_frag},shadow:{uniforms:ys([Gs.lights,Gs.fog,{color:{value:new Il(0)},opacity:{value:1}}]),vertexShader:Hs.shadow_vert,fragmentShader:Hs.shadow_frag}};Ws.physical={uniforms:ys([Ws.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new Or},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new Or},clearcoatNormalScale:{value:new Vr(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new Or},dispersion:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new Or},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new Or},sheen:{value:0},sheenColor:{value:new Il(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new Or},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new Or},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new Or},transmissionSamplerSize:{value:new Vr},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new Or},attenuationDistance:{value:0},attenuationColor:{value:new Il(0)},specularColor:{value:new Il(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new Or},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new Or},anisotropyVector:{value:new Vr},anisotropyMap:{value:null},anisotropyMapTransform:{value:new Or}}]),vertexShader:Hs.meshphysical_vert,fragmentShader:Hs.meshphysical_frag};const Xs={r:0,b:0,g:0},js=new tl,$s=new Wo;function Ks(e,t,n,i,a,r,o){const l=new Il(0);let s,c,u=!0===r?0:1,d=null,h=0,p=null;function m(e){let i=!0===e.isScene?e.background:null;if(i&&i.isTexture){i=(e.backgroundBlurriness>0?n:t).get(i)}return i}function f(t,n){t.getRGB(Xs,Ss(e)),i.buffers.color.setClear(Xs.r,Xs.g,Xs.b,n,o)}return{getClearColor:function(){return l},setClearColor:function(e,t=1){l.set(e),u=t,f(l,u)},getClearAlpha:function(){return u},setClearAlpha:function(e){u=e,f(l,u)},render:function(t){let n=!1;const a=m(t);null===a?f(l,u):a&&a.isColor&&(f(a,1),n=!0);const r=e.xr.getEnvironmentBlendMode();"additive"===r?i.buffers.color.setClear(0,0,0,1,o):"alpha-blend"===r&&i.buffers.color.setClear(0,0,0,0,o),(e.autoClear||n)&&(i.buffers.depth.setTest(!0),i.buffers.depth.setMask(!0),i.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))},addToRenderList:function(t,n){const i=m(n);i&&(i.isCubeTexture||i.mapping===Zi)?(void 0===c&&(c=new vs(new _s(1,1,1),new Ms({name:"BackgroundCubeMaterial",uniforms:xs(Ws.backgroundCube.uniforms),vertexShader:Ws.backgroundCube.vertexShader,fragmentShader:Ws.backgroundCube.fragmentShader,side:xi,depthTest:!1,depthWrite:!1,fog:!1})),c.geometry.deleteAttribute("normal"),c.geometry.deleteAttribute("uv"),c.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(c.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),a.update(c)),js.copy(n.backgroundRotation),js.x*=-1,js.y*=-1,js.z*=-1,i.isCubeTexture&&!1===i.isRenderTargetTexture&&(js.y*=-1,js.z*=-1),c.material.uniforms.envMap.value=i,c.material.uniforms.flipEnvMap.value=i.isCubeTexture&&!1===i.isRenderTargetTexture?-1:1,c.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.uniforms.backgroundRotation.value.setFromMatrix4($s.makeRotationFromEuler(js)),c.material.toneMapped=Zr.getTransfer(i.colorSpace)!==vr,d===i&&h===i.version&&p===e.toneMapping||(c.material.needsUpdate=!0,d=i,h=i.version,p=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null)):i&&i.isTexture&&(void 0===s&&(s=new vs(new Fs(2,2),new Ms({name:"BackgroundMaterial",uniforms:xs(Ws.background.uniforms),vertexShader:Ws.background.vertexShader,fragmentShader:Ws.background.fragmentShader,side:_i,depthTest:!1,depthWrite:!1,fog:!1})),s.geometry.deleteAttribute("normal"),Object.defineProperty(s.material,"map",{get:function(){return this.uniforms.t2D.value}}),a.update(s)),s.material.uniforms.t2D.value=i,s.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,s.material.toneMapped=Zr.getTransfer(i.colorSpace)!==vr,!0===i.matrixAutoUpdate&&i.updateMatrix(),s.material.uniforms.uvTransform.value.copy(i.matrix),d===i&&h===i.version&&p===e.toneMapping||(s.material.needsUpdate=!0,d=i,h=i.version,p=e.toneMapping),s.layers.enableAll(),t.unshift(s,s.geometry,s.material,0,0,null))}}}function Ys(e,t){const n=e.getParameter(e.MAX_VERTEX_ATTRIBS),i={},a=c(null);let r=a,o=!1;function l(t){return e.bindVertexArray(t)}function s(t){return e.deleteVertexArray(t)}function c(e){const t=[],i=[],a=[];for(let r=0;r<n;r++)t[r]=0,i[r]=0,a[r]=0;return{geometry:null,program:null,wireframe:!1,newAttributes:t,enabledAttributes:i,attributeDivisors:a,object:e,attributes:{},index:null}}function u(){const e=r.newAttributes;for(let t=0,n=e.length;t<n;t++)e[t]=0}function d(e){h(e,0)}function h(t,n){const i=r.newAttributes,a=r.enabledAttributes,o=r.attributeDivisors;i[t]=1,0===a[t]&&(e.enableVertexAttribArray(t),a[t]=1),o[t]!==n&&(e.vertexAttribDivisor(t,n),o[t]=n)}function p(){const t=r.newAttributes,n=r.enabledAttributes;for(let i=0,a=n.length;i<a;i++)n[i]!==t[i]&&(e.disableVertexAttribArray(i),n[i]=0)}function m(t,n,i,a,r,o,l){!0===l?e.vertexAttribIPointer(t,n,i,r,o):e.vertexAttribPointer(t,n,i,a,r,o)}function f(){v(),o=!0,r!==a&&(r=a,l(r.object))}function v(){a.geometry=null,a.program=null,a.wireframe=!1}return{setup:function(n,a,s,f,v){let g=!1;const _=function(t,n,a){const r=!0===a.wireframe;let o=i[t.id];void 0===o&&(o={},i[t.id]=o);let l=o[n.id];void 0===l&&(l={},o[n.id]=l);let s=l[r];void 0===s&&(s=c(e.createVertexArray()),l[r]=s);return s}(f,s,a);r!==_&&(r=_,l(r.object)),g=function(e,t,n,i){const a=r.attributes,o=t.attributes;let l=0;const s=n.getAttributes();for(const r in s){if(s[r].location>=0){const t=a[r];let n=o[r];if(void 0===n&&("instanceMatrix"===r&&e.instanceMatrix&&(n=e.instanceMatrix),"instanceColor"===r&&e.instanceColor&&(n=e.instanceColor)),void 0===t)return!0;if(t.attribute!==n)return!0;if(n&&t.data!==n.data)return!0;l++}}return r.attributesNum!==l||r.index!==i}(n,f,s,v),g&&function(e,t,n,i){const a={},o=t.attributes;let l=0;const s=n.getAttributes();for(const r in s){if(s[r].location>=0){let t=o[r];void 0===t&&("instanceMatrix"===r&&e.instanceMatrix&&(t=e.instanceMatrix),"instanceColor"===r&&e.instanceColor&&(t=e.instanceColor));const n={};n.attribute=t,t&&t.data&&(n.data=t.data),a[r]=n,l++}}r.attributes=a,r.attributesNum=l,r.index=i}(n,f,s,v),null!==v&&t.update(v,e.ELEMENT_ARRAY_BUFFER),(g||o)&&(o=!1,function(n,i,a,r){u();const o=r.attributes,l=a.getAttributes(),s=i.defaultAttributeValues;for(const c in l){const i=l[c];if(i.location>=0){let a=o[c];if(void 0===a&&("instanceMatrix"===c&&n.instanceMatrix&&(a=n.instanceMatrix),"instanceColor"===c&&n.instanceColor&&(a=n.instanceColor)),void 0!==a){const o=a.normalized,l=a.itemSize,s=t.get(a);if(void 0===s)continue;const c=s.buffer,u=s.type,p=s.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||a.gpuType===ha;if(a.isInterleavedBufferAttribute){const t=a.data,s=t.stride,v=a.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e<i.locationSize;e++)h(i.location+e,t.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===r._maxInstanceCount&&(r._maxInstanceCount=t.meshPerAttribute*t.count)}else for(let e=0;e<i.locationSize;e++)d(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,c);for(let e=0;e<i.locationSize;e++)m(i.location+e,l/i.locationSize,u,o,s*p,(v+l/i.locationSize*e)*p,f)}else{if(a.isInstancedBufferAttribute){for(let e=0;e<i.locationSize;e++)h(i.location+e,a.meshPerAttribute);!0!==n.isInstancedMesh&&void 0===r._maxInstanceCount&&(r._maxInstanceCount=a.meshPerAttribute*a.count)}else for(let e=0;e<i.locationSize;e++)d(i.location+e);e.bindBuffer(e.ARRAY_BUFFER,c);for(let e=0;e<i.locationSize;e++)m(i.location+e,l/i.locationSize,u,o,l*p,l/i.locationSize*e*p,f)}}else if(void 0!==s){const t=s[c];if(void 0!==t)switch(t.length){case 2:e.vertexAttrib2fv(i.location,t);break;case 3:e.vertexAttrib3fv(i.location,t);break;case 4:e.vertexAttrib4fv(i.location,t);break;default:e.vertexAttrib1fv(i.location,t)}}}}p()}(n,a,s,f),null!==v&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(v).buffer))},reset:f,resetDefaultState:v,dispose:function(){f();for(const e in i){const t=i[e];for(const e in t){const n=t[e];for(const e in n)s(n[e].object),delete n[e];delete t[e]}delete i[e]}},releaseStatesOfGeometry:function(e){if(void 0===i[e.id])return;const t=i[e.id];for(const n in t){const e=t[n];for(const t in e)s(e[t].object),delete e[t];delete t[n]}delete i[e.id]},releaseStatesOfProgram:function(e){for(const t in i){const n=i[t];if(void 0===n[e.id])continue;const a=n[e.id];for(const e in a)s(a[e].object),delete a[e];delete n[e.id]}},initAttributes:u,enableAttribute:d,disableUnusedAttributes:p}}function Js(e,t,n){let i;function a(t,a,r){0!==r&&(e.drawArraysInstanced(i,t,a,r),n.update(a,i,r))}this.setMode=function(e){i=e},this.render=function(t,a){e.drawArrays(i,t,a),n.update(a,i,1)},this.renderInstances=a,this.renderMultiDraw=function(e,a,r){if(0===r)return;t.get("WEBGL_multi_draw").multiDrawArraysWEBGL(i,e,0,a,0,r);let o=0;for(let t=0;t<r;t++)o+=a[t];n.update(o,i,1)},this.renderMultiDrawInstances=function(e,r,o,l){if(0===o)return;const s=t.get("WEBGL_multi_draw");if(null===s)for(let t=0;t<e.length;t++)a(e[t],r[t],l[t]);else{s.multiDrawArraysInstancedWEBGL(i,e,0,r,0,l,0,o);let t=0;for(let e=0;e<o;e++)t+=r[e];for(let e=0;e<l.length;e++)n.update(t,i,l[e])}}}function Zs(e,t,n,i){let a;function r(t){if("highp"===t){if(e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return"highp";t="mediump"}return"mediump"===t&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}let o=void 0!==n.precision?n.precision:"highp";const l=r(o);l!==o&&(o=l);const s=!0===n.logarithmicDepthBuffer,c=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),u=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS);return{isWebGL2:!0,getMaxAnisotropy:function(){if(void 0!==a)return a;if(!0===t.has("EXT_texture_filter_anisotropic")){const n=t.get("EXT_texture_filter_anisotropic");a=e.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else a=0;return a},getMaxPrecision:r,textureFormatReadable:function(t){return t===ba||i.convert(t)===e.getParameter(e.IMPLEMENTATION_COLOR_READ_FORMAT)},textureTypeReadable:function(n){const a=n===fa&&(t.has("EXT_color_buffer_half_float")||t.has("EXT_color_buffer_float"));return!(n!==sa&&i.convert(n)!==e.getParameter(e.IMPLEMENTATION_COLOR_READ_TYPE)&&n!==ma&&!a)},precision:o,logarithmicDepthBuffer:s,maxTextures:c,maxVertexTextures:u,maxTextureSize:e.getParameter(e.MAX_TEXTURE_SIZE),maxCubemapSize:e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),maxAttributes:e.getParameter(e.MAX_VERTEX_ATTRIBS),maxVertexUniforms:e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),maxVaryings:e.getParameter(e.MAX_VARYING_VECTORS),maxFragmentUniforms:e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),vertexTextures:u>0,maxSamples:e.getParameter(e.MAX_SAMPLES)}}function Qs(e){const t=this;let n=null,i=0,a=!1,r=!1;const o=new ks,l=new Or,s={value:null,needsUpdate:!1};function c(e,n,i,a){const r=null!==e?e.length:0;let c=null;if(0!==r){if(c=s.value,!0!==a||null===c){const t=i+4*r,a=n.matrixWorldInverse;l.getNormalMatrix(a),(null===c||c.length<t)&&(c=new Float32Array(t));for(let n=0,s=i;n!==r;++n,s+=4)o.copy(e[n]).applyMatrix4(a,l),o.normal.toArray(c,s),c[s+3]=o.constant}s.value=c,s.needsUpdate=!0}return t.numPlanes=r,t.numIntersection=0,c}this.uniform=s,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){const n=0!==e.length||t||0!==i||a;return a=t,i=e.length,n},this.beginShadows=function(){r=!0,c(null)},this.endShadows=function(){r=!1},this.setGlobalState=function(e,t){n=c(e,t,0)},this.setState=function(o,l,u){const d=o.clippingPlanes,h=o.clipIntersection,p=o.clipShadows,m=e.get(o);if(!a||null===d||0===d.length||r&&!p)r?c(null):function(){s.value!==n&&(s.value=n,s.needsUpdate=i>0);t.numPlanes=i,t.numIntersection=0}();else{const e=r?0:i,t=4*e;let a=m.clippingState||null;s.value=a,a=c(d,l,t,u);for(let i=0;i!==t;++i)a[i]=n[i];m.clippingState=a,this.numIntersection=h?this.numPlanes:0,this.numPlanes+=e}}}function ec(e){let t=new WeakMap;function n(e,t){return 303===t?e.mapping=Yi:304===t&&(e.mapping=Ji),e}function i(e){const n=e.target;n.removeEventListener("dispose",i);const a=t.get(n);void 0!==a&&(t.delete(n),a.dispose())}return{get:function(a){if(a&&a.isTexture){const r=a.mapping;if(303===r||304===r){if(t.has(a)){return n(t.get(a).texture,a.mapping)}{const r=a.image;if(r&&r.height>0){const o=new Ps(r.height);return o.fromEquirectangularTexture(e,a),t.set(a,o),a.addEventListener("dispose",i),n(o.texture,a.mapping)}return null}}}return a},dispose:function(){t=new WeakMap}}}class tc extends Es{constructor(e=-1,t=1,n=1,i=-1,a=.1,r=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=e,this.right=t,this.top=n,this.bottom=i,this.near=a,this.far=r,this.updateProjectionMatrix()}copy(e,t){return super.copy(e,t),this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.near=e.near,this.far=e.far,this.zoom=e.zoom,this.view=null===e.view?null:Object.assign({},e.view),this}setViewOffset(e,t,n,i,a,r){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=n,this.view.offsetY=i,this.view.width=a,this.view.height=r,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const e=(this.right-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let a=n-e,r=n+e,o=i+t,l=i-t;if(null!==this.view&&this.view.enabled){const e=(this.right-this.left)/this.view.fullWidth/this.zoom,t=(this.top-this.bottom)/this.view.fullHeight/this.zoom;a+=e*this.view.offsetX,r=a+e*this.view.width,o-=t*this.view.offsetY,l=o-t*this.view.height}this.projectionMatrix.makeOrthographic(a,r,o,l,this.near,this.far,this.coordinateSystem),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(e){const t=super.toJSON(e);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,null!==this.view&&(t.object.view=Object.assign({},this.view)),t}}const nc=[.125,.215,.35,.446,.526,.582],ic=20,ac=new tc,rc=new Il;let oc=null,lc=0,sc=0,cc=!1;const uc=(1+Math.sqrt(5))/2,dc=1/uc,hc=[new fo(-uc,dc,0),new fo(uc,dc,0),new fo(-dc,0,uc),new fo(dc,0,uc),new fo(0,uc,-dc),new fo(0,uc,dc),new fo(-1,1,-1),new fo(1,1,-1),new fo(-1,1,1),new fo(1,1,1)];class pc{constructor(e){this._renderer=e,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(e,t=0,n=.1,i=100){oc=this._renderer.getRenderTarget(),lc=this._renderer.getActiveCubeFace(),sc=this._renderer.getActiveMipmapLevel(),cc=this._renderer.xr.enabled,this._renderer.xr.enabled=!1,this._setSize(256);const a=this._allocateTargets();return a.depthBuffer=!0,this._sceneToCubeUV(e,n,i,a),t>0&&this._blur(a,0,0,t),this._applyPMREM(a),this._cleanup(a),a}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=gc(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=vc(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let e=0;e<this._lodPlanes.length;e++)this._lodPlanes[e].dispose()}_cleanup(e){this._renderer.setRenderTarget(oc,lc,sc),this._renderer.xr.enabled=cc,e.scissorTest=!1,fc(e,0,0,e.width,e.height)}_fromTexture(e,t){e.mapping===Yi||e.mapping===Ji?this._setSize(0===e.image.length?16:e.image[0].width||e.image[0].image.width):this._setSize(e.image.width/4),oc=this._renderer.getRenderTarget(),lc=this._renderer.getActiveCubeFace(),sc=this._renderer.getActiveMipmapLevel(),cc=this._renderer.xr.enabled,this._renderer.xr.enabled=!1;const n=t||this._allocateTargets();return this._textureToCubeUV(e,n),this._applyPMREM(n),this._cleanup(n),n}_allocateTargets(){const e=3*Math.max(this._cubeSize,112),t=4*this._cubeSize,n={magFilter:ra,minFilter:ra,generateMipmaps:!1,type:fa,format:ba,colorSpace:hr,depthBuffer:!1},i=mc(e,t,n);if(null===this._pingPongRenderTarget||this._pingPongRenderTarget.width!==e||this._pingPongRenderTarget.height!==t){null!==this._pingPongRenderTarget&&this._dispose(),this._pingPongRenderTarget=mc(e,t,n);const{_lodMax:i}=this;({sizeLods:this._sizeLods,lodPlanes:this._lodPlanes,sigmas:this._sigmas}=function(e){const t=[],n=[],i=[];let a=e;const r=e-4+1+nc.length;for(let o=0;o<r;o++){const r=Math.pow(2,a);n.push(r);let l=1/r;o>e-4?l=nc[o-e+4-1]:0===o&&(l=0),i.push(l);const s=1/(r-2),c=-s,u=1+s,d=[c,c,u,c,u,u,c,c,u,u,c,u],h=6,p=6,m=3,f=2,v=1,g=new Float32Array(m*p*h),_=new Float32Array(f*p*h),x=new Float32Array(v*p*h);for(let e=0;e<h;e++){const t=e%3*2/3-1,n=e>2?0:-1,i=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];g.set(i,m*p*e),_.set(d,f*p*e);const a=[e,e,e,e,e,e];x.set(a,v*p*e)}const y=new Zl;y.setAttribute("position",new Ol(g,m)),y.setAttribute("uv",new Ol(_,f)),y.setAttribute("faceIndex",new Ol(x,v)),t.push(y),a>4&&a--}return{lodPlanes:t,sizeLods:n,sigmas:i}}(i)),this._blurMaterial=function(e,t,n){const i=new Float32Array(ic),a=new fo(0,1,0),r=new Ms({name:"SphericalGaussianBlur",defines:{n:ic,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:a}},vertexShader:_c(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1});return r}(i,e,t)}return i}_compileMaterial(e){const t=new vs(this._lodPlanes[0],e);this._renderer.compile(t,ac)}_sceneToCubeUV(e,t,n,i){const a=new As(90,1,t,n),r=[1,-1,1,1,1,1],o=[1,1,1,-1,-1,-1],l=this._renderer,s=l.autoClear,c=l.toneMapping;l.getClearColor(rc),l.toneMapping=Fi,l.autoClear=!1;const u=new Dl({name:"PMREM.Background",side:xi,depthWrite:!1,depthTest:!1}),d=new vs(new _s,u);let h=!1;const p=e.background;p?p.isColor&&(u.color.copy(p),e.background=null,h=!0):(u.color.copy(rc),h=!0);for(let m=0;m<6;m++){const t=m%3;0===t?(a.up.set(0,r[m],0),a.lookAt(o[m],0,0)):1===t?(a.up.set(0,0,r[m]),a.lookAt(0,o[m],0)):(a.up.set(0,r[m],0),a.lookAt(0,0,o[m]));const n=this._cubeSize;fc(i,t*n,m>2?n:0,n,n),l.setRenderTarget(i),h&&l.render(d,a),l.render(e,a)}d.geometry.dispose(),d.material.dispose(),l.toneMapping=c,l.autoClear=s,e.background=p}_textureToCubeUV(e,t){const n=this._renderer,i=e.mapping===Yi||e.mapping===Ji;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=gc()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===e.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=vc());const a=i?this._cubemapMaterial:this._equirectMaterial,r=new vs(this._lodPlanes[0],a);a.uniforms.envMap.value=e;const o=this._cubeSize;fc(t,0,0,3*o,2*o),n.setRenderTarget(t),n.render(r,ac)}_applyPMREM(e){const t=this._renderer,n=t.autoClear;t.autoClear=!1;const i=this._lodPlanes.length;for(let a=1;a<i;a++){const t=Math.sqrt(this._sigmas[a]*this._sigmas[a]-this._sigmas[a-1]*this._sigmas[a-1]),n=hc[(i-a-1)%hc.length];this._blur(e,a-1,a,t,n)}t.autoClear=n}_blur(e,t,n,i,a){const r=this._pingPongRenderTarget;this._halfBlur(e,r,t,n,i,"latitudinal",a),this._halfBlur(r,e,n,n,i,"longitudinal",a)}_halfBlur(e,t,n,i,a,r,o){const l=this._renderer,s=this._blurMaterial,c=new vs(this._lodPlanes[i],s),u=s.uniforms,d=this._sizeLods[n]-1,h=isFinite(a)?Math.PI/(2*d):2*Math.PI/39,p=a/h,m=isFinite(a)?1+Math.floor(3*p):ic,f=[];let v=0;for(let x=0;x<ic;++x){const e=x/p,t=Math.exp(-e*e/2);f.push(t),0===x?v+=t:x<m&&(v+=2*t)}for(let x=0;x<f.length;x++)f[x]=f[x]/v;u.envMap.value=e.texture,u.samples.value=m,u.weights.value=f,u.latitudinal.value="latitudinal"===r,o&&(u.poleAxis.value=o);const{_lodMax:g}=this;u.dTheta.value=h,u.mipInt.value=g-n;const _=this._sizeLods[i];fc(t,3*_*(i>g-4?i-g+4:0),4*(this._cubeSize-_),3*_,2*_),l.setRenderTarget(t),l.render(c,ac)}}function mc(e,t,n){const i=new uo(e,t,n);return i.texture.mapping=Zi,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function fc(e,t,n,i,a){e.viewport.set(t,n,i,a),e.scissor.set(t,n,i,a)}function vc(){return new Ms({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:_c(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function gc(){return new Ms({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:_c(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:0,depthTest:!1,depthWrite:!1})}function _c(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function xc(e){let t=new WeakMap,n=null;function i(e){const n=e.target;n.removeEventListener("dispose",i);const a=t.get(n);void 0!==a&&(t.delete(n),a.dispose())}return{get:function(a){if(a&&a.isTexture){const r=a.mapping,o=303===r||304===r,l=r===Yi||r===Ji;if(o||l){let r=t.get(a);const s=void 0!==r?r.texture.pmremVersion:0;if(a.isRenderTargetTexture&&a.pmremVersion!==s)return null===n&&(n=new pc(e)),r=o?n.fromEquirectangular(a,r):n.fromCubemap(a,r),r.texture.pmremVersion=a.pmremVersion,t.set(a,r),r.texture;if(void 0!==r)return r.texture;{const s=a.image;return o&&s&&s.height>0||l&&s&&function(e){let t=0;const n=6;for(let i=0;i<n;i++)void 0!==e[i]&&t++;return t===n}(s)?(null===n&&(n=new pc(e)),r=o?n.fromEquirectangular(a):n.fromCubemap(a),r.texture.pmremVersion=a.pmremVersion,t.set(a,r),a.addEventListener("dispose",i),r.texture):null}}}return a},dispose:function(){t=new WeakMap,null!==n&&(n.dispose(),n=null)}}}function yc(e){const t={};function n(n){if(void 0!==t[n])return t[n];let i;switch(n){case"WEBGL_depth_texture":i=e.getExtension("WEBGL_depth_texture")||e.getExtension("MOZ_WEBGL_depth_texture")||e.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=e.getExtension("WEBGL_compressed_texture_s3tc")||e.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=e.getExtension("WEBGL_compressed_texture_pvrtc")||e.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=e.getExtension(n)}return t[n]=i,i}return{has:function(e){return null!==n(e)},init:function(){n("EXT_color_buffer_float"),n("WEBGL_clip_cull_distance"),n("OES_texture_float_linear"),n("EXT_color_buffer_half_float"),n("WEBGL_multisampled_render_to_texture"),n("WEBGL_render_shared_exponent")},get:function(e){const t=n(e);return null===t&&jr("THREE.WebGLRenderer: "+e+" extension not supported."),t}}}function Sc(e,t,n,i){const a={},r=new WeakMap;function o(e){const l=e.target;null!==l.index&&t.remove(l.index);for(const n in l.attributes)t.remove(l.attributes[n]);for(const n in l.morphAttributes){const e=l.morphAttributes[n];for(let n=0,i=e.length;n<i;n++)t.remove(e[n])}l.removeEventListener("dispose",o),delete a[l.id];const s=r.get(l);s&&(t.remove(s),r.delete(l)),i.releaseStatesOfGeometry(l),!0===l.isInstancedBufferGeometry&&delete l._maxInstanceCount,n.memory.geometries--}function l(e){const n=[],i=e.index,a=e.attributes.position;let o=0;if(null!==i){const e=i.array;o=i.version;for(let t=0,i=e.length;t<i;t+=3){const i=e[t+0],a=e[t+1],r=e[t+2];n.push(i,a,a,r,r,i)}}else{if(void 0===a)return;{const e=a.array;o=a.version;for(let t=0,i=e.length/3-1;t<i;t+=3){const e=t+0,i=t+1,a=t+2;n.push(e,i,i,a,a,e)}}}const l=new(Hr(n)?Hl:Fl)(n,1);l.version=o;const s=r.get(e);s&&t.remove(s),r.set(e,l)}return{get:function(e,t){return!0===a[t.id]||(t.addEventListener("dispose",o),a[t.id]=!0,n.memory.geometries++),t},update:function(n){const i=n.attributes;for(const r in i)t.update(i[r],e.ARRAY_BUFFER);const a=n.morphAttributes;for(const r in a){const n=a[r];for(let i=0,a=n.length;i<a;i++)t.update(n[i],e.ARRAY_BUFFER)}},getWireframeAttribute:function(e){const t=r.get(e);if(t){const n=e.index;null!==n&&t.version<n.version&&l(e)}else l(e);return r.get(e)}}}function bc(e,t,n){let i,a,r;function o(t,o,l){0!==l&&(e.drawElementsInstanced(i,o,a,t*r,l),n.update(o,i,l))}this.setMode=function(e){i=e},this.setIndex=function(e){a=e.type,r=e.bytesPerElement},this.render=function(t,o){e.drawElements(i,o,a,t*r),n.update(o,i,1)},this.renderInstances=o,this.renderMultiDraw=function(e,r,o){if(0===o)return;t.get("WEBGL_multi_draw").multiDrawElementsWEBGL(i,r,0,a,e,0,o);let l=0;for(let t=0;t<o;t++)l+=r[t];n.update(l,i,1)},this.renderMultiDrawInstances=function(e,l,s,c){if(0===s)return;const u=t.get("WEBGL_multi_draw");if(null===u)for(let t=0;t<e.length;t++)o(e[t]/r,l[t],c[t]);else{u.multiDrawElementsInstancedWEBGL(i,l,0,a,e,0,c,0,s);let t=0;for(let e=0;e<s;e++)t+=l[e];for(let e=0;e<c.length;e++)n.update(t,i,c[e])}}}function Mc(e){const t={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:t,programs:null,autoReset:!0,reset:function(){t.calls=0,t.triangles=0,t.points=0,t.lines=0},update:function(n,i,a){switch(t.calls++,i){case e.TRIANGLES:t.triangles+=a*(n/3);break;case e.LINES:t.lines+=a*(n/2);break;case e.LINE_STRIP:t.lines+=a*(n-1);break;case e.LINE_LOOP:t.lines+=a*n;break;case e.POINTS:t.points+=a*n}}}}function Ec(e,t,n){const i=new WeakMap,a=new so;return{update:function(r,o,l){const s=r.morphTargetInfluences,c=o.morphAttributes.position||o.morphAttributes.normal||o.morphAttributes.color,u=void 0!==c?c.length:0;let d=i.get(o);if(void 0===d||d.count!==u){let e=function(){g.dispose(),i.delete(o),o.removeEventListener("dispose",e)};void 0!==d&&d.texture.dispose();const n=void 0!==o.morphAttributes.position,r=void 0!==o.morphAttributes.normal,l=void 0!==o.morphAttributes.color,s=o.morphAttributes.position||[],c=o.morphAttributes.normal||[],h=o.morphAttributes.color||[];let p=0;!0===n&&(p=1),!0===r&&(p=2),!0===l&&(p=3);let m=o.attributes.position.count*p,f=1;m>t.maxTextureSize&&(f=Math.ceil(m/t.maxTextureSize),m=t.maxTextureSize);const v=new Float32Array(m*f*4*u),g=new ho(v,m,f,u);g.type=ma,g.needsUpdate=!0;const _=4*p;for(let t=0;t<u;t++){const e=s[t],i=c[t],o=h[t],u=m*f*4*t;for(let t=0;t<e.count;t++){const s=t*_;!0===n&&(a.fromBufferAttribute(e,t),v[u+s+0]=a.x,v[u+s+1]=a.y,v[u+s+2]=a.z,v[u+s+3]=0),!0===r&&(a.fromBufferAttribute(i,t),v[u+s+4]=a.x,v[u+s+5]=a.y,v[u+s+6]=a.z,v[u+s+7]=0),!0===l&&(a.fromBufferAttribute(o,t),v[u+s+8]=a.x,v[u+s+9]=a.y,v[u+s+10]=a.z,v[u+s+11]=4===o.itemSize?a.w:1)}}d={count:u,texture:g,size:new Vr(m,f)},i.set(o,d),o.addEventListener("dispose",e)}if(!0===r.isInstancedMesh&&null!==r.morphTexture)l.getUniforms().setValue(e,"morphTexture",r.morphTexture,n);else{let t=0;for(let e=0;e<s.length;e++)t+=s[e];const n=o.morphTargetsRelative?1:1-t;l.getUniforms().setValue(e,"morphTargetBaseInfluence",n),l.getUniforms().setValue(e,"morphTargetInfluences",s)}l.getUniforms().setValue(e,"morphTargetsTexture",d.texture,n),l.getUniforms().setValue(e,"morphTargetsTextureSize",d.size)}}}function wc(e,t,n,i){let a=new WeakMap;function r(e){const t=e.target;t.removeEventListener("dispose",r),n.remove(t.instanceMatrix),null!==t.instanceColor&&n.remove(t.instanceColor)}return{update:function(o){const l=i.render.frame,s=o.geometry,c=t.get(o,s);if(a.get(c)!==l&&(t.update(c),a.set(c,l)),o.isInstancedMesh&&(!1===o.hasEventListener("dispose",r)&&o.addEventListener("dispose",r),a.get(o)!==l&&(n.update(o.instanceMatrix,e.ARRAY_BUFFER),null!==o.instanceColor&&n.update(o.instanceColor,e.ARRAY_BUFFER),a.set(o,l))),o.isSkinnedMesh){const e=o.skeleton;a.get(e)!==l&&(e.update(),a.set(e,l))}return c},dispose:function(){a=new WeakMap}}}class Tc extends lo{constructor(e,t,n,i,a,r,o,l,s,c=1026){if(c!==wa&&c!==Ta)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===wa&&(n=pa),void 0===n&&c===Ta&&(n=_a),super(null,i,a,r,o,l,c,n,s),this.isDepthTexture=!0,this.image={width:e,height:t},this.magFilter=void 0!==o?o:na,this.minFilter=void 0!==l?l:na,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.compareFunction=e.compareFunction,this}toJSON(e){const t=super.toJSON(e);return null!==this.compareFunction&&(t.compareFunction=this.compareFunction),t}}const Cc=new lo,Ac=new Tc(1,1),Nc=new ho,Rc=new po,Lc=new Ls,Pc=[],qc=[],Ic=new Float32Array(16),zc=new Float32Array(9),kc=new Float32Array(4);function Bc(e,t,n){const i=e[0];if(i<=0||i>0)return e;const a=t*n;let r=Pc[a];if(void 0===r&&(r=new Float32Array(a),Pc[a]=r),0!==t){i.toArray(r,0);for(let i=1,a=0;i!==t;++i)a+=n,e[i].toArray(r,a)}return r}function Dc(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0}function Uc(e,t){for(let n=0,i=t.length;n<i;n++)e[n]=t[n]}function Vc(e,t){let n=qc[t];void 0===n&&(n=new Int32Array(t),qc[t]=n);for(let i=0;i!==t;++i)n[i]=e.allocateTextureUnit();return n}function Oc(e,t){const n=this.cache;n[0]!==t&&(e.uniform1f(this.addr,t),n[0]=t)}function Fc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2f(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Dc(n,t))return;e.uniform2fv(this.addr,t),Uc(n,t)}}function Hc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3f(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else if(void 0!==t.r)n[0]===t.r&&n[1]===t.g&&n[2]===t.b||(e.uniform3f(this.addr,t.r,t.g,t.b),n[0]=t.r,n[1]=t.g,n[2]=t.b);else{if(Dc(n,t))return;e.uniform3fv(this.addr,t),Uc(n,t)}}function Gc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4f(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Dc(n,t))return;e.uniform4fv(this.addr,t),Uc(n,t)}}function Wc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Dc(n,t))return;e.uniformMatrix2fv(this.addr,!1,t),Uc(n,t)}else{if(Dc(n,i))return;kc.set(i),e.uniformMatrix2fv(this.addr,!1,kc),Uc(n,i)}}function Xc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Dc(n,t))return;e.uniformMatrix3fv(this.addr,!1,t),Uc(n,t)}else{if(Dc(n,i))return;zc.set(i),e.uniformMatrix3fv(this.addr,!1,zc),Uc(n,i)}}function jc(e,t){const n=this.cache,i=t.elements;if(void 0===i){if(Dc(n,t))return;e.uniformMatrix4fv(this.addr,!1,t),Uc(n,t)}else{if(Dc(n,i))return;Ic.set(i),e.uniformMatrix4fv(this.addr,!1,Ic),Uc(n,i)}}function $c(e,t){const n=this.cache;n[0]!==t&&(e.uniform1i(this.addr,t),n[0]=t)}function Kc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2i(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Dc(n,t))return;e.uniform2iv(this.addr,t),Uc(n,t)}}function Yc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3i(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Dc(n,t))return;e.uniform3iv(this.addr,t),Uc(n,t)}}function Jc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4i(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Dc(n,t))return;e.uniform4iv(this.addr,t),Uc(n,t)}}function Zc(e,t){const n=this.cache;n[0]!==t&&(e.uniform1ui(this.addr,t),n[0]=t)}function Qc(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y||(e.uniform2ui(this.addr,t.x,t.y),n[0]=t.x,n[1]=t.y);else{if(Dc(n,t))return;e.uniform2uiv(this.addr,t),Uc(n,t)}}function eu(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z||(e.uniform3ui(this.addr,t.x,t.y,t.z),n[0]=t.x,n[1]=t.y,n[2]=t.z);else{if(Dc(n,t))return;e.uniform3uiv(this.addr,t),Uc(n,t)}}function tu(e,t){const n=this.cache;if(void 0!==t.x)n[0]===t.x&&n[1]===t.y&&n[2]===t.z&&n[3]===t.w||(e.uniform4ui(this.addr,t.x,t.y,t.z,t.w),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=t.w);else{if(Dc(n,t))return;e.uniform4uiv(this.addr,t),Uc(n,t)}}function nu(e,t,n){const i=this.cache,a=n.allocateTextureUnit();let r;i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),this.type===e.SAMPLER_2D_SHADOW?(Ac.compareFunction=Mr,r=Ac):r=Cc,n.setTexture2D(t||r,a)}function iu(e,t,n){const i=this.cache,a=n.allocateTextureUnit();i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),n.setTexture3D(t||Rc,a)}function au(e,t,n){const i=this.cache,a=n.allocateTextureUnit();i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),n.setTextureCube(t||Lc,a)}function ru(e,t,n){const i=this.cache,a=n.allocateTextureUnit();i[0]!==a&&(e.uniform1i(this.addr,a),i[0]=a),n.setTexture2DArray(t||Nc,a)}function ou(e,t){e.uniform1fv(this.addr,t)}function lu(e,t){const n=Bc(t,this.size,2);e.uniform2fv(this.addr,n)}function su(e,t){const n=Bc(t,this.size,3);e.uniform3fv(this.addr,n)}function cu(e,t){const n=Bc(t,this.size,4);e.uniform4fv(this.addr,n)}function uu(e,t){const n=Bc(t,this.size,4);e.uniformMatrix2fv(this.addr,!1,n)}function du(e,t){const n=Bc(t,this.size,9);e.uniformMatrix3fv(this.addr,!1,n)}function hu(e,t){const n=Bc(t,this.size,16);e.uniformMatrix4fv(this.addr,!1,n)}function pu(e,t){e.uniform1iv(this.addr,t)}function mu(e,t){e.uniform2iv(this.addr,t)}function fu(e,t){e.uniform3iv(this.addr,t)}function vu(e,t){e.uniform4iv(this.addr,t)}function gu(e,t){e.uniform1uiv(this.addr,t)}function _u(e,t){e.uniform2uiv(this.addr,t)}function xu(e,t){e.uniform3uiv(this.addr,t)}function yu(e,t){e.uniform4uiv(this.addr,t)}function Su(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTexture2D(t[o]||Cc,r[o])}function bu(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTexture3D(t[o]||Rc,r[o])}function Mu(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTextureCube(t[o]||Lc,r[o])}function Eu(e,t,n){const i=this.cache,a=t.length,r=Vc(n,a);Dc(i,r)||(e.uniform1iv(this.addr,r),Uc(i,r));for(let o=0;o!==a;++o)n.setTexture2DArray(t[o]||Nc,r[o])}class wu{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.setValue=function(e){switch(e){case 5126:return Oc;case 35664:return Fc;case 35665:return Hc;case 35666:return Gc;case 35674:return Wc;case 35675:return Xc;case 35676:return jc;case 5124:case 35670:return $c;case 35667:case 35671:return Kc;case 35668:case 35672:return Yc;case 35669:case 35673:return Jc;case 5125:return Zc;case 36294:return Qc;case 36295:return eu;case 36296:return tu;case 35678:case 36198:case 36298:case 36306:case 35682:return nu;case 35679:case 36299:case 36307:return iu;case 35680:case 36300:case 36308:case 36293:return au;case 36289:case 36303:case 36311:case 36292:return ru}}(t.type)}}class Tu{constructor(e,t,n){this.id=e,this.addr=n,this.cache=[],this.type=t.type,this.size=t.size,this.setValue=function(e){switch(e){case 5126:return ou;case 35664:return lu;case 35665:return su;case 35666:return cu;case 35674:return uu;case 35675:return du;case 35676:return hu;case 5124:case 35670:return pu;case 35667:case 35671:return mu;case 35668:case 35672:return fu;case 35669:case 35673:return vu;case 5125:return gu;case 36294:return _u;case 36295:return xu;case 36296:return yu;case 35678:case 36198:case 36298:case 36306:case 35682:return Su;case 35679:case 36299:case 36307:return bu;case 35680:case 36300:case 36308:case 36293:return Mu;case 36289:case 36303:case 36311:case 36292:return Eu}}(t.type)}}class Cu{constructor(e){this.id=e,this.seq=[],this.map={}}setValue(e,t,n){const i=this.seq;for(let a=0,r=i.length;a!==r;++a){const r=i[a];r.setValue(e,t[r.id],n)}}}const Au=/(\w+)(\])?(\[|\.)?/g;function Nu(e,t){e.seq.push(t),e.map[t.id]=t}function Ru(e,t,n){const i=e.name,a=i.length;for(Au.lastIndex=0;;){const r=Au.exec(i),o=Au.lastIndex;let l=r[1];const s="]"===r[2],c=r[3];if(s&&(l|=0),void 0===c||"["===c&&o+2===a){Nu(n,void 0===c?new wu(l,e,t):new Tu(l,e,t));break}{let e=n.map[l];void 0===e&&(e=new Cu(l),Nu(n,e)),n=e}}}class Lu{constructor(e,t){this.seq=[],this.map={};const n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let i=0;i<n;++i){const n=e.getActiveUniform(t,i);Ru(n,e.getUniformLocation(t,n.name),this)}}setValue(e,t,n,i){const a=this.map[t];void 0!==a&&a.setValue(e,n,i)}setOptional(e,t,n){const i=t[n];void 0!==i&&this.setValue(e,n,i)}static upload(e,t,n,i){for(let a=0,r=t.length;a!==r;++a){const r=t[a],o=n[r.id];!1!==o.needsUpdate&&r.setValue(e,o.value,i)}}static seqWithValue(e,t){const n=[];for(let i=0,a=e.length;i!==a;++i){const a=e[i];a.id in t&&n.push(a)}return n}}function Pu(e,t,n){const i=e.createShader(t);return e.shaderSource(i,n),e.compileShader(i),i}const qu=37297;let Iu=0;function zu(e,t,n){const i=e.getShaderParameter(t,e.COMPILE_STATUS),a=e.getShaderInfoLog(t).trim();if(i&&""===a)return"";const r=/ERROR: 0:(\d+)/.exec(a);if(r){const i=parseInt(r[1]);return n.toUpperCase()+"\n\n"+a+"\n\n"+function(e,t){const n=e.split("\n"),i=[],a=Math.max(t-6,0),r=Math.min(t+6,n.length);for(let o=a;o<r;o++){const e=o+1;i.push(`${e===t?">":" "} ${e}: ${n[o]}`)}return i.join("\n")}(e.getShaderSource(t),i)}return a}function ku(e,t){const n=function(e){const t=Zr.getPrimaries(Zr.workingColorSpace),n=Zr.getPrimaries(e);let i;switch(t===n?i="":t===_r&&n===gr?i="LinearDisplayP3ToLinearSRGB":t===gr&&n===_r&&(i="LinearSRGBToLinearDisplayP3"),e){case hr:case mr:return[i,"LinearTransferOETF"];case dr:case pr:return[i,"sRGBTransferOETF"];default:return[i,"LinearTransferOETF"]}}(t);return`vec4 ${e}( vec4 value ) { return ${n[0]}( ${n[1]}( value ) ); }`}function Bu(e,t){let n;switch(t){case Hi:n="Linear";break;case Gi:n="Reinhard";break;case Wi:n="OptimizedCineon";break;case Xi:n="ACESFilmic";break;case $i:n="AgX";break;case Ki:n="Neutral";break;case ji:n="Custom";break;default:n="Linear"}return"vec3 "+e+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Du(e){return""!==e}function Uu(e,t){const n=t.numSpotLightShadows+t.numSpotLightMaps-t.numSpotLightShadowsWithMaps;return e.replace(/NUM_DIR_LIGHTS/g,t.numDirLights).replace(/NUM_SPOT_LIGHTS/g,t.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,t.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,t.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,t.numPointLights).replace(/NUM_HEMI_LIGHTS/g,t.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,t.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,t.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,t.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,t.numPointLightShadows)}function Vu(e,t){return e.replace(/NUM_CLIPPING_PLANES/g,t.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,t.numClippingPlanes-t.numClipIntersection)}const Ou=/^[ \t]*#include +<([\w\d./]+)>/gm;function Fu(e){return e.replace(Ou,Gu)}const Hu=new Map;function Gu(e,t){let n=Hs[t];if(void 0===n){const e=Hu.get(t);if(void 0===e)throw new Error("Can not resolve #include <"+t+">");n=Hs[e]}return Fu(n)}const Wu=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Xu(e){return e.replace(Wu,ju)}function ju(e,t,n,i){let a="";for(let r=parseInt(t);r<parseInt(n);r++)a+=i.replace(/\[\s*i\s*\]/g,"[ "+r+" ]").replace(/UNROLLED_LOOP_INDEX/g,r);return a}function $u(e){let t=`precision ${e.precision} float;\n\tprecision ${e.precision} int;\n\tprecision ${e.precision} sampler2D;\n\tprecision ${e.precision} samplerCube;\n\tprecision ${e.precision} sampler3D;\n\tprecision ${e.precision} sampler2DArray;\n\tprecision ${e.precision} sampler2DShadow;\n\tprecision ${e.precision} samplerCubeShadow;\n\tprecision ${e.precision} sampler2DArrayShadow;\n\tprecision ${e.precision} isampler2D;\n\tprecision ${e.precision} isampler3D;\n\tprecision ${e.precision} isamplerCube;\n\tprecision ${e.precision} isampler2DArray;\n\tprecision ${e.precision} usampler2D;\n\tprecision ${e.precision} usampler3D;\n\tprecision ${e.precision} usamplerCube;\n\tprecision ${e.precision} usampler2DArray;\n\t`;return"highp"===e.precision?t+="\n#define HIGH_PRECISION":"mediump"===e.precision?t+="\n#define MEDIUM_PRECISION":"lowp"===e.precision&&(t+="\n#define LOW_PRECISION"),t}function Ku(e,t,n,i){const a=e.getContext(),r=n.defines;let o=n.vertexShader,l=n.fragmentShader;const s=function(e){let t="SHADOWMAP_TYPE_BASIC";return e.shadowMapType===fi?t="SHADOWMAP_TYPE_PCF":e.shadowMapType===vi?t="SHADOWMAP_TYPE_PCF_SOFT":e.shadowMapType===gi&&(t="SHADOWMAP_TYPE_VSM"),t}(n),c=function(e){let t="ENVMAP_TYPE_CUBE";if(e.envMap)switch(e.envMapMode){case Yi:case Ji:t="ENVMAP_TYPE_CUBE";break;case Zi:t="ENVMAP_TYPE_CUBE_UV"}return t}(n),u=function(e){let t="ENVMAP_MODE_REFLECTION";e.envMap&&e.envMapMode===Ji&&(t="ENVMAP_MODE_REFRACTION");return t}(n),d=function(e){let t="ENVMAP_BLENDING_NONE";if(e.envMap)switch(e.combine){case Ui:t="ENVMAP_BLENDING_MULTIPLY";break;case Vi:t="ENVMAP_BLENDING_MIX";break;case Oi:t="ENVMAP_BLENDING_ADD"}return t}(n),h=function(e){const t=e.envMapCubeUVHeight;if(null===t)return null;const n=Math.log2(t)-2,i=1/t;return{texelWidth:1/(3*Math.max(Math.pow(2,n),112)),texelHeight:i,maxMip:n}}(n),p=function(e){return[e.extensionClipCullDistance?"#extension GL_ANGLE_clip_cull_distance : require":"",e.extensionMultiDraw?"#extension GL_ANGLE_multi_draw : require":""].filter(Du).join("\n")}(n),m=function(e){const t=[];for(const n in e){const i=e[n];!1!==i&&t.push("#define "+n+" "+i)}return t.join("\n")}(r),f=a.createProgram();let v,g,_=n.glslVersion?"#version "+n.glslVersion+"\n":"";n.isRawShaderMaterial?(v=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Du).join("\n"),v.length>0&&(v+="\n"),g=["#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m].filter(Du).join("\n"),g.length>0&&(g+="\n")):(v=[$u(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.extensionClipCullDistance?"#define USE_CLIP_DISTANCE":"",n.batching?"#define USE_BATCHING":"",n.batchingColor?"#define USE_BATCHING_COLOR":"",n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.instancingMorph?"#define USE_INSTANCING_MORPH":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+u:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.anisotropyMapUv?"#define ANISOTROPYMAP_UV "+n.anisotropyMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+s:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","#ifdef USE_INSTANCING_MORPH","\tuniform sampler2D morphTexture;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_UV1","\tattribute vec2 uv1;","#endif","#ifdef USE_UV2","\tattribute vec2 uv2;","#endif","#ifdef USE_UV3","\tattribute vec2 uv3;","#endif","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Du).join("\n"),g=[$u(n),"#define SHADER_TYPE "+n.shaderType,"#define SHADER_NAME "+n.shaderName,m,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.alphaToCoverage?"#define ALPHA_TO_COVERAGE":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+c:"",n.envMap?"#define "+u:"",n.envMap?"#define "+d:"",h?"#define CUBEUV_TEXEL_WIDTH "+h.texelWidth:"",h?"#define CUBEUV_TEXEL_HEIGHT "+h.texelHeight:"",h?"#define CUBEUV_MAX_MIP "+h.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.anisotropy?"#define USE_ANISOTROPY":"",n.anisotropyMap?"#define USE_ANISOTROPYMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.dispersion?"#define USE_DISPERSION":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.alphaHash?"#define USE_ALPHAHASH":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.vertexTangents&&!1===n.flatShading?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor||n.batchingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUv1s?"#define USE_UV1":"",n.vertexUv2s?"#define USE_UV2":"",n.vertexUv3s?"#define USE_UV3":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+s:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.numLightProbes>0?"#define USE_LIGHT_PROBES":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==Fi?"#define TONE_MAPPING":"",n.toneMapping!==Fi?Hs.tonemapping_pars_fragment:"",n.toneMapping!==Fi?Bu("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",Hs.colorspace_pars_fragment,ku("linearToOutputTexel",n.outputColorSpace),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Du).join("\n")),o=Fu(o),o=Uu(o,n),o=Vu(o,n),l=Fu(l),l=Uu(l,n),l=Vu(l,n),o=Xu(o),l=Xu(l),!0!==n.isRawShaderMaterial&&(_="#version 300 es\n",v=[p,"#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+v,g=["#define varying in",n.glslVersion===Ar?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Ar?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+g);const x=_+v+o,y=_+g+l,S=Pu(a,a.VERTEX_SHADER,x),b=Pu(a,a.FRAGMENT_SHADER,y);function M(t){if(e.debug.checkShaderErrors){const n=a.getProgramInfoLog(f).trim(),i=a.getShaderInfoLog(S).trim(),r=a.getShaderInfoLog(b).trim();let o=!0,l=!0;if(!1===a.getProgramParameter(f,a.LINK_STATUS))if(o=!1,"function"==typeof e.debug.onShaderError)e.debug.onShaderError(a,f,S,b);else{zu(a,S,"vertex"),zu(a,b,"fragment")}else""!==n||""!==i&&""!==r||(l=!1);l&&(t.diagnostics={runnable:o,programLog:n,vertexShader:{log:i,prefix:v},fragmentShader:{log:r,prefix:g}})}a.deleteShader(S),a.deleteShader(b),E=new Lu(a,f),w=function(e,t){const n={},i=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let a=0;a<i;a++){const i=e.getActiveAttrib(t,a),r=i.name;let o=1;i.type===e.FLOAT_MAT2&&(o=2),i.type===e.FLOAT_MAT3&&(o=3),i.type===e.FLOAT_MAT4&&(o=4),n[r]={type:i.type,location:e.getAttribLocation(t,r),locationSize:o}}return n}(a,f)}let E,w;a.attachShader(f,S),a.attachShader(f,b),void 0!==n.index0AttributeName?a.bindAttribLocation(f,0,n.index0AttributeName):!0===n.morphTargets&&a.bindAttribLocation(f,0,"position"),a.linkProgram(f),this.getUniforms=function(){return void 0===E&&M(this),E},this.getAttributes=function(){return void 0===w&&M(this),w};let T=!1===n.rendererExtensionParallelShaderCompile;return this.isReady=function(){return!1===T&&(T=a.getProgramParameter(f,qu)),T},this.destroy=function(){i.releaseStatesOfProgram(this),a.deleteProgram(f),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Iu++,this.cacheKey=t,this.usedTimes=1,this.program=f,this.vertexShader=S,this.fragmentShader=b,this}let Yu=0;class Ju{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e){const t=e.vertexShader,n=e.fragmentShader,i=this._getShaderStage(t),a=this._getShaderStage(n),r=this._getShaderCacheForMaterial(e);return!1===r.has(i)&&(r.add(i),i.usedTimes++),!1===r.has(a)&&(r.add(a),a.usedTimes++),this}remove(e){const t=this.materialCache.get(e);for(const n of t)n.usedTimes--,0===n.usedTimes&&this.shaderCache.delete(n.code);return this.materialCache.delete(e),this}getVertexShaderID(e){return this._getShaderStage(e.vertexShader).id}getFragmentShaderID(e){return this._getShaderStage(e.fragmentShader).id}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){const t=this.materialCache;let n=t.get(e);return void 0===n&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){const t=this.shaderCache;let n=t.get(e);return void 0===n&&(n=new Zu(e),t.set(e,n)),n}}class Zu{constructor(e){this.id=Yu++,this.code=e,this.usedTimes=0}}function Qu(e,t,n,i,a,r,o){const l=new nl,s=new Ju,c=new Set,u=[],d=a.logarithmicDepthBuffer,h=a.vertexTextures;let p=a.precision;const m={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"toon",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"};function f(e){return c.add(e),0===e?"uv":`uv${e}`}return{getParameters:function(r,l,u,v,g){const _=v.fog,x=g.geometry,y=r.isMeshStandardMaterial?v.environment:null,S=(r.isMeshStandardMaterial?n:t).get(r.envMap||y),b=S&&S.mapping===Zi?S.image.height:null,M=m[r.type];null!==r.precision&&(p=a.getMaxPrecision(r.precision),r.precision);const E=x.morphAttributes.position||x.morphAttributes.normal||x.morphAttributes.color,w=void 0!==E?E.length:0;let T,C,A,N,R=0;if(void 0!==x.morphAttributes.position&&(R=1),void 0!==x.morphAttributes.normal&&(R=2),void 0!==x.morphAttributes.color&&(R=3),M){const e=Ws[M];T=e.vertexShader,C=e.fragmentShader}else T=r.vertexShader,C=r.fragmentShader,s.update(r),A=s.getVertexShaderID(r),N=s.getFragmentShaderID(r);const L=e.getRenderTarget(),P=!0===g.isInstancedMesh,q=!0===g.isBatchedMesh,I=!!r.map,z=!!r.matcap,k=!!S,B=!!r.aoMap,D=!!r.lightMap,U=!!r.bumpMap,V=!!r.normalMap,O=!!r.displacementMap,F=!!r.emissiveMap,H=!!r.metalnessMap,G=!!r.roughnessMap,W=r.anisotropy>0,X=r.clearcoat>0,j=r.dispersion>0,$=r.iridescence>0,K=r.sheen>0,Y=r.transmission>0,J=W&&!!r.anisotropyMap,Z=X&&!!r.clearcoatMap,Q=X&&!!r.clearcoatNormalMap,ee=X&&!!r.clearcoatRoughnessMap,te=$&&!!r.iridescenceMap,ne=$&&!!r.iridescenceThicknessMap,ie=K&&!!r.sheenColorMap,ae=K&&!!r.sheenRoughnessMap,re=!!r.specularMap,oe=!!r.specularColorMap,le=!!r.specularIntensityMap,se=Y&&!!r.transmissionMap,ce=Y&&!!r.thicknessMap,ue=!!r.gradientMap,de=!!r.alphaMap,he=r.alphaTest>0,pe=!!r.alphaHash,me=!!r.extensions;let fe=Fi;r.toneMapped&&(null!==L&&!0!==L.isXRRenderTarget||(fe=e.toneMapping));const ve={shaderID:M,shaderType:r.type,shaderName:r.name,vertexShader:T,fragmentShader:C,defines:r.defines,customVertexShaderID:A,customFragmentShaderID:N,isRawShaderMaterial:!0===r.isRawShaderMaterial,glslVersion:r.glslVersion,precision:p,batching:q,batchingColor:q&&null!==g._colorsTexture,instancing:P,instancingColor:P&&null!==g.instanceColor,instancingMorph:P&&null!==g.morphTexture,supportsVertexTextures:h,outputColorSpace:null===L?e.outputColorSpace:!0===L.isXRRenderTarget?L.texture.colorSpace:hr,alphaToCoverage:!!r.alphaToCoverage,map:I,matcap:z,envMap:k,envMapMode:k&&S.mapping,envMapCubeUVHeight:b,aoMap:B,lightMap:D,bumpMap:U,normalMap:V,displacementMap:h&&O,emissiveMap:F,normalMapObjectSpace:V&&1===r.normalMapType,normalMapTangentSpace:V&&0===r.normalMapType,metalnessMap:H,roughnessMap:G,anisotropy:W,anisotropyMap:J,clearcoat:X,clearcoatMap:Z,clearcoatNormalMap:Q,clearcoatRoughnessMap:ee,dispersion:j,iridescence:$,iridescenceMap:te,iridescenceThicknessMap:ne,sheen:K,sheenColorMap:ie,sheenRoughnessMap:ae,specularMap:re,specularColorMap:oe,specularIntensityMap:le,transmission:Y,transmissionMap:se,thicknessMap:ce,gradientMap:ue,opaque:!1===r.transparent&&1===r.blending&&!1===r.alphaToCoverage,alphaMap:de,alphaTest:he,alphaHash:pe,combine:r.combine,mapUv:I&&f(r.map.channel),aoMapUv:B&&f(r.aoMap.channel),lightMapUv:D&&f(r.lightMap.channel),bumpMapUv:U&&f(r.bumpMap.channel),normalMapUv:V&&f(r.normalMap.channel),displacementMapUv:O&&f(r.displacementMap.channel),emissiveMapUv:F&&f(r.emissiveMap.channel),metalnessMapUv:H&&f(r.metalnessMap.channel),roughnessMapUv:G&&f(r.roughnessMap.channel),anisotropyMapUv:J&&f(r.anisotropyMap.channel),clearcoatMapUv:Z&&f(r.clearcoatMap.channel),clearcoatNormalMapUv:Q&&f(r.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:ee&&f(r.clearcoatRoughnessMap.channel),iridescenceMapUv:te&&f(r.iridescenceMap.channel),iridescenceThicknessMapUv:ne&&f(r.iridescenceThicknessMap.channel),sheenColorMapUv:ie&&f(r.sheenColorMap.channel),sheenRoughnessMapUv:ae&&f(r.sheenRoughnessMap.channel),specularMapUv:re&&f(r.specularMap.channel),specularColorMapUv:oe&&f(r.specularColorMap.channel),specularIntensityMapUv:le&&f(r.specularIntensityMap.channel),transmissionMapUv:se&&f(r.transmissionMap.channel),thicknessMapUv:ce&&f(r.thicknessMap.channel),alphaMapUv:de&&f(r.alphaMap.channel),vertexTangents:!!x.attributes.tangent&&(V||W),vertexColors:r.vertexColors,vertexAlphas:!0===r.vertexColors&&!!x.attributes.color&&4===x.attributes.color.itemSize,pointsUvs:!0===g.isPoints&&!!x.attributes.uv&&(I||de),fog:!!_,useFog:!0===r.fog,fogExp2:!!_&&_.isFogExp2,flatShading:!0===r.flatShading,sizeAttenuation:!0===r.sizeAttenuation,logarithmicDepthBuffer:d,skinning:!0===g.isSkinnedMesh,morphTargets:void 0!==x.morphAttributes.position,morphNormals:void 0!==x.morphAttributes.normal,morphColors:void 0!==x.morphAttributes.color,morphTargetsCount:w,morphTextureStride:R,numDirLights:l.directional.length,numPointLights:l.point.length,numSpotLights:l.spot.length,numSpotLightMaps:l.spotLightMap.length,numRectAreaLights:l.rectArea.length,numHemiLights:l.hemi.length,numDirLightShadows:l.directionalShadowMap.length,numPointLightShadows:l.pointShadowMap.length,numSpotLightShadows:l.spotShadowMap.length,numSpotLightShadowsWithMaps:l.numSpotLightShadowsWithMaps,numLightProbes:l.numLightProbes,numClippingPlanes:o.numPlanes,numClipIntersection:o.numIntersection,dithering:r.dithering,shadowMapEnabled:e.shadowMap.enabled&&u.length>0,shadowMapType:e.shadowMap.type,toneMapping:fe,decodeVideoTexture:I&&!0===r.map.isVideoTexture&&Zr.getTransfer(r.map.colorSpace)===vr,premultipliedAlpha:r.premultipliedAlpha,doubleSided:2===r.side,flipSided:r.side===xi,useDepthPacking:r.depthPacking>=0,depthPacking:r.depthPacking||0,index0AttributeName:r.index0AttributeName,extensionClipCullDistance:me&&!0===r.extensions.clipCullDistance&&i.has("WEBGL_clip_cull_distance"),extensionMultiDraw:(me&&!0===r.extensions.multiDraw||q)&&i.has("WEBGL_multi_draw"),rendererExtensionParallelShaderCompile:i.has("KHR_parallel_shader_compile"),customProgramCacheKey:r.customProgramCacheKey()};return ve.vertexUv1s=c.has(1),ve.vertexUv2s=c.has(2),ve.vertexUv3s=c.has(3),c.clear(),ve},getProgramCacheKey:function(t){const n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),void 0!==t.defines)for(const e in t.defines)n.push(e),n.push(t.defines[e]);return!1===t.isRawShaderMaterial&&(!function(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}(n,t),function(e,t){l.disableAll(),t.supportsVertexTextures&&l.enable(0);t.instancing&&l.enable(1);t.instancingColor&&l.enable(2);t.instancingMorph&&l.enable(3);t.matcap&&l.enable(4);t.envMap&&l.enable(5);t.normalMapObjectSpace&&l.enable(6);t.normalMapTangentSpace&&l.enable(7);t.clearcoat&&l.enable(8);t.iridescence&&l.enable(9);t.alphaTest&&l.enable(10);t.vertexColors&&l.enable(11);t.vertexAlphas&&l.enable(12);t.vertexUv1s&&l.enable(13);t.vertexUv2s&&l.enable(14);t.vertexUv3s&&l.enable(15);t.vertexTangents&&l.enable(16);t.anisotropy&&l.enable(17);t.alphaHash&&l.enable(18);t.batching&&l.enable(19);t.dispersion&&l.enable(20);t.batchingColor&&l.enable(21);e.push(l.mask),l.disableAll(),t.fog&&l.enable(0);t.useFog&&l.enable(1);t.flatShading&&l.enable(2);t.logarithmicDepthBuffer&&l.enable(3);t.skinning&&l.enable(4);t.morphTargets&&l.enable(5);t.morphNormals&&l.enable(6);t.morphColors&&l.enable(7);t.premultipliedAlpha&&l.enable(8);t.shadowMapEnabled&&l.enable(9);t.doubleSided&&l.enable(10);t.flipSided&&l.enable(11);t.useDepthPacking&&l.enable(12);t.dithering&&l.enable(13);t.transmission&&l.enable(14);t.sheen&&l.enable(15);t.opaque&&l.enable(16);t.pointsUvs&&l.enable(17);t.decodeVideoTexture&&l.enable(18);t.alphaToCoverage&&l.enable(19);e.push(l.mask)}(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()},getUniforms:function(e){const t=m[e.type];let n;if(t){const e=Ws[t];n=bs.clone(e.uniforms)}else n=e.uniforms;return n},acquireProgram:function(t,n){let i;for(let e=0,a=u.length;e<a;e++){const t=u[e];if(t.cacheKey===n){i=t,++i.usedTimes;break}}return void 0===i&&(i=new Ku(e,n,t,r),u.push(i)),i},releaseProgram:function(e){if(0==--e.usedTimes){const t=u.indexOf(e);u[t]=u[u.length-1],u.pop(),e.destroy()}},releaseShaderCache:function(e){s.remove(e)},programs:u,dispose:function(){s.dispose()}}}function ed(){let e=new WeakMap;return{get:function(t){let n=e.get(t);return void 0===n&&(n={},e.set(t,n)),n},remove:function(t){e.delete(t)},update:function(t,n,i){e.get(t)[n]=i},dispose:function(){e=new WeakMap}}}function td(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.material.id!==t.material.id?e.material.id-t.material.id:e.z!==t.z?e.z-t.z:e.id-t.id}function nd(e,t){return e.groupOrder!==t.groupOrder?e.groupOrder-t.groupOrder:e.renderOrder!==t.renderOrder?e.renderOrder-t.renderOrder:e.z!==t.z?t.z-e.z:e.id-t.id}function id(){const e=[];let t=0;const n=[],i=[],a=[];function r(n,i,a,r,o,l){let s=e[t];return void 0===s?(s={id:n.id,object:n,geometry:i,material:a,groupOrder:r,renderOrder:n.renderOrder,z:o,group:l},e[t]=s):(s.id=n.id,s.object=n,s.geometry=i,s.material=a,s.groupOrder=r,s.renderOrder=n.renderOrder,s.z=o,s.group=l),t++,s}return{opaque:n,transmissive:i,transparent:a,init:function(){t=0,n.length=0,i.length=0,a.length=0},push:function(e,t,o,l,s,c){const u=r(e,t,o,l,s,c);o.transmission>0?i.push(u):!0===o.transparent?a.push(u):n.push(u)},unshift:function(e,t,o,l,s,c){const u=r(e,t,o,l,s,c);o.transmission>0?i.unshift(u):!0===o.transparent?a.unshift(u):n.unshift(u)},finish:function(){for(let n=t,i=e.length;n<i;n++){const t=e[n];if(null===t.id)break;t.id=null,t.object=null,t.geometry=null,t.material=null,t.group=null}},sort:function(e,t){n.length>1&&n.sort(e||td),i.length>1&&i.sort(t||nd),a.length>1&&a.sort(t||nd)}}}function ad(){let e=new WeakMap;return{get:function(t,n){const i=e.get(t);let a;return void 0===i?(a=new id,e.set(t,[a])):n>=i.length?(a=new id,i.push(a)):a=i[n],a},dispose:function(){e=new WeakMap}}}function rd(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":n={direction:new fo,color:new Il};break;case"SpotLight":n={position:new fo,direction:new fo,color:new Il,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new fo,color:new Il,distance:0,decay:0};break;case"HemisphereLight":n={direction:new fo,skyColor:new Il,groundColor:new Il};break;case"RectAreaLight":n={color:new Il,position:new fo,halfWidth:new fo,halfHeight:new fo}}return e[t.id]=n,n}}}let od=0;function ld(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+(t.map?1:0)-(e.map?1:0)}function sd(e){const t=new rd,n=function(){const e={};return{get:function(t){if(void 0!==e[t.id])return e[t.id];let n;switch(t.type){case"DirectionalLight":case"SpotLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vr};break;case"PointLight":n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new Vr,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}(),i={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let l=0;l<9;l++)i.probe.push(new fo);const a=new fo,r=new Wo,o=new Wo;return{setup:function(a){let r=0,o=0,l=0;for(let e=0;e<9;e++)i.probe[e].set(0,0,0);let s=0,c=0,u=0,d=0,h=0,p=0,m=0,f=0,v=0,g=0,_=0;a.sort(ld);for(let e=0,y=a.length;e<y;e++){const x=a[e],y=x.color,S=x.intensity,b=x.distance,M=x.shadow&&x.shadow.map?x.shadow.map.texture:null;if(x.isAmbientLight)r+=y.r*S,o+=y.g*S,l+=y.b*S;else if(x.isLightProbe){for(let e=0;e<9;e++)i.probe[e].addScaledVector(x.sh.coefficients[e],S);_++}else if(x.isDirectionalLight){const e=t.get(x);if(e.color.copy(x.color).multiplyScalar(x.intensity),x.castShadow){const e=x.shadow,t=n.get(x);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,i.directionalShadow[s]=t,i.directionalShadowMap[s]=M,i.directionalShadowMatrix[s]=x.shadow.matrix,p++}i.directional[s]=e,s++}else if(x.isSpotLight){const e=t.get(x);e.position.setFromMatrixPosition(x.matrixWorld),e.color.copy(y).multiplyScalar(S),e.distance=b,e.coneCos=Math.cos(x.angle),e.penumbraCos=Math.cos(x.angle*(1-x.penumbra)),e.decay=x.decay,i.spot[u]=e;const a=x.shadow;if(x.map&&(i.spotLightMap[v]=x.map,v++,a.updateMatrices(x),x.castShadow&&g++),i.spotLightMatrix[u]=a.matrix,x.castShadow){const e=n.get(x);e.shadowIntensity=a.intensity,e.shadowBias=a.bias,e.shadowNormalBias=a.normalBias,e.shadowRadius=a.radius,e.shadowMapSize=a.mapSize,i.spotShadow[u]=e,i.spotShadowMap[u]=M,f++}u++}else if(x.isRectAreaLight){const e=t.get(x);e.color.copy(y).multiplyScalar(S),e.halfWidth.set(.5*x.width,0,0),e.halfHeight.set(0,.5*x.height,0),i.rectArea[d]=e,d++}else if(x.isPointLight){const e=t.get(x);if(e.color.copy(x.color).multiplyScalar(x.intensity),e.distance=x.distance,e.decay=x.decay,x.castShadow){const e=x.shadow,t=n.get(x);t.shadowIntensity=e.intensity,t.shadowBias=e.bias,t.shadowNormalBias=e.normalBias,t.shadowRadius=e.radius,t.shadowMapSize=e.mapSize,t.shadowCameraNear=e.camera.near,t.shadowCameraFar=e.camera.far,i.pointShadow[c]=t,i.pointShadowMap[c]=M,i.pointShadowMatrix[c]=x.shadow.matrix,m++}i.point[c]=e,c++}else if(x.isHemisphereLight){const e=t.get(x);e.skyColor.copy(x.color).multiplyScalar(S),e.groundColor.copy(x.groundColor).multiplyScalar(S),i.hemi[h]=e,h++}}d>0&&(!0===e.has("OES_texture_float_linear")?(i.rectAreaLTC1=Gs.LTC_FLOAT_1,i.rectAreaLTC2=Gs.LTC_FLOAT_2):(i.rectAreaLTC1=Gs.LTC_HALF_1,i.rectAreaLTC2=Gs.LTC_HALF_2)),i.ambient[0]=r,i.ambient[1]=o,i.ambient[2]=l;const x=i.hash;x.directionalLength===s&&x.pointLength===c&&x.spotLength===u&&x.rectAreaLength===d&&x.hemiLength===h&&x.numDirectionalShadows===p&&x.numPointShadows===m&&x.numSpotShadows===f&&x.numSpotMaps===v&&x.numLightProbes===_||(i.directional.length=s,i.spot.length=u,i.rectArea.length=d,i.point.length=c,i.hemi.length=h,i.directionalShadow.length=p,i.directionalShadowMap.length=p,i.pointShadow.length=m,i.pointShadowMap.length=m,i.spotShadow.length=f,i.spotShadowMap.length=f,i.directionalShadowMatrix.length=p,i.pointShadowMatrix.length=m,i.spotLightMatrix.length=f+v-g,i.spotLightMap.length=v,i.numSpotLightShadowsWithMaps=g,i.numLightProbes=_,x.directionalLength=s,x.pointLength=c,x.spotLength=u,x.rectAreaLength=d,x.hemiLength=h,x.numDirectionalShadows=p,x.numPointShadows=m,x.numSpotShadows=f,x.numSpotMaps=v,x.numLightProbes=_,i.version=od++)},setupView:function(e,t){let n=0,l=0,s=0,c=0,u=0;const d=t.matrixWorldInverse;for(let h=0,p=e.length;h<p;h++){const t=e[h];if(t.isDirectionalLight){const e=i.directional[n];e.direction.setFromMatrixPosition(t.matrixWorld),a.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(d),n++}else if(t.isSpotLight){const e=i.spot[s];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),e.direction.setFromMatrixPosition(t.matrixWorld),a.setFromMatrixPosition(t.target.matrixWorld),e.direction.sub(a),e.direction.transformDirection(d),s++}else if(t.isRectAreaLight){const e=i.rectArea[c];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),o.identity(),r.copy(t.matrixWorld),r.premultiply(d),o.extractRotation(r),e.halfWidth.set(.5*t.width,0,0),e.halfHeight.set(0,.5*t.height,0),e.halfWidth.applyMatrix4(o),e.halfHeight.applyMatrix4(o),c++}else if(t.isPointLight){const e=i.point[l];e.position.setFromMatrixPosition(t.matrixWorld),e.position.applyMatrix4(d),l++}else if(t.isHemisphereLight){const e=i.hemi[u];e.direction.setFromMatrixPosition(t.matrixWorld),e.direction.transformDirection(d),u++}}},state:i}}function cd(e){const t=new sd(e),n=[],i=[];const a={lightsArray:n,shadowsArray:i,camera:null,lights:t,transmissionRenderTarget:{}};return{init:function(e){a.camera=e,n.length=0,i.length=0},state:a,setupLights:function(){t.setup(n)},setupLightsView:function(e){t.setupView(n,e)},pushLight:function(e){n.push(e)},pushShadow:function(e){i.push(e)}}}function ud(e){let t=new WeakMap;return{get:function(n,i=0){const a=t.get(n);let r;return void 0===a?(r=new cd(e),t.set(n,[r])):i>=a.length?(r=new cd(e),a.push(r)):r=a[i],r},dispose:function(){t=new WeakMap}}}class dd extends Bl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}}class hd extends Bl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}}function pd(e,t,n){let i=new Us;const a=new Vr,r=new Vr,o=new so,l=new dd({depthPacking:3201}),s=new hd,c={},u=n.maxTextureSize,d={[_i]:xi,[xi]:_i,[yi]:2},h=new Ms({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new Vr},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),p=h.clone();p.defines.HORIZONTAL_PASS=1;const m=new Zl;m.setAttribute("position",new Ol(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const f=new vs(m,h),v=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=fi;let g=this.type;function _(n,i){const r=t.update(f);h.defines.VSM_SAMPLES!==n.blurSamples&&(h.defines.VSM_SAMPLES=n.blurSamples,p.defines.VSM_SAMPLES=n.blurSamples,h.needsUpdate=!0,p.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new uo(a.x,a.y)),h.uniforms.shadow_pass.value=n.map.texture,h.uniforms.resolution.value=n.mapSize,h.uniforms.radius.value=n.radius,e.setRenderTarget(n.mapPass),e.clear(),e.renderBufferDirect(i,null,r,h,f,null),p.uniforms.shadow_pass.value=n.mapPass.texture,p.uniforms.resolution.value=n.mapSize,p.uniforms.radius.value=n.radius,e.setRenderTarget(n.map),e.clear(),e.renderBufferDirect(i,null,r,p,f,null)}function x(t,n,i,a){let r=null;const o=!0===i.isPointLight?t.customDistanceMaterial:t.customDepthMaterial;if(void 0!==o)r=o;else if(r=!0===i.isPointLight?s:l,e.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const e=r.uuid,t=n.uuid;let i=c[e];void 0===i&&(i={},c[e]=i);let a=i[t];void 0===a&&(a=r.clone(),i[t]=a,n.addEventListener("dispose",S)),r=a}if(r.visible=n.visible,r.wireframe=n.wireframe,r.side=a===gi?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:d[n.side],r.alphaMap=n.alphaMap,r.alphaTest=n.alphaTest,r.map=n.map,r.clipShadows=n.clipShadows,r.clippingPlanes=n.clippingPlanes,r.clipIntersection=n.clipIntersection,r.displacementMap=n.displacementMap,r.displacementScale=n.displacementScale,r.displacementBias=n.displacementBias,r.wireframeLinewidth=n.wireframeLinewidth,r.linewidth=n.linewidth,!0===i.isPointLight&&!0===r.isMeshDistanceMaterial){e.properties.get(r).light=i}return r}function y(n,a,r,o,l){if(!1===n.visible)return;if(n.layers.test(a.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&l===gi)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(r.matrixWorldInverse,n.matrixWorld);const i=t.update(n),s=n.material;if(Array.isArray(s)){const t=i.groups;for(let c=0,u=t.length;c<u;c++){const u=t[c],d=s[u.materialIndex];if(d&&d.visible){const t=x(n,d,o,l);n.onBeforeShadow(e,n,a,r,i,t,u),e.renderBufferDirect(r,null,i,t,n,u),n.onAfterShadow(e,n,a,r,i,t,u)}}}else if(s.visible){const t=x(n,s,o,l);n.onBeforeShadow(e,n,a,r,i,t,null),e.renderBufferDirect(r,null,i,t,n,null),n.onAfterShadow(e,n,a,r,i,t,null)}}const s=n.children;for(let e=0,t=s.length;e<t;e++)y(s[e],a,r,o,l)}function S(e){e.target.removeEventListener("dispose",S);for(const t in c){const n=c[t],i=e.target.uuid;if(i in n){n[i].dispose(),delete n[i]}}}this.render=function(t,n,l){if(!1===v.enabled)return;if(!1===v.autoUpdate&&!1===v.needsUpdate)return;if(0===t.length)return;const s=e.getRenderTarget(),c=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),h=e.state;h.setBlending(0),h.buffers.color.setClear(1,1,1,1),h.buffers.depth.setTest(!0),h.setScissorTest(!1);const p=g!==gi&&this.type===gi,m=g===gi&&this.type!==gi;for(let f=0,v=t.length;f<v;f++){const s=t[f],c=s.shadow;if(void 0===c)continue;if(!1===c.autoUpdate&&!1===c.needsUpdate)continue;a.copy(c.mapSize);const d=c.getFrameExtents();if(a.multiply(d),r.copy(c.mapSize),(a.x>u||a.y>u)&&(a.x>u&&(r.x=Math.floor(u/d.x),a.x=r.x*d.x,c.mapSize.x=r.x),a.y>u&&(r.y=Math.floor(u/d.y),a.y=r.y*d.y,c.mapSize.y=r.y)),null===c.map||!0===p||!0===m){const e=this.type!==gi?{minFilter:na,magFilter:na}:{};null!==c.map&&c.map.dispose(),c.map=new uo(a.x,a.y,e),c.map.texture.name=s.name+".shadowMap",c.camera.updateProjectionMatrix()}e.setRenderTarget(c.map),e.clear();const v=c.getViewportCount();for(let e=0;e<v;e++){const t=c.getViewport(e);o.set(r.x*t.x,r.y*t.y,r.x*t.z,r.y*t.w),h.viewport(o),c.updateMatrices(s,e),i=c.getFrustum(),y(n,l,c.camera,s,this.type)}!0!==c.isPointLightShadow&&this.type===gi&&_(c,l),c.needsUpdate=!1}g=this.type,v.needsUpdate=!1,e.setRenderTarget(s,c,d)}}function md(e){const t=new function(){let t=!1;const n=new so;let i=null;const a=new so(0,0,0,0);return{setMask:function(n){i===n||t||(e.colorMask(n,n,n,n),i=n)},setLocked:function(e){t=e},setClear:function(t,i,r,o,l){!0===l&&(t*=o,i*=o,r*=o),n.set(t,i,r,o),!1===a.equals(n)&&(e.clearColor(t,i,r,o),a.copy(n))},reset:function(){t=!1,i=null,a.set(-1,0,0,0)}}},n=new function(){let t=!1,n=null,i=null,a=null;return{setTest:function(t){t?U(e.DEPTH_TEST):V(e.DEPTH_TEST)},setMask:function(i){n===i||t||(e.depthMask(i),n=i)},setFunc:function(t){if(i!==t){switch(t){case 0:e.depthFunc(e.NEVER);break;case 1:e.depthFunc(e.ALWAYS);break;case 2:e.depthFunc(e.LESS);break;case 3:default:e.depthFunc(e.LEQUAL);break;case 4:e.depthFunc(e.EQUAL);break;case 5:e.depthFunc(e.GEQUAL);break;case 6:e.depthFunc(e.GREATER);break;case 7:e.depthFunc(e.NOTEQUAL)}i=t}},setLocked:function(e){t=e},setClear:function(t){a!==t&&(e.clearDepth(t),a=t)},reset:function(){t=!1,n=null,i=null,a=null}}},i=new function(){let t=!1,n=null,i=null,a=null,r=null,o=null,l=null,s=null,c=null;return{setTest:function(n){t||(n?U(e.STENCIL_TEST):V(e.STENCIL_TEST))},setMask:function(i){n===i||t||(e.stencilMask(i),n=i)},setFunc:function(t,n,o){i===t&&a===n&&r===o||(e.stencilFunc(t,n,o),i=t,a=n,r=o)},setOp:function(t,n,i){o===t&&l===n&&s===i||(e.stencilOp(t,n,i),o=t,l=n,s=i)},setLocked:function(e){t=e},setClear:function(t){c!==t&&(e.clearStencil(t),c=t)},reset:function(){t=!1,n=null,i=null,a=null,r=null,o=null,l=null,s=null,c=null}}},a=new WeakMap,r=new WeakMap;let o={},l={},s=new WeakMap,c=[],u=null,d=!1,h=null,p=null,m=null,f=null,v=null,g=null,_=null,x=new Il(0,0,0),y=0,S=!1,b=null,M=null,E=null,w=null,T=null;const C=e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS);let A=!1,N=0;const R=e.getParameter(e.VERSION);-1!==R.indexOf("WebGL")?(N=parseFloat(/^WebGL (\d)/.exec(R)[1]),A=N>=1):-1!==R.indexOf("OpenGL ES")&&(N=parseFloat(/^OpenGL ES (\d)/.exec(R)[1]),A=N>=2);let L=null,P={};const q=e.getParameter(e.SCISSOR_BOX),I=e.getParameter(e.VIEWPORT),z=(new so).fromArray(q),k=(new so).fromArray(I);function B(t,n,i,a){const r=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let l=0;l<i;l++)t===e.TEXTURE_3D||t===e.TEXTURE_2D_ARRAY?e.texImage3D(n,0,e.RGBA,1,1,a,0,e.RGBA,e.UNSIGNED_BYTE,r):e.texImage2D(n+l,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,r);return o}const D={};function U(t){!0!==o[t]&&(e.enable(t),o[t]=!0)}function V(t){!1!==o[t]&&(e.disable(t),o[t]=!1)}D[e.TEXTURE_2D]=B(e.TEXTURE_2D,e.TEXTURE_2D,1),D[e.TEXTURE_CUBE_MAP]=B(e.TEXTURE_CUBE_MAP,e.TEXTURE_CUBE_MAP_POSITIVE_X,6),D[e.TEXTURE_2D_ARRAY]=B(e.TEXTURE_2D_ARRAY,e.TEXTURE_2D_ARRAY,1,1),D[e.TEXTURE_3D]=B(e.TEXTURE_3D,e.TEXTURE_3D,1,1),t.setClear(0,0,0,1),n.setClear(1),i.setClear(0),U(e.DEPTH_TEST),n.setFunc(3),G(!1),W(1),U(e.CULL_FACE),H(0);const O={[Si]:e.FUNC_ADD,[bi]:e.FUNC_SUBTRACT,[Mi]:e.FUNC_REVERSE_SUBTRACT};O[103]=e.MIN,O[104]=e.MAX;const F={[Ei]:e.ZERO,[wi]:e.ONE,[Ti]:e.SRC_COLOR,[Ai]:e.SRC_ALPHA,[Ii]:e.SRC_ALPHA_SATURATE,[Pi]:e.DST_COLOR,[Ri]:e.DST_ALPHA,[Ci]:e.ONE_MINUS_SRC_COLOR,[Ni]:e.ONE_MINUS_SRC_ALPHA,[qi]:e.ONE_MINUS_DST_COLOR,[Li]:e.ONE_MINUS_DST_ALPHA,[zi]:e.CONSTANT_COLOR,[ki]:e.ONE_MINUS_CONSTANT_COLOR,[Bi]:e.CONSTANT_ALPHA,[Di]:e.ONE_MINUS_CONSTANT_ALPHA};function H(t,n,i,a,r,o,l,s,c,u){if(0!==t){if(!1===d&&(U(e.BLEND),d=!0),5===t)r=r||n,o=o||i,l=l||a,n===p&&r===v||(e.blendEquationSeparate(O[n],O[r]),p=n,v=r),i===m&&a===f&&o===g&&l===_||(e.blendFuncSeparate(F[i],F[a],F[o],F[l]),m=i,f=a,g=o,_=l),!1!==s.equals(x)&&c===y||(e.blendColor(s.r,s.g,s.b,c),x.copy(s),y=c),h=t,S=!1;else if(t!==h||u!==S){if(p===Si&&v===Si||(e.blendEquation(e.FUNC_ADD),p=Si,v=Si),u)switch(t){case 1:e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.ONE,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFuncSeparate(e.ZERO,e.SRC_COLOR,e.ZERO,e.SRC_ALPHA)}else switch(t){case 1:e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA);break;case 2:e.blendFunc(e.SRC_ALPHA,e.ONE);break;case 3:e.blendFuncSeparate(e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ZERO,e.ONE);break;case 4:e.blendFunc(e.ZERO,e.SRC_COLOR)}m=null,f=null,g=null,_=null,x.set(0,0,0),y=0,h=t,S=u}}else!0===d&&(V(e.BLEND),d=!1)}function G(t){b!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),b=t)}function W(t){0!==t?(U(e.CULL_FACE),t!==M&&(1===t?e.cullFace(e.BACK):2===t?e.cullFace(e.FRONT):e.cullFace(e.FRONT_AND_BACK))):V(e.CULL_FACE),M=t}function X(t,n,i){t?(U(e.POLYGON_OFFSET_FILL),w===n&&T===i||(e.polygonOffset(n,i),w=n,T=i)):V(e.POLYGON_OFFSET_FILL)}return{buffers:{color:t,depth:n,stencil:i},enable:U,disable:V,bindFramebuffer:function(t,n){return l[t]!==n&&(e.bindFramebuffer(t,n),l[t]=n,t===e.DRAW_FRAMEBUFFER&&(l[e.FRAMEBUFFER]=n),t===e.FRAMEBUFFER&&(l[e.DRAW_FRAMEBUFFER]=n),!0)},drawBuffers:function(t,n){let i=c,a=!1;if(t){i=s.get(n),void 0===i&&(i=[],s.set(n,i));const r=t.textures;if(i.length!==r.length||i[0]!==e.COLOR_ATTACHMENT0){for(let t=0,n=r.length;t<n;t++)i[t]=e.COLOR_ATTACHMENT0+t;i.length=r.length,a=!0}}else i[0]!==e.BACK&&(i[0]=e.BACK,a=!0);a&&e.drawBuffers(i)},useProgram:function(t){return u!==t&&(e.useProgram(t),u=t,!0)},setBlending:H,setMaterial:function(a,r){2===a.side?V(e.CULL_FACE):U(e.CULL_FACE);let o=a.side===xi;r&&(o=!o),G(o),1===a.blending&&!1===a.transparent?H(0):H(a.blending,a.blendEquation,a.blendSrc,a.blendDst,a.blendEquationAlpha,a.blendSrcAlpha,a.blendDstAlpha,a.blendColor,a.blendAlpha,a.premultipliedAlpha),n.setFunc(a.depthFunc),n.setTest(a.depthTest),n.setMask(a.depthWrite),t.setMask(a.colorWrite);const l=a.stencilWrite;i.setTest(l),l&&(i.setMask(a.stencilWriteMask),i.setFunc(a.stencilFunc,a.stencilRef,a.stencilFuncMask),i.setOp(a.stencilFail,a.stencilZFail,a.stencilZPass)),X(a.polygonOffset,a.polygonOffsetFactor,a.polygonOffsetUnits),!0===a.alphaToCoverage?U(e.SAMPLE_ALPHA_TO_COVERAGE):V(e.SAMPLE_ALPHA_TO_COVERAGE)},setFlipSided:G,setCullFace:W,setLineWidth:function(t){t!==E&&(A&&e.lineWidth(t),E=t)},setPolygonOffset:X,setScissorTest:function(t){t?U(e.SCISSOR_TEST):V(e.SCISSOR_TEST)},activeTexture:function(t){void 0===t&&(t=e.TEXTURE0+C-1),L!==t&&(e.activeTexture(t),L=t)},bindTexture:function(t,n,i){void 0===i&&(i=null===L?e.TEXTURE0+C-1:L);let a=P[i];void 0===a&&(a={type:void 0,texture:void 0},P[i]=a),a.type===t&&a.texture===n||(L!==i&&(e.activeTexture(i),L=i),e.bindTexture(t,n||D[t]),a.type=t,a.texture=n)},unbindTexture:function(){const t=P[L];void 0!==t&&void 0!==t.type&&(e.bindTexture(t.type,null),t.type=void 0,t.texture=void 0)},compressedTexImage2D:function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(t){}},compressedTexImage3D:function(){try{e.compressedTexImage3D.apply(e,arguments)}catch(t){}},texImage2D:function(){try{e.texImage2D.apply(e,arguments)}catch(t){}},texImage3D:function(){try{e.texImage3D.apply(e,arguments)}catch(t){}},updateUBOMapping:function(t,n){let i=r.get(n);void 0===i&&(i=new WeakMap,r.set(n,i));let a=i.get(t);void 0===a&&(a=e.getUniformBlockIndex(n,t.name),i.set(t,a))},uniformBlockBinding:function(t,n){const i=r.get(n).get(t);a.get(n)!==i&&(e.uniformBlockBinding(n,i,t.__bindingPointIndex),a.set(n,i))},texStorage2D:function(){try{e.texStorage2D.apply(e,arguments)}catch(t){}},texStorage3D:function(){try{e.texStorage3D.apply(e,arguments)}catch(t){}},texSubImage2D:function(){try{e.texSubImage2D.apply(e,arguments)}catch(t){}},texSubImage3D:function(){try{e.texSubImage3D.apply(e,arguments)}catch(t){}},compressedTexSubImage2D:function(){try{e.compressedTexSubImage2D.apply(e,arguments)}catch(t){}},compressedTexSubImage3D:function(){try{e.compressedTexSubImage3D.apply(e,arguments)}catch(t){}},scissor:function(t){!1===z.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),z.copy(t))},viewport:function(t){!1===k.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),k.copy(t))},reset:function(){e.disable(e.BLEND),e.disable(e.CULL_FACE),e.disable(e.DEPTH_TEST),e.disable(e.POLYGON_OFFSET_FILL),e.disable(e.SCISSOR_TEST),e.disable(e.STENCIL_TEST),e.disable(e.SAMPLE_ALPHA_TO_COVERAGE),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ONE,e.ZERO),e.blendFuncSeparate(e.ONE,e.ZERO,e.ONE,e.ZERO),e.blendColor(0,0,0,0),e.colorMask(!0,!0,!0,!0),e.clearColor(0,0,0,0),e.depthMask(!0),e.depthFunc(e.LESS),e.clearDepth(1),e.stencilMask(4294967295),e.stencilFunc(e.ALWAYS,0,4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP),e.clearStencil(0),e.cullFace(e.BACK),e.frontFace(e.CCW),e.polygonOffset(0,0),e.activeTexture(e.TEXTURE0),e.bindFramebuffer(e.FRAMEBUFFER,null),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),e.bindFramebuffer(e.READ_FRAMEBUFFER,null),e.useProgram(null),e.lineWidth(1),e.scissor(0,0,e.canvas.width,e.canvas.height),e.viewport(0,0,e.canvas.width,e.canvas.height),o={},L=null,P={},l={},s=new WeakMap,c=[],u=null,d=!1,h=null,p=null,m=null,f=null,v=null,g=null,_=null,x=new Il(0,0,0),y=0,S=!1,b=null,M=null,E=null,w=null,T=null,z.set(0,0,e.canvas.width,e.canvas.height),k.set(0,0,e.canvas.width,e.canvas.height),t.reset(),n.reset(),i.reset()}}}function fd(e,t,n,i){const a=function(e){switch(e){case sa:case ca:return{byteLength:1,components:1};case da:case ua:case fa:return{byteLength:2,components:1};case va:case ga:return{byteLength:2,components:4};case pa:case ha:case ma:return{byteLength:4,components:1};case xa:return{byteLength:4,components:3}}throw new Error(`Unknown texture type ${e}.`)}(i);switch(n){case ya:case Ma:return e*t;case Ea:return e*t*2;case Ca:case Aa:return e*t/a.components*a.byteLength;case Na:case Ra:return e*t*2/a.components*a.byteLength;case Sa:return e*t*3/a.components*a.byteLength;case ba:case La:return e*t*4/a.components*a.byteLength;case Pa:case qa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Ia:case za:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Ba:case Ua:return Math.max(e,16)*Math.max(t,8)/4;case ka:case Da:return Math.max(e,8)*Math.max(t,8)/2;case Va:case Oa:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*8;case Fa:case Ha:return Math.floor((e+3)/4)*Math.floor((t+3)/4)*16;case Ga:return Math.floor((e+4)/5)*Math.floor((t+3)/4)*16;case Wa:return Math.floor((e+4)/5)*Math.floor((t+4)/5)*16;case Xa:return Math.floor((e+5)/6)*Math.floor((t+4)/5)*16;case ja:return Math.floor((e+5)/6)*Math.floor((t+5)/6)*16;case $a:return Math.floor((e+7)/8)*Math.floor((t+4)/5)*16;case Ka:return Math.floor((e+7)/8)*Math.floor((t+5)/6)*16;case Ya:return Math.floor((e+7)/8)*Math.floor((t+7)/8)*16;case Ja:return Math.floor((e+9)/10)*Math.floor((t+4)/5)*16;case Za:return Math.floor((e+9)/10)*Math.floor((t+5)/6)*16;case Qa:return Math.floor((e+9)/10)*Math.floor((t+7)/8)*16;case er:return Math.floor((e+9)/10)*Math.floor((t+9)/10)*16;case tr:return Math.floor((e+11)/12)*Math.floor((t+9)/10)*16;case nr:return Math.floor((e+11)/12)*Math.floor((t+11)/12)*16;case ir:case ar:case rr:return Math.ceil(e/4)*Math.ceil(t/4)*16;case or:case lr:return Math.ceil(e/4)*Math.ceil(t/4)*8;case sr:case cr:return Math.ceil(e/4)*Math.ceil(t/4)*16}throw new Error(`Unable to determine texture byte length for ${n} format.`)}function vd(e,t,n,i,a,r,o){const l=t.has("WEBGL_multisampled_render_to_texture")?t.get("WEBGL_multisampled_render_to_texture"):null,s="undefined"!=typeof navigator&&/OculusBrowser/g.test(navigator.userAgent),c=new Vr,u=new WeakMap;let d;const h=new WeakMap;let p=!1;try{p="undefined"!=typeof OffscreenCanvas&&null!==new OffscreenCanvas(1,1).getContext("2d")}catch(O){}function m(e,t){return p?new OffscreenCanvas(e,t):Gr("canvas")}function f(e,t,n){let i=1;const a=V(e);if((a.width>n||a.height>n)&&(i=n/Math.max(a.width,a.height)),i<1){if("undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap||"undefined"!=typeof VideoFrame&&e instanceof VideoFrame){const n=Math.floor(i*a.width),r=Math.floor(i*a.height);void 0===d&&(d=m(n,r));const o=t?m(n,r):d;o.width=n,o.height=r;return o.getContext("2d").drawImage(e,0,0,n,r),o}return e}return e}function v(e){return e.generateMipmaps&&e.minFilter!==na&&e.minFilter!==ra}function g(t){e.generateMipmap(t)}function _(n,i,a,r,o=!1){if(null!==n&&void 0!==e[n])return e[n];let l=i;if(i===e.RED&&(a===e.FLOAT&&(l=e.R32F),a===e.HALF_FLOAT&&(l=e.R16F),a===e.UNSIGNED_BYTE&&(l=e.R8)),i===e.RED_INTEGER&&(a===e.UNSIGNED_BYTE&&(l=e.R8UI),a===e.UNSIGNED_SHORT&&(l=e.R16UI),a===e.UNSIGNED_INT&&(l=e.R32UI),a===e.BYTE&&(l=e.R8I),a===e.SHORT&&(l=e.R16I),a===e.INT&&(l=e.R32I)),i===e.RG&&(a===e.FLOAT&&(l=e.RG32F),a===e.HALF_FLOAT&&(l=e.RG16F),a===e.UNSIGNED_BYTE&&(l=e.RG8)),i===e.RG_INTEGER&&(a===e.UNSIGNED_BYTE&&(l=e.RG8UI),a===e.UNSIGNED_SHORT&&(l=e.RG16UI),a===e.UNSIGNED_INT&&(l=e.RG32UI),a===e.BYTE&&(l=e.RG8I),a===e.SHORT&&(l=e.RG16I),a===e.INT&&(l=e.RG32I)),i===e.RGB&&a===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.RGBA){const t=o?fr:Zr.getTransfer(r);a===e.FLOAT&&(l=e.RGBA32F),a===e.HALF_FLOAT&&(l=e.RGBA16F),a===e.UNSIGNED_BYTE&&(l=t===vr?e.SRGB8_ALPHA8:e.RGBA8),a===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),a===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return l!==e.R16F&&l!==e.R32F&&l!==e.RG16F&&l!==e.RG32F&&l!==e.RGBA16F&&l!==e.RGBA32F||t.get("EXT_color_buffer_float"),l}function x(t,n){let i;return t?null===n||n===pa||n===_a?i=e.DEPTH24_STENCIL8:n===ma?i=e.DEPTH32F_STENCIL8:n===da&&(i=e.DEPTH24_STENCIL8):null===n||n===pa||n===_a?i=e.DEPTH_COMPONENT24:n===ma?i=e.DEPTH_COMPONENT32F:n===da&&(i=e.DEPTH_COMPONENT16),i}function y(e,t){return!0===v(e)||e.isFramebufferTexture&&e.minFilter!==na&&e.minFilter!==ra?Math.log2(Math.max(t.width,t.height))+1:void 0!==e.mipmaps&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function S(e){const t=e.target;t.removeEventListener("dispose",S),function(e){const t=i.get(e);if(void 0===t.__webglInit)return;const n=e.source,a=h.get(n);if(a){const i=a[t.__cacheKey];i.usedTimes--,0===i.usedTimes&&M(e),0===Object.keys(a).length&&h.delete(n)}i.remove(e)}(t),t.isVideoTexture&&u.delete(t)}function b(t){const n=t.target;n.removeEventListener("dispose",b),function(t){const n=i.get(t);t.depthTexture&&t.depthTexture.dispose();if(t.isWebGLCubeRenderTarget)for(let i=0;i<6;i++){if(Array.isArray(n.__webglFramebuffer[i]))for(let t=0;t<n.__webglFramebuffer[i].length;t++)e.deleteFramebuffer(n.__webglFramebuffer[i][t]);else e.deleteFramebuffer(n.__webglFramebuffer[i]);n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer[i])}else{if(Array.isArray(n.__webglFramebuffer))for(let t=0;t<n.__webglFramebuffer.length;t++)e.deleteFramebuffer(n.__webglFramebuffer[t]);else e.deleteFramebuffer(n.__webglFramebuffer);if(n.__webglDepthbuffer&&e.deleteRenderbuffer(n.__webglDepthbuffer),n.__webglMultisampledFramebuffer&&e.deleteFramebuffer(n.__webglMultisampledFramebuffer),n.__webglColorRenderbuffer)for(let t=0;t<n.__webglColorRenderbuffer.length;t++)n.__webglColorRenderbuffer[t]&&e.deleteRenderbuffer(n.__webglColorRenderbuffer[t]);n.__webglDepthRenderbuffer&&e.deleteRenderbuffer(n.__webglDepthRenderbuffer)}const a=t.textures;for(let r=0,l=a.length;r<l;r++){const t=i.get(a[r]);t.__webglTexture&&(e.deleteTexture(t.__webglTexture),o.memory.textures--),i.remove(a[r])}i.remove(t)}(n)}function M(t){const n=i.get(t);e.deleteTexture(n.__webglTexture);const a=t.source;delete h.get(a)[n.__cacheKey],o.memory.textures--}let E=0;function w(t,a){const r=i.get(t);if(t.isVideoTexture&&function(e){const t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}(t),!1===t.isRenderTargetTexture&&t.version>0&&r.__version!==t.version){const e=t.image;if(null===e);else if(!1!==e.complete)return void L(r,t,a)}n.bindTexture(e.TEXTURE_2D,r.__webglTexture,e.TEXTURE0+a)}const T={[Qi]:e.REPEAT,[ea]:e.CLAMP_TO_EDGE,[ta]:e.MIRRORED_REPEAT},C={[na]:e.NEAREST,[ia]:e.NEAREST_MIPMAP_NEAREST,[aa]:e.NEAREST_MIPMAP_LINEAR,[ra]:e.LINEAR,[oa]:e.LINEAR_MIPMAP_NEAREST,[la]:e.LINEAR_MIPMAP_LINEAR},A={[yr]:e.NEVER,[Cr]:e.ALWAYS,[Sr]:e.LESS,[Mr]:e.LEQUAL,[br]:e.EQUAL,[Tr]:e.GEQUAL,[Er]:e.GREATER,[wr]:e.NOTEQUAL};function N(n,r){if(r.type===ma&&!1===t.has("OES_texture_float_linear")&&(r.magFilter===ra||r.magFilter===oa||r.magFilter===aa||r.magFilter===la||r.minFilter===ra||r.minFilter===oa||r.minFilter===aa||r.minFilter),e.texParameteri(n,e.TEXTURE_WRAP_S,T[r.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,T[r.wrapT]),n!==e.TEXTURE_3D&&n!==e.TEXTURE_2D_ARRAY||e.texParameteri(n,e.TEXTURE_WRAP_R,T[r.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,C[r.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,C[r.minFilter]),r.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,A[r.compareFunction])),!0===t.has("EXT_texture_filter_anisotropic")){if(r.magFilter===na)return;if(r.minFilter!==aa&&r.minFilter!==la)return;if(r.type===ma&&!1===t.has("OES_texture_float_linear"))return;if(r.anisotropy>1||i.get(r).__currentAnisotropy){const o=t.get("EXT_texture_filter_anisotropic");e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(r.anisotropy,a.getMaxAnisotropy())),i.get(r).__currentAnisotropy=r.anisotropy}}}function R(t,n){let i=!1;void 0===t.__webglInit&&(t.__webglInit=!0,n.addEventListener("dispose",S));const a=n.source;let r=h.get(a);void 0===r&&(r={},h.set(a,r));const l=function(e){const t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}(n);if(l!==t.__cacheKey){void 0===r[l]&&(r[l]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,i=!0),r[l].usedTimes++;const a=r[t.__cacheKey];void 0!==a&&(r[t.__cacheKey].usedTimes--,0===a.usedTimes&&M(n)),t.__cacheKey=l,t.__webglTexture=r[l].texture}return i}function L(t,o,l){let s=e.TEXTURE_2D;(o.isDataArrayTexture||o.isCompressedArrayTexture)&&(s=e.TEXTURE_2D_ARRAY),o.isData3DTexture&&(s=e.TEXTURE_3D);const c=R(t,o),u=o.source;n.bindTexture(s,t.__webglTexture,e.TEXTURE0+l);const d=i.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(e.TEXTURE0+l);const t=Zr.getPrimaries(Zr.workingColorSpace),i=o.colorSpace===ur?null:Zr.getPrimaries(o.colorSpace),h=o.colorSpace===ur||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,h);let p=f(o.image,!1,a.maxTextureSize);p=U(o,p);const m=r.convert(o.format,o.colorSpace),S=r.convert(o.type);let b,M=_(o.internalFormat,m,S,o.colorSpace,o.isVideoTexture);N(s,o);const E=o.mipmaps,w=!0!==o.isVideoTexture,T=void 0===d.__version||!0===c,C=u.dataReady,A=y(o,p);if(o.isDepthTexture)M=x(o.format===Ta,o.type),T&&(w?n.texStorage2D(e.TEXTURE_2D,1,M,p.width,p.height):n.texImage2D(e.TEXTURE_2D,0,M,p.width,p.height,0,m,S,null));else if(o.isDataTexture)if(E.length>0){w&&T&&n.texStorage2D(e.TEXTURE_2D,A,M,E[0].width,E[0].height);for(let t=0,i=E.length;t<i;t++)b=E[t],w?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,b.width,b.height,m,S,b.data):n.texImage2D(e.TEXTURE_2D,t,M,b.width,b.height,0,m,S,b.data);o.generateMipmaps=!1}else w?(T&&n.texStorage2D(e.TEXTURE_2D,A,M,p.width,p.height),C&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,p.width,p.height,m,S,p.data)):n.texImage2D(e.TEXTURE_2D,0,M,p.width,p.height,0,m,S,p.data);else if(o.isCompressedTexture)if(o.isCompressedArrayTexture){w&&T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,A,M,E[0].width,E[0].height,p.depth);for(let t=0,i=E.length;t<i;t++)if(b=E[t],o.format!==ba){if(null!==m)if(w){if(C)if(o.layerUpdates.size>0){const i=fd(b.width,b.height,o.format,o.type);for(const a of o.layerUpdates){const r=b.data.subarray(a*i/b.data.BYTES_PER_ELEMENT,(a+1)*i/b.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,a,b.width,b.height,1,m,r,0,0)}o.clearLayerUpdates()}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,b.width,b.height,p.depth,m,b.data,0,0)}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,t,M,b.width,b.height,p.depth,0,b.data,0,0)}else w?C&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,t,0,0,0,b.width,b.height,p.depth,m,S,b.data):n.texImage3D(e.TEXTURE_2D_ARRAY,t,M,b.width,b.height,p.depth,0,m,S,b.data)}else{w&&T&&n.texStorage2D(e.TEXTURE_2D,A,M,E[0].width,E[0].height);for(let t=0,i=E.length;t<i;t++)b=E[t],o.format!==ba?null!==m&&(w?C&&n.compressedTexSubImage2D(e.TEXTURE_2D,t,0,0,b.width,b.height,m,b.data):n.compressedTexImage2D(e.TEXTURE_2D,t,M,b.width,b.height,0,b.data)):w?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,b.width,b.height,m,S,b.data):n.texImage2D(e.TEXTURE_2D,t,M,b.width,b.height,0,m,S,b.data)}else if(o.isDataArrayTexture)if(w){if(T&&n.texStorage3D(e.TEXTURE_2D_ARRAY,A,M,p.width,p.height,p.depth),C)if(o.layerUpdates.size>0){const t=fd(p.width,p.height,o.format,o.type);for(const i of o.layerUpdates){const a=p.data.subarray(i*t/p.data.BYTES_PER_ELEMENT,(i+1)*t/p.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,i,p.width,p.height,1,m,S,a)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,p.width,p.height,p.depth,m,S,p.data)}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,M,p.width,p.height,p.depth,0,m,S,p.data);else if(o.isData3DTexture)w?(T&&n.texStorage3D(e.TEXTURE_3D,A,M,p.width,p.height,p.depth),C&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,p.width,p.height,p.depth,m,S,p.data)):n.texImage3D(e.TEXTURE_3D,0,M,p.width,p.height,p.depth,0,m,S,p.data);else if(o.isFramebufferTexture){if(T)if(w)n.texStorage2D(e.TEXTURE_2D,A,M,p.width,p.height);else{let t=p.width,i=p.height;for(let a=0;a<A;a++)n.texImage2D(e.TEXTURE_2D,a,M,t,i,0,m,S,null),t>>=1,i>>=1}}else if(E.length>0){if(w&&T){const t=V(E[0]);n.texStorage2D(e.TEXTURE_2D,A,M,t.width,t.height)}for(let t=0,i=E.length;t<i;t++)b=E[t],w?C&&n.texSubImage2D(e.TEXTURE_2D,t,0,0,m,S,b):n.texImage2D(e.TEXTURE_2D,t,M,m,S,b);o.generateMipmaps=!1}else if(w){if(T){const t=V(p);n.texStorage2D(e.TEXTURE_2D,A,M,t.width,t.height)}C&&n.texSubImage2D(e.TEXTURE_2D,0,0,0,m,S,p)}else n.texImage2D(e.TEXTURE_2D,0,M,m,S,p);v(o)&&g(s),d.__version=u.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}function P(t,a,o,s,c,u){const d=r.convert(o.format,o.colorSpace),h=r.convert(o.type),p=_(o.internalFormat,d,h,o.colorSpace);if(!i.get(a).__hasExternalTextures){const t=Math.max(1,a.width>>u),i=Math.max(1,a.height>>u);c===e.TEXTURE_3D||c===e.TEXTURE_2D_ARRAY?n.texImage3D(c,u,p,t,i,a.depth,0,d,h,null):n.texImage2D(c,u,p,t,i,0,d,h,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),D(a)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,s,c,i.get(o).__webglTexture,0,B(a)):(c===e.TEXTURE_2D||c>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&c<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,s,c,i.get(o).__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function q(t,n,i){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){const a=n.depthTexture,r=a&&a.isDepthTexture?a.type:null,o=x(n.stencilBuffer,r),s=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,c=B(n);D(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,c,o,n.width,n.height):i?e.renderbufferStorageMultisample(e.RENDERBUFFER,c,o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,s,e.RENDERBUFFER,t)}else{const t=n.textures;for(let a=0;a<t.length;a++){const o=t[a],s=r.convert(o.format,o.colorSpace),c=r.convert(o.type),u=_(o.internalFormat,s,c,o.colorSpace),d=B(n);i&&!1===D(n)?e.renderbufferStorageMultisample(e.RENDERBUFFER,d,u,n.width,n.height):D(n)?l.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,d,u,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,u,n.width,n.height)}}e.bindRenderbuffer(e.RENDERBUFFER,null)}function I(t){const a=i.get(t),r=!0===t.isWebGLCubeRenderTarget;if(t.depthTexture&&!a.__autoAllocateDepthBuffer){if(r)throw new Error("target.depthTexture not supported in Cube render targets");!function(t,a){if(a&&a.isWebGLCubeRenderTarget)throw new Error("Depth Texture with cube render targets is not supported");if(n.bindFramebuffer(e.FRAMEBUFFER,t),!a.depthTexture||!a.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(a.depthTexture).__webglTexture&&a.depthTexture.image.width===a.width&&a.depthTexture.image.height===a.height||(a.depthTexture.image.width=a.width,a.depthTexture.image.height=a.height,a.depthTexture.needsUpdate=!0),w(a.depthTexture,0);const r=i.get(a.depthTexture).__webglTexture,o=B(a);if(a.depthTexture.format===wa)D(a)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,r,0,o):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,r,0);else{if(a.depthTexture.format!==Ta)throw new Error("Unknown depthTexture format");D(a)?l.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,r,0,o):e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.TEXTURE_2D,r,0)}}(a.__webglFramebuffer,t)}else if(r){a.__webglDepthbuffer=[];for(let i=0;i<6;i++)n.bindFramebuffer(e.FRAMEBUFFER,a.__webglFramebuffer[i]),a.__webglDepthbuffer[i]=e.createRenderbuffer(),q(a.__webglDepthbuffer[i],t,!1)}else n.bindFramebuffer(e.FRAMEBUFFER,a.__webglFramebuffer),a.__webglDepthbuffer=e.createRenderbuffer(),q(a.__webglDepthbuffer,t,!1);n.bindFramebuffer(e.FRAMEBUFFER,null)}const z=[],k=[];function B(e){return Math.min(a.maxSamples,e.samples)}function D(e){const n=i.get(e);return e.samples>0&&!0===t.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function U(e,t){const n=e.colorSpace;e.format,e.type;return!0===e.isCompressedTexture||!0===e.isVideoTexture||n!==hr&&n!==ur&&Zr.getTransfer(n),t}function V(e){return"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement?(c.width=e.naturalWidth||e.width,c.height=e.naturalHeight||e.height):"undefined"!=typeof VideoFrame&&e instanceof VideoFrame?(c.width=e.displayWidth,c.height=e.displayHeight):(c.width=e.width,c.height=e.height),c}this.allocateTextureUnit=function(){const e=E;return a.maxTextures,E+=1,e},this.resetTextureUnits=function(){E=0},this.setTexture2D=w,this.setTexture2DArray=function(t,a){const r=i.get(t);t.version>0&&r.__version!==t.version?L(r,t,a):n.bindTexture(e.TEXTURE_2D_ARRAY,r.__webglTexture,e.TEXTURE0+a)},this.setTexture3D=function(t,a){const r=i.get(t);t.version>0&&r.__version!==t.version?L(r,t,a):n.bindTexture(e.TEXTURE_3D,r.__webglTexture,e.TEXTURE0+a)},this.setTextureCube=function(t,o){const l=i.get(t);t.version>0&&l.__version!==t.version?function(t,o,l){if(6!==o.image.length)return;const s=R(t,o),c=o.source;n.bindTexture(e.TEXTURE_CUBE_MAP,t.__webglTexture,e.TEXTURE0+l);const u=i.get(c);if(c.version!==u.__version||!0===s){n.activeTexture(e.TEXTURE0+l);const t=Zr.getPrimaries(Zr.workingColorSpace),i=o.colorSpace===ur?null:Zr.getPrimaries(o.colorSpace),d=o.colorSpace===ur||t===i?e.NONE:e.BROWSER_DEFAULT_WEBGL;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,o.flipY),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,o.premultiplyAlpha),e.pixelStorei(e.UNPACK_ALIGNMENT,o.unpackAlignment),e.pixelStorei(e.UNPACK_COLORSPACE_CONVERSION_WEBGL,d);const h=o.isCompressedTexture||o.image[0].isCompressedTexture,p=o.image[0]&&o.image[0].isDataTexture,m=[];for(let e=0;e<6;e++)m[e]=h||p?p?o.image[e].image:o.image[e]:f(o.image[e],!0,a.maxCubemapSize),m[e]=U(o,m[e]);const x=m[0],S=r.convert(o.format,o.colorSpace),b=r.convert(o.type),M=_(o.internalFormat,S,b,o.colorSpace),E=!0!==o.isVideoTexture,w=void 0===u.__version||!0===s,T=c.dataReady;let C,A=y(o,x);if(N(e.TEXTURE_CUBE_MAP,o),h){E&&w&&n.texStorage2D(e.TEXTURE_CUBE_MAP,A,M,x.width,x.height);for(let t=0;t<6;t++){C=m[t].mipmaps;for(let i=0;i<C.length;i++){const a=C[i];o.format!==ba?null!==S&&(E?T&&n.compressedTexSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,a.width,a.height,S,a.data):n.compressedTexImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,M,a.width,a.height,0,a.data)):E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,0,0,a.width,a.height,S,b,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i,M,a.width,a.height,0,S,b,a.data)}}}else{if(C=o.mipmaps,E&&w){C.length>0&&A++;const t=V(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,A,M,t.width,t.height)}for(let t=0;t<6;t++)if(p){E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,S,b,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,M,m[t].width,m[t].height,0,S,b,m[t].data);for(let i=0;i<C.length;i++){const a=C[i].image[t].image;E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,a.width,a.height,S,b,a.data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,M,a.width,a.height,0,S,b,a.data)}}else{E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,S,b,m[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,M,S,b,m[t]);for(let i=0;i<C.length;i++){const a=C[i];E?T&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,0,0,S,b,a.image[t]):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,i+1,M,S,b,a.image[t])}}}v(o)&&g(e.TEXTURE_CUBE_MAP),u.__version=c.version,o.onUpdate&&o.onUpdate(o)}t.__version=o.version}(l,t,o):n.bindTexture(e.TEXTURE_CUBE_MAP,l.__webglTexture,e.TEXTURE0+o)},this.rebindTextures=function(t,n,a){const r=i.get(t);void 0!==n&&P(r.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),void 0!==a&&I(t)},this.setupRenderTarget=function(t){const a=t.texture,l=i.get(t),s=i.get(a);t.addEventListener("dispose",b);const c=t.textures,u=!0===t.isWebGLCubeRenderTarget,d=c.length>1;if(d||(void 0===s.__webglTexture&&(s.__webglTexture=e.createTexture()),s.__version=a.version,o.memory.textures++),u){l.__webglFramebuffer=[];for(let t=0;t<6;t++)if(a.mipmaps&&a.mipmaps.length>0){l.__webglFramebuffer[t]=[];for(let n=0;n<a.mipmaps.length;n++)l.__webglFramebuffer[t][n]=e.createFramebuffer()}else l.__webglFramebuffer[t]=e.createFramebuffer()}else{if(a.mipmaps&&a.mipmaps.length>0){l.__webglFramebuffer=[];for(let t=0;t<a.mipmaps.length;t++)l.__webglFramebuffer[t]=e.createFramebuffer()}else l.__webglFramebuffer=e.createFramebuffer();if(d)for(let t=0,n=c.length;t<n;t++){const n=i.get(c[t]);void 0===n.__webglTexture&&(n.__webglTexture=e.createTexture(),o.memory.textures++)}if(t.samples>0&&!1===D(t)){l.__webglMultisampledFramebuffer=e.createFramebuffer(),l.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,l.__webglMultisampledFramebuffer);for(let n=0;n<c.length;n++){const i=c[n];l.__webglColorRenderbuffer[n]=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,l.__webglColorRenderbuffer[n]);const a=r.convert(i.format,i.colorSpace),o=r.convert(i.type),s=_(i.internalFormat,a,o,i.colorSpace,!0===t.isXRRenderTarget),u=B(t);e.renderbufferStorageMultisample(e.RENDERBUFFER,u,s,t.width,t.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+n,e.RENDERBUFFER,l.__webglColorRenderbuffer[n])}e.bindRenderbuffer(e.RENDERBUFFER,null),t.depthBuffer&&(l.__webglDepthRenderbuffer=e.createRenderbuffer(),q(l.__webglDepthRenderbuffer,t,!0)),n.bindFramebuffer(e.FRAMEBUFFER,null)}}if(u){n.bindTexture(e.TEXTURE_CUBE_MAP,s.__webglTexture),N(e.TEXTURE_CUBE_MAP,a);for(let n=0;n<6;n++)if(a.mipmaps&&a.mipmaps.length>0)for(let i=0;i<a.mipmaps.length;i++)P(l.__webglFramebuffer[n][i],t,a,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,i);else P(l.__webglFramebuffer[n],t,a,e.COLOR_ATTACHMENT0,e.TEXTURE_CUBE_MAP_POSITIVE_X+n,0);v(a)&&g(e.TEXTURE_CUBE_MAP),n.unbindTexture()}else if(d){for(let a=0,r=c.length;a<r;a++){const r=c[a],o=i.get(r);n.bindTexture(e.TEXTURE_2D,o.__webglTexture),N(e.TEXTURE_2D,r),P(l.__webglFramebuffer,t,r,e.COLOR_ATTACHMENT0+a,e.TEXTURE_2D,0),v(r)&&g(e.TEXTURE_2D)}n.unbindTexture()}else{let i=e.TEXTURE_2D;if((t.isWebGL3DRenderTarget||t.isWebGLArrayRenderTarget)&&(i=t.isWebGL3DRenderTarget?e.TEXTURE_3D:e.TEXTURE_2D_ARRAY),n.bindTexture(i,s.__webglTexture),N(i,a),a.mipmaps&&a.mipmaps.length>0)for(let n=0;n<a.mipmaps.length;n++)P(l.__webglFramebuffer[n],t,a,e.COLOR_ATTACHMENT0,i,n);else P(l.__webglFramebuffer,t,a,e.COLOR_ATTACHMENT0,i,0);v(a)&&g(i),n.unbindTexture()}t.depthBuffer&&I(t)},this.updateRenderTargetMipmap=function(t){const a=t.textures;for(let r=0,o=a.length;r<o;r++){const o=a[r];if(v(o)){const a=t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:e.TEXTURE_2D,r=i.get(o).__webglTexture;n.bindTexture(a,r),g(a),n.unbindTexture()}}},this.updateMultisampleRenderTarget=function(t){if(t.samples>0)if(!1===D(t)){const a=t.textures,r=t.width,o=t.height;let l=e.COLOR_BUFFER_BIT;const c=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=i.get(t),d=a.length>1;if(d)for(let t=0;t<a.length;t++)n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,null),n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,null,0);n.bindFramebuffer(e.READ_FRAMEBUFFER,u.__webglMultisampledFramebuffer),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n<a.length;n++){if(t.resolveDepthBuffer&&(t.depthBuffer&&(l|=e.DEPTH_BUFFER_BIT),t.stencilBuffer&&t.resolveStencilBuffer&&(l|=e.STENCIL_BUFFER_BIT)),d){e.framebufferRenderbuffer(e.READ_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.RENDERBUFFER,u.__webglColorRenderbuffer[n]);const t=i.get(a[n]).__webglTexture;e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0)}e.blitFramebuffer(0,0,r,o,0,0,r,o,l,e.NEAREST),!0===s&&(z.length=0,k.length=0,z.push(e.COLOR_ATTACHMENT0+n),t.depthBuffer&&!1===t.resolveDepthBuffer&&(z.push(c),k.push(c),e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,k)),e.invalidateFramebuffer(e.READ_FRAMEBUFFER,z))}if(n.bindFramebuffer(e.READ_FRAMEBUFFER,null),n.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),d)for(let t=0;t<a.length;t++){n.bindFramebuffer(e.FRAMEBUFFER,u.__webglMultisampledFramebuffer),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.RENDERBUFFER,u.__webglColorRenderbuffer[t]);const r=i.get(a[t]).__webglTexture;n.bindFramebuffer(e.FRAMEBUFFER,u.__webglFramebuffer),e.framebufferTexture2D(e.DRAW_FRAMEBUFFER,e.COLOR_ATTACHMENT0+t,e.TEXTURE_2D,r,0)}n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglMultisampledFramebuffer)}else if(t.depthBuffer&&!1===t.resolveDepthBuffer&&s){const n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;e.invalidateFramebuffer(e.DRAW_FRAMEBUFFER,[n])}},this.setupDepthRenderbuffer=I,this.setupFrameBufferTexture=P,this.useMultisampledRTT=D}function gd(e,t){return{convert:function(n,i=""){let a;const r=Zr.getTransfer(i);if(n===sa)return e.UNSIGNED_BYTE;if(n===va)return e.UNSIGNED_SHORT_4_4_4_4;if(n===ga)return e.UNSIGNED_SHORT_5_5_5_1;if(n===xa)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===ca)return e.BYTE;if(n===ua)return e.SHORT;if(n===da)return e.UNSIGNED_SHORT;if(n===ha)return e.INT;if(n===pa)return e.UNSIGNED_INT;if(n===ma)return e.FLOAT;if(n===fa)return e.HALF_FLOAT;if(n===ya)return e.ALPHA;if(n===Sa)return e.RGB;if(n===ba)return e.RGBA;if(n===Ma)return e.LUMINANCE;if(n===Ea)return e.LUMINANCE_ALPHA;if(n===wa)return e.DEPTH_COMPONENT;if(n===Ta)return e.DEPTH_STENCIL;if(n===Ca)return e.RED;if(n===Aa)return e.RED_INTEGER;if(n===Na)return e.RG;if(n===Ra)return e.RG_INTEGER;if(n===La)return e.RGBA_INTEGER;if(n===Pa||n===qa||n===Ia||n===za)if(r===vr){if(a=t.get("WEBGL_compressed_texture_s3tc_srgb"),null===a)return null;if(n===Pa)return a.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===qa)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===Ia)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===za)return a.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else{if(a=t.get("WEBGL_compressed_texture_s3tc"),null===a)return null;if(n===Pa)return a.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===qa)return a.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Ia)return a.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===za)return a.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(n===ka||n===Ba||n===Da||n===Ua){if(a=t.get("WEBGL_compressed_texture_pvrtc"),null===a)return null;if(n===ka)return a.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Ba)return a.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Da)return a.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Ua)return a.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===Va||n===Oa||n===Fa){if(a=t.get("WEBGL_compressed_texture_etc"),null===a)return null;if(n===Va||n===Oa)return r===vr?a.COMPRESSED_SRGB8_ETC2:a.COMPRESSED_RGB8_ETC2;if(n===Fa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:a.COMPRESSED_RGBA8_ETC2_EAC}if(n===Ha||n===Ga||n===Wa||n===Xa||n===ja||n===$a||n===Ka||n===Ya||n===Ja||n===Za||n===Qa||n===er||n===tr||n===nr){if(a=t.get("WEBGL_compressed_texture_astc"),null===a)return null;if(n===Ha)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:a.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===Ga)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:a.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===Wa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:a.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===Xa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:a.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===ja)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:a.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===$a)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:a.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===Ka)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:a.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===Ya)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:a.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===Ja)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:a.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===Za)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:a.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===Qa)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:a.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===er)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:a.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===tr)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:a.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===nr)return r===vr?a.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:a.COMPRESSED_RGBA_ASTC_12x12_KHR}if(n===ir||n===ar||n===rr){if(a=t.get("EXT_texture_compression_bptc"),null===a)return null;if(n===ir)return r===vr?a.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:a.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===ar)return a.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===rr)return a.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}if(n===or||n===lr||n===sr||n===cr){if(a=t.get("EXT_texture_compression_rgtc"),null===a)return null;if(n===ir)return a.COMPRESSED_RED_RGTC1_EXT;if(n===lr)return a.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===sr)return a.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===cr)return a.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}return n===_a?e.UNSIGNED_INT_24_8:void 0!==e[n]?e[n]:null}}}class _d extends As{constructor(e=[]){super(),this.isArrayCamera=!0,this.cameras=e}}class xd extends _l{constructor(){super(),this.isGroup=!0,this.type="Group"}}const yd={type:"move"};class Sd{constructor(){this._targetRay=null,this._grip=null,this._hand=null}getHandSpace(){return null===this._hand&&(this._hand=new xd,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints={},this._hand.inputState={pinching:!1}),this._hand}getTargetRaySpace(){return null===this._targetRay&&(this._targetRay=new xd,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1,this._targetRay.hasLinearVelocity=!1,this._targetRay.linearVelocity=new fo,this._targetRay.hasAngularVelocity=!1,this._targetRay.angularVelocity=new fo),this._targetRay}getGripSpace(){return null===this._grip&&(this._grip=new xd,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1,this._grip.hasLinearVelocity=!1,this._grip.linearVelocity=new fo,this._grip.hasAngularVelocity=!1,this._grip.angularVelocity=new fo),this._grip}dispatchEvent(e){return null!==this._targetRay&&this._targetRay.dispatchEvent(e),null!==this._grip&&this._grip.dispatchEvent(e),null!==this._hand&&this._hand.dispatchEvent(e),this}connect(e){if(e&&e.hand){const t=this._hand;if(t)for(const n of e.hand.values())this._getHandJoint(t,n)}return this.dispatchEvent({type:"connected",data:e}),this}disconnect(e){return this.dispatchEvent({type:"disconnected",data:e}),null!==this._targetRay&&(this._targetRay.visible=!1),null!==this._grip&&(this._grip.visible=!1),null!==this._hand&&(this._hand.visible=!1),this}update(e,t,n){let i=null,a=null,r=null;const o=this._targetRay,l=this._grip,s=this._hand;if(e&&"visible-blurred"!==t.session.visibilityState){if(s&&e.hand){r=!0;for(const r of e.hand.values()){const e=t.getJointPose(r,n),i=this._getHandJoint(s,r);null!==e&&(i.matrix.fromArray(e.transform.matrix),i.matrix.decompose(i.position,i.rotation,i.scale),i.matrixWorldNeedsUpdate=!0,i.jointRadius=e.radius),i.visible=null!==e}const i=s.joints["index-finger-tip"],a=s.joints["thumb-tip"],o=i.position.distanceTo(a.position),l=.02,c=.005;s.inputState.pinching&&o>l+c?(s.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:e.handedness,target:this})):!s.inputState.pinching&&o<=l-c&&(s.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:e.handedness,target:this}))}else null!==l&&e.gripSpace&&(a=t.getPose(e.gripSpace,n),null!==a&&(l.matrix.fromArray(a.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale),l.matrixWorldNeedsUpdate=!0,a.linearVelocity?(l.hasLinearVelocity=!0,l.linearVelocity.copy(a.linearVelocity)):l.hasLinearVelocity=!1,a.angularVelocity?(l.hasAngularVelocity=!0,l.angularVelocity.copy(a.angularVelocity)):l.hasAngularVelocity=!1));null!==o&&(i=t.getPose(e.targetRaySpace,n),null===i&&null!==a&&(i=a),null!==i&&(o.matrix.fromArray(i.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,i.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(i.linearVelocity)):o.hasLinearVelocity=!1,i.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(i.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(yd)))}return null!==o&&(o.visible=null!==i),null!==l&&(l.visible=null!==a),null!==s&&(s.visible=null!==r),this}_getHandJoint(e,t){if(void 0===e.joints[t.jointName]){const n=new xd;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}}class bd{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(null===this.texture){const i=new lo;e.properties.get(i).__webglTexture=t.texture,t.depthNear==n.depthNear&&t.depthFar==n.depthFar||(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=i}}getMesh(e){if(null!==this.texture&&null===this.mesh){const t=e.cameras[0].viewport,n=new Ms({vertexShader:"\nvoid main() {\n\n\tgl_Position = vec4( position, 1.0 );\n\n}",fragmentShader:"\nuniform sampler2DArray depthColor;\nuniform float depthWidth;\nuniform float depthHeight;\n\nvoid main() {\n\n\tvec2 coord = vec2( gl_FragCoord.x / depthWidth, gl_FragCoord.y / depthHeight );\n\n\tif ( coord.x >= 1.0 ) {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x - 1.0, coord.y, 1 ) ).r;\n\n\t} else {\n\n\t\tgl_FragDepth = texture( depthColor, vec3( coord.x, coord.y, 0 ) ).r;\n\n\t}\n\n}",uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new vs(new Fs(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Md extends Lr{constructor(e,t){super();const n=this;let i=null,a=1,r=null,o="local-floor",l=1,s=null,c=null,u=null,d=null,h=null,p=null;const m=new bd,f=t.getContextAttributes();let v=null,g=null;const _=[],x=[],y=new Vr;let S=null;const b=new As;b.layers.enable(1),b.viewport=new so;const M=new As;M.layers.enable(2),M.viewport=new so;const E=[b,M],w=new _d;w.layers.enable(1),w.layers.enable(2);let T=null,C=null;function A(e){const t=x.indexOf(e.inputSource);if(-1===t)return;const n=_[t];void 0!==n&&(n.update(e.inputSource,e.frame,s||r),n.dispatchEvent({type:e.type,data:e.inputSource}))}function N(){i.removeEventListener("select",A),i.removeEventListener("selectstart",A),i.removeEventListener("selectend",A),i.removeEventListener("squeeze",A),i.removeEventListener("squeezestart",A),i.removeEventListener("squeezeend",A),i.removeEventListener("end",N),i.removeEventListener("inputsourceschange",R);for(let e=0;e<_.length;e++){const t=x[e];null!==t&&(x[e]=null,_[e].disconnect(t))}T=null,C=null,m.reset(),e.setRenderTarget(v),h=null,d=null,u=null,i=null,g=null,z.stop(),n.isPresenting=!1,e.setPixelRatio(S),e.setSize(y.width,y.height,!1),n.dispatchEvent({type:"sessionend"})}function R(e){for(let t=0;t<e.removed.length;t++){const n=e.removed[t],i=x.indexOf(n);i>=0&&(x[i]=null,_[i].disconnect(n))}for(let t=0;t<e.added.length;t++){const n=e.added[t];let i=x.indexOf(n);if(-1===i){for(let e=0;e<_.length;e++){if(e>=x.length){x.push(n),i=e;break}if(null===x[e]){x[e]=n,i=e;break}}if(-1===i)break}const a=_[i];a&&a.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=_[e];return void 0===t&&(t=new Sd,_[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=_[e];return void 0===t&&(t=new Sd,_[e]=t),t.getGripSpace()},this.getHand=function(e){let t=_[e];return void 0===t&&(t=new Sd,_[e]=t),t.getHandSpace()},this.setFramebufferScaleFactor=function(e){a=e,n.isPresenting},this.setReferenceSpaceType=function(e){o=e,n.isPresenting},this.getReferenceSpace=function(){return s||r},this.setReferenceSpace=function(e){s=e},this.getBaseLayer=function(){return null!==d?d:h},this.getBinding=function(){return u},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(c){if(i=c,null!==i){if(v=e.getRenderTarget(),i.addEventListener("select",A),i.addEventListener("selectstart",A),i.addEventListener("selectend",A),i.addEventListener("squeeze",A),i.addEventListener("squeezestart",A),i.addEventListener("squeezeend",A),i.addEventListener("end",N),i.addEventListener("inputsourceschange",R),!0!==f.xrCompatible&&await t.makeXRCompatible(),S=e.getPixelRatio(),e.getSize(y),void 0===i.renderState.layers){const n={antialias:f.antialias,alpha:!0,depth:f.depth,stencil:f.stencil,framebufferScaleFactor:a};h=new XRWebGLLayer(i,t,n),i.updateRenderState({baseLayer:h}),e.setPixelRatio(1),e.setSize(h.framebufferWidth,h.framebufferHeight,!1),g=new uo(h.framebufferWidth,h.framebufferHeight,{format:ba,type:sa,colorSpace:e.outputColorSpace,stencilBuffer:f.stencil})}else{let n=null,r=null,o=null;f.depth&&(o=f.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,n=f.stencil?Ta:wa,r=f.stencil?_a:pa);const l={colorFormat:t.RGBA8,depthFormat:o,scaleFactor:a};u=new XRWebGLBinding(i,t),d=u.createProjectionLayer(l),i.updateRenderState({layers:[d]}),e.setPixelRatio(1),e.setSize(d.textureWidth,d.textureHeight,!1),g=new uo(d.textureWidth,d.textureHeight,{format:ba,type:sa,depthTexture:new Tc(d.textureWidth,d.textureHeight,r,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:f.stencil,colorSpace:e.outputColorSpace,samples:f.antialias?4:0,resolveDepthBuffer:!1===d.ignoreDepthValues})}g.isXRRenderTarget=!0,this.setFoveation(l),s=null,r=await i.requestReferenceSpace(o),z.setContext(i),z.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(null!==i)return i.environmentBlendMode},this.getDepthTexture=function(){return m.getDepthTexture()};const L=new fo,P=new fo;function q(e,t){null===t?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(null===i)return;null!==m.texture&&(e.near=m.depthNear,e.far=m.depthFar),w.near=M.near=b.near=e.near,w.far=M.far=b.far=e.far,T===w.near&&C===w.far||(i.updateRenderState({depthNear:w.near,depthFar:w.far}),T=w.near,C=w.far,b.near=T,b.far=C,M.near=T,M.far=C,b.updateProjectionMatrix(),M.updateProjectionMatrix(),e.updateProjectionMatrix());const t=e.parent,n=w.cameras;q(w,t);for(let i=0;i<n.length;i++)q(n[i],t);2===n.length?function(e,t,n){L.setFromMatrixPosition(t.matrixWorld),P.setFromMatrixPosition(n.matrixWorld);const i=L.distanceTo(P),a=t.projectionMatrix.elements,r=n.projectionMatrix.elements,o=a[14]/(a[10]-1),l=a[14]/(a[10]+1),s=(a[9]+1)/a[5],c=(a[9]-1)/a[5],u=(a[8]-1)/a[0],d=(r[8]+1)/r[0],h=o*u,p=o*d,m=i/(-u+d),f=m*-u;t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(f),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert();const v=o+m,g=l+m,_=h-f,x=p+(i-f),y=s*l/g*v,S=c*l/g*v;e.projectionMatrix.makePerspective(_,x,y,S,v,g),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}(w,b,M):w.projectionMatrix.copy(b.projectionMatrix),function(e,t,n){null===n?e.matrix.copy(t.matrixWorld):(e.matrix.copy(n.matrixWorld),e.matrix.invert(),e.matrix.multiply(t.matrixWorld));e.matrix.decompose(e.position,e.quaternion,e.scale),e.updateMatrixWorld(!0),e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse),e.isPerspectiveCamera&&(e.fov=2*Ir*Math.atan(1/e.projectionMatrix.elements[5]),e.zoom=1)}(e,w,t)},this.getCamera=function(){return w},this.getFoveation=function(){if(null!==d||null!==h)return l},this.setFoveation=function(e){l=e,null!==d&&(d.fixedFoveation=e),null!==h&&void 0!==h.fixedFoveation&&(h.fixedFoveation=e)},this.hasDepthSensing=function(){return null!==m.texture},this.getDepthSensingMesh=function(){return m.getMesh(w)};let I=null;const z=new Vs;z.setAnimationLoop((function(t,a){if(c=a.getViewerPose(s||r),p=a,null!==c){const t=c.views;null!==h&&(e.setRenderTargetFramebuffer(g,h.framebuffer),e.setRenderTarget(g));let n=!1;t.length!==w.cameras.length&&(w.cameras.length=0,n=!0);for(let i=0;i<t.length;i++){const a=t[i];let r=null;if(null!==h)r=h.getViewport(a);else{const t=u.getViewSubImage(d,a);r=t.viewport,0===i&&(e.setRenderTargetTextures(g,t.colorTexture,d.ignoreDepthValues?void 0:t.depthStencilTexture),e.setRenderTarget(g))}let o=E[i];void 0===o&&(o=new As,o.layers.enable(i),o.viewport=new so,E[i]=o),o.matrix.fromArray(a.transform.matrix),o.matrix.decompose(o.position,o.quaternion,o.scale),o.projectionMatrix.fromArray(a.projectionMatrix),o.projectionMatrixInverse.copy(o.projectionMatrix).invert(),o.viewport.set(r.x,r.y,r.width,r.height),0===i&&(w.matrix.copy(o.matrix),w.matrix.decompose(w.position,w.quaternion,w.scale)),!0===n&&w.cameras.push(o)}const a=i.enabledFeatures;if(a&&a.includes("depth-sensing")){const n=u.getDepthInformation(t[0]);n&&n.isValid&&n.texture&&m.init(e,n,i.renderState)}}for(let e=0;e<_.length;e++){const t=x[e],n=_[e];null!==t&&void 0!==n&&n.update(t,a,s||r)}I&&I(t,a),a.detectedPlanes&&n.dispatchEvent({type:"planesdetected",data:a}),p=null})),this.setAnimationLoop=function(e){I=e},this.dispose=function(){}}}const Ed=new tl,wd=new Wo;function Td(e,t){function n(e,t){!0===e.matrixAutoUpdate&&e.updateMatrix(),t.value.copy(e.matrix)}function i(e,i){e.opacity.value=i.opacity,i.color&&e.diffuse.value.copy(i.color),i.emissive&&e.emissive.value.copy(i.emissive).multiplyScalar(i.emissiveIntensity),i.map&&(e.map.value=i.map,n(i.map,e.mapTransform)),i.alphaMap&&(e.alphaMap.value=i.alphaMap,n(i.alphaMap,e.alphaMapTransform)),i.bumpMap&&(e.bumpMap.value=i.bumpMap,n(i.bumpMap,e.bumpMapTransform),e.bumpScale.value=i.bumpScale,i.side===xi&&(e.bumpScale.value*=-1)),i.normalMap&&(e.normalMap.value=i.normalMap,n(i.normalMap,e.normalMapTransform),e.normalScale.value.copy(i.normalScale),i.side===xi&&e.normalScale.value.negate()),i.displacementMap&&(e.displacementMap.value=i.displacementMap,n(i.displacementMap,e.displacementMapTransform),e.displacementScale.value=i.displacementScale,e.displacementBias.value=i.displacementBias),i.emissiveMap&&(e.emissiveMap.value=i.emissiveMap,n(i.emissiveMap,e.emissiveMapTransform)),i.specularMap&&(e.specularMap.value=i.specularMap,n(i.specularMap,e.specularMapTransform)),i.alphaTest>0&&(e.alphaTest.value=i.alphaTest);const a=t.get(i),r=a.envMap,o=a.envMapRotation;r&&(e.envMap.value=r,Ed.copy(o),Ed.x*=-1,Ed.y*=-1,Ed.z*=-1,r.isCubeTexture&&!1===r.isRenderTargetTexture&&(Ed.y*=-1,Ed.z*=-1),e.envMapRotation.value.setFromMatrix4(wd.makeRotationFromEuler(Ed)),e.flipEnvMap.value=r.isCubeTexture&&!1===r.isRenderTargetTexture?-1:1,e.reflectivity.value=i.reflectivity,e.ior.value=i.ior,e.refractionRatio.value=i.refractionRatio),i.lightMap&&(e.lightMap.value=i.lightMap,e.lightMapIntensity.value=i.lightMapIntensity,n(i.lightMap,e.lightMapTransform)),i.aoMap&&(e.aoMap.value=i.aoMap,e.aoMapIntensity.value=i.aoMapIntensity,n(i.aoMap,e.aoMapTransform))}return{refreshFogUniforms:function(t,n){n.color.getRGB(t.fogColor.value,Ss(e)),n.isFog?(t.fogNear.value=n.near,t.fogFar.value=n.far):n.isFogExp2&&(t.fogDensity.value=n.density)},refreshMaterialUniforms:function(e,a,r,o,l){a.isMeshBasicMaterial||a.isMeshLambertMaterial?i(e,a):a.isMeshToonMaterial?(i(e,a),function(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}(e,a)):a.isMeshPhongMaterial?(i(e,a),function(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}(e,a)):a.isMeshStandardMaterial?(i(e,a),function(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform));e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform));t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}(e,a),a.isMeshPhysicalMaterial&&function(e,t,i){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform)));t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===xi&&e.clearcoatNormalScale.value.negate()));t.dispersion>0&&(e.dispersion.value=t.dispersion);t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform)));t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=i.texture,e.transmissionSamplerSize.value.set(i.width,i.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor));t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform)));e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform));t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}(e,a,l)):a.isMeshMatcapMaterial?(i(e,a),function(e,t){t.matcap&&(e.matcap.value=t.matcap)}(e,a)):a.isMeshDepthMaterial?i(e,a):a.isMeshDistanceMaterial?(i(e,a),function(e,n){const i=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(i.matrixWorld),e.nearDistance.value=i.shadow.camera.near,e.farDistance.value=i.shadow.camera.far}(e,a)):a.isMeshNormalMaterial?i(e,a):a.isLineBasicMaterial?(function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}(e,a),a.isLineDashedMaterial&&function(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}(e,a)):a.isPointsMaterial?function(e,t,i,a){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*i,e.scale.value=.5*a,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,a,r,o):a.isSpriteMaterial?function(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform));t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform));t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}(e,a):a.isShadowMaterial?(e.color.value.copy(a.color),e.opacity.value=a.opacity):a.isShaderMaterial&&(a.uniformsNeedUpdate=!1)}}}function Cd(e,t,n,i){let a={},r={},o=[];const l=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function s(e,t,n,i){const a=e.value,r=t+"_"+n;if(void 0===i[r])return i[r]="number"==typeof a||"boolean"==typeof a?a:a.clone(),!0;{const e=i[r];if("number"==typeof a||"boolean"==typeof a){if(e!==a)return i[r]=a,!0}else if(!1===e.equals(a))return e.copy(a),!0}return!1}function c(e){const t={boundary:0,storage:0};return"number"==typeof e||"boolean"==typeof e?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture,t}function u(t){const n=t.target;n.removeEventListener("dispose",u);const i=o.indexOf(n.__bindingPointIndex);o.splice(i,1),e.deleteBuffer(a[n.id]),delete a[n.id],delete r[n.id]}return{bind:function(e,t){const n=t.program;i.uniformBlockBinding(e,n)},update:function(n,d){let h=a[n.id];void 0===h&&(!function(e){const t=e.uniforms;let n=0;const i=16;for(let r=0,o=t.length;r<o;r++){const e=Array.isArray(t[r])?t[r]:[t[r]];for(let t=0,a=e.length;t<a;t++){const a=e[t],r=Array.isArray(a.value)?a.value:[a.value];for(let e=0,t=r.length;e<t;e++){const t=c(r[e]),o=n%i;0!==o&&i-o<t.boundary&&(n+=i-o),a.__data=new Float32Array(t.storage/Float32Array.BYTES_PER_ELEMENT),a.__offset=n,n+=t.storage}}}const a=n%i;a>0&&(n+=i-a);e.__size=n,e.__cache={}}(n),h=function(t){const n=function(){for(let e=0;e<l;e++)if(-1===o.indexOf(e))return o.push(e),e;return 0}();t.__bindingPointIndex=n;const i=e.createBuffer(),a=t.__size,r=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,i),e.bufferData(e.UNIFORM_BUFFER,a,r),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,i),i}(n),a[n.id]=h,n.addEventListener("dispose",u));const p=d.program;i.updateUBOMapping(n,p);const m=t.render.frame;r[n.id]!==m&&(!function(t){const n=a[t.id],i=t.uniforms,r=t.__cache;e.bindBuffer(e.UNIFORM_BUFFER,n);for(let a=0,o=i.length;a<o;a++){const t=Array.isArray(i[a])?i[a]:[i[a]];for(let n=0,i=t.length;n<i;n++){const i=t[n];if(!0===s(i,a,n,r)){const t=i.__offset,n=Array.isArray(i.value)?i.value:[i.value];let a=0;for(let r=0;r<n.length;r++){const o=n[r],l=c(o);"number"==typeof o||"boolean"==typeof o?(i.__data[0]=o,e.bufferSubData(e.UNIFORM_BUFFER,t+a,i.__data)):o.isMatrix3?(i.__data[0]=o.elements[0],i.__data[1]=o.elements[1],i.__data[2]=o.elements[2],i.__data[3]=0,i.__data[4]=o.elements[3],i.__data[5]=o.elements[4],i.__data[6]=o.elements[5],i.__data[7]=0,i.__data[8]=o.elements[6],i.__data[9]=o.elements[7],i.__data[10]=o.elements[8],i.__data[11]=0):(o.toArray(i.__data,a),a+=l.storage/Float32Array.BYTES_PER_ELEMENT)}e.bufferSubData(e.UNIFORM_BUFFER,t,i.__data)}}}e.bindBuffer(e.UNIFORM_BUFFER,null)}(n),r[n.id]=m)},dispose:function(){for(const t in a)e.deleteBuffer(a[t]);o=[],a={},r={}}}}class Ad{constructor(e={}){const{canvas:t=Wr(),context:n=null,depth:i=!0,stencil:a=!1,alpha:r=!1,antialias:o=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:s=!1,powerPreference:c="default",failIfMajorPerformanceCaveat:u=!1}=e;let d;if(this.isWebGLRenderer=!0,null!==n){if("undefined"!=typeof WebGLRenderingContext&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");d=n.getContextAttributes().alpha}else d=r;const h=new Uint32Array(4),p=new Int32Array(4);let m=null,f=null;const v=[],g=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=dr,this.toneMapping=Fi,this.toneMappingExposure=1;const _=this;let x=!1,y=0,S=0,b=null,M=-1,E=null;const w=new so,T=new so;let C=null;const A=new Il(0);let N=0,R=t.width,L=t.height,P=1,q=null,I=null;const z=new so(0,0,R,L),k=new so(0,0,R,L);let B=!1;const D=new Us;let U=!1,V=!1;const O=new Wo,F=new fo,H=new so,G={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let W=!1;function X(){return null===b?P:1}let j,$,K,Y,J,Z,Q,ee,te,ne,ie,ae,re,oe,le,se,ce,ue,de,he,pe,me,fe,ve,ge=n;function _e(e,n){return t.getContext(e,n)}try{const e={alpha:!0,depth:i,stencil:a,antialias:o,premultipliedAlpha:l,preserveDrawingBuffer:s,powerPreference:c,failIfMajorPerformanceCaveat:u};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${mi}`),t.addEventListener("webglcontextlost",Se,!1),t.addEventListener("webglcontextrestored",be,!1),t.addEventListener("webglcontextcreationerror",Me,!1),null===ge){const t="webgl2";if(ge=_e(t,e),null===ge)throw _e(t)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(De){throw De}function xe(){j=new yc(ge),j.init(),me=new gd(ge,j),$=new Zs(ge,j,e,me),K=new md(ge),Y=new Mc(ge),J=new ed,Z=new vd(ge,j,K,J,$,me,Y),Q=new ec(_),ee=new xc(_),te=new Os(ge),fe=new Ys(ge,te),ne=new Sc(ge,te,Y,fe),ie=new wc(ge,ne,te,Y),de=new Ec(ge,$,Z),se=new Qs(J),ae=new Qu(_,Q,ee,j,$,fe,se),re=new Td(_,J),oe=new ad,le=new ud(j),ue=new Ks(_,Q,ee,K,ie,d,l),ce=new pd(_,ie,$),ve=new Cd(ge,Y,$,K),he=new Js(ge,j,Y),pe=new bc(ge,j,Y),Y.programs=ae.programs,_.capabilities=$,_.extensions=j,_.properties=J,_.renderLists=oe,_.shadowMap=ce,_.state=K,_.info=Y}xe();const ye=new Md(_,ge);function Se(e){e.preventDefault(),x=!0}function be(){x=!1;const e=Y.autoReset,t=ce.enabled,n=ce.autoUpdate,i=ce.needsUpdate,a=ce.type;xe(),Y.autoReset=e,ce.enabled=t,ce.autoUpdate=n,ce.needsUpdate=i,ce.type=a}function Me(e){}function Ee(e){const t=e.target;t.removeEventListener("dispose",Ee),function(e){(function(e){const t=J.get(e).programs;void 0!==t&&(t.forEach((function(e){ae.releaseProgram(e)})),e.isShaderMaterial&&ae.releaseShaderCache(e))})(e),J.remove(e)}(t)}function we(e,t,n){!0===e.transparent&&2===e.side&&!1===e.forceSinglePass?(e.side=xi,e.needsUpdate=!0,ze(e,t,n),e.side=_i,e.needsUpdate=!0,ze(e,t,n),e.side=2):ze(e,t,n)}this.xr=ye,this.getContext=function(){return ge},this.getContextAttributes=function(){return ge.getContextAttributes()},this.forceContextLoss=function(){const e=j.get("WEBGL_lose_context");e&&e.loseContext()},this.forceContextRestore=function(){const e=j.get("WEBGL_lose_context");e&&e.restoreContext()},this.getPixelRatio=function(){return P},this.setPixelRatio=function(e){void 0!==e&&(P=e,this.setSize(R,L,!1))},this.getSize=function(e){return e.set(R,L)},this.setSize=function(e,n,i=!0){ye.isPresenting||(R=e,L=n,t.width=Math.floor(e*P),t.height=Math.floor(n*P),!0===i&&(t.style.width=e+"px",t.style.height=n+"px"),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(R*P,L*P).floor()},this.setDrawingBufferSize=function(e,n,i){R=e,L=n,P=i,t.width=Math.floor(e*i),t.height=Math.floor(n*i),this.setViewport(0,0,e,n)},this.getCurrentViewport=function(e){return e.copy(w)},this.getViewport=function(e){return e.copy(z)},this.setViewport=function(e,t,n,i){e.isVector4?z.set(e.x,e.y,e.z,e.w):z.set(e,t,n,i),K.viewport(w.copy(z).multiplyScalar(P).round())},this.getScissor=function(e){return e.copy(k)},this.setScissor=function(e,t,n,i){e.isVector4?k.set(e.x,e.y,e.z,e.w):k.set(e,t,n,i),K.scissor(T.copy(k).multiplyScalar(P).round())},this.getScissorTest=function(){return B},this.setScissorTest=function(e){K.setScissorTest(B=e)},this.setOpaqueSort=function(e){q=e},this.setTransparentSort=function(e){I=e},this.getClearColor=function(e){return e.copy(ue.getClearColor())},this.setClearColor=function(){ue.setClearColor.apply(ue,arguments)},this.getClearAlpha=function(){return ue.getClearAlpha()},this.setClearAlpha=function(){ue.setClearAlpha.apply(ue,arguments)},this.clear=function(e=!0,t=!0,n=!0){let i=0;if(e){let e=!1;if(null!==b){const t=b.texture.format;e=t===La||t===Ra||t===Aa}if(e){const e=b.texture.type,t=e===sa||e===pa||e===da||e===_a||e===va||e===ga,n=ue.getClearColor(),i=ue.getClearAlpha(),a=n.r,r=n.g,o=n.b;t?(h[0]=a,h[1]=r,h[2]=o,h[3]=i,ge.clearBufferuiv(ge.COLOR,0,h)):(p[0]=a,p[1]=r,p[2]=o,p[3]=i,ge.clearBufferiv(ge.COLOR,0,p))}else i|=ge.COLOR_BUFFER_BIT}t&&(i|=ge.DEPTH_BUFFER_BIT),n&&(i|=ge.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),ge.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",Se,!1),t.removeEventListener("webglcontextrestored",be,!1),t.removeEventListener("webglcontextcreationerror",Me,!1),oe.dispose(),le.dispose(),J.dispose(),Q.dispose(),ee.dispose(),ie.dispose(),fe.dispose(),ve.dispose(),ae.dispose(),ye.dispose(),ye.removeEventListener("sessionstart",Ce),ye.removeEventListener("sessionend",Ae),Ne.stop()},this.renderBufferDirect=function(e,t,n,i,a,r){null===t&&(t=G);const o=a.isMesh&&a.matrixWorld.determinant()<0,l=function(e,t,n,i,a){!0!==t.isScene&&(t=G);Z.resetTextureUnits();const r=t.fog,o=i.isMeshStandardMaterial?t.environment:null,l=null===b?_.outputColorSpace:!0===b.isXRRenderTarget?b.texture.colorSpace:hr,s=(i.isMeshStandardMaterial?ee:Q).get(i.envMap||o),c=!0===i.vertexColors&&!!n.attributes.color&&4===n.attributes.color.itemSize,u=!!n.attributes.tangent&&(!!i.normalMap||i.anisotropy>0),d=!!n.morphAttributes.position,h=!!n.morphAttributes.normal,p=!!n.morphAttributes.color;let m=Fi;i.toneMapped&&(null!==b&&!0!==b.isXRRenderTarget||(m=_.toneMapping));const v=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,g=void 0!==v?v.length:0,x=J.get(i),y=f.state.lights;if(!0===U&&(!0===V||e!==E)){const t=e===E&&i.id===M;se.setState(i,e,t)}let S=!1;i.version===x.__version?x.needsLights&&x.lightsStateVersion!==y.state.version||x.outputColorSpace!==l||a.isBatchedMesh&&!1===x.batching?S=!0:a.isBatchedMesh||!0!==x.batching?a.isBatchedMesh&&!0===x.batchingColor&&null===a.colorTexture||a.isBatchedMesh&&!1===x.batchingColor&&null!==a.colorTexture||a.isInstancedMesh&&!1===x.instancing?S=!0:a.isInstancedMesh||!0!==x.instancing?a.isSkinnedMesh&&!1===x.skinning?S=!0:a.isSkinnedMesh||!0!==x.skinning?a.isInstancedMesh&&!0===x.instancingColor&&null===a.instanceColor||a.isInstancedMesh&&!1===x.instancingColor&&null!==a.instanceColor||a.isInstancedMesh&&!0===x.instancingMorph&&null===a.morphTexture||a.isInstancedMesh&&!1===x.instancingMorph&&null!==a.morphTexture||x.envMap!==s||!0===i.fog&&x.fog!==r?S=!0:void 0===x.numClippingPlanes||x.numClippingPlanes===se.numPlanes&&x.numIntersection===se.numIntersection?(x.vertexAlphas!==c||x.vertexTangents!==u||x.morphTargets!==d||x.morphNormals!==h||x.morphColors!==p||x.toneMapping!==m||x.morphTargetsCount!==g)&&(S=!0):S=!0:S=!0:S=!0:S=!0:(S=!0,x.__version=i.version);let w=x.currentProgram;!0===S&&(w=ze(i,t,a));let T=!1,C=!1,A=!1;const N=w.getUniforms(),R=x.uniforms;K.useProgram(w.program)&&(T=!0,C=!0,A=!0);i.id!==M&&(M=i.id,C=!0);if(T||E!==e){N.setValue(ge,"projectionMatrix",e.projectionMatrix),N.setValue(ge,"viewMatrix",e.matrixWorldInverse);const t=N.map.cameraPosition;void 0!==t&&t.setValue(ge,F.setFromMatrixPosition(e.matrixWorld)),$.logarithmicDepthBuffer&&N.setValue(ge,"logDepthBufFC",2/(Math.log(e.far+1)/Math.LN2)),(i.isMeshPhongMaterial||i.isMeshToonMaterial||i.isMeshLambertMaterial||i.isMeshBasicMaterial||i.isMeshStandardMaterial||i.isShaderMaterial)&&N.setValue(ge,"isOrthographic",!0===e.isOrthographicCamera),E!==e&&(E=e,C=!0,A=!0)}if(a.isSkinnedMesh){N.setOptional(ge,a,"bindMatrix"),N.setOptional(ge,a,"bindMatrixInverse");const e=a.skeleton;e&&(null===e.boneTexture&&e.computeBoneTexture(),N.setValue(ge,"boneTexture",e.boneTexture,Z))}a.isBatchedMesh&&(N.setOptional(ge,a,"batchingTexture"),N.setValue(ge,"batchingTexture",a._matricesTexture,Z),N.setOptional(ge,a,"batchingIdTexture"),N.setValue(ge,"batchingIdTexture",a._indirectTexture,Z),N.setOptional(ge,a,"batchingColorTexture"),null!==a._colorsTexture&&N.setValue(ge,"batchingColorTexture",a._colorsTexture,Z));const q=n.morphAttributes;void 0===q.position&&void 0===q.normal&&void 0===q.color||de.update(a,n,w);(C||x.receiveShadow!==a.receiveShadow)&&(x.receiveShadow=a.receiveShadow,N.setValue(ge,"receiveShadow",a.receiveShadow));i.isMeshGouraudMaterial&&null!==i.envMap&&(R.envMap.value=s,R.flipEnvMap.value=s.isCubeTexture&&!1===s.isRenderTargetTexture?-1:1);i.isMeshStandardMaterial&&null===i.envMap&&null!==t.environment&&(R.envMapIntensity.value=t.environmentIntensity);C&&(N.setValue(ge,"toneMappingExposure",_.toneMappingExposure),x.needsLights&&(z=A,(I=R).ambientLightColor.needsUpdate=z,I.lightProbe.needsUpdate=z,I.directionalLights.needsUpdate=z,I.directionalLightShadows.needsUpdate=z,I.pointLights.needsUpdate=z,I.pointLightShadows.needsUpdate=z,I.spotLights.needsUpdate=z,I.spotLightShadows.needsUpdate=z,I.rectAreaLights.needsUpdate=z,I.hemisphereLights.needsUpdate=z),r&&!0===i.fog&&re.refreshFogUniforms(R,r),re.refreshMaterialUniforms(R,i,P,L,f.state.transmissionRenderTarget[e.id]),Lu.upload(ge,ke(x),R,Z));var I,z;i.isShaderMaterial&&!0===i.uniformsNeedUpdate&&(Lu.upload(ge,ke(x),R,Z),i.uniformsNeedUpdate=!1);i.isSpriteMaterial&&N.setValue(ge,"center",a.center);if(N.setValue(ge,"modelViewMatrix",a.modelViewMatrix),N.setValue(ge,"normalMatrix",a.normalMatrix),N.setValue(ge,"modelMatrix",a.matrixWorld),i.isShaderMaterial||i.isRawShaderMaterial){const e=i.uniformsGroups;for(let t=0,n=e.length;t<n;t++){const n=e[t];ve.update(n,w),ve.bind(n,w)}}return w}(e,t,n,i,a);K.setMaterial(i,o);let s=n.index,c=1;if(!0===i.wireframe){if(s=ne.getWireframeAttribute(n),void 0===s)return;c=2}const u=n.drawRange,d=n.attributes.position;let h=u.start*c,p=(u.start+u.count)*c;null!==r&&(h=Math.max(h,r.start*c),p=Math.min(p,(r.start+r.count)*c)),null!==s?(h=Math.max(h,0),p=Math.min(p,s.count)):null!=d&&(h=Math.max(h,0),p=Math.min(p,d.count));const m=p-h;if(m<0||m===1/0)return;let v;fe.setup(a,i,l,n,s);let g=he;if(null!==s&&(v=te.get(s),g=pe,g.setIndex(v)),a.isMesh)!0===i.wireframe?(K.setLineWidth(i.wireframeLinewidth*X()),g.setMode(ge.LINES)):g.setMode(ge.TRIANGLES);else if(a.isLine){let e=i.linewidth;void 0===e&&(e=1),K.setLineWidth(e*X()),a.isLineSegments?g.setMode(ge.LINES):a.isLineLoop?g.setMode(ge.LINE_LOOP):g.setMode(ge.LINE_STRIP)}else a.isPoints?g.setMode(ge.POINTS):a.isSprite&&g.setMode(ge.TRIANGLES);if(a.isBatchedMesh)if(null!==a._multiDrawInstances)g.renderMultiDrawInstances(a._multiDrawStarts,a._multiDrawCounts,a._multiDrawCount,a._multiDrawInstances);else if(j.get("WEBGL_multi_draw"))g.renderMultiDraw(a._multiDrawStarts,a._multiDrawCounts,a._multiDrawCount);else{const e=a._multiDrawStarts,t=a._multiDrawCounts,n=a._multiDrawCount,r=s?te.get(s).bytesPerElement:1,o=J.get(i).currentProgram.getUniforms();for(let i=0;i<n;i++)o.setValue(ge,"_gl_DrawID",i),g.render(e[i]/r,t[i])}else if(a.isInstancedMesh)g.renderInstances(h,m,a.count);else if(n.isInstancedBufferGeometry){const e=void 0!==n._maxInstanceCount?n._maxInstanceCount:1/0,t=Math.min(n.instanceCount,e);g.renderInstances(h,m,t)}else g.render(h,m)},this.compile=function(e,t,n=null){null===n&&(n=e),f=le.get(n),f.init(t),g.push(f),n.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(f.pushLight(e),e.castShadow&&f.pushShadow(e))})),e!==n&&e.traverseVisible((function(e){e.isLight&&e.layers.test(t.layers)&&(f.pushLight(e),e.castShadow&&f.pushShadow(e))})),f.setupLights();const i=new Set;return e.traverse((function(e){const t=e.material;if(t)if(Array.isArray(t))for(let a=0;a<t.length;a++){const r=t[a];we(r,n,e),i.add(r)}else we(t,n,e),i.add(t)})),g.pop(),f=null,i},this.compileAsync=function(e,t,n=null){const i=this.compile(e,t,n);return new Promise((t=>{function n(){i.forEach((function(e){J.get(e).currentProgram.isReady()&&i.delete(e)})),0!==i.size?setTimeout(n,10):t(e)}null!==j.get("KHR_parallel_shader_compile")?n():setTimeout(n,10)}))};let Te=null;function Ce(){Ne.stop()}function Ae(){Ne.start()}const Ne=new Vs;function Re(e,t,n,i){if(!1===e.visible)return;if(e.layers.test(t.layers))if(e.isGroup)n=e.renderOrder;else if(e.isLOD)!0===e.autoUpdate&&e.update(t);else if(e.isLight)f.pushLight(e),e.castShadow&&f.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||D.intersectsSprite(e)){i&&H.setFromMatrixPosition(e.matrixWorld).applyMatrix4(O);const t=ie.update(e),a=e.material;a.visible&&m.push(e,t,a,n,H.z,null)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||D.intersectsObject(e))){const t=ie.update(e),a=e.material;if(i&&(void 0!==e.boundingSphere?(null===e.boundingSphere&&e.computeBoundingSphere(),H.copy(e.boundingSphere.center)):(null===t.boundingSphere&&t.computeBoundingSphere(),H.copy(t.boundingSphere.center)),H.applyMatrix4(e.matrixWorld).applyMatrix4(O)),Array.isArray(a)){const i=t.groups;for(let r=0,o=i.length;r<o;r++){const o=i[r],l=a[o.materialIndex];l&&l.visible&&m.push(e,t,l,n,H.z,o)}}else a.visible&&m.push(e,t,a,n,H.z,null)}const a=e.children;for(let r=0,o=a.length;r<o;r++)Re(a[r],t,n,i)}function Le(e,t,n,i){const a=e.opaque,r=e.transmissive,o=e.transparent;f.setupLightsView(n),!0===U&&se.setGlobalState(_.clippingPlanes,n),i&&K.viewport(w.copy(i)),a.length>0&&qe(a,t,n),r.length>0&&qe(r,t,n),o.length>0&&qe(o,t,n),K.buffers.depth.setTest(!0),K.buffers.depth.setMask(!0),K.buffers.color.setMask(!0),K.setPolygonOffset(!1)}function Pe(e,t,n,i){if(null!==(!0===n.isScene?n.overrideMaterial:null))return;void 0===f.state.transmissionRenderTarget[i.id]&&(f.state.transmissionRenderTarget[i.id]=new uo(1,1,{generateMipmaps:!0,type:j.has("EXT_color_buffer_half_float")||j.has("EXT_color_buffer_float")?fa:sa,minFilter:la,samples:4,stencilBuffer:a,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:Zr.workingColorSpace}));const r=f.state.transmissionRenderTarget[i.id],o=i.viewport||w;r.setSize(o.z,o.w);const l=_.getRenderTarget();_.setRenderTarget(r),_.getClearColor(A),N=_.getClearAlpha(),N<1&&_.setClearColor(16777215,.5),W?ue.render(n):_.clear();const s=_.toneMapping;_.toneMapping=Fi;const c=i.viewport;if(void 0!==i.viewport&&(i.viewport=void 0),f.setupLightsView(i),!0===U&&se.setGlobalState(_.clippingPlanes,i),qe(e,n,i),Z.updateMultisampleRenderTarget(r),Z.updateRenderTargetMipmap(r),!1===j.has("WEBGL_multisampled_render_to_texture")){let e=!1;for(let a=0,r=t.length;a<r;a++){const r=t[a],o=r.object,l=r.geometry,s=r.material,c=r.group;if(2===s.side&&o.layers.test(i.layers)){const t=s.side;s.side=xi,s.needsUpdate=!0,Ie(o,n,i,l,s,c),s.side=t,s.needsUpdate=!0,e=!0}}!0===e&&(Z.updateMultisampleRenderTarget(r),Z.updateRenderTargetMipmap(r))}_.setRenderTarget(l),_.setClearColor(A,N),void 0!==c&&(i.viewport=c),_.toneMapping=s}function qe(e,t,n){const i=!0===t.isScene?t.overrideMaterial:null;for(let a=0,r=e.length;a<r;a++){const r=e[a],o=r.object,l=r.geometry,s=null===i?r.material:i,c=r.group;o.layers.test(n.layers)&&Ie(o,t,n,l,s,c)}}function Ie(e,t,n,i,a,r){e.onBeforeRender(_,t,n,i,a,r),e.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,e.matrixWorld),e.normalMatrix.getNormalMatrix(e.modelViewMatrix),!0===a.transparent&&2===a.side&&!1===a.forceSinglePass?(a.side=xi,a.needsUpdate=!0,_.renderBufferDirect(n,t,i,a,e,r),a.side=_i,a.needsUpdate=!0,_.renderBufferDirect(n,t,i,a,e,r),a.side=2):_.renderBufferDirect(n,t,i,a,e,r),e.onAfterRender(_,t,n,i,a,r)}function ze(e,t,n){!0!==t.isScene&&(t=G);const i=J.get(e),a=f.state.lights,r=f.state.shadowsArray,o=a.state.version,l=ae.getParameters(e,a.state,r,t,n),s=ae.getProgramCacheKey(l);let c=i.programs;i.environment=e.isMeshStandardMaterial?t.environment:null,i.fog=t.fog,i.envMap=(e.isMeshStandardMaterial?ee:Q).get(e.envMap||i.environment),i.envMapRotation=null!==i.environment&&null===e.envMap?t.environmentRotation:e.envMapRotation,void 0===c&&(e.addEventListener("dispose",Ee),c=new Map,i.programs=c);let u=c.get(s);if(void 0!==u){if(i.currentProgram===u&&i.lightsStateVersion===o)return Be(e,l),u}else l.uniforms=ae.getUniforms(e),e.onBeforeCompile(l,_),u=ae.acquireProgram(l,s),c.set(s,u),i.uniforms=l.uniforms;const d=i.uniforms;return(e.isShaderMaterial||e.isRawShaderMaterial)&&!0!==e.clipping||(d.clippingPlanes=se.uniform),Be(e,l),i.needsLights=function(e){return e.isMeshLambertMaterial||e.isMeshToonMaterial||e.isMeshPhongMaterial||e.isMeshStandardMaterial||e.isShadowMaterial||e.isShaderMaterial&&!0===e.lights}(e),i.lightsStateVersion=o,i.needsLights&&(d.ambientLightColor.value=a.state.ambient,d.lightProbe.value=a.state.probe,d.directionalLights.value=a.state.directional,d.directionalLightShadows.value=a.state.directionalShadow,d.spotLights.value=a.state.spot,d.spotLightShadows.value=a.state.spotShadow,d.rectAreaLights.value=a.state.rectArea,d.ltc_1.value=a.state.rectAreaLTC1,d.ltc_2.value=a.state.rectAreaLTC2,d.pointLights.value=a.state.point,d.pointLightShadows.value=a.state.pointShadow,d.hemisphereLights.value=a.state.hemi,d.directionalShadowMap.value=a.state.directionalShadowMap,d.directionalShadowMatrix.value=a.state.directionalShadowMatrix,d.spotShadowMap.value=a.state.spotShadowMap,d.spotLightMatrix.value=a.state.spotLightMatrix,d.spotLightMap.value=a.state.spotLightMap,d.pointShadowMap.value=a.state.pointShadowMap,d.pointShadowMatrix.value=a.state.pointShadowMatrix),i.currentProgram=u,i.uniformsList=null,u}function ke(e){if(null===e.uniformsList){const t=e.currentProgram.getUniforms();e.uniformsList=Lu.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function Be(e,t){const n=J.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}Ne.setAnimationLoop((function(e){Te&&Te(e)})),"undefined"!=typeof self&&Ne.setContext(self),this.setAnimationLoop=function(e){Te=e,ye.setAnimationLoop(e),null===e?Ne.stop():Ne.start()},ye.addEventListener("sessionstart",Ce),ye.addEventListener("sessionend",Ae),this.render=function(e,t){if(void 0!==t&&!0!==t.isCamera)return;if(!0===x)return;if(!0===e.matrixWorldAutoUpdate&&e.updateMatrixWorld(),null===t.parent&&!0===t.matrixWorldAutoUpdate&&t.updateMatrixWorld(),!0===ye.enabled&&!0===ye.isPresenting&&(!0===ye.cameraAutoUpdate&&ye.updateCamera(t),t=ye.getCamera()),!0===e.isScene&&e.onBeforeRender(_,e,t,b),f=le.get(e,g.length),f.init(t),g.push(f),O.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),D.setFromProjectionMatrix(O),V=this.localClippingEnabled,U=se.init(this.clippingPlanes,V),m=oe.get(e,v.length),m.init(),v.push(m),!0===ye.enabled&&!0===ye.isPresenting){const e=_.xr.getDepthSensingMesh();null!==e&&Re(e,t,-1/0,_.sortObjects)}Re(e,t,0,_.sortObjects),m.finish(),!0===_.sortObjects&&m.sort(q,I),W=!1===ye.enabled||!1===ye.isPresenting||!1===ye.hasDepthSensing(),W&&ue.addToRenderList(m,e),this.info.render.frame++,!0===U&&se.beginShadows();const n=f.state.shadowsArray;ce.render(n,e,t),!0===U&&se.endShadows(),!0===this.info.autoReset&&this.info.reset();const i=m.opaque,a=m.transmissive;if(f.setupLights(),t.isArrayCamera){const n=t.cameras;if(a.length>0)for(let t=0,r=n.length;t<r;t++){Pe(i,a,e,n[t])}W&&ue.render(e);for(let t=0,i=n.length;t<i;t++){const i=n[t];Le(m,e,i,i.viewport)}}else a.length>0&&Pe(i,a,e,t),W&&ue.render(e),Le(m,e,t);null!==b&&(Z.updateMultisampleRenderTarget(b),Z.updateRenderTargetMipmap(b)),!0===e.isScene&&e.onAfterRender(_,e,t),fe.resetDefaultState(),M=-1,E=null,g.pop(),g.length>0?(f=g[g.length-1],!0===U&&se.setGlobalState(_.clippingPlanes,f.state.camera)):f=null,v.pop(),m=v.length>0?v[v.length-1]:null},this.getActiveCubeFace=function(){return y},this.getActiveMipmapLevel=function(){return S},this.getRenderTarget=function(){return b},this.setRenderTargetTextures=function(e,t,n){J.get(e.texture).__webglTexture=t,J.get(e.depthTexture).__webglTexture=n;const i=J.get(e);i.__hasExternalTextures=!0,i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===j.has("WEBGL_multisampled_render_to_texture")&&(i.__useRenderToTexture=!1)},this.setRenderTargetFramebuffer=function(e,t){const n=J.get(e);n.__webglFramebuffer=t,n.__useDefaultFramebuffer=void 0===t},this.setRenderTarget=function(e,t=0,n=0){b=e,y=t,S=n;let i=!0,a=null,r=!1,o=!1;if(e){const l=J.get(e);void 0!==l.__useDefaultFramebuffer?(K.bindFramebuffer(ge.FRAMEBUFFER,null),i=!1):void 0===l.__webglFramebuffer?Z.setupRenderTarget(e):l.__hasExternalTextures&&Z.rebindTextures(e,J.get(e.texture).__webglTexture,J.get(e.depthTexture).__webglTexture);const s=e.texture;(s.isData3DTexture||s.isDataArrayTexture||s.isCompressedArrayTexture)&&(o=!0);const c=J.get(e).__webglFramebuffer;e.isWebGLCubeRenderTarget?(a=Array.isArray(c[t])?c[t][n]:c[t],r=!0):a=e.samples>0&&!1===Z.useMultisampledRTT(e)?J.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,w.copy(e.viewport),T.copy(e.scissor),C=e.scissorTest}else w.copy(z).multiplyScalar(P).floor(),T.copy(k).multiplyScalar(P).floor(),C=B;if(K.bindFramebuffer(ge.FRAMEBUFFER,a)&&i&&K.drawBuffers(e,a),K.viewport(w),K.scissor(T),K.setScissorTest(C),r){const i=J.get(e.texture);ge.framebufferTexture2D(ge.FRAMEBUFFER,ge.COLOR_ATTACHMENT0,ge.TEXTURE_CUBE_MAP_POSITIVE_X+t,i.__webglTexture,n)}else if(o){const i=J.get(e.texture),a=t||0;ge.framebufferTextureLayer(ge.FRAMEBUFFER,ge.COLOR_ATTACHMENT0,i.__webglTexture,n||0,a)}M=-1},this.readRenderTargetPixels=function(e,t,n,i,a,r,o){if(!e||!e.isWebGLRenderTarget)return;let l=J.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(l=l[o]),l){K.bindFramebuffer(ge.FRAMEBUFFER,l);try{const o=e.texture,l=o.format,s=o.type;if(!$.textureFormatReadable(l))return;if(!$.textureTypeReadable(s))return;t>=0&&t<=e.width-i&&n>=0&&n<=e.height-a&&ge.readPixels(t,n,i,a,me.convert(l),me.convert(s),r)}finally{const e=null!==b?J.get(b).__webglFramebuffer:null;K.bindFramebuffer(ge.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,i,a,r,o){if(!e||!e.isWebGLRenderTarget)throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let l=J.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&void 0!==o&&(l=l[o]),l){K.bindFramebuffer(ge.FRAMEBUFFER,l);try{const o=e.texture,l=o.format,s=o.type;if(!$.textureFormatReadable(l))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!$.textureTypeReadable(s))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(t>=0&&t<=e.width-i&&n>=0&&n<=e.height-a){const e=ge.createBuffer();ge.bindBuffer(ge.PIXEL_PACK_BUFFER,e),ge.bufferData(ge.PIXEL_PACK_BUFFER,r.byteLength,ge.STREAM_READ),ge.readPixels(t,n,i,a,me.convert(l),me.convert(s),0),ge.flush();const o=ge.fenceSync(ge.SYNC_GPU_COMMANDS_COMPLETE,0);await function(e,t,n){return new Promise((function(i,a){setTimeout((function r(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:a();break;case e.TIMEOUT_EXPIRED:setTimeout(r,n);break;default:i()}}),n)}))}(ge,o,4);try{ge.bindBuffer(ge.PIXEL_PACK_BUFFER,e),ge.getBufferSubData(ge.PIXEL_PACK_BUFFER,0,r)}finally{ge.deleteBuffer(e),ge.deleteSync(o)}return r}}finally{const e=null!==b?J.get(b).__webglFramebuffer:null;K.bindFramebuffer(ge.FRAMEBUFFER,e)}}},this.copyFramebufferToTexture=function(e,t=null,n=0){!0!==e.isTexture&&(t=arguments[0]||null,e=arguments[1]);const i=Math.pow(2,-n),a=Math.floor(e.image.width*i),r=Math.floor(e.image.height*i),o=null!==t?t.x:0,l=null!==t?t.y:0;Z.setTexture2D(e,0),ge.copyTexSubImage2D(ge.TEXTURE_2D,n,0,0,o,l,a,r),K.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,i=null,a=0){let r,o,l,s,c,u;!0!==e.isTexture&&(i=arguments[0]||null,e=arguments[1],t=arguments[2],a=arguments[3]||0,n=null),null!==n?(r=n.max.x-n.min.x,o=n.max.y-n.min.y,l=n.min.x,s=n.min.y):(r=e.image.width,o=e.image.height,l=0,s=0),null!==i?(c=i.x,u=i.y):(c=0,u=0);const d=me.convert(t.format),h=me.convert(t.type);Z.setTexture2D(t,0),ge.pixelStorei(ge.UNPACK_FLIP_Y_WEBGL,t.flipY),ge.pixelStorei(ge.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),ge.pixelStorei(ge.UNPACK_ALIGNMENT,t.unpackAlignment);const p=ge.getParameter(ge.UNPACK_ROW_LENGTH),m=ge.getParameter(ge.UNPACK_IMAGE_HEIGHT),f=ge.getParameter(ge.UNPACK_SKIP_PIXELS),v=ge.getParameter(ge.UNPACK_SKIP_ROWS),g=ge.getParameter(ge.UNPACK_SKIP_IMAGES),_=e.isCompressedTexture?e.mipmaps[a]:e.image;ge.pixelStorei(ge.UNPACK_ROW_LENGTH,_.width),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,_.height),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,l),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,s),e.isDataTexture?ge.texSubImage2D(ge.TEXTURE_2D,a,c,u,r,o,d,h,_.data):e.isCompressedTexture?ge.compressedTexSubImage2D(ge.TEXTURE_2D,a,c,u,_.width,_.height,d,_.data):ge.texSubImage2D(ge.TEXTURE_2D,a,c,u,r,o,d,h,_),ge.pixelStorei(ge.UNPACK_ROW_LENGTH,p),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,m),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,f),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,v),ge.pixelStorei(ge.UNPACK_SKIP_IMAGES,g),0===a&&t.generateMipmaps&&ge.generateMipmap(ge.TEXTURE_2D),K.unbindTexture()},this.copyTextureToTexture3D=function(e,t,n=null,i=null,a=0){let r,o,l,s,c,u,d,h,p;!0!==e.isTexture&&(n=arguments[0]||null,i=arguments[1]||null,e=arguments[2],t=arguments[3],a=arguments[4]||0);const m=e.isCompressedTexture?e.mipmaps[a]:e.image;null!==n?(r=n.max.x-n.min.x,o=n.max.y-n.min.y,l=n.max.z-n.min.z,s=n.min.x,c=n.min.y,u=n.min.z):(r=m.width,o=m.height,l=m.depth,s=0,c=0,u=0),null!==i?(d=i.x,h=i.y,p=i.z):(d=0,h=0,p=0);const f=me.convert(t.format),v=me.convert(t.type);let g;if(t.isData3DTexture)Z.setTexture3D(t,0),g=ge.TEXTURE_3D;else{if(!t.isDataArrayTexture&&!t.isCompressedArrayTexture)return;Z.setTexture2DArray(t,0),g=ge.TEXTURE_2D_ARRAY}ge.pixelStorei(ge.UNPACK_FLIP_Y_WEBGL,t.flipY),ge.pixelStorei(ge.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),ge.pixelStorei(ge.UNPACK_ALIGNMENT,t.unpackAlignment);const _=ge.getParameter(ge.UNPACK_ROW_LENGTH),x=ge.getParameter(ge.UNPACK_IMAGE_HEIGHT),y=ge.getParameter(ge.UNPACK_SKIP_PIXELS),S=ge.getParameter(ge.UNPACK_SKIP_ROWS),b=ge.getParameter(ge.UNPACK_SKIP_IMAGES);ge.pixelStorei(ge.UNPACK_ROW_LENGTH,m.width),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,m.height),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,s),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,c),ge.pixelStorei(ge.UNPACK_SKIP_IMAGES,u),e.isDataTexture||e.isData3DTexture?ge.texSubImage3D(g,a,d,h,p,r,o,l,f,v,m.data):t.isCompressedArrayTexture?ge.compressedTexSubImage3D(g,a,d,h,p,r,o,l,f,m.data):ge.texSubImage3D(g,a,d,h,p,r,o,l,f,v,m),ge.pixelStorei(ge.UNPACK_ROW_LENGTH,_),ge.pixelStorei(ge.UNPACK_IMAGE_HEIGHT,x),ge.pixelStorei(ge.UNPACK_SKIP_PIXELS,y),ge.pixelStorei(ge.UNPACK_SKIP_ROWS,S),ge.pixelStorei(ge.UNPACK_SKIP_IMAGES,b),0===a&&t.generateMipmaps&&ge.generateMipmap(g),K.unbindTexture()},this.initRenderTarget=function(e){void 0===J.get(e).__webglFramebuffer&&Z.setupRenderTarget(e)},this.initTexture=function(e){e.isCubeTexture?Z.setTextureCube(e,0):e.isData3DTexture?Z.setTexture3D(e,0):e.isDataArrayTexture||e.isCompressedArrayTexture?Z.setTexture2DArray(e,0):Z.setTexture2D(e,0),K.unbindTexture()},this.resetState=function(){y=0,S=0,b=null,K.reset(),fe.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get coordinateSystem(){return Nr}get outputColorSpace(){return this._outputColorSpace}set outputColorSpace(e){this._outputColorSpace=e;const t=this.getContext();t.drawingBufferColorSpace=e===pr?"display-p3":"srgb",t.unpackColorSpace=Zr.workingColorSpace===mr?"display-p3":"srgb"}}class Nd extends _l{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.backgroundRotation=new tl,this.environmentIntensity=1,this.environmentRotation=new tl,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(e,t){return super.copy(e,t),null!==e.background&&(this.background=e.background.clone()),null!==e.environment&&(this.environment=e.environment.clone()),null!==e.fog&&(this.fog=e.fog.clone()),this.backgroundBlurriness=e.backgroundBlurriness,this.backgroundIntensity=e.backgroundIntensity,this.backgroundRotation.copy(e.backgroundRotation),this.environmentIntensity=e.environmentIntensity,this.environmentRotation.copy(e.environmentRotation),null!==e.overrideMaterial&&(this.overrideMaterial=e.overrideMaterial.clone()),this.matrixAutoUpdate=e.matrixAutoUpdate,this}toJSON(e){const t=super.toJSON(e);return null!==this.fog&&(t.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(t.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(t.object.backgroundIntensity=this.backgroundIntensity),t.object.backgroundRotation=this.backgroundRotation.toArray(),1!==this.environmentIntensity&&(t.object.environmentIntensity=this.environmentIntensity),t.object.environmentRotation=this.environmentRotation.toArray(),t}}class Rd extends Bl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type="LineBasicMaterial",this.color=new Il(16777215),this.map=null,this.linewidth=1,this.linecap="round",this.linejoin="round",this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}}const Ld=new fo,Pd=new fo,qd=new Wo,Id=new Go,zd=new ko,kd=new fo,Bd=new fo;class Dd extends _l{constructor(e=new Zl,t=new Rd){super(),this.isLine=!0,this.type="Line",this.geometry=e,this.material=t,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){const e=this.geometry;if(null===e.index){const t=e.attributes.position,n=[0];for(let e=1,i=t.count;e<i;e++)Ld.fromBufferAttribute(t,e-1),Pd.fromBufferAttribute(t,e),n[e]=n[e-1],n[e]+=Ld.distanceTo(Pd);e.setAttribute("lineDistance",new Gl(n,1))}return this}raycast(e,t){const n=this.geometry,i=this.matrixWorld,a=e.params.Line.threshold,r=n.drawRange;if(null===n.boundingSphere&&n.computeBoundingSphere(),zd.copy(n.boundingSphere),zd.applyMatrix4(i),zd.radius+=a,!1===e.ray.intersectsSphere(zd))return;qd.copy(i).invert(),Id.copy(e.ray).applyMatrix4(qd);const o=a/((this.scale.x+this.scale.y+this.scale.z)/3),l=o*o,s=this.isLineSegments?2:1,c=n.index,u=n.attributes.position;if(null!==c){const n=Math.max(0,r.start),i=Math.min(c.count,r.start+r.count);for(let a=n,r=i-1;a<r;a+=s){const n=c.getX(a),i=c.getX(a+1),r=Ud(this,e,Id,l,n,i);r&&t.push(r)}if(this.isLineLoop){const a=c.getX(i-1),r=c.getX(n),o=Ud(this,e,Id,l,a,r);o&&t.push(o)}}else{const n=Math.max(0,r.start),i=Math.min(u.count,r.start+r.count);for(let a=n,r=i-1;a<r;a+=s){const n=Ud(this,e,Id,l,a,a+1);n&&t.push(n)}if(this.isLineLoop){const a=Ud(this,e,Id,l,i-1,n);a&&t.push(a)}}}updateMorphTargets(){const e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){const n=e[t[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e<t;e++){const t=n[e].name||String(e);this.morphTargetInfluences.push(0),this.morphTargetDictionary[t]=e}}}}}function Ud(e,t,n,i,a,r){const o=e.geometry.attributes.position;Ld.fromBufferAttribute(o,a),Pd.fromBufferAttribute(o,r);if(n.distanceSqToSegment(Ld,Pd,kd,Bd)>i)return;kd.applyMatrix4(e.matrixWorld);const l=t.ray.origin.distanceTo(kd);return l<t.near||l>t.far?void 0:{distance:l,point:Bd.clone().applyMatrix4(e.matrixWorld),index:a,face:null,faceIndex:null,object:e}}class Vd{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return null}getPointAt(e,t){const n=this.getUtoTmapping(e);return this.getPoint(n,t)}getPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return t}getSpacedPoints(e=5){const t=[];for(let n=0;n<=e;n++)t.push(this.getPointAt(n/e));return t}getLength(){const e=this.getLengths();return e[e.length-1]}getLengths(e=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===e+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const t=[];let n,i=this.getPoint(0),a=0;t.push(0);for(let r=1;r<=e;r++)n=this.getPoint(r/e),a+=n.distanceTo(i),t.push(a),i=n;return this.cacheArcLengths=t,t}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(e,t){const n=this.getLengths();let i=0;const a=n.length;let r;r=t||e*n[a-1];let o,l=0,s=a-1;for(;l<=s;)if(i=Math.floor(l+(s-l)/2),o=n[i]-r,o<0)l=i+1;else{if(!(o>0)){s=i;break}s=i-1}if(i=s,n[i]===r)return i/(a-1);const c=n[i];return(i+(r-c)/(n[i+1]-c))/(a-1)}getTangent(e,t){const n=1e-4;let i=e-n,a=e+n;i<0&&(i=0),a>1&&(a=1);const r=this.getPoint(i),o=this.getPoint(a),l=t||(r.isVector2?new Vr:new fo);return l.copy(o).sub(r).normalize(),l}getTangentAt(e,t){const n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t){const n=new fo,i=[],a=[],r=[],o=new fo,l=new Wo;for(let h=0;h<=e;h++){const t=h/e;i[h]=this.getTangentAt(t,new fo)}a[0]=new fo,r[0]=new fo;let s=Number.MAX_VALUE;const c=Math.abs(i[0].x),u=Math.abs(i[0].y),d=Math.abs(i[0].z);c<=s&&(s=c,n.set(1,0,0)),u<=s&&(s=u,n.set(0,1,0)),d<=s&&n.set(0,0,1),o.crossVectors(i[0],n).normalize(),a[0].crossVectors(i[0],o),r[0].crossVectors(i[0],a[0]);for(let h=1;h<=e;h++){if(a[h]=a[h-1].clone(),r[h]=r[h-1].clone(),o.crossVectors(i[h-1],i[h]),o.length()>Number.EPSILON){o.normalize();const e=Math.acos(kr(i[h-1].dot(i[h]),-1,1));a[h].applyMatrix4(l.makeRotationAxis(o,e))}r[h].crossVectors(i[h],a[h])}if(!0===t){let t=Math.acos(kr(a[0].dot(a[e]),-1,1));t/=e,i[0].dot(o.crossVectors(a[0],a[e]))>0&&(t=-t);for(let n=1;n<=e;n++)a[n].applyMatrix4(l.makeRotationAxis(i[n],t*n)),r[n].crossVectors(i[n],a[n])}return{tangents:i,normals:a,binormals:r}}clone(){return(new this.constructor).copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){const e={metadata:{version:4.6,type:"Curve",generator:"Curve.toJSON"}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}}class Od extends Vd{constructor(e=0,t=0,n=1,i=1,a=0,r=2*Math.PI,o=!1,l=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=i,this.aStartAngle=a,this.aEndAngle=r,this.aClockwise=o,this.aRotation=l}getPoint(e,t=new Vr){const n=t,i=2*Math.PI;let a=this.aEndAngle-this.aStartAngle;const r=Math.abs(a)<Number.EPSILON;for(;a<0;)a+=i;for(;a>i;)a-=i;a<Number.EPSILON&&(a=r?0:i),!0!==this.aClockwise||r||(a===i?a=-i:a-=i);const o=this.aStartAngle+e*a;let l=this.aX+this.xRadius*Math.cos(o),s=this.aY+this.yRadius*Math.sin(o);if(0!==this.aRotation){const e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=l-this.aX,i=s-this.aY;l=n*e-i*t+this.aX,s=n*t+i*e+this.aY}return n.set(l,s)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){const e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}}function Fd(){let e=0,t=0,n=0,i=0;function a(a,r,o,l){e=a,t=o,n=-3*a+3*r-2*o-l,i=2*a-2*r+o+l}return{initCatmullRom:function(e,t,n,i,r){a(t,n,r*(n-e),r*(i-t))},initNonuniformCatmullRom:function(e,t,n,i,r,o,l){let s=(t-e)/r-(n-e)/(r+o)+(n-t)/o,c=(n-t)/o-(i-t)/(o+l)+(i-n)/l;s*=o,c*=o,a(t,n,s,c)},calc:function(a){const r=a*a;return e+t*a+n*r+i*(r*a)}}}const Hd=new fo,Gd=new Fd,Wd=new Fd,Xd=new Fd;function jd(e,t,n,i,a){const r=.5*(i-t),o=.5*(a-n),l=e*e;return(2*n-2*i+r+o)*(e*l)+(-3*n+3*i-2*r-o)*l+r*e+n}function $d(e,t,n,i){return function(e,t){const n=1-e;return n*n*t}(e,t)+function(e,t){return 2*(1-e)*e*t}(e,n)+function(e,t){return e*e*t}(e,i)}function Kd(e,t,n,i,a){return function(e,t){const n=1-e;return n*n*n*t}(e,t)+function(e,t){const n=1-e;return 3*n*n*e*t}(e,n)+function(e,t){return 3*(1-e)*e*e*t}(e,i)+function(e,t){return e*e*e*t}(e,a)}class Yd extends Vd{constructor(e=new Vr,t=new Vr,n=new Vr,i=new Vr){super(),this.isCubicBezierCurve=!0,this.type="CubicBezierCurve",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new Vr){const n=t,i=this.v0,a=this.v1,r=this.v2,o=this.v3;return n.set(Kd(e,i.x,a.x,r.x,o.x),Kd(e,i.y,a.y,r.y,o.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}}class Jd extends Vd{constructor(e=new Vr,t=new Vr){super(),this.isLineCurve=!0,this.type="LineCurve",this.v1=e,this.v2=t}getPoint(e,t=new Vr){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new Vr){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Zd extends Vd{constructor(e=new Vr,t=new Vr,n=new Vr){super(),this.isQuadraticBezierCurve=!0,this.type="QuadraticBezierCurve",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new Vr){const n=t,i=this.v0,a=this.v1,r=this.v2;return n.set($d(e,i.x,a.x,r.x),$d(e,i.y,a.y,r.y)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}}class Qd extends Vd{constructor(e=[]){super(),this.isSplineCurve=!0,this.type="SplineCurve",this.points=e}getPoint(e,t=new Vr){const n=t,i=this.points,a=(i.length-1)*e,r=Math.floor(a),o=a-r,l=i[0===r?r:r-1],s=i[r],c=i[r>i.length-2?i.length-1:r+1],u=i[r>i.length-3?i.length-1:r+2];return n.set(jd(o,l.x,s.x,c.x,u.x),jd(o,l.y,s.y,c.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new Vr).fromArray(n))}return this}}var eh=Object.freeze({__proto__:null,ArcCurve:class extends Od{constructor(e,t,n,i,a,r){super(e,t,n,n,i,a,r),this.isArcCurve=!0,this.type="ArcCurve"}},CatmullRomCurve3:class extends Vd{constructor(e=[],t=!1,n="centripetal",i=.5){super(),this.isCatmullRomCurve3=!0,this.type="CatmullRomCurve3",this.points=e,this.closed=t,this.curveType=n,this.tension=i}getPoint(e,t=new fo){const n=t,i=this.points,a=i.length,r=(a-(this.closed?0:1))*e;let o,l,s=Math.floor(r),c=r-s;this.closed?s+=s>0?0:(Math.floor(Math.abs(s)/a)+1)*a:0===c&&s===a-1&&(s=a-2,c=1),this.closed||s>0?o=i[(s-1)%a]:(Hd.subVectors(i[0],i[1]).add(i[0]),o=Hd);const u=i[s%a],d=i[(s+1)%a];if(this.closed||s+2<a?l=i[(s+2)%a]:(Hd.subVectors(i[a-1],i[a-2]).add(i[a-1]),l=Hd),"centripetal"===this.curveType||"chordal"===this.curveType){const e="chordal"===this.curveType?.5:.25;let t=Math.pow(o.distanceToSquared(u),e),n=Math.pow(u.distanceToSquared(d),e),i=Math.pow(d.distanceToSquared(l),e);n<1e-4&&(n=1),t<1e-4&&(t=n),i<1e-4&&(i=n),Gd.initNonuniformCatmullRom(o.x,u.x,d.x,l.x,t,n,i),Wd.initNonuniformCatmullRom(o.y,u.y,d.y,l.y,t,n,i),Xd.initNonuniformCatmullRom(o.z,u.z,d.z,l.z,t,n,i)}else"catmullrom"===this.curveType&&(Gd.initCatmullRom(o.x,u.x,d.x,l.x,this.tension),Wd.initCatmullRom(o.y,u.y,d.y,l.y,this.tension),Xd.initCatmullRom(o.z,u.z,d.z,l.z,this.tension));return n.set(Gd.calc(c),Wd.calc(c),Xd.calc(c)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push(n.clone())}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}toJSON(){const e=super.toJSON();e.points=[];for(let t=0,n=this.points.length;t<n;t++){const n=this.points[t];e.points.push(n.toArray())}return e.closed=this.closed,e.curveType=this.curveType,e.tension=this.tension,e}fromJSON(e){super.fromJSON(e),this.points=[];for(let t=0,n=e.points.length;t<n;t++){const n=e.points[t];this.points.push((new fo).fromArray(n))}return this.closed=e.closed,this.curveType=e.curveType,this.tension=e.tension,this}},CubicBezierCurve:Yd,CubicBezierCurve3:class extends Vd{constructor(e=new fo,t=new fo,n=new fo,i=new fo){super(),this.isCubicBezierCurve3=!0,this.type="CubicBezierCurve3",this.v0=e,this.v1=t,this.v2=n,this.v3=i}getPoint(e,t=new fo){const n=t,i=this.v0,a=this.v1,r=this.v2,o=this.v3;return n.set(Kd(e,i.x,a.x,r.x,o.x),Kd(e,i.y,a.y,r.y,o.y),Kd(e,i.z,a.z,r.z,o.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this.v3.copy(e.v3),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e.v3=this.v3.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this.v3.fromArray(e.v3),this}},EllipseCurve:Od,LineCurve:Jd,LineCurve3:class extends Vd{constructor(e=new fo,t=new fo){super(),this.isLineCurve3=!0,this.type="LineCurve3",this.v1=e,this.v2=t}getPoint(e,t=new fo){const n=t;return 1===e?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(e).add(this.v1)),n}getPointAt(e,t){return this.getPoint(e,t)}getTangent(e,t=new fo){return t.subVectors(this.v2,this.v1).normalize()}getTangentAt(e,t){return this.getTangent(e,t)}copy(e){return super.copy(e),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},QuadraticBezierCurve:Zd,QuadraticBezierCurve3:class extends Vd{constructor(e=new fo,t=new fo,n=new fo){super(),this.isQuadraticBezierCurve3=!0,this.type="QuadraticBezierCurve3",this.v0=e,this.v1=t,this.v2=n}getPoint(e,t=new fo){const n=t,i=this.v0,a=this.v1,r=this.v2;return n.set($d(e,i.x,a.x,r.x),$d(e,i.y,a.y,r.y),$d(e,i.z,a.z,r.z)),n}copy(e){return super.copy(e),this.v0.copy(e.v0),this.v1.copy(e.v1),this.v2.copy(e.v2),this}toJSON(){const e=super.toJSON();return e.v0=this.v0.toArray(),e.v1=this.v1.toArray(),e.v2=this.v2.toArray(),e}fromJSON(e){return super.fromJSON(e),this.v0.fromArray(e.v0),this.v1.fromArray(e.v1),this.v2.fromArray(e.v2),this}},SplineCurve:Qd});class th extends Vd{constructor(){super(),this.type="CurvePath",this.curves=[],this.autoClose=!1}add(e){this.curves.push(e)}closePath(){const e=this.curves[0].getPoint(0),t=this.curves[this.curves.length-1].getPoint(1);if(!e.equals(t)){const n=!0===e.isVector2?"LineCurve":"LineCurve3";this.curves.push(new eh[n](t,e))}return this}getPoint(e,t){const n=e*this.getLength(),i=this.getCurveLengths();let a=0;for(;a<i.length;){if(i[a]>=n){const e=i[a]-n,r=this.curves[a],o=r.getLength(),l=0===o?0:1-e/o;return r.getPointAt(l,t)}a++}return null}getLength(){const e=this.getCurveLengths();return e[e.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const e=[];let t=0;for(let n=0,i=this.curves.length;n<i;n++)t+=this.curves[n].getLength(),e.push(t);return this.cacheLengths=e,e}getSpacedPoints(e=40){const t=[];for(let n=0;n<=e;n++)t.push(this.getPoint(n/e));return this.autoClose&&t.push(t[0]),t}getPoints(e=12){const t=[];let n;for(let i=0,a=this.curves;i<a.length;i++){const r=a[i],o=r.isEllipseCurve?2*e:r.isLineCurve||r.isLineCurve3?1:r.isSplineCurve?e*r.points.length:e,l=r.getPoints(o);for(let e=0;e<l.length;e++){const i=l[e];n&&n.equals(i)||(t.push(i),n=i)}}return this.autoClose&&t.length>1&&!t[t.length-1].equals(t[0])&&t.push(t[0]),t}copy(e){super.copy(e),this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push(n.clone())}return this.autoClose=e.autoClose,this}toJSON(){const e=super.toJSON();e.autoClose=this.autoClose,e.curves=[];for(let t=0,n=this.curves.length;t<n;t++){const n=this.curves[t];e.curves.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.autoClose=e.autoClose,this.curves=[];for(let t=0,n=e.curves.length;t<n;t++){const n=e.curves[t];this.curves.push((new eh[n.type]).fromJSON(n))}return this}}class nh extends th{constructor(e){super(),this.type="Path",this.currentPoint=new Vr,e&&this.setFromPoints(e)}setFromPoints(e){this.moveTo(e[0].x,e[0].y);for(let t=1,n=e.length;t<n;t++)this.lineTo(e[t].x,e[t].y);return this}moveTo(e,t){return this.currentPoint.set(e,t),this}lineTo(e,t){const n=new Jd(this.currentPoint.clone(),new Vr(e,t));return this.curves.push(n),this.currentPoint.set(e,t),this}quadraticCurveTo(e,t,n,i){const a=new Zd(this.currentPoint.clone(),new Vr(e,t),new Vr(n,i));return this.curves.push(a),this.currentPoint.set(n,i),this}bezierCurveTo(e,t,n,i,a,r){const o=new Yd(this.currentPoint.clone(),new Vr(e,t),new Vr(n,i),new Vr(a,r));return this.curves.push(o),this.currentPoint.set(a,r),this}splineThru(e){const t=[this.currentPoint.clone()].concat(e),n=new Qd(t);return this.curves.push(n),this.currentPoint.copy(e[e.length-1]),this}arc(e,t,n,i,a,r){const o=this.currentPoint.x,l=this.currentPoint.y;return this.absarc(e+o,t+l,n,i,a,r),this}absarc(e,t,n,i,a,r){return this.absellipse(e,t,n,n,i,a,r),this}ellipse(e,t,n,i,a,r,o,l){const s=this.currentPoint.x,c=this.currentPoint.y;return this.absellipse(e+s,t+c,n,i,a,r,o,l),this}absellipse(e,t,n,i,a,r,o,l){const s=new Od(e,t,n,i,a,r,o,l);if(this.curves.length>0){const e=s.getPoint(0);e.equals(this.currentPoint)||this.lineTo(e.x,e.y)}this.curves.push(s);const c=s.getPoint(1);return this.currentPoint.copy(c),this}copy(e){return super.copy(e),this.currentPoint.copy(e.currentPoint),this}toJSON(){const e=super.toJSON();return e.currentPoint=this.currentPoint.toArray(),e}fromJSON(e){return super.fromJSON(e),this.currentPoint.fromArray(e.currentPoint),this}}class ih extends nh{constructor(e){super(e),this.uuid=zr(),this.type="Shape",this.holes=[]}getPointsHoles(e){const t=[];for(let n=0,i=this.holes.length;n<i;n++)t[n]=this.holes[n].getPoints(e);return t}extractPoints(e){return{shape:this.getPoints(e),holes:this.getPointsHoles(e)}}copy(e){super.copy(e),this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push(n.clone())}return this}toJSON(){const e=super.toJSON();e.uuid=this.uuid,e.holes=[];for(let t=0,n=this.holes.length;t<n;t++){const n=this.holes[t];e.holes.push(n.toJSON())}return e}fromJSON(e){super.fromJSON(e),this.uuid=e.uuid,this.holes=[];for(let t=0,n=e.holes.length;t<n;t++){const n=e.holes[t];this.holes.push((new nh).fromJSON(n))}return this}}const ah=function(e,t,n=2){const i=t&&t.length,a=i?t[0]*n:e.length;let r=rh(e,0,a,n,!0);const o=[];if(!r||r.next===r.prev)return o;let l,s,c,u,d,h,p;if(i&&(r=function(e,t,n,i){const a=[];let r,o,l,s,c;for(r=0,o=t.length;r<o;r++)l=t[r]*i,s=r<o-1?t[r+1]*i:e.length,c=rh(e,l,s,i,!1),c===c.next&&(c.steiner=!0),a.push(vh(c));for(a.sort(hh),r=0;r<a.length;r++)n=ph(a[r],n);return n}(e,t,r,n)),e.length>80*n){l=c=e[0],s=u=e[1];for(let t=n;t<a;t+=n)d=e[t],h=e[t+1],d<l&&(l=d),h<s&&(s=h),d>c&&(c=d),h>u&&(u=h);p=Math.max(c-l,u-s),p=0!==p?32767/p:0}return lh(r,o,n,l,s,p,0),o};function rh(e,t,n,i,a){let r,o;if(a===function(e,t,n,i){let a=0;for(let r=t,o=n-i;r<n;r+=i)a+=(e[o]-e[r])*(e[r+1]+e[o+1]),o=r;return a}(e,t,n,i)>0)for(r=t;r<n;r+=i)o=Th(r,e[r],e[r+1],o);else for(r=n-i;r>=t;r-=i)o=Th(r,e[r],e[r+1],o);return o&&yh(o,o.next)&&(Ch(o),o=o.next),o}function oh(e,t){if(!e)return e;t||(t=e);let n,i=e;do{if(n=!1,i.steiner||!yh(i,i.next)&&0!==xh(i.prev,i,i.next))i=i.next;else{if(Ch(i),i=t=i.prev,i===i.next)break;n=!0}}while(n||i!==t);return t}function lh(e,t,n,i,a,r,o){if(!e)return;!o&&r&&function(e,t,n,i){let a=e;do{0===a.z&&(a.z=fh(a.x,a.y,t,n,i)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){let t,n,i,a,r,o,l,s,c=1;do{for(n=e,e=null,r=null,o=0;n;){for(o++,i=n,l=0,t=0;t<c&&(l++,i=i.nextZ,i);t++);for(s=c;l>0||s>0&&i;)0!==l&&(0===s||!i||n.z<=i.z)?(a=n,n=n.nextZ,l--):(a=i,i=i.nextZ,s--),r?r.nextZ=a:e=a,a.prevZ=r,r=a;n=i}r.nextZ=null,c*=2}while(o>1)}(a)}(e,i,a,r);let l,s,c=e;for(;e.prev!==e.next;)if(l=e.prev,s=e.next,r?ch(e,i,a,r):sh(e))t.push(l.i/n|0),t.push(e.i/n|0),t.push(s.i/n|0),Ch(e),e=s.next,c=s.next;else if((e=s)===c){o?1===o?lh(e=uh(oh(e),t,n),t,n,i,a,r,2):2===o&&dh(e,t,n,i,a,r):lh(oh(e),t,n,i,a,r,1);break}}function sh(e){const t=e.prev,n=e,i=e.next;if(xh(t,n,i)>=0)return!1;const a=t.x,r=n.x,o=i.x,l=t.y,s=n.y,c=i.y,u=a<r?a<o?a:o:r<o?r:o,d=l<s?l<c?l:c:s<c?s:c,h=a>r?a>o?a:o:r>o?r:o,p=l>s?l>c?l:c:s>c?s:c;let m=i.next;for(;m!==t;){if(m.x>=u&&m.x<=h&&m.y>=d&&m.y<=p&&gh(a,l,r,s,o,c,m.x,m.y)&&xh(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function ch(e,t,n,i){const a=e.prev,r=e,o=e.next;if(xh(a,r,o)>=0)return!1;const l=a.x,s=r.x,c=o.x,u=a.y,d=r.y,h=o.y,p=l<s?l<c?l:c:s<c?s:c,m=u<d?u<h?u:h:d<h?d:h,f=l>s?l>c?l:c:s>c?s:c,v=u>d?u>h?u:h:d>h?d:h,g=fh(p,m,t,n,i),_=fh(f,v,t,n,i);let x=e.prevZ,y=e.nextZ;for(;x&&x.z>=g&&y&&y.z<=_;){if(x.x>=p&&x.x<=f&&x.y>=m&&x.y<=v&&x!==a&&x!==o&&gh(l,u,s,d,c,h,x.x,x.y)&&xh(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,y.x>=p&&y.x<=f&&y.y>=m&&y.y<=v&&y!==a&&y!==o&&gh(l,u,s,d,c,h,y.x,y.y)&&xh(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;x&&x.z>=g;){if(x.x>=p&&x.x<=f&&x.y>=m&&x.y<=v&&x!==a&&x!==o&&gh(l,u,s,d,c,h,x.x,x.y)&&xh(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;y&&y.z<=_;){if(y.x>=p&&y.x<=f&&y.y>=m&&y.y<=v&&y!==a&&y!==o&&gh(l,u,s,d,c,h,y.x,y.y)&&xh(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function uh(e,t,n){let i=e;do{const a=i.prev,r=i.next.next;!yh(a,r)&&Sh(a,i,i.next,r)&&Eh(a,r)&&Eh(r,a)&&(t.push(a.i/n|0),t.push(i.i/n|0),t.push(r.i/n|0),Ch(i),Ch(i.next),i=e=r),i=i.next}while(i!==e);return oh(i)}function dh(e,t,n,i,a,r){let o=e;do{let e=o.next.next;for(;e!==o.prev;){if(o.i!==e.i&&_h(o,e)){let l=wh(o,e);return o=oh(o,o.next),l=oh(l,l.next),lh(o,t,n,i,a,r,0),void lh(l,t,n,i,a,r,0)}e=e.next}o=o.next}while(o!==e)}function hh(e,t){return e.x-t.x}function ph(e,t){const n=function(e,t){let n,i=t,a=-1/0;const r=e.x,o=e.y;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){const e=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=r&&e>a&&(a=e,n=i.x<i.next.x?i:i.next,e===r))return n}i=i.next}while(i!==t);if(!n)return null;const l=n,s=n.x,c=n.y;let u,d=1/0;i=n;do{r>=i.x&&i.x>=s&&r!==i.x&&gh(o<c?r:a,o,s,c,o<c?a:r,o,i.x,i.y)&&(u=Math.abs(o-i.y)/(r-i.x),Eh(i,e)&&(u<d||u===d&&(i.x>n.x||i.x===n.x&&mh(n,i)))&&(n=i,d=u)),i=i.next}while(i!==l);return n}(e,t);if(!n)return t;const i=wh(n,e);return oh(i,i.next),oh(n,n.next)}function mh(e,t){return xh(e.prev,e,t.prev)<0&&xh(t.next,e,e.next)<0}function fh(e,t,n,i,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-n)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*a|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function vh(e){let t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function gh(e,t,n,i,a,r,o,l){return(a-o)*(t-l)>=(e-o)*(r-l)&&(e-o)*(i-l)>=(n-o)*(t-l)&&(n-o)*(r-l)>=(a-o)*(i-l)}function _h(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Sh(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Eh(e,t)&&Eh(t,e)&&function(e,t){let n=e,i=!1;const a=(e.x+t.x)/2,r=(e.y+t.y)/2;do{n.y>r!=n.next.y>r&&n.next.y!==n.y&&a<(n.next.x-n.x)*(r-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==e);return i}(e,t)&&(xh(e.prev,e,t.prev)||xh(e,t.prev,t))||yh(e,t)&&xh(e.prev,e,e.next)>0&&xh(t.prev,t,t.next)>0)}function xh(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function yh(e,t){return e.x===t.x&&e.y===t.y}function Sh(e,t,n,i){const a=Mh(xh(e,t,n)),r=Mh(xh(e,t,i)),o=Mh(xh(n,i,e)),l=Mh(xh(n,i,t));return a!==r&&o!==l||(!(0!==a||!bh(e,n,t))||(!(0!==r||!bh(e,i,t))||(!(0!==o||!bh(n,e,i))||!(0!==l||!bh(n,t,i)))))}function bh(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Mh(e){return e>0?1:e<0?-1:0}function Eh(e,t){return xh(e.prev,e,e.next)<0?xh(e,t,e.next)>=0&&xh(e,e.prev,t)>=0:xh(e,t,e.prev)<0||xh(e,e.next,t)<0}function wh(e,t){const n=new Ah(e.i,e.x,e.y),i=new Ah(t.i,t.x,t.y),a=e.next,r=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,i.next=n,n.prev=i,r.next=i,i.prev=r,i}function Th(e,t,n,i){const a=new Ah(e,t,n);return i?(a.next=i.next,a.prev=i,i.next.prev=a,i.next=a):(a.prev=a,a.next=a),a}function Ch(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Ah(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Nh{static area(e){const t=e.length;let n=0;for(let i=t-1,a=0;a<t;i=a++)n+=e[i].x*e[a].y-e[a].x*e[i].y;return.5*n}static isClockWise(e){return Nh.area(e)<0}static triangulateShape(e,t){const n=[],i=[],a=[];Rh(e),Lh(n,e);let r=e.length;t.forEach(Rh);for(let l=0;l<t.length;l++)i.push(r),r+=t[l].length,Lh(n,t[l]);const o=ah(n,i);for(let l=0;l<o.length;l+=3)a.push(o.slice(l,l+3));return a}}function Rh(e){const t=e.length;t>2&&e[t-1].equals(e[0])&&e.pop()}function Lh(e,t){for(let n=0;n<t.length;n++)e.push(t[n].x),e.push(t[n].y)}class Ph extends Zl{constructor(e=new ih([new Vr(.5,.5),new Vr(-.5,.5),new Vr(-.5,-.5),new Vr(.5,-.5)]),t={}){super(),this.type="ExtrudeGeometry",this.parameters={shapes:e,options:t},e=Array.isArray(e)?e:[e];const n=this,i=[],a=[];for(let o=0,l=e.length;o<l;o++){r(e[o])}function r(e){const r=[],o=void 0!==t.curveSegments?t.curveSegments:12,l=void 0!==t.steps?t.steps:1,s=void 0!==t.depth?t.depth:1;let c=void 0===t.bevelEnabled||t.bevelEnabled,u=void 0!==t.bevelThickness?t.bevelThickness:.2,d=void 0!==t.bevelSize?t.bevelSize:u-.1,h=void 0!==t.bevelOffset?t.bevelOffset:0,p=void 0!==t.bevelSegments?t.bevelSegments:3;const m=t.extrudePath,f=void 0!==t.UVGenerator?t.UVGenerator:qh;let v,g,_,x,y,S=!1;m&&(v=m.getSpacedPoints(l),S=!0,c=!1,g=m.computeFrenetFrames(l,!1),_=new fo,x=new fo,y=new fo),c||(p=0,u=0,d=0,h=0);const b=e.extractPoints(o);let M=b.shape;const E=b.holes;if(!Nh.isClockWise(M)){M=M.reverse();for(let e=0,t=E.length;e<t;e++){const t=E[e];Nh.isClockWise(t)&&(E[e]=t.reverse())}}const w=Nh.triangulateShape(M,E),T=M;for(let t=0,n=E.length;t<n;t++){const e=E[t];M=M.concat(e)}function C(e,t,n){return e.clone().addScaledVector(t,n)}const A=M.length,N=w.length;function R(e,t,n){let i,a,r;const o=e.x-t.x,l=e.y-t.y,s=n.x-e.x,c=n.y-e.y,u=o*o+l*l,d=o*c-l*s;if(Math.abs(d)>Number.EPSILON){const d=Math.sqrt(u),h=Math.sqrt(s*s+c*c),p=t.x-l/d,m=t.y+o/d,f=((n.x-c/h-p)*c-(n.y+s/h-m)*s)/(o*c-l*s);i=p+o*f-e.x,a=m+l*f-e.y;const v=i*i+a*a;if(v<=2)return new Vr(i,a);r=Math.sqrt(v/2)}else{let e=!1;o>Number.EPSILON?s>Number.EPSILON&&(e=!0):o<-Number.EPSILON?s<-Number.EPSILON&&(e=!0):Math.sign(l)===Math.sign(c)&&(e=!0),e?(i=-l,a=o,r=Math.sqrt(u)):(i=o,a=l,r=Math.sqrt(u/2))}return new Vr(i/r,a/r)}const L=[];for(let t=0,n=T.length,i=n-1,a=t+1;t<n;t++,i++,a++)i===n&&(i=0),a===n&&(a=0),L[t]=R(T[t],T[i],T[a]);const P=[];let q,I=L.concat();for(let t=0,n=E.length;t<n;t++){const e=E[t];q=[];for(let t=0,n=e.length,i=n-1,a=t+1;t<n;t++,i++,a++)i===n&&(i=0),a===n&&(a=0),q[t]=R(e[t],e[i],e[a]);P.push(q),I=I.concat(q)}for(let t=0;t<p;t++){const e=t/p,n=u*Math.cos(e*Math.PI/2),i=d*Math.sin(e*Math.PI/2)+h;for(let t=0,a=T.length;t<a;t++){const e=C(T[t],L[t],i);B(e.x,e.y,-n)}for(let t=0,a=E.length;t<a;t++){const e=E[t];q=P[t];for(let t=0,a=e.length;t<a;t++){const a=C(e[t],q[t],i);B(a.x,a.y,-n)}}}const z=d+h;for(let t=0;t<A;t++){const e=c?C(M[t],I[t],z):M[t];S?(x.copy(g.normals[0]).multiplyScalar(e.x),_.copy(g.binormals[0]).multiplyScalar(e.y),y.copy(v[0]).add(x).add(_),B(y.x,y.y,y.z)):B(e.x,e.y,0)}for(let t=1;t<=l;t++)for(let e=0;e<A;e++){const n=c?C(M[e],I[e],z):M[e];S?(x.copy(g.normals[t]).multiplyScalar(n.x),_.copy(g.binormals[t]).multiplyScalar(n.y),y.copy(v[t]).add(x).add(_),B(y.x,y.y,y.z)):B(n.x,n.y,s/l*t)}for(let t=p-1;t>=0;t--){const e=t/p,n=u*Math.cos(e*Math.PI/2),i=d*Math.sin(e*Math.PI/2)+h;for(let t=0,a=T.length;t<a;t++){const e=C(T[t],L[t],i);B(e.x,e.y,s+n)}for(let t=0,a=E.length;t<a;t++){const e=E[t];q=P[t];for(let t=0,a=e.length;t<a;t++){const a=C(e[t],q[t],i);S?B(a.x,a.y+v[l-1].y,v[l-1].x+n):B(a.x,a.y,s+n)}}}function k(e,t){let n=e.length;for(;--n>=0;){const i=n;let a=n-1;a<0&&(a=e.length-1);for(let e=0,n=l+2*p;e<n;e++){const n=A*e,r=A*(e+1);U(t+i+n,t+a+n,t+a+r,t+i+r)}}}function B(e,t,n){r.push(e),r.push(t),r.push(n)}function D(e,t,a){V(e),V(t),V(a);const r=i.length/3,o=f.generateTopUV(n,i,r-3,r-2,r-1);O(o[0]),O(o[1]),O(o[2])}function U(e,t,a,r){V(e),V(t),V(r),V(t),V(a),V(r);const o=i.length/3,l=f.generateSideWallUV(n,i,o-6,o-3,o-2,o-1);O(l[0]),O(l[1]),O(l[3]),O(l[1]),O(l[2]),O(l[3])}function V(e){i.push(r[3*e+0]),i.push(r[3*e+1]),i.push(r[3*e+2])}function O(e){a.push(e.x),a.push(e.y)}!function(){const e=i.length/3;if(c){let e=0,t=A*e;for(let n=0;n<N;n++){const e=w[n];D(e[2]+t,e[1]+t,e[0]+t)}e=l+2*p,t=A*e;for(let n=0;n<N;n++){const e=w[n];D(e[0]+t,e[1]+t,e[2]+t)}}else{for(let e=0;e<N;e++){const t=w[e];D(t[2],t[1],t[0])}for(let e=0;e<N;e++){const t=w[e];D(t[0]+A*l,t[1]+A*l,t[2]+A*l)}}n.addGroup(e,i.length/3-e,0)}(),function(){const e=i.length/3;let t=0;k(T,t),t+=T.length;for(let n=0,i=E.length;n<i;n++){const e=E[n];k(e,t),t+=e.length}n.addGroup(e,i.length/3-e,1)}()}this.setAttribute("position",new Gl(i,3)),this.setAttribute("uv",new Gl(a,2)),this.computeVertexNormals()}copy(e){return super.copy(e),this.parameters=Object.assign({},e.parameters),this}toJSON(){const e=super.toJSON();return function(e,t,n){if(n.shapes=[],Array.isArray(e))for(let i=0,a=e.length;i<a;i++){const t=e[i];n.shapes.push(t.uuid)}else n.shapes.push(e.uuid);n.options=Object.assign({},t),void 0!==t.extrudePath&&(n.options.extrudePath=t.extrudePath.toJSON());return n}(this.parameters.shapes,this.parameters.options,e)}static fromJSON(e,t){const n=[];for(let a=0,r=e.shapes.length;a<r;a++){const i=t[e.shapes[a]];n.push(i)}const i=e.options.extrudePath;return void 0!==i&&(e.options.extrudePath=(new eh[i.type]).fromJSON(i)),new Ph(n,e.options)}}const qh={generateTopUV:function(e,t,n,i,a){const r=t[3*n],o=t[3*n+1],l=t[3*i],s=t[3*i+1],c=t[3*a],u=t[3*a+1];return[new Vr(r,o),new Vr(l,s),new Vr(c,u)]},generateSideWallUV:function(e,t,n,i,a,r){const o=t[3*n],l=t[3*n+1],s=t[3*n+2],c=t[3*i],u=t[3*i+1],d=t[3*i+2],h=t[3*a],p=t[3*a+1],m=t[3*a+2],f=t[3*r],v=t[3*r+1],g=t[3*r+2];return Math.abs(l-u)<Math.abs(o-c)?[new Vr(o,1-s),new Vr(c,1-d),new Vr(h,1-m),new Vr(f,1-g)]:[new Vr(l,1-s),new Vr(u,1-d),new Vr(p,1-m),new Vr(v,1-g)]}};const Ih={enabled:!1,files:{},add:function(e,t){!1!==this.enabled&&(this.files[e]=t)},get:function(e){if(!1!==this.enabled)return this.files[e]},remove:function(e){delete this.files[e]},clear:function(){this.files={}}};class zh{constructor(e,t,n){const i=this;let a,r=!1,o=0,l=0;const s=[];this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n,this.itemStart=function(e){l++,!1===r&&void 0!==i.onStart&&i.onStart(e,o,l),r=!0},this.itemEnd=function(e){o++,void 0!==i.onProgress&&i.onProgress(e,o,l),o===l&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(e){void 0!==i.onError&&i.onError(e)},this.resolveURL=function(e){return a?a(e):e},this.setURLModifier=function(e){return a=e,this},this.addHandler=function(e,t){return s.push(e,t),this},this.removeHandler=function(e){const t=s.indexOf(e);return-1!==t&&s.splice(t,2),this},this.getHandler=function(e){for(let t=0,n=s.length;t<n;t+=2){const n=s[t],i=s[t+1];if(n.global&&(n.lastIndex=0),n.test(e))return i}return null}}}const kh=new zh;class Bh{constructor(e){this.manager=void 0!==e?e:kh,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}load(){}loadAsync(e,t){const n=this;return new Promise((function(i,a){n.load(e,i,t,a)}))}parse(){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}Bh.DEFAULT_MATERIAL_NAME="__DEFAULT";const Dh={};class Uh extends Error{constructor(e,t){super(e),this.response=t}}class Vh extends Bh{constructor(e){super(e)}load(e,t,n,i){void 0===e&&(e=""),void 0!==this.path&&(e=this.path+e),e=this.manager.resolveURL(e);const a=Ih.get(e);if(void 0!==a)return this.manager.itemStart(e),setTimeout((()=>{t&&t(a),this.manager.itemEnd(e)}),0),a;if(void 0!==Dh[e])return void Dh[e].push({onLoad:t,onProgress:n,onError:i});Dh[e]=[],Dh[e].push({onLoad:t,onProgress:n,onError:i});const r=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),o=this.mimeType,l=this.responseType;fetch(r).then((t=>{if(200===t.status||0===t.status){if(t.status,"undefined"==typeof ReadableStream||void 0===t.body||void 0===t.body.getReader)return t;const n=Dh[e],i=t.body.getReader(),a=t.headers.get("X-File-Size")||t.headers.get("Content-Length"),r=a?parseInt(a):0,o=0!==r;let l=0;const s=new ReadableStream({start(e){!function t(){i.read().then((({done:i,value:a})=>{if(i)e.close();else{l+=a.byteLength;const i=new ProgressEvent("progress",{lengthComputable:o,loaded:l,total:r});for(let e=0,t=n.length;e<t;e++){const t=n[e];t.onProgress&&t.onProgress(i)}e.enqueue(a),t()}}),(t=>{e.error(t)}))}()}});return new Response(s)}throw new Uh(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)})).then((e=>{switch(l){case"arraybuffer":return e.arrayBuffer();case"blob":return e.blob();case"document":return e.text().then((e=>(new DOMParser).parseFromString(e,o)));case"json":return e.json();default:if(void 0===o)return e.text();{const t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,i=new TextDecoder(n);return e.arrayBuffer().then((e=>i.decode(e)))}}})).then((t=>{Ih.add(e,t);const n=Dh[e];delete Dh[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onLoad&&i.onLoad(t)}})).catch((t=>{const n=Dh[e];if(void 0===n)throw this.manager.itemError(e),t;delete Dh[e];for(let e=0,i=n.length;e<i;e++){const i=n[e];i.onError&&i.onError(t)}this.manager.itemError(e)})).finally((()=>{this.manager.itemEnd(e)})),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}}class Oh{constructor(){this.type="ShapePath",this.color=new Il,this.subPaths=[],this.currentPath=null}moveTo(e,t){return this.currentPath=new nh,this.subPaths.push(this.currentPath),this.currentPath.moveTo(e,t),this}lineTo(e,t){return this.currentPath.lineTo(e,t),this}quadraticCurveTo(e,t,n,i){return this.currentPath.quadraticCurveTo(e,t,n,i),this}bezierCurveTo(e,t,n,i,a,r){return this.currentPath.bezierCurveTo(e,t,n,i,a,r),this}splineThru(e){return this.currentPath.splineThru(e),this}toShapes(e){function t(e,t){const n=t.length;let i=!1;for(let a=n-1,r=0;r<n;a=r++){let n=t[a],o=t[r],l=o.x-n.x,s=o.y-n.y;if(Math.abs(s)>Number.EPSILON){if(s<0&&(n=t[r],l=-l,o=t[a],s=-s),e.y<n.y||e.y>o.y)continue;if(e.y===n.y){if(e.x===n.x)return!0}else{const t=s*(e.x-n.x)-l*(e.y-n.y);if(0===t)return!0;if(t<0)continue;i=!i}}else{if(e.y!==n.y)continue;if(o.x<=e.x&&e.x<=n.x||n.x<=e.x&&e.x<=o.x)return!0}}return i}const n=Nh.isClockWise,i=this.subPaths;if(0===i.length)return[];let a,r,o;const l=[];if(1===i.length)return r=i[0],o=new ih,o.curves=r.curves,l.push(o),l;let s=!n(i[0].getPoints());s=e?!s:s;const c=[],u=[];let d,h,p=[],m=0;u[m]=void 0,p[m]=[];for(let f=0,v=i.length;f<v;f++)r=i[f],d=r.getPoints(),a=n(d),a=e?!a:a,a?(!s&&u[m]&&m++,u[m]={s:new ih,p:d},u[m].s.curves=r.curves,s&&m++,p[m]=[]):p[m].push({h:r,p:d[0]});if(!u[0])return function(e){const t=[];for(let n=0,i=e.length;n<i;n++){const i=e[n],a=new ih;a.curves=i.curves,t.push(a)}return t}(i);if(u.length>1){let e=!1,n=0;for(let t=0,i=u.length;t<i;t++)c[t]=[];for(let i=0,a=u.length;i<a;i++){const a=p[i];for(let r=0;r<a.length;r++){const o=a[r];let l=!0;for(let a=0;a<u.length;a++)t(o.p,u[a].p)&&(i!==a&&n++,l?(l=!1,c[a].push(o)):e=!0);l&&c[i].push(o)}}n>0&&!1===e&&(p=c)}for(let f=0,v=u.length;f<v;f++){o=u[f].s,l.push(o),h=p[f];for(let e=0,t=h.length;e<t;e++)o.holes.push(h[e].h)}return l}}"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:mi}})),"undefined"!=typeof window&&(window.__THREE__||(window.__THREE__=mi));const Fh=l(t.defineComponent({__name:"LymColumnChart",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=t.ref();let a=new Nd;const r=t.ref(null),o=t.ref(null),l=t.ref([]),s=t.ref([5,8,11,14,17]);return t.watch((()=>s.value),((e,t)=>{s.value.forEach(((e,t)=>{const n=l.value[t],i=e,a=e/2,r=()=>{n.scale.y<i?(n.scale.y+=.1,n.scale.y>i&&(n.scale.y=i)):(n.scale.y-=.1,n.scale.y<i&&(n.scale.y=i)),n.position.y<a?(n.position.y+=.05,n.position.y>a&&(n.position.y=a)):(n.position.y-=.05,n.position.y<a&&(n.position.y=a)),n.scale.y===i&&n.position.y===a||requestAnimationFrame(r)};r()}))})),t.computed((()=>0)),t.onMounted((()=>{!function(){if(i.value){r.value=new As(75,window.innerWidth/window.innerHeight,.1,1e3),r.value.position.z=20,o.value=new Ad,o.value.setSize(window.innerWidth,window.innerHeight),i.value.appendChild(o.value.domElement),function(){const e=1,t=1.5,n=new Dl({color:65280});s.value.forEach(((i,r)=>{const o=new _s(e,i,e),s=new vs(o,n);s.position.set(r*t,i/2-10,0),a.add(s),l.value.push(s)}))}();const e=()=>{requestAnimationFrame(e),o.value.render(a,r.value)};e(),window.addEventListener("resize",(()=>{r.value.aspect=window.innerWidth/window.innerHeight,r.value.updateProjectionMatrix(),o.value.setSize(window.innerWidth,window.innerHeight)}))}}()})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymColumnChart",ref:i,class:"lym-column-chart"},null,512))}}),[["__scopeId","data-v-75973f37"]]),Hh=Object.freeze(Object.defineProperty({__proto__:null,default:Fh},Symbol.toStringTag,{value:"Module"}));class Gh extends Ph{constructor(e,t={}){const n=t.font;if(void 0===n)super();else{const i=n.generateShapes(e,t.size);void 0===t.depth&&t.height,t.depth=void 0!==t.depth?t.depth:void 0!==t.height?t.height:50,void 0===t.bevelThickness&&(t.bevelThickness=10),void 0===t.bevelSize&&(t.bevelSize=8),void 0===t.bevelEnabled&&(t.bevelEnabled=!1),super(i,t)}this.type="TextGeometry"}}class Wh extends Bh{constructor(e){super(e)}load(e,t,n,i){const a=this,r=new Vh(this.manager);r.setPath(this.path),r.setRequestHeader(this.requestHeader),r.setWithCredentials(this.withCredentials),r.load(e,(function(e){const n=a.parse(JSON.parse(e));t&&t(n)}),n,i)}parse(e){return new Xh(e)}}class Xh{constructor(e){this.isFont=!0,this.type="Font",this.data=e}generateShapes(e,t=100){const n=[],i=function(e,t,n){const i=Array.from(e),a=t/n.resolution,r=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*a,o=[];let l=0,s=0;for(let c=0;c<i.length;c++){const e=i[c];if("\n"===e)l=0,s-=r;else{const t=jh(e,a,l,s,n);l+=t.offsetX,o.push(t.path)}}return o}(e,t,this.data);for(let a=0,r=i.length;a<r;a++)n.push(...i[a].toShapes());return n}}function jh(e,t,n,i,a){const r=a.glyphs[e]||a.glyphs["?"];if(!r)return;const o=new Oh;let l,s,c,u,d,h,p,m;if(r.o){const e=r._cachedOutline||(r._cachedOutline=r.o.split(" "));for(let a=0,r=e.length;a<r;){switch(e[a++]){case"m":l=e[a++]*t+n,s=e[a++]*t+i,o.moveTo(l,s);break;case"l":l=e[a++]*t+n,s=e[a++]*t+i,o.lineTo(l,s);break;case"q":c=e[a++]*t+n,u=e[a++]*t+i,d=e[a++]*t+n,h=e[a++]*t+i,o.quadraticCurveTo(d,h,c,u);break;case"b":c=e[a++]*t+n,u=e[a++]*t+i,d=e[a++]*t+n,h=e[a++]*t+i,p=e[a++]*t+n,m=e[a++]*t+i,o.bezierCurveTo(d,h,p,m,c,u)}}}return{offsetX:r.ha*t,path:o}}const $h={glyphs:{0:{x_min:73,x_max:715,ha:792,o:"m 394 -29 q 153 129 242 -29 q 73 479 73 272 q 152 829 73 687 q 394 989 241 989 q 634 829 545 989 q 715 479 715 684 q 635 129 715 270 q 394 -29 546 -29 m 394 89 q 546 211 489 89 q 598 479 598 322 q 548 748 598 640 q 394 871 491 871 q 241 748 298 871 q 190 479 190 637 q 239 211 190 319 q 394 89 296 89 "},1:{x_min:215.671875,x_max:574,ha:792,o:"m 574 0 l 442 0 l 442 697 l 215 697 l 215 796 q 386 833 330 796 q 475 986 447 875 l 574 986 l 574 0 "},2:{x_min:59,x_max:731,ha:792,o:"m 731 0 l 59 0 q 197 314 59 188 q 457 487 199 315 q 598 691 598 580 q 543 819 598 772 q 411 867 488 867 q 272 811 328 867 q 209 630 209 747 l 81 630 q 182 901 81 805 q 408 986 271 986 q 629 909 536 986 q 731 694 731 826 q 613 449 731 541 q 378 316 495 383 q 201 122 235 234 l 731 122 l 731 0 "},3:{x_min:54,x_max:737,ha:792,o:"m 737 284 q 635 55 737 141 q 399 -25 541 -25 q 156 52 248 -25 q 54 308 54 140 l 185 308 q 245 147 185 202 q 395 96 302 96 q 539 140 484 96 q 602 280 602 190 q 510 429 602 390 q 324 454 451 454 l 324 565 q 487 584 441 565 q 565 719 565 617 q 515 835 565 791 q 395 879 466 879 q 255 824 307 879 q 203 661 203 769 l 78 661 q 166 909 78 822 q 387 992 250 992 q 603 921 513 992 q 701 723 701 844 q 669 607 701 656 q 578 524 637 558 q 696 434 655 499 q 737 284 737 369 "},4:{x_min:48,x_max:742.453125,ha:792,o:"m 742 243 l 602 243 l 602 0 l 476 0 l 476 243 l 48 243 l 48 368 l 476 958 l 602 958 l 602 354 l 742 354 l 742 243 m 476 354 l 476 792 l 162 354 l 476 354 "},5:{x_min:54.171875,x_max:738,ha:792,o:"m 738 314 q 626 60 738 153 q 382 -23 526 -23 q 155 47 248 -23 q 54 256 54 125 l 183 256 q 259 132 204 174 q 382 91 314 91 q 533 149 471 91 q 602 314 602 213 q 538 469 602 411 q 386 528 475 528 q 284 506 332 528 q 197 439 237 484 l 81 439 l 159 958 l 684 958 l 684 840 l 254 840 l 214 579 q 306 627 258 612 q 407 643 354 643 q 636 552 540 643 q 738 314 738 457 "},6:{x_min:53,x_max:739,ha:792,o:"m 739 312 q 633 62 739 162 q 400 -31 534 -31 q 162 78 257 -31 q 53 439 53 206 q 178 859 53 712 q 441 986 284 986 q 643 912 559 986 q 732 713 732 833 l 601 713 q 544 830 594 786 q 426 875 494 875 q 268 793 331 875 q 193 517 193 697 q 301 597 240 570 q 427 624 362 624 q 643 540 552 624 q 739 312 739 451 m 603 298 q 540 461 603 400 q 404 516 484 516 q 268 461 323 516 q 207 300 207 401 q 269 137 207 198 q 405 83 325 83 q 541 137 486 83 q 603 298 603 197 "},7:{x_min:58.71875,x_max:730.953125,ha:792,o:"m 730 839 q 469 448 560 641 q 335 0 378 255 l 192 0 q 328 441 235 252 q 593 830 421 630 l 58 830 l 58 958 l 730 958 l 730 839 "},8:{x_min:55,x_max:736,ha:792,o:"m 571 527 q 694 424 652 491 q 736 280 736 358 q 648 71 736 158 q 395 -26 551 -26 q 142 69 238 -26 q 55 279 55 157 q 96 425 55 359 q 220 527 138 491 q 120 615 153 562 q 88 726 88 668 q 171 904 88 827 q 395 986 261 986 q 618 905 529 986 q 702 727 702 830 q 670 616 702 667 q 571 527 638 565 m 394 565 q 519 610 475 565 q 563 717 563 655 q 521 823 563 781 q 392 872 474 872 q 265 824 312 872 q 224 720 224 783 q 265 613 224 656 q 394 565 312 565 m 395 91 q 545 150 488 91 q 597 280 597 204 q 546 408 597 355 q 395 465 492 465 q 244 408 299 465 q 194 280 194 356 q 244 150 194 203 q 395 91 299 91 "},9:{x_min:53,x_max:739,ha:792,o:"m 739 524 q 619 94 739 241 q 362 -32 516 -32 q 150 47 242 -32 q 59 244 59 126 l 191 244 q 246 129 191 176 q 373 82 301 82 q 526 161 466 82 q 597 440 597 255 q 363 334 501 334 q 130 432 216 334 q 53 650 53 521 q 134 880 53 786 q 383 986 226 986 q 659 841 566 986 q 739 524 739 719 m 388 449 q 535 514 480 449 q 585 658 585 573 q 535 805 585 744 q 388 873 480 873 q 242 809 294 873 q 191 658 191 745 q 239 514 191 572 q 388 449 292 449 "},"ο":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 96 88 192 -25 q 0 368 0 201 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 "},S:{x_min:0,x_max:788,ha:890,o:"m 788 291 q 662 54 788 144 q 397 -26 550 -26 q 116 68 226 -26 q 0 337 0 168 l 131 337 q 200 152 131 220 q 384 85 269 85 q 557 129 479 85 q 650 270 650 183 q 490 429 650 379 q 194 513 341 470 q 33 739 33 584 q 142 964 33 881 q 388 1041 242 1041 q 644 957 543 1041 q 756 716 756 867 l 625 716 q 561 874 625 816 q 395 933 497 933 q 243 891 309 933 q 164 759 164 841 q 325 609 164 656 q 625 526 475 568 q 788 291 788 454 "},"¦":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"/":{x_min:183.25,x_max:608.328125,ha:792,o:"m 608 1041 l 266 -129 l 183 -129 l 520 1041 l 608 1041 "},"Τ":{x_min:-.4375,x_max:777.453125,ha:839,o:"m 777 893 l 458 893 l 458 0 l 319 0 l 319 892 l 0 892 l 0 1013 l 777 1013 l 777 893 "},y:{x_min:0,x_max:684.78125,ha:771,o:"m 684 738 l 388 -83 q 311 -216 356 -167 q 173 -279 252 -279 q 97 -266 133 -279 l 97 -149 q 132 -155 109 -151 q 168 -160 155 -160 q 240 -114 213 -160 q 274 -26 248 -98 l 0 738 l 137 737 l 341 139 l 548 737 l 684 738 "},"Π":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 803 1012 l 803 0 "},"ΐ":{x_min:-111,x_max:339,ha:361,o:"m 339 800 l 229 800 l 229 925 l 339 925 l 339 800 m -1 800 l -111 800 l -111 925 l -1 925 l -1 800 m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 m 302 1040 l 113 819 l 30 819 l 165 1040 l 302 1040 "},g:{x_min:0,x_max:686,ha:838,o:"m 686 34 q 586 -213 686 -121 q 331 -306 487 -306 q 131 -252 216 -306 q 31 -84 31 -190 l 155 -84 q 228 -174 166 -138 q 345 -207 284 -207 q 514 -109 454 -207 q 564 89 564 -27 q 461 6 521 36 q 335 -23 401 -23 q 88 100 184 -23 q 0 370 0 215 q 87 634 0 522 q 330 758 183 758 q 457 728 398 758 q 564 644 515 699 l 564 737 l 686 737 l 686 34 m 582 367 q 529 560 582 481 q 358 652 468 652 q 189 561 250 652 q 135 369 135 482 q 189 176 135 255 q 361 85 251 85 q 529 176 468 85 q 582 367 582 255 "},"²":{x_min:0,x_max:442,ha:539,o:"m 442 383 l 0 383 q 91 566 0 492 q 260 668 176 617 q 354 798 354 727 q 315 875 354 845 q 227 905 277 905 q 136 869 173 905 q 99 761 99 833 l 14 761 q 82 922 14 864 q 232 974 141 974 q 379 926 316 974 q 442 797 442 878 q 351 635 442 704 q 183 539 321 611 q 92 455 92 491 l 442 455 l 442 383 "},"–":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},"Κ":{x_min:0,x_max:819.5625,ha:893,o:"m 819 0 l 650 0 l 294 509 l 139 356 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},"ƒ":{x_min:-46.265625,x_max:392,ha:513,o:"m 392 651 l 259 651 l 79 -279 l -46 -278 l 134 651 l 14 651 l 14 751 l 135 751 q 151 948 135 900 q 304 1041 185 1041 q 334 1040 319 1041 q 392 1034 348 1039 l 392 922 q 337 931 360 931 q 271 883 287 931 q 260 793 260 853 l 260 751 l 392 751 l 392 651 "},e:{x_min:0,x_max:714,ha:813,o:"m 714 326 l 140 326 q 200 157 140 227 q 359 87 260 87 q 488 130 431 87 q 561 245 545 174 l 697 245 q 577 48 670 123 q 358 -26 484 -26 q 97 85 195 -26 q 0 363 0 197 q 94 642 0 529 q 358 765 195 765 q 626 627 529 765 q 714 326 714 503 m 576 429 q 507 583 564 522 q 355 650 445 650 q 206 583 266 650 q 140 429 152 522 l 576 429 "},"ό":{x_min:0,x_max:712,ha:815,o:"m 356 -25 q 94 91 194 -25 q 0 368 0 202 q 92 642 0 533 q 356 761 192 761 q 617 644 517 761 q 712 368 712 533 q 619 91 712 201 q 356 -25 520 -25 m 356 85 q 527 175 465 85 q 583 369 583 255 q 528 562 583 484 q 356 651 466 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 356 85 250 85 m 576 1040 l 387 819 l 303 819 l 438 1040 l 576 1040 "},J:{x_min:0,x_max:588,ha:699,o:"m 588 279 q 287 -26 588 -26 q 58 73 126 -26 q 0 327 0 158 l 133 327 q 160 172 133 227 q 288 96 198 96 q 426 171 391 96 q 449 336 449 219 l 449 1013 l 588 1013 l 588 279 "},"»":{x_min:-1,x_max:503,ha:601,o:"m 503 302 l 280 136 l 281 256 l 429 373 l 281 486 l 280 608 l 503 440 l 503 302 m 221 302 l 0 136 l 0 255 l 145 372 l 0 486 l -1 608 l 221 440 l 221 302 "},"©":{x_min:-3,x_max:1008,ha:1106,o:"m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 741 394 q 661 246 731 302 q 496 190 591 190 q 294 285 369 190 q 228 497 228 370 q 295 714 228 625 q 499 813 370 813 q 656 762 588 813 q 733 625 724 711 l 634 625 q 589 704 629 673 q 498 735 550 735 q 377 666 421 735 q 334 504 334 597 q 374 340 334 408 q 490 272 415 272 q 589 304 549 272 q 638 394 628 337 l 741 394 "},"ώ":{x_min:0,x_max:922,ha:1030,o:"m 687 1040 l 498 819 l 415 819 l 549 1040 l 687 1040 m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 338 0 202 q 45 551 0 444 q 161 737 84 643 l 302 737 q 175 552 219 647 q 124 336 124 446 q 155 179 124 248 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 341 797 257 q 745 555 797 450 q 619 737 705 637 l 760 737 q 874 551 835 640 q 922 339 922 444 "},"^":{x_min:193.0625,x_max:598.609375,ha:792,o:"m 598 772 l 515 772 l 395 931 l 277 772 l 193 772 l 326 1013 l 462 1013 l 598 772 "},"«":{x_min:0,x_max:507.203125,ha:604,o:"m 506 136 l 284 302 l 284 440 l 506 608 l 507 485 l 360 371 l 506 255 l 506 136 m 222 136 l 0 302 l 0 440 l 222 608 l 221 486 l 73 373 l 222 256 l 222 136 "},D:{x_min:0,x_max:828,ha:935,o:"m 389 1013 q 714 867 593 1013 q 828 521 828 729 q 712 161 828 309 q 382 0 587 0 l 0 0 l 0 1013 l 389 1013 m 376 124 q 607 247 523 124 q 681 510 681 355 q 607 771 681 662 q 376 896 522 896 l 139 896 l 139 124 l 376 124 "},"∙":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"ÿ":{x_min:0,x_max:47,ha:125,o:"m 47 3 q 37 -7 47 -7 q 28 0 30 -7 q 39 -4 32 -4 q 45 3 45 -1 l 37 0 q 28 9 28 0 q 39 19 28 19 l 47 16 l 47 19 l 47 3 m 37 1 q 44 8 44 1 q 37 16 44 16 q 30 8 30 16 q 37 1 30 1 m 26 1 l 23 22 l 14 0 l 3 22 l 3 3 l 0 25 l 13 1 l 22 25 l 26 1 "},w:{x_min:0,x_max:1009.71875,ha:1100,o:"m 1009 738 l 783 0 l 658 0 l 501 567 l 345 0 l 222 0 l 0 738 l 130 738 l 284 174 l 432 737 l 576 738 l 721 173 l 881 737 l 1009 738 "},$:{x_min:0,x_max:700,ha:793,o:"m 664 717 l 542 717 q 490 825 531 785 q 381 872 450 865 l 381 551 q 620 446 540 522 q 700 241 700 370 q 618 45 700 116 q 381 -25 536 -25 l 381 -152 l 307 -152 l 307 -25 q 81 62 162 -25 q 0 297 0 149 l 124 297 q 169 146 124 204 q 307 81 215 89 l 307 441 q 80 536 148 469 q 13 725 13 603 q 96 910 13 839 q 307 982 180 982 l 307 1077 l 381 1077 l 381 982 q 574 917 494 982 q 664 717 664 845 m 307 565 l 307 872 q 187 831 233 872 q 142 724 142 791 q 180 618 142 656 q 307 565 218 580 m 381 76 q 562 237 562 96 q 517 361 562 313 q 381 423 472 409 l 381 76 "},"\\":{x_min:-.015625,x_max:425.0625,ha:522,o:"m 425 -129 l 337 -129 l 0 1041 l 83 1041 l 425 -129 "},"µ":{x_min:0,x_max:697.21875,ha:747,o:"m 697 -4 q 629 -14 658 -14 q 498 97 513 -14 q 422 9 470 41 q 313 -23 374 -23 q 207 4 258 -23 q 119 81 156 32 l 119 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 173 124 246 q 308 83 216 83 q 452 178 402 83 q 493 359 493 255 l 493 738 l 617 738 l 617 214 q 623 136 617 160 q 673 92 637 92 q 697 96 684 92 l 697 -4 "},"Ι":{x_min:42,x_max:181,ha:297,o:"m 181 0 l 42 0 l 42 1013 l 181 1013 l 181 0 "},"Ύ":{x_min:0,x_max:1144.5,ha:1214,o:"m 1144 1012 l 807 416 l 807 0 l 667 0 l 667 416 l 325 1012 l 465 1012 l 736 533 l 1004 1012 l 1144 1012 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"’":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"Ν":{x_min:0,x_max:801,ha:915,o:"m 801 0 l 651 0 l 131 822 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 191 l 670 1013 l 801 1013 l 801 0 "},"-":{x_min:8.71875,x_max:350.390625,ha:478,o:"m 350 317 l 8 317 l 8 428 l 350 428 l 350 317 "},Q:{x_min:0,x_max:968,ha:1072,o:"m 954 5 l 887 -79 l 744 35 q 622 -11 687 2 q 483 -26 556 -26 q 127 130 262 -26 q 0 504 0 279 q 127 880 0 728 q 484 1041 262 1041 q 841 884 708 1041 q 968 507 968 735 q 933 293 968 398 q 832 104 899 188 l 954 5 m 723 191 q 802 330 777 248 q 828 499 828 412 q 744 790 828 673 q 483 922 650 922 q 228 791 322 922 q 142 505 142 673 q 227 221 142 337 q 487 91 323 91 q 632 123 566 91 l 520 215 l 587 301 l 723 191 "},"ς":{x_min:1,x_max:676.28125,ha:740,o:"m 676 460 l 551 460 q 498 595 542 546 q 365 651 448 651 q 199 578 263 651 q 136 401 136 505 q 266 178 136 241 q 508 106 387 142 q 640 -50 640 62 q 625 -158 640 -105 q 583 -278 611 -211 l 465 -278 q 498 -182 490 -211 q 515 -80 515 -126 q 381 12 515 -15 q 134 91 197 51 q 1 388 1 179 q 100 651 1 542 q 354 761 199 761 q 587 680 498 761 q 676 460 676 599 "},M:{x_min:0,x_max:954,ha:1067,o:"m 954 0 l 819 0 l 819 869 l 537 0 l 405 0 l 128 866 l 128 0 l 0 0 l 0 1013 l 200 1013 l 472 160 l 757 1013 l 954 1013 l 954 0 "},"Ψ":{x_min:0,x_max:1006,ha:1094,o:"m 1006 678 q 914 319 1006 429 q 571 200 814 200 l 571 0 l 433 0 l 433 200 q 92 319 194 200 q 0 678 0 429 l 0 1013 l 139 1013 l 139 679 q 191 417 139 492 q 433 326 255 326 l 433 1013 l 571 1013 l 571 326 l 580 326 q 813 423 747 326 q 868 679 868 502 l 868 1013 l 1006 1013 l 1006 678 "},C:{x_min:0,x_max:886,ha:944,o:"m 886 379 q 760 87 886 201 q 455 -26 634 -26 q 112 136 236 -26 q 0 509 0 283 q 118 882 0 737 q 469 1041 245 1041 q 748 955 630 1041 q 879 708 879 859 l 745 708 q 649 862 724 805 q 473 920 573 920 q 219 791 312 920 q 136 509 136 675 q 217 229 136 344 q 470 99 311 99 q 672 179 591 99 q 753 379 753 259 l 886 379 "},"!":{x_min:0,x_max:138,ha:236,o:"m 138 684 q 116 409 138 629 q 105 244 105 299 l 33 244 q 16 465 33 313 q 0 684 0 616 l 0 1013 l 138 1013 l 138 684 m 138 0 l 0 0 l 0 151 l 138 151 l 138 0 "},"{":{x_min:0,x_max:480.5625,ha:578,o:"m 480 -286 q 237 -213 303 -286 q 187 -45 187 -159 q 194 48 187 -15 q 201 141 201 112 q 164 264 201 225 q 0 314 118 314 l 0 417 q 164 471 119 417 q 201 605 201 514 q 199 665 201 644 q 193 772 193 769 q 241 941 193 887 q 480 1015 308 1015 l 480 915 q 336 866 375 915 q 306 742 306 828 q 310 662 306 717 q 314 577 314 606 q 288 452 314 500 q 176 365 256 391 q 289 275 257 337 q 314 143 314 226 q 313 84 314 107 q 310 -11 310 -5 q 339 -131 310 -94 q 480 -182 377 -182 l 480 -286 "},X:{x_min:-.015625,x_max:854.15625,ha:940,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 428 637 l 675 1013 l 836 1013 l 504 520 l 854 0 "},"#":{x_min:0,x_max:963.890625,ha:1061,o:"m 963 690 l 927 590 l 719 590 l 655 410 l 876 410 l 840 310 l 618 310 l 508 -3 l 393 -2 l 506 309 l 329 310 l 215 -2 l 102 -3 l 212 310 l 0 310 l 36 410 l 248 409 l 312 590 l 86 590 l 120 690 l 347 690 l 459 1006 l 573 1006 l 462 690 l 640 690 l 751 1006 l 865 1006 l 754 690 l 963 690 m 606 590 l 425 590 l 362 410 l 543 410 l 606 590 "},"ι":{x_min:42,x_max:284,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 738 l 167 738 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 103 239 101 q 284 112 257 104 l 284 3 "},"Ά":{x_min:0,x_max:906.953125,ha:982,o:"m 283 1040 l 88 799 l 5 799 l 145 1040 l 283 1040 m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1012 l 529 1012 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},")":{x_min:0,x_max:318,ha:415,o:"m 318 365 q 257 25 318 191 q 87 -290 197 -141 l 0 -290 q 140 21 93 -128 q 193 360 193 189 q 141 704 193 537 q 0 1024 97 850 l 87 1024 q 257 706 197 871 q 318 365 318 542 "},"ε":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 314 0 265 q 128 390 67 353 q 56 460 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 "},"Δ":{x_min:0,x_max:952.78125,ha:1028,o:"m 952 0 l 0 0 l 400 1013 l 551 1013 l 952 0 m 762 124 l 476 867 l 187 124 l 762 124 "},"}":{x_min:0,x_max:481,ha:578,o:"m 481 314 q 318 262 364 314 q 282 136 282 222 q 284 65 282 97 q 293 -58 293 -48 q 241 -217 293 -166 q 0 -286 174 -286 l 0 -182 q 143 -130 105 -182 q 171 -2 171 -93 q 168 81 171 22 q 165 144 165 140 q 188 275 165 229 q 306 365 220 339 q 191 455 224 391 q 165 588 165 505 q 168 681 165 624 q 171 742 171 737 q 141 865 171 827 q 0 915 102 915 l 0 1015 q 243 942 176 1015 q 293 773 293 888 q 287 675 293 741 q 282 590 282 608 q 318 466 282 505 q 481 417 364 417 l 481 314 "},"‰":{x_min:-3,x_max:1672,ha:1821,o:"m 846 0 q 664 76 732 0 q 603 244 603 145 q 662 412 603 344 q 846 489 729 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 846 0 962 0 m 845 103 q 945 143 910 103 q 981 243 981 184 q 947 340 981 301 q 845 385 910 385 q 745 342 782 385 q 709 243 709 300 q 742 147 709 186 q 845 103 781 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 m 1428 0 q 1246 76 1314 0 q 1185 244 1185 145 q 1244 412 1185 344 q 1428 489 1311 489 q 1610 412 1542 489 q 1672 244 1672 343 q 1612 76 1672 144 q 1428 0 1545 0 m 1427 103 q 1528 143 1492 103 q 1564 243 1564 184 q 1530 340 1564 301 q 1427 385 1492 385 q 1327 342 1364 385 q 1291 243 1291 300 q 1324 147 1291 186 q 1427 103 1363 103 "},a:{x_min:0,x_max:698.609375,ha:794,o:"m 698 0 q 661 -12 679 -7 q 615 -17 643 -17 q 536 12 564 -17 q 500 96 508 41 q 384 6 456 37 q 236 -25 312 -25 q 65 31 130 -25 q 0 194 0 88 q 118 390 0 334 q 328 435 180 420 q 488 483 476 451 q 495 523 495 504 q 442 619 495 584 q 325 654 389 654 q 209 617 257 654 q 152 513 161 580 l 33 513 q 123 705 33 633 q 332 772 207 772 q 528 712 448 772 q 617 531 617 645 l 617 163 q 624 108 617 126 q 664 90 632 90 l 698 94 l 698 0 m 491 262 l 491 372 q 272 329 350 347 q 128 201 128 294 q 166 113 128 144 q 264 83 205 83 q 414 130 346 83 q 491 262 491 183 "},"—":{x_min:0,x_max:941.671875,ha:1039,o:"m 941 334 l 0 334 l 0 410 l 941 410 l 941 334 "},"=":{x_min:8.71875,x_max:780.953125,ha:792,o:"m 780 510 l 8 510 l 8 606 l 780 606 l 780 510 m 780 235 l 8 235 l 8 332 l 780 332 l 780 235 "},N:{x_min:0,x_max:801,ha:914,o:"m 801 0 l 651 0 l 131 823 l 131 0 l 0 0 l 0 1013 l 151 1013 l 670 193 l 670 1013 l 801 1013 l 801 0 "},"ρ":{x_min:0,x_max:712,ha:797,o:"m 712 369 q 620 94 712 207 q 362 -26 521 -26 q 230 2 292 -26 q 119 83 167 30 l 119 -278 l 0 -278 l 0 362 q 91 643 0 531 q 355 764 190 764 q 617 647 517 764 q 712 369 712 536 m 583 366 q 530 559 583 480 q 359 651 469 651 q 190 562 252 651 q 135 370 135 483 q 189 176 135 257 q 359 85 250 85 q 528 175 466 85 q 583 366 583 254 "},"¯":{x_min:0,x_max:941.671875,ha:938,o:"m 941 1033 l 0 1033 l 0 1109 l 941 1109 l 941 1033 "},Z:{x_min:0,x_max:779,ha:849,o:"m 779 0 l 0 0 l 0 113 l 621 896 l 40 896 l 40 1013 l 779 1013 l 778 887 l 171 124 l 779 124 l 779 0 "},u:{x_min:0,x_max:617,ha:729,o:"m 617 0 l 499 0 l 499 110 q 391 10 460 45 q 246 -25 322 -25 q 61 58 127 -25 q 0 258 0 136 l 0 738 l 125 738 l 125 284 q 156 148 125 202 q 273 82 197 82 q 433 165 369 82 q 493 340 493 243 l 493 738 l 617 738 l 617 0 "},k:{x_min:0,x_max:612.484375,ha:697,o:"m 612 738 l 338 465 l 608 0 l 469 0 l 251 382 l 121 251 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 402 l 456 738 l 612 738 "},"Η":{x_min:0,x_max:803,ha:917,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"Α":{x_min:0,x_max:906.953125,ha:985,o:"m 906 0 l 756 0 l 650 303 l 251 303 l 143 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 609 421 l 452 866 l 293 421 l 609 421 "},s:{x_min:0,x_max:604,ha:697,o:"m 604 217 q 501 36 604 104 q 292 -23 411 -23 q 86 43 166 -23 q 0 238 0 114 l 121 237 q 175 122 121 164 q 300 85 223 85 q 415 112 363 85 q 479 207 479 147 q 361 309 479 276 q 140 372 141 370 q 21 544 21 426 q 111 708 21 647 q 298 761 190 761 q 492 705 413 761 q 583 531 583 643 l 462 531 q 412 625 462 594 q 298 657 363 657 q 199 636 242 657 q 143 558 143 608 q 262 454 143 486 q 484 394 479 397 q 604 217 604 341 "},B:{x_min:0,x_max:778,ha:876,o:"m 580 546 q 724 469 670 535 q 778 311 778 403 q 673 83 778 171 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 892 q 691 633 732 693 q 580 546 650 572 m 393 899 l 139 899 l 139 588 l 379 588 q 521 624 462 588 q 592 744 592 667 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 303 635 219 q 559 436 635 389 q 402 477 494 477 l 139 477 l 139 124 l 419 124 "},"…":{x_min:0,x_max:614,ha:708,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 m 378 0 l 236 0 l 236 151 l 378 151 l 378 0 m 614 0 l 472 0 l 472 151 l 614 151 l 614 0 "},"?":{x_min:0,x_max:607,ha:704,o:"m 607 777 q 543 599 607 674 q 422 474 482 537 q 357 272 357 391 l 236 272 q 297 487 236 395 q 411 619 298 490 q 474 762 474 691 q 422 885 474 838 q 301 933 371 933 q 179 880 228 933 q 124 706 124 819 l 0 706 q 94 963 0 872 q 302 1044 177 1044 q 511 973 423 1044 q 607 777 607 895 m 370 0 l 230 0 l 230 151 l 370 151 l 370 0 "},H:{x_min:0,x_max:803,ha:915,o:"m 803 0 l 667 0 l 667 475 l 140 475 l 140 0 l 0 0 l 0 1013 l 140 1013 l 140 599 l 667 599 l 667 1013 l 803 1013 l 803 0 "},"ν":{x_min:0,x_max:675,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 738 l 340 147 l 541 738 l 675 738 "},c:{x_min:1,x_max:701.390625,ha:775,o:"m 701 264 q 584 53 681 133 q 353 -26 487 -26 q 91 91 188 -26 q 1 370 1 201 q 92 645 1 537 q 353 761 190 761 q 572 688 479 761 q 690 493 666 615 l 556 493 q 487 606 545 562 q 356 650 428 650 q 186 563 246 650 q 134 372 134 487 q 188 179 134 258 q 359 88 250 88 q 492 136 437 88 q 566 264 548 185 l 701 264 "},"¶":{x_min:0,x_max:566.671875,ha:678,o:"m 21 892 l 52 892 l 98 761 l 145 892 l 176 892 l 178 741 l 157 741 l 157 867 l 108 741 l 88 741 l 40 871 l 40 741 l 21 741 l 21 892 m 308 854 l 308 731 q 252 691 308 691 q 227 691 240 691 q 207 696 213 695 l 207 712 l 253 706 q 288 733 288 706 l 288 763 q 244 741 279 741 q 193 797 193 741 q 261 860 193 860 q 287 860 273 860 q 308 854 302 855 m 288 842 l 263 843 q 213 796 213 843 q 248 756 213 756 q 288 796 288 756 l 288 842 m 566 988 l 502 988 l 502 -1 l 439 -1 l 439 988 l 317 988 l 317 -1 l 252 -1 l 252 602 q 81 653 155 602 q 0 805 0 711 q 101 989 0 918 q 309 1053 194 1053 l 566 1053 l 566 988 "},"β":{x_min:0,x_max:660,ha:745,o:"m 471 550 q 610 450 561 522 q 660 280 660 378 q 578 64 660 151 q 367 -22 497 -22 q 239 5 299 -22 q 126 82 178 32 l 126 -278 l 0 -278 l 0 593 q 54 903 0 801 q 318 1042 127 1042 q 519 964 436 1042 q 603 771 603 887 q 567 644 603 701 q 471 550 532 586 m 337 79 q 476 138 418 79 q 535 279 535 198 q 427 437 535 386 q 226 477 344 477 l 226 583 q 398 620 329 583 q 486 762 486 668 q 435 884 486 833 q 312 935 384 935 q 169 861 219 935 q 126 698 126 797 l 126 362 q 170 169 126 242 q 337 79 224 79 "},"Μ":{x_min:0,x_max:954,ha:1068,o:"m 954 0 l 819 0 l 819 868 l 537 0 l 405 0 l 128 865 l 128 0 l 0 0 l 0 1013 l 199 1013 l 472 158 l 758 1013 l 954 1013 l 954 0 "},"Ό":{x_min:.109375,x_max:1120,ha:1217,o:"m 1120 505 q 994 132 1120 282 q 642 -29 861 -29 q 290 130 422 -29 q 167 505 167 280 q 294 883 167 730 q 650 1046 430 1046 q 999 882 868 1046 q 1120 505 1120 730 m 977 504 q 896 784 977 669 q 644 915 804 915 q 391 785 484 915 q 307 504 307 669 q 391 224 307 339 q 644 95 486 95 q 894 224 803 95 q 977 504 977 339 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ή":{x_min:0,x_max:1158,ha:1275,o:"m 1158 0 l 1022 0 l 1022 475 l 496 475 l 496 0 l 356 0 l 356 1012 l 496 1012 l 496 599 l 1022 599 l 1022 1012 l 1158 1012 l 1158 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"•":{x_min:0,x_max:663.890625,ha:775,o:"m 663 529 q 566 293 663 391 q 331 196 469 196 q 97 294 194 196 q 0 529 0 393 q 96 763 0 665 q 331 861 193 861 q 566 763 469 861 q 663 529 663 665 "},"¥":{x_min:.1875,x_max:819.546875,ha:886,o:"m 563 561 l 697 561 l 696 487 l 520 487 l 482 416 l 482 380 l 697 380 l 695 308 l 482 308 l 482 0 l 342 0 l 342 308 l 125 308 l 125 380 l 342 380 l 342 417 l 303 487 l 125 487 l 125 561 l 258 561 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 l 563 561 "},"(":{x_min:0,x_max:318.0625,ha:415,o:"m 318 -290 l 230 -290 q 61 23 122 -142 q 0 365 0 190 q 62 712 0 540 q 230 1024 119 869 l 318 1024 q 175 705 219 853 q 125 360 125 542 q 176 22 125 187 q 318 -290 223 -127 "},U:{x_min:0,x_max:796,ha:904,o:"m 796 393 q 681 93 796 212 q 386 -25 566 -25 q 101 95 208 -25 q 0 393 0 211 l 0 1013 l 138 1013 l 138 391 q 204 191 138 270 q 394 107 276 107 q 586 191 512 107 q 656 391 656 270 l 656 1013 l 796 1013 l 796 393 "},"γ":{x_min:.5,x_max:744.953125,ha:822,o:"m 744 737 l 463 54 l 463 -278 l 338 -278 l 338 54 l 154 495 q 104 597 124 569 q 13 651 67 651 l 0 651 l 0 751 l 39 753 q 168 711 121 753 q 242 594 207 676 l 403 208 l 617 737 l 744 737 "},"α":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 728 407 760 q 563 637 524 696 l 563 739 l 685 739 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 96 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 "},F:{x_min:0,x_max:683.328125,ha:717,o:"m 683 888 l 140 888 l 140 583 l 613 583 l 613 458 l 140 458 l 140 0 l 0 0 l 0 1013 l 683 1013 l 683 888 "},"":{x_min:0,x_max:705.5625,ha:803,o:"m 705 334 l 0 334 l 0 410 l 705 410 l 705 334 "},":":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"Χ":{x_min:0,x_max:854.171875,ha:935,o:"m 854 0 l 683 0 l 423 409 l 166 0 l 0 0 l 347 519 l 18 1013 l 186 1013 l 427 637 l 675 1013 l 836 1013 l 504 521 l 854 0 "},"*":{x_min:116,x_max:674,ha:792,o:"m 674 768 l 475 713 l 610 544 l 517 477 l 394 652 l 272 478 l 178 544 l 314 713 l 116 766 l 153 876 l 341 812 l 342 1013 l 446 1013 l 446 811 l 635 874 l 674 768 "},"†":{x_min:0,x_max:777,ha:835,o:"m 458 804 l 777 804 l 777 683 l 458 683 l 458 0 l 319 0 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 "},"°":{x_min:0,x_max:347,ha:444,o:"m 173 802 q 43 856 91 802 q 0 977 0 905 q 45 1101 0 1049 q 173 1153 90 1153 q 303 1098 255 1153 q 347 977 347 1049 q 303 856 347 905 q 173 802 256 802 m 173 884 q 238 910 214 884 q 262 973 262 937 q 239 1038 262 1012 q 173 1064 217 1064 q 108 1037 132 1064 q 85 973 85 1010 q 108 910 85 937 q 173 884 132 884 "},V:{x_min:0,x_max:862.71875,ha:940,o:"m 862 1013 l 505 0 l 361 0 l 0 1013 l 143 1013 l 434 165 l 718 1012 l 862 1013 "},"Ξ":{x_min:0,x_max:734.71875,ha:763,o:"m 723 889 l 9 889 l 9 1013 l 723 1013 l 723 889 m 673 463 l 61 463 l 61 589 l 673 589 l 673 463 m 734 0 l 0 0 l 0 124 l 734 124 l 734 0 "}," ":{x_min:0,x_max:0,ha:853},"Ϋ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 588 1046 l 460 1046 l 460 1189 l 588 1189 l 588 1046 m 360 1046 l 232 1046 l 232 1189 l 360 1189 l 360 1046 m 819 1012 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1012 l 140 1012 l 411 533 l 679 1012 l 819 1012 "},"”":{x_min:0,x_max:347,ha:454,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 m 347 851 q 310 737 347 784 q 208 669 273 690 l 208 734 q 267 787 250 741 q 280 873 280 821 l 208 873 l 208 1013 l 347 1013 l 347 851 "},"@":{x_min:0,x_max:1260,ha:1357,o:"m 1098 -45 q 877 -160 1001 -117 q 633 -203 752 -203 q 155 -29 327 -203 q 0 360 0 127 q 176 802 0 616 q 687 1008 372 1008 q 1123 854 969 1008 q 1260 517 1260 718 q 1155 216 1260 341 q 868 82 1044 82 q 772 106 801 82 q 737 202 737 135 q 647 113 700 144 q 527 82 594 82 q 367 147 420 82 q 314 312 314 212 q 401 565 314 452 q 639 690 498 690 q 810 588 760 690 l 849 668 l 938 668 q 877 441 900 532 q 833 226 833 268 q 853 182 833 198 q 902 167 873 167 q 1088 272 1012 167 q 1159 512 1159 372 q 1051 793 1159 681 q 687 925 925 925 q 248 747 415 925 q 97 361 97 586 q 226 26 97 159 q 627 -122 370 -122 q 856 -87 737 -122 q 1061 8 976 -53 l 1098 -45 m 786 488 q 738 580 777 545 q 643 615 700 615 q 483 517 548 615 q 425 322 425 430 q 457 203 425 250 q 552 156 490 156 q 722 273 665 156 q 786 488 738 309 "},"Ί":{x_min:0,x_max:499,ha:613,o:"m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 m 499 0 l 360 0 l 360 1012 l 499 1012 l 499 0 "},i:{x_min:14,x_max:136,ha:275,o:"m 136 873 l 14 873 l 14 1013 l 136 1013 l 136 873 m 136 0 l 14 0 l 14 737 l 136 737 l 136 0 "},"Β":{x_min:0,x_max:778,ha:877,o:"m 580 545 q 724 468 671 534 q 778 310 778 402 q 673 83 778 170 q 432 0 575 0 l 0 0 l 0 1013 l 411 1013 q 629 957 541 1013 q 732 768 732 891 q 691 632 732 692 q 580 545 650 571 m 393 899 l 139 899 l 139 587 l 379 587 q 521 623 462 587 q 592 744 592 666 q 531 859 592 819 q 393 899 471 899 m 419 124 q 566 169 504 124 q 635 302 635 219 q 559 435 635 388 q 402 476 494 476 l 139 476 l 139 124 l 419 124 "},"υ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 94 617 199 q 308 -24 455 -24 q 76 94 161 -24 q 0 352 0 199 l 0 739 l 126 739 l 126 355 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 355 492 257 l 492 739 l 617 739 l 617 352 "},"]":{x_min:0,x_max:275,ha:372,o:"m 275 -281 l 0 -281 l 0 -187 l 151 -187 l 151 920 l 0 920 l 0 1013 l 275 1013 l 275 -281 "},m:{x_min:0,x_max:1019,ha:1128,o:"m 1019 0 l 897 0 l 897 454 q 860 591 897 536 q 739 660 816 660 q 613 586 659 660 q 573 436 573 522 l 573 0 l 447 0 l 447 455 q 412 591 447 535 q 294 657 372 657 q 165 586 213 657 q 122 437 122 521 l 122 0 l 0 0 l 0 738 l 117 738 l 117 640 q 202 730 150 697 q 316 763 254 763 q 437 730 381 763 q 525 642 494 697 q 621 731 559 700 q 753 763 682 763 q 943 694 867 763 q 1019 512 1019 625 l 1019 0 "},"χ":{x_min:8.328125,x_max:780.5625,ha:815,o:"m 780 -278 q 715 -294 747 -294 q 616 -257 663 -294 q 548 -175 576 -227 l 379 133 l 143 -277 l 9 -277 l 313 254 l 163 522 q 127 586 131 580 q 36 640 91 640 q 8 637 27 640 l 8 752 l 52 757 q 162 719 113 757 q 236 627 200 690 l 383 372 l 594 737 l 726 737 l 448 250 l 625 -69 q 670 -153 647 -110 q 743 -188 695 -188 q 780 -184 759 -188 l 780 -278 "},"ί":{x_min:42,x_max:326.71875,ha:361,o:"m 284 3 q 233 -10 258 -5 q 182 -15 207 -15 q 85 26 119 -15 q 42 200 42 79 l 42 737 l 167 737 l 168 215 q 172 141 168 157 q 226 101 183 101 q 248 102 239 101 q 284 112 257 104 l 284 3 m 326 1040 l 137 819 l 54 819 l 189 1040 l 326 1040 "},"Ζ":{x_min:0,x_max:779.171875,ha:850,o:"m 779 0 l 0 0 l 0 113 l 620 896 l 40 896 l 40 1013 l 779 1013 l 779 887 l 170 124 l 779 124 l 779 0 "},R:{x_min:0,x_max:781.953125,ha:907,o:"m 781 0 l 623 0 q 587 242 590 52 q 407 433 585 433 l 138 433 l 138 0 l 0 0 l 0 1013 l 396 1013 q 636 946 539 1013 q 749 731 749 868 q 711 597 749 659 q 608 502 674 534 q 718 370 696 474 q 729 207 722 352 q 781 26 736 62 l 781 0 m 373 551 q 533 594 465 551 q 614 731 614 645 q 532 859 614 815 q 373 896 465 896 l 138 896 l 138 551 l 373 551 "},o:{x_min:0,x_max:713,ha:821,o:"m 357 -25 q 94 91 194 -25 q 0 368 0 202 q 93 642 0 533 q 357 761 193 761 q 618 644 518 761 q 713 368 713 533 q 619 91 713 201 q 357 -25 521 -25 m 357 85 q 528 175 465 85 q 584 369 584 255 q 529 562 584 484 q 357 651 467 651 q 189 560 250 651 q 135 369 135 481 q 187 177 135 257 q 357 85 250 85 "},K:{x_min:0,x_max:819.46875,ha:906,o:"m 819 0 l 649 0 l 294 509 l 139 355 l 139 0 l 0 0 l 0 1013 l 139 1013 l 139 526 l 626 1013 l 809 1013 l 395 600 l 819 0 "},",":{x_min:0,x_max:142,ha:239,o:"m 142 -12 q 105 -132 142 -82 q 0 -205 68 -182 l 0 -138 q 57 -82 40 -124 q 70 0 70 -51 l 0 0 l 0 151 l 142 151 l 142 -12 "},d:{x_min:0,x_max:683,ha:796,o:"m 683 0 l 564 0 l 564 93 q 456 6 516 38 q 327 -25 395 -25 q 87 100 181 -25 q 0 365 0 215 q 90 639 0 525 q 343 763 187 763 q 564 647 486 763 l 564 1013 l 683 1013 l 683 0 m 582 373 q 529 562 582 484 q 361 653 468 653 q 190 561 253 653 q 135 365 135 479 q 189 175 135 254 q 358 85 251 85 q 529 178 468 85 q 582 373 582 258 "},"¨":{x_min:-109,x_max:247,ha:232,o:"m 247 1046 l 119 1046 l 119 1189 l 247 1189 l 247 1046 m 19 1046 l -109 1046 l -109 1189 l 19 1189 l 19 1046 "},E:{x_min:0,x_max:736.109375,ha:789,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},Y:{x_min:0,x_max:820,ha:886,o:"m 820 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 534 l 679 1012 l 820 1013 "},'"':{x_min:0,x_max:299,ha:396,o:"m 299 606 l 203 606 l 203 988 l 299 988 l 299 606 m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"‹":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"„":{x_min:0,x_max:364,ha:467,o:"m 141 -12 q 104 -132 141 -82 q 0 -205 67 -182 l 0 -138 q 56 -82 40 -124 q 69 0 69 -51 l 0 0 l 0 151 l 141 151 l 141 -12 m 364 -12 q 327 -132 364 -82 q 222 -205 290 -182 l 222 -138 q 279 -82 262 -124 q 292 0 292 -51 l 222 0 l 222 151 l 364 151 l 364 -12 "},"δ":{x_min:1,x_max:710,ha:810,o:"m 710 360 q 616 87 710 196 q 356 -28 518 -28 q 99 82 197 -28 q 1 356 1 192 q 100 606 1 509 q 355 703 199 703 q 180 829 288 754 q 70 903 124 866 l 70 1012 l 643 1012 l 643 901 l 258 901 q 462 763 422 794 q 636 592 577 677 q 710 360 710 485 m 584 365 q 552 501 584 447 q 451 602 521 555 q 372 611 411 611 q 197 541 258 611 q 136 355 136 472 q 190 171 136 245 q 358 85 252 85 q 528 173 465 85 q 584 365 584 252 "},"έ":{x_min:0,x_max:634.71875,ha:714,o:"m 634 234 q 527 38 634 110 q 300 -25 433 -25 q 98 29 183 -25 q 0 204 0 93 q 37 313 0 265 q 128 390 67 352 q 56 459 82 419 q 26 555 26 505 q 114 712 26 654 q 295 763 191 763 q 499 700 416 763 q 589 515 589 631 l 478 515 q 419 618 464 580 q 307 657 374 657 q 207 630 253 657 q 151 547 151 598 q 238 445 151 469 q 389 434 280 434 l 389 331 l 349 331 q 206 315 255 331 q 125 210 125 287 q 183 107 125 145 q 302 76 233 76 q 436 117 379 76 q 509 234 493 159 l 634 234 m 520 1040 l 331 819 l 248 819 l 383 1040 l 520 1040 "},"ω":{x_min:0,x_max:922,ha:1031,o:"m 922 339 q 856 97 922 203 q 650 -26 780 -26 q 538 9 587 -26 q 461 103 489 44 q 387 12 436 46 q 277 -22 339 -22 q 69 97 147 -22 q 0 339 0 203 q 45 551 0 444 q 161 738 84 643 l 302 738 q 175 553 219 647 q 124 336 124 446 q 155 179 124 249 q 275 88 197 88 q 375 163 341 88 q 400 294 400 219 l 400 572 l 524 572 l 524 294 q 561 135 524 192 q 643 88 591 88 q 762 182 719 88 q 797 342 797 257 q 745 556 797 450 q 619 738 705 638 l 760 738 q 874 551 835 640 q 922 339 922 444 "},"´":{x_min:0,x_max:96,ha:251,o:"m 96 606 l 0 606 l 0 988 l 96 988 l 96 606 "},"±":{x_min:11,x_max:781,ha:792,o:"m 781 490 l 446 490 l 446 255 l 349 255 l 349 490 l 11 490 l 11 586 l 349 586 l 349 819 l 446 819 l 446 586 l 781 586 l 781 490 m 781 21 l 11 21 l 11 115 l 781 115 l 781 21 "},"|":{x_min:343,x_max:449,ha:792,o:"m 449 462 l 343 462 l 343 986 l 449 986 l 449 462 m 449 -242 l 343 -242 l 343 280 l 449 280 l 449 -242 "},"ϋ":{x_min:0,x_max:617,ha:725,o:"m 482 800 l 372 800 l 372 925 l 482 925 l 482 800 m 239 800 l 129 800 l 129 925 l 239 925 l 239 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 "},"§":{x_min:0,x_max:593,ha:690,o:"m 593 425 q 554 312 593 369 q 467 233 516 254 q 537 83 537 172 q 459 -74 537 -12 q 288 -133 387 -133 q 115 -69 184 -133 q 47 96 47 -6 l 166 96 q 199 7 166 40 q 288 -26 232 -26 q 371 -5 332 -26 q 420 60 420 21 q 311 201 420 139 q 108 309 210 255 q 0 490 0 383 q 33 602 0 551 q 124 687 66 654 q 75 743 93 712 q 58 812 58 773 q 133 984 58 920 q 300 1043 201 1043 q 458 987 394 1043 q 529 814 529 925 l 411 814 q 370 908 404 877 q 289 939 336 939 q 213 911 246 939 q 180 841 180 883 q 286 720 180 779 q 484 612 480 615 q 593 425 593 534 m 467 409 q 355 544 467 473 q 196 630 228 612 q 146 587 162 609 q 124 525 124 558 q 239 387 124 462 q 398 298 369 315 q 448 345 429 316 q 467 409 467 375 "},b:{x_min:0,x_max:685,ha:783,o:"m 685 372 q 597 99 685 213 q 347 -25 501 -25 q 219 5 277 -25 q 121 93 161 36 l 121 0 l 0 0 l 0 1013 l 121 1013 l 121 634 q 214 723 157 692 q 341 754 272 754 q 591 637 493 754 q 685 372 685 526 m 554 356 q 499 550 554 470 q 328 644 437 644 q 162 556 223 644 q 108 369 108 478 q 160 176 108 256 q 330 83 221 83 q 498 169 435 83 q 554 356 554 245 "},q:{x_min:0,x_max:683,ha:876,o:"m 683 -278 l 564 -278 l 564 97 q 474 8 533 39 q 345 -23 415 -23 q 91 93 188 -23 q 0 364 0 203 q 87 635 0 522 q 337 760 184 760 q 466 727 408 760 q 564 637 523 695 l 564 737 l 683 737 l 683 -278 m 582 375 q 527 564 582 488 q 358 652 466 652 q 190 565 253 652 q 135 377 135 488 q 189 179 135 261 q 361 84 251 84 q 530 179 469 84 q 582 375 582 260 "},"Ω":{x_min:-.171875,x_max:969.5625,ha:1068,o:"m 969 0 l 555 0 l 555 123 q 744 308 675 194 q 814 558 814 423 q 726 812 814 709 q 484 922 633 922 q 244 820 334 922 q 154 567 154 719 q 223 316 154 433 q 412 123 292 199 l 412 0 l 0 0 l 0 124 l 217 124 q 68 327 122 210 q 15 572 15 444 q 144 911 15 781 q 484 1041 274 1041 q 822 909 691 1041 q 953 569 953 777 q 899 326 953 443 q 750 124 846 210 l 969 124 l 969 0 "},"ύ":{x_min:0,x_max:617,ha:725,o:"m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 535 1040 l 346 819 l 262 819 l 397 1040 l 535 1040 "},z:{x_min:-.015625,x_max:613.890625,ha:697,o:"m 613 0 l 0 0 l 0 100 l 433 630 l 20 630 l 20 738 l 594 738 l 593 636 l 163 110 l 613 110 l 613 0 "},"™":{x_min:0,x_max:894,ha:1e3,o:"m 389 951 l 229 951 l 229 503 l 160 503 l 160 951 l 0 951 l 0 1011 l 389 1011 l 389 951 m 894 503 l 827 503 l 827 939 l 685 503 l 620 503 l 481 937 l 481 503 l 417 503 l 417 1011 l 517 1011 l 653 580 l 796 1010 l 894 1011 l 894 503 "},"ή":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 721 124 755 q 200 630 193 687 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 m 479 1040 l 290 819 l 207 819 l 341 1040 l 479 1040 "},"Θ":{x_min:0,x_max:960,ha:1056,o:"m 960 507 q 833 129 960 280 q 476 -32 698 -32 q 123 129 255 -32 q 0 507 0 280 q 123 883 0 732 q 476 1045 255 1045 q 832 883 696 1045 q 960 507 960 732 m 817 500 q 733 789 817 669 q 476 924 639 924 q 223 792 317 924 q 142 507 142 675 q 222 222 142 339 q 476 89 315 89 q 730 218 636 89 q 817 500 817 334 m 716 449 l 243 449 l 243 571 l 716 571 l 716 449 "},"®":{x_min:-3,x_max:1008,ha:1106,o:"m 503 532 q 614 562 566 532 q 672 658 672 598 q 614 747 672 716 q 503 772 569 772 l 338 772 l 338 532 l 503 532 m 502 -7 q 123 151 263 -7 q -3 501 -3 294 q 123 851 -3 706 q 502 1011 263 1011 q 881 851 739 1011 q 1008 501 1008 708 q 883 151 1008 292 q 502 -7 744 -7 m 502 60 q 830 197 709 60 q 940 501 940 322 q 831 805 940 681 q 502 944 709 944 q 174 805 296 944 q 65 501 65 680 q 173 197 65 320 q 502 60 294 60 m 788 146 l 678 146 q 653 316 655 183 q 527 449 652 449 l 338 449 l 338 146 l 241 146 l 241 854 l 518 854 q 688 808 621 854 q 766 658 766 755 q 739 563 766 607 q 668 497 713 519 q 751 331 747 472 q 788 164 756 190 l 788 146 "},"~":{x_min:0,x_max:833,ha:931,o:"m 833 958 q 778 753 833 831 q 594 665 716 665 q 402 761 502 665 q 240 857 302 857 q 131 795 166 857 q 104 665 104 745 l 0 665 q 54 867 0 789 q 237 958 116 958 q 429 861 331 958 q 594 765 527 765 q 704 827 670 765 q 729 958 729 874 l 833 958 "},"Ε":{x_min:0,x_max:736.21875,ha:778,o:"m 736 0 l 0 0 l 0 1013 l 725 1013 l 725 889 l 139 889 l 139 585 l 677 585 l 677 467 l 139 467 l 139 125 l 736 125 l 736 0 "},"³":{x_min:0,x_max:450,ha:547,o:"m 450 552 q 379 413 450 464 q 220 366 313 366 q 69 414 130 366 q 0 567 0 470 l 85 567 q 126 470 85 504 q 225 437 168 437 q 320 467 280 437 q 360 552 360 498 q 318 632 360 608 q 213 657 276 657 q 195 657 203 657 q 176 657 181 657 l 176 722 q 279 733 249 722 q 334 815 334 752 q 300 881 334 856 q 220 907 267 907 q 133 875 169 907 q 97 781 97 844 l 15 781 q 78 926 15 875 q 220 972 135 972 q 364 930 303 972 q 426 817 426 888 q 344 697 426 733 q 421 642 392 681 q 450 552 450 603 "},"[":{x_min:0,x_max:273.609375,ha:371,o:"m 273 -281 l 0 -281 l 0 1013 l 273 1013 l 273 920 l 124 920 l 124 -187 l 273 -187 l 273 -281 "},L:{x_min:0,x_max:645.828125,ha:696,o:"m 645 0 l 0 0 l 0 1013 l 140 1013 l 140 126 l 645 126 l 645 0 "},"σ":{x_min:0,x_max:803.390625,ha:894,o:"m 803 628 l 633 628 q 713 368 713 512 q 618 93 713 204 q 357 -25 518 -25 q 94 91 194 -25 q 0 368 0 201 q 94 644 0 533 q 356 761 194 761 q 481 750 398 761 q 608 739 564 739 l 803 739 l 803 628 m 360 85 q 529 180 467 85 q 584 374 584 262 q 527 566 584 490 q 352 651 463 651 q 187 559 247 651 q 135 368 135 478 q 189 175 135 254 q 360 85 251 85 "},"ζ":{x_min:0,x_max:573,ha:642,o:"m 573 -40 q 553 -162 573 -97 q 510 -278 543 -193 l 400 -278 q 441 -187 428 -219 q 462 -90 462 -132 q 378 -14 462 -14 q 108 45 197 -14 q 0 290 0 117 q 108 631 0 462 q 353 901 194 767 l 55 901 l 55 1012 l 561 1012 l 561 924 q 261 669 382 831 q 128 301 128 489 q 243 117 128 149 q 458 98 350 108 q 573 -40 573 80 "},"θ":{x_min:0,x_max:674,ha:778,o:"m 674 496 q 601 160 674 304 q 336 -26 508 -26 q 73 153 165 -26 q 0 485 0 296 q 72 840 0 683 q 343 1045 166 1045 q 605 844 516 1045 q 674 496 674 692 m 546 579 q 498 798 546 691 q 336 935 437 935 q 178 798 237 935 q 126 579 137 701 l 546 579 m 546 475 l 126 475 q 170 233 126 348 q 338 80 230 80 q 504 233 447 80 q 546 475 546 346 "},"Ο":{x_min:0,x_max:958,ha:1054,o:"m 485 1042 q 834 883 703 1042 q 958 511 958 735 q 834 136 958 287 q 481 -26 701 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 729 q 485 1042 263 1042 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 670 q 480 913 640 913 q 226 785 321 913 q 142 504 142 671 q 226 224 142 339 q 480 98 319 98 "},"Γ":{x_min:0,x_max:705.28125,ha:749,o:"m 705 886 l 140 886 l 140 0 l 0 0 l 0 1012 l 705 1012 l 705 886 "}," ":{x_min:0,x_max:0,ha:375},"%":{x_min:-3,x_max:1089,ha:1186,o:"m 845 0 q 663 76 731 0 q 602 244 602 145 q 661 412 602 344 q 845 489 728 489 q 1027 412 959 489 q 1089 244 1089 343 q 1029 76 1089 144 q 845 0 962 0 m 844 103 q 945 143 909 103 q 981 243 981 184 q 947 340 981 301 q 844 385 909 385 q 744 342 781 385 q 708 243 708 300 q 741 147 708 186 q 844 103 780 103 m 888 986 l 284 -25 l 199 -25 l 803 986 l 888 986 m 241 468 q 58 545 126 468 q -3 715 -3 615 q 56 881 -3 813 q 238 958 124 958 q 421 881 353 958 q 483 712 483 813 q 423 544 483 612 q 241 468 356 468 m 241 855 q 137 811 175 855 q 100 710 100 768 q 136 612 100 653 q 240 572 172 572 q 344 614 306 572 q 382 713 382 656 q 347 810 382 771 q 241 855 308 855 "},P:{x_min:0,x_max:726,ha:806,o:"m 424 1013 q 640 931 555 1013 q 726 719 726 850 q 637 506 726 587 q 413 426 548 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 379 889 l 140 889 l 140 548 l 372 548 q 522 589 459 548 q 593 720 593 637 q 528 845 593 801 q 379 889 463 889 "},"Έ":{x_min:0,x_max:1078.21875,ha:1118,o:"m 1078 0 l 342 0 l 342 1013 l 1067 1013 l 1067 889 l 481 889 l 481 585 l 1019 585 l 1019 467 l 481 467 l 481 125 l 1078 125 l 1078 0 m 277 1040 l 83 799 l 0 799 l 140 1040 l 277 1040 "},"Ώ":{x_min:.125,x_max:1136.546875,ha:1235,o:"m 1136 0 l 722 0 l 722 123 q 911 309 842 194 q 981 558 981 423 q 893 813 981 710 q 651 923 800 923 q 411 821 501 923 q 321 568 321 720 q 390 316 321 433 q 579 123 459 200 l 579 0 l 166 0 l 166 124 l 384 124 q 235 327 289 210 q 182 572 182 444 q 311 912 182 782 q 651 1042 441 1042 q 989 910 858 1042 q 1120 569 1120 778 q 1066 326 1120 443 q 917 124 1013 210 l 1136 124 l 1136 0 m 277 1040 l 83 800 l 0 800 l 140 1041 l 277 1040 "},_:{x_min:0,x_max:705.5625,ha:803,o:"m 705 -334 l 0 -334 l 0 -234 l 705 -234 l 705 -334 "},"Ϊ":{x_min:-110,x_max:246,ha:275,o:"m 246 1046 l 118 1046 l 118 1189 l 246 1189 l 246 1046 m 18 1046 l -110 1046 l -110 1189 l 18 1189 l 18 1046 m 136 0 l 0 0 l 0 1012 l 136 1012 l 136 0 "},"+":{x_min:23,x_max:768,ha:792,o:"m 768 372 l 444 372 l 444 0 l 347 0 l 347 372 l 23 372 l 23 468 l 347 468 l 347 840 l 444 840 l 444 468 l 768 468 l 768 372 "},"½":{x_min:0,x_max:1050,ha:1149,o:"m 1050 0 l 625 0 q 712 178 625 108 q 878 277 722 187 q 967 385 967 328 q 932 456 967 429 q 850 484 897 484 q 759 450 798 484 q 721 352 721 416 l 640 352 q 706 502 640 448 q 851 551 766 551 q 987 509 931 551 q 1050 385 1050 462 q 976 251 1050 301 q 829 179 902 215 q 717 68 740 133 l 1050 68 l 1050 0 m 834 985 l 215 -28 l 130 -28 l 750 984 l 834 985 m 224 422 l 142 422 l 142 811 l 0 811 l 0 867 q 104 889 62 867 q 164 973 157 916 l 224 973 l 224 422 "},"Ρ":{x_min:0,x_max:720,ha:783,o:"m 424 1013 q 637 933 554 1013 q 720 723 720 853 q 633 508 720 591 q 413 426 546 426 l 140 426 l 140 0 l 0 0 l 0 1013 l 424 1013 m 378 889 l 140 889 l 140 548 l 371 548 q 521 589 458 548 q 592 720 592 637 q 527 845 592 801 q 378 889 463 889 "},"'":{x_min:0,x_max:139,ha:236,o:"m 139 851 q 102 737 139 784 q 0 669 65 690 l 0 734 q 59 787 42 741 q 72 873 72 821 l 0 873 l 0 1013 l 139 1013 l 139 851 "},"ª":{x_min:0,x_max:350,ha:397,o:"m 350 625 q 307 616 328 616 q 266 631 281 616 q 247 673 251 645 q 190 628 225 644 q 116 613 156 613 q 32 641 64 613 q 0 722 0 669 q 72 826 0 800 q 247 866 159 846 l 247 887 q 220 934 247 916 q 162 953 194 953 q 104 934 129 953 q 76 882 80 915 l 16 882 q 60 976 16 941 q 166 1011 104 1011 q 266 979 224 1011 q 308 891 308 948 l 308 706 q 311 679 308 688 q 331 670 315 670 l 350 672 l 350 625 m 247 757 l 247 811 q 136 790 175 798 q 64 726 64 773 q 83 682 64 697 q 132 667 103 667 q 207 690 174 667 q 247 757 247 718 "},"΅":{x_min:0,x_max:450,ha:553,o:"m 450 800 l 340 800 l 340 925 l 450 925 l 450 800 m 406 1040 l 212 800 l 129 800 l 269 1040 l 406 1040 m 110 800 l 0 800 l 0 925 l 110 925 l 110 800 "},T:{x_min:0,x_max:777,ha:835,o:"m 777 894 l 458 894 l 458 0 l 319 0 l 319 894 l 0 894 l 0 1013 l 777 1013 l 777 894 "},"Φ":{x_min:0,x_max:915,ha:997,o:"m 527 0 l 389 0 l 389 122 q 110 231 220 122 q 0 509 0 340 q 110 785 0 677 q 389 893 220 893 l 389 1013 l 527 1013 l 527 893 q 804 786 693 893 q 915 509 915 679 q 805 231 915 341 q 527 122 696 122 l 527 0 m 527 226 q 712 310 641 226 q 779 507 779 389 q 712 705 779 627 q 527 787 641 787 l 527 226 m 389 226 l 389 787 q 205 698 275 775 q 136 505 136 620 q 206 308 136 391 q 389 226 276 226 "},"⁋":{x_min:0,x_max:0,ha:694},j:{x_min:-77.78125,x_max:167,ha:349,o:"m 167 871 l 42 871 l 42 1013 l 167 1013 l 167 871 m 167 -80 q 121 -231 167 -184 q -26 -278 76 -278 l -77 -278 l -77 -164 l -41 -164 q 26 -143 11 -164 q 42 -65 42 -122 l 42 737 l 167 737 l 167 -80 "},"Σ":{x_min:0,x_max:756.953125,ha:819,o:"m 756 0 l 0 0 l 0 107 l 395 523 l 22 904 l 22 1013 l 745 1013 l 745 889 l 209 889 l 566 523 l 187 125 l 756 125 l 756 0 "},"›":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},"<":{x_min:17.984375,x_max:773.609375,ha:792,o:"m 773 40 l 18 376 l 17 465 l 773 799 l 773 692 l 159 420 l 773 149 l 773 40 "},"£":{x_min:0,x_max:704.484375,ha:801,o:"m 704 41 q 623 -10 664 5 q 543 -26 583 -26 q 359 15 501 -26 q 243 36 288 36 q 158 23 197 36 q 73 -21 119 10 l 6 76 q 125 195 90 150 q 175 331 175 262 q 147 443 175 383 l 0 443 l 0 512 l 108 512 q 43 734 43 623 q 120 929 43 854 q 358 1010 204 1010 q 579 936 487 1010 q 678 729 678 857 l 678 684 l 552 684 q 504 838 552 780 q 362 896 457 896 q 216 852 263 896 q 176 747 176 815 q 199 627 176 697 q 248 512 217 574 l 468 512 l 468 443 l 279 443 q 297 356 297 398 q 230 194 297 279 q 153 107 211 170 q 227 133 190 125 q 293 142 264 142 q 410 119 339 142 q 516 96 482 96 q 579 105 550 96 q 648 142 608 115 l 704 41 "},t:{x_min:0,x_max:367,ha:458,o:"m 367 0 q 312 -5 339 -2 q 262 -8 284 -8 q 145 28 183 -8 q 108 143 108 64 l 108 638 l 0 638 l 0 738 l 108 738 l 108 944 l 232 944 l 232 738 l 367 738 l 367 638 l 232 638 l 232 185 q 248 121 232 140 q 307 102 264 102 q 345 104 330 102 q 367 107 360 107 l 367 0 "},"¬":{x_min:0,x_max:706,ha:803,o:"m 706 411 l 706 158 l 630 158 l 630 335 l 0 335 l 0 411 l 706 411 "},"λ":{x_min:0,x_max:750,ha:803,o:"m 750 -7 q 679 -15 716 -15 q 538 59 591 -15 q 466 214 512 97 l 336 551 l 126 0 l 0 0 l 270 705 q 223 837 247 770 q 116 899 190 899 q 90 898 100 899 l 90 1004 q 152 1011 125 1011 q 298 938 244 1011 q 373 783 326 901 l 605 192 q 649 115 629 136 q 716 95 669 95 l 736 95 q 750 97 745 97 l 750 -7 "},W:{x_min:0,x_max:1263.890625,ha:1351,o:"m 1263 1013 l 995 0 l 859 0 l 627 837 l 405 0 l 265 0 l 0 1013 l 136 1013 l 342 202 l 556 1013 l 701 1013 l 921 207 l 1133 1012 l 1263 1013 "},">":{x_min:18.0625,x_max:774,ha:792,o:"m 774 376 l 18 40 l 18 149 l 631 421 l 18 692 l 18 799 l 774 465 l 774 376 "},v:{x_min:0,x_max:675.15625,ha:761,o:"m 675 738 l 404 0 l 272 0 l 0 738 l 133 737 l 340 147 l 541 737 l 675 738 "},"τ":{x_min:.28125,x_max:644.5,ha:703,o:"m 644 628 l 382 628 l 382 179 q 388 120 382 137 q 436 91 401 91 q 474 94 447 91 q 504 97 501 97 l 504 0 q 454 -9 482 -5 q 401 -14 426 -14 q 278 67 308 -14 q 260 233 260 118 l 260 628 l 0 628 l 0 739 l 644 739 l 644 628 "},"ξ":{x_min:0,x_max:624.9375,ha:699,o:"m 624 -37 q 608 -153 624 -96 q 563 -278 593 -211 l 454 -278 q 491 -183 486 -200 q 511 -83 511 -126 q 484 -23 511 -44 q 370 1 452 1 q 323 0 354 1 q 283 -1 293 -1 q 84 76 169 -1 q 0 266 0 154 q 56 431 0 358 q 197 538 108 498 q 94 613 134 562 q 54 730 54 665 q 77 823 54 780 q 143 901 101 867 l 27 901 l 27 1012 l 576 1012 l 576 901 l 380 901 q 244 863 303 901 q 178 745 178 820 q 312 600 178 636 q 532 582 380 582 l 532 479 q 276 455 361 479 q 118 281 118 410 q 165 173 118 217 q 274 120 208 133 q 494 101 384 110 q 624 -37 624 76 "},"&":{x_min:-3,x_max:894.25,ha:992,o:"m 894 0 l 725 0 l 624 123 q 471 0 553 40 q 306 -41 390 -41 q 168 -7 231 -41 q 62 92 105 26 q 14 187 31 139 q -3 276 -3 235 q 55 433 -3 358 q 248 581 114 508 q 170 689 196 640 q 137 817 137 751 q 214 985 137 922 q 384 1041 284 1041 q 548 988 483 1041 q 622 824 622 928 q 563 666 622 739 q 431 556 516 608 l 621 326 q 649 407 639 361 q 663 493 653 426 l 781 493 q 703 229 781 352 l 894 0 m 504 818 q 468 908 504 877 q 384 940 433 940 q 293 907 331 940 q 255 818 255 875 q 289 714 255 767 q 363 628 313 678 q 477 729 446 682 q 504 818 504 771 m 556 209 l 314 499 q 179 395 223 449 q 135 283 135 341 q 146 222 135 253 q 183 158 158 192 q 333 80 241 80 q 556 209 448 80 "},"Λ":{x_min:0,x_max:862.5,ha:942,o:"m 862 0 l 719 0 l 426 847 l 143 0 l 0 0 l 356 1013 l 501 1013 l 862 0 "},I:{x_min:41,x_max:180,ha:293,o:"m 180 0 l 41 0 l 41 1013 l 180 1013 l 180 0 "},G:{x_min:0,x_max:921,ha:1011,o:"m 921 0 l 832 0 l 801 136 q 655 15 741 58 q 470 -28 568 -28 q 126 133 259 -28 q 0 499 0 284 q 125 881 0 731 q 486 1043 259 1043 q 763 957 647 1043 q 905 709 890 864 l 772 709 q 668 866 747 807 q 486 926 589 926 q 228 795 322 926 q 142 507 142 677 q 228 224 142 342 q 483 94 323 94 q 712 195 625 94 q 796 435 796 291 l 477 435 l 477 549 l 921 549 l 921 0 "},"ΰ":{x_min:0,x_max:617,ha:725,o:"m 524 800 l 414 800 l 414 925 l 524 925 l 524 800 m 183 800 l 73 800 l 73 925 l 183 925 l 183 800 m 617 352 q 540 93 617 199 q 308 -24 455 -24 q 76 93 161 -24 q 0 352 0 199 l 0 738 l 126 738 l 126 354 q 169 185 126 257 q 312 98 220 98 q 451 185 402 98 q 492 354 492 257 l 492 738 l 617 738 l 617 352 m 489 1040 l 300 819 l 216 819 l 351 1040 l 489 1040 "},"`":{x_min:0,x_max:138.890625,ha:236,o:"m 138 699 l 0 699 l 0 861 q 36 974 0 929 q 138 1041 72 1020 l 138 977 q 82 931 95 969 q 69 839 69 893 l 138 839 l 138 699 "},"·":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 "},"Υ":{x_min:.328125,x_max:819.515625,ha:889,o:"m 819 1013 l 482 416 l 482 0 l 342 0 l 342 416 l 0 1013 l 140 1013 l 411 533 l 679 1013 l 819 1013 "},r:{x_min:0,x_max:355.5625,ha:432,o:"m 355 621 l 343 621 q 179 569 236 621 q 122 411 122 518 l 122 0 l 0 0 l 0 737 l 117 737 l 117 604 q 204 719 146 686 q 355 753 262 753 l 355 621 "},x:{x_min:0,x_max:675,ha:764,o:"m 675 0 l 525 0 l 331 286 l 144 0 l 0 0 l 256 379 l 12 738 l 157 737 l 336 473 l 516 738 l 661 738 l 412 380 l 675 0 "},"μ":{x_min:0,x_max:696.609375,ha:747,o:"m 696 -4 q 628 -14 657 -14 q 498 97 513 -14 q 422 8 470 41 q 313 -24 374 -24 q 207 3 258 -24 q 120 80 157 31 l 120 -278 l 0 -278 l 0 738 l 124 738 l 124 343 q 165 172 124 246 q 308 82 216 82 q 451 177 402 82 q 492 358 492 254 l 492 738 l 616 738 l 616 214 q 623 136 616 160 q 673 92 636 92 q 696 95 684 92 l 696 -4 "},h:{x_min:0,x_max:615,ha:724,o:"m 615 472 l 615 0 l 490 0 l 490 454 q 456 590 490 535 q 338 654 416 654 q 186 588 251 654 q 122 436 122 522 l 122 0 l 0 0 l 0 1013 l 122 1013 l 122 633 q 218 727 149 694 q 362 760 287 760 q 552 676 484 760 q 615 472 615 600 "},".":{x_min:0,x_max:142,ha:239,o:"m 142 0 l 0 0 l 0 151 l 142 151 l 142 0 "},"φ":{x_min:-2,x_max:878,ha:974,o:"m 496 -279 l 378 -279 l 378 -17 q 101 88 204 -17 q -2 367 -2 194 q 68 626 -2 510 q 283 758 151 758 l 283 646 q 167 537 209 626 q 133 373 133 462 q 192 177 133 254 q 378 93 259 93 l 378 758 q 445 764 426 763 q 476 765 464 765 q 765 659 653 765 q 878 377 878 553 q 771 96 878 209 q 496 -17 665 -17 l 496 -279 m 496 93 l 514 93 q 687 183 623 93 q 746 380 746 265 q 691 569 746 491 q 522 658 629 658 l 496 656 l 496 93 "},";":{x_min:0,x_max:142,ha:239,o:"m 142 585 l 0 585 l 0 738 l 142 738 l 142 585 m 142 -12 q 105 -132 142 -82 q 0 -206 68 -182 l 0 -138 q 58 -82 43 -123 q 68 0 68 -56 l 0 0 l 0 151 l 142 151 l 142 -12 "},f:{x_min:0,x_max:378,ha:472,o:"m 378 638 l 246 638 l 246 0 l 121 0 l 121 638 l 0 638 l 0 738 l 121 738 q 137 935 121 887 q 290 1028 171 1028 q 320 1027 305 1028 q 378 1021 334 1026 l 378 908 q 323 918 346 918 q 257 870 273 918 q 246 780 246 840 l 246 738 l 378 738 l 378 638 "},"“":{x_min:1,x_max:348.21875,ha:454,o:"m 140 670 l 1 670 l 1 830 q 37 943 1 897 q 140 1011 74 990 l 140 947 q 82 900 97 940 q 68 810 68 861 l 140 810 l 140 670 m 348 670 l 209 670 l 209 830 q 245 943 209 897 q 348 1011 282 990 l 348 947 q 290 900 305 940 q 276 810 276 861 l 348 810 l 348 670 "},A:{x_min:.03125,x_max:906.953125,ha:1008,o:"m 906 0 l 756 0 l 648 303 l 251 303 l 142 0 l 0 0 l 376 1013 l 529 1013 l 906 0 m 610 421 l 452 867 l 293 421 l 610 421 "},"‘":{x_min:1,x_max:139.890625,ha:236,o:"m 139 670 l 1 670 l 1 830 q 37 943 1 897 q 139 1011 74 990 l 139 947 q 82 900 97 940 q 68 810 68 861 l 139 810 l 139 670 "},"ϊ":{x_min:-70,x_max:283,ha:361,o:"m 283 800 l 173 800 l 173 925 l 283 925 l 283 800 m 40 800 l -70 800 l -70 925 l 40 925 l 40 800 m 283 3 q 232 -10 257 -5 q 181 -15 206 -15 q 84 26 118 -15 q 41 200 41 79 l 41 737 l 166 737 l 167 215 q 171 141 167 157 q 225 101 182 101 q 247 103 238 101 q 283 112 256 104 l 283 3 "},"π":{x_min:-.21875,x_max:773.21875,ha:857,o:"m 773 -7 l 707 -11 q 575 40 607 -11 q 552 174 552 77 l 552 226 l 552 626 l 222 626 l 222 0 l 97 0 l 97 626 l 0 626 l 0 737 l 773 737 l 773 626 l 676 626 l 676 171 q 695 103 676 117 q 773 90 714 90 l 773 -7 "},"ά":{x_min:0,x_max:765.5625,ha:809,o:"m 765 -4 q 698 -14 726 -14 q 564 97 586 -14 q 466 7 525 40 q 337 -26 407 -26 q 88 98 186 -26 q 0 369 0 212 q 88 637 0 525 q 337 760 184 760 q 465 727 407 760 q 563 637 524 695 l 563 738 l 685 738 l 685 222 q 693 141 685 168 q 748 94 708 94 q 765 95 760 94 l 765 -4 m 584 371 q 531 562 584 485 q 360 653 470 653 q 192 566 254 653 q 135 379 135 489 q 186 181 135 261 q 358 84 247 84 q 528 176 465 84 q 584 371 584 260 m 604 1040 l 415 819 l 332 819 l 466 1040 l 604 1040 "},O:{x_min:0,x_max:958,ha:1057,o:"m 485 1041 q 834 882 702 1041 q 958 512 958 734 q 834 136 958 287 q 481 -26 702 -26 q 126 130 261 -26 q 0 504 0 279 q 127 880 0 728 q 485 1041 263 1041 m 480 98 q 731 225 638 98 q 815 504 815 340 q 733 783 815 669 q 480 912 640 912 q 226 784 321 912 q 142 504 142 670 q 226 224 142 339 q 480 98 319 98 "},n:{x_min:0,x_max:615,ha:724,o:"m 615 463 l 615 0 l 490 0 l 490 454 q 453 592 490 537 q 331 656 410 656 q 178 585 240 656 q 117 421 117 514 l 117 0 l 0 0 l 0 738 l 117 738 l 117 630 q 218 728 150 693 q 359 764 286 764 q 552 675 484 764 q 615 463 615 593 "},l:{x_min:41,x_max:166,ha:279,o:"m 166 0 l 41 0 l 41 1013 l 166 1013 l 166 0 "},"¤":{x_min:40.09375,x_max:728.796875,ha:825,o:"m 728 304 l 649 224 l 512 363 q 383 331 458 331 q 256 363 310 331 l 119 224 l 40 304 l 177 441 q 150 553 150 493 q 184 673 150 621 l 40 818 l 119 898 l 267 749 q 321 766 291 759 q 384 773 351 773 q 447 766 417 773 q 501 749 477 759 l 649 898 l 728 818 l 585 675 q 612 618 604 648 q 621 553 621 587 q 591 441 621 491 l 728 304 m 384 682 q 280 643 318 682 q 243 551 243 604 q 279 461 243 499 q 383 423 316 423 q 487 461 449 423 q 525 553 525 500 q 490 641 525 605 q 384 682 451 682 "},"κ":{x_min:0,x_max:632.328125,ha:679,o:"m 632 0 l 482 0 l 225 384 l 124 288 l 124 0 l 0 0 l 0 738 l 124 738 l 124 446 l 433 738 l 596 738 l 312 466 l 632 0 "},p:{x_min:0,x_max:685,ha:786,o:"m 685 364 q 598 96 685 205 q 350 -23 504 -23 q 121 89 205 -23 l 121 -278 l 0 -278 l 0 738 l 121 738 l 121 633 q 220 726 159 691 q 351 761 280 761 q 598 636 504 761 q 685 364 685 522 m 557 371 q 501 560 557 481 q 330 651 437 651 q 162 559 223 651 q 108 366 108 479 q 162 177 108 254 q 333 87 224 87 q 502 178 441 87 q 557 371 557 258 "},"‡":{x_min:0,x_max:777,ha:835,o:"m 458 238 l 458 0 l 319 0 l 319 238 l 0 238 l 0 360 l 319 360 l 319 681 l 0 683 l 0 804 l 319 804 l 319 1015 l 458 1013 l 458 804 l 777 804 l 777 683 l 458 683 l 458 360 l 777 360 l 777 238 l 458 238 "},"ψ":{x_min:0,x_max:808,ha:907,o:"m 465 -278 l 341 -278 l 341 -15 q 87 102 180 -15 q 0 378 0 210 l 0 739 l 133 739 l 133 379 q 182 195 133 275 q 341 98 242 98 l 341 922 l 465 922 l 465 98 q 623 195 563 98 q 675 382 675 278 l 675 742 l 808 742 l 808 381 q 720 104 808 213 q 466 -13 627 -13 l 465 -278 "},"η":{x_min:.78125,x_max:697,ha:810,o:"m 697 -278 l 572 -278 l 572 454 q 540 587 572 536 q 425 650 501 650 q 271 579 337 650 q 206 420 206 509 l 206 0 l 81 0 l 81 489 q 73 588 81 562 q 0 644 56 644 l 0 741 q 68 755 38 755 q 158 720 124 755 q 200 630 193 686 q 297 726 234 692 q 434 761 359 761 q 620 692 544 761 q 697 516 697 624 l 697 -278 "}},cssFontWeight:"normal",ascender:1189,underlinePosition:-100,cssFontStyle:"normal",boundingBox:{yMin:-334,xMin:-111,yMax:1189,xMax:1672},resolution:1e3,original_font_information:{postscript_name:"Helvetiker-Regular",version_string:"Version 1.00 2004 initial release",vendor_url:"http://www.magenta.gr/",full_font_name:"Helvetiker",font_family_name:"Helvetiker",copyright:"Copyright (c) Μagenta ltd, 2004",description:"",trademark:"",designer:"",designer_url:"",unique_font_identifier:"Μagenta ltd:Helvetiker:22-10-104",license_url:"http://www.ellak.gr/fonts/MgOpen/license.html",license_description:'Copyright (c) 2004 by MAGENTA Ltd. All Rights Reserved.\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated documentation files (the "Font Software"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \r\n\r\nThe above copyright and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\r\n\r\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "MgOpen", or if the modifications are accepted for inclusion in the Font Software itself by the each appointed Administrator.\r\n\r\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the "MgOpen" name.\r\n\r\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \r\n\r\nTHE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL MAGENTA OR PERSONS OR BODIES IN CHARGE OF ADMINISTRATION AND MAINTENANCE OF THE FONT SOFTWARE BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.',manufacturer_name:"Μagenta ltd",font_sub_family_name:"Regular"},descender:-334,familyName:"Helvetiker",lineHeight:1522,underlineThickness:50};var Kh=function(){var e=0,t=document.createElement("div");function n(e){return t.appendChild(e.dom),e}function i(n){for(var i=0;i<t.children.length;i++)t.children[i].style.display=i===n?"block":"none";e=n}t.style.cssText="position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",(function(n){n.preventDefault(),i(++e%t.children.length)}),!1);var a=(performance||Date).now(),r=a,o=0,l=n(new Kh.Panel("FPS","#0ff","#002")),s=n(new Kh.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=n(new Kh.Panel("MB","#f08","#201"));return i(0),{REVISION:16,dom:t,addPanel:n,showPanel:i,begin:function(){a=(performance||Date).now()},end:function(){o++;var e=(performance||Date).now();if(s.update(e-a,200),e>=r+1e3&&(l.update(1e3*o/(e-r),100),r=e,o=0,c)){var t=performance.memory;c.update(t.usedJSHeapSize/1048576,t.jsHeapSizeLimit/1048576)}return e},update:function(){a=this.end()},domElement:t,setMode:i}};Kh.Panel=function(e,t,n){var i=1/0,a=0,r=Math.round,o=r(window.devicePixelRatio||1),l=80*o,s=48*o,c=3*o,u=2*o,d=3*o,h=15*o,p=74*o,m=30*o,f=document.createElement("canvas");f.width=l,f.height=s,f.style.cssText="width:80px;height:48px";var v=f.getContext("2d");return v.font="bold "+9*o+"px Helvetica,Arial,sans-serif",v.textBaseline="top",v.fillStyle=n,v.fillRect(0,0,l,s),v.fillStyle=t,v.fillText(e,c,u),v.fillRect(d,h,p,m),v.fillStyle=n,v.globalAlpha=.9,v.fillRect(d,h,p,m),{dom:f,update:function(s,g){i=Math.min(i,s),a=Math.max(a,s),v.fillStyle=n,v.globalAlpha=1,v.fillRect(0,0,l,h),v.fillStyle=t,v.fillText(r(s)+" "+e+" ("+r(i)+"-"+r(a)+")",c,u),v.drawImage(f,d+o,h,p-o,m,d,h,p-o,m),v.fillRect(d+p-o,h,o,m),v.fillStyle=n,v.globalAlpha=.9,v.fillRect(d+p-o,h,o,r((1-s/g)*m))}}};const Yh=e=>(t.pushScopeId("data-v-1afac6f9"),e=e(),t.popScopeId(),e),Jh=[Yh((()=>t.createElementVNode("div",{type:"x-shader/x-vertex",id:"vertexshader",class:"lym-shader-content-box"}," uniform float amplitude; attribute vec3 displacement; attribute vec3 customColor; varying vec3 vColor; void main() { vec3 newPosition = position + amplitude * displacement; vColor = customColor; gl_Position = projectionMatrix * modelViewMatrix * vec4( newPosition, 1.0 ); } ",-1))),Yh((()=>t.createElementVNode("div",{type:"x-shader/x-fragment",id:"fragmentshader",class:"lym-shader-content-box"}," uniform vec3 color; uniform float opacity; varying vec3 vColor; void main() { gl_FragColor = vec4( vColor * color, opacity ); } ",-1)))],Zh=l(t.defineComponent({__name:"LymWebGLComponent",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:n}){const i=e,a=t.ref();return t.watch((()=>i.modelValue),((e,t)=>{})),t.computed((()=>0)),t.onMounted((()=>{a.value&&function(){var e,t;const n=new Nd;n.background=new Il(328965);const i=new As(30,window.innerWidth/window.innerHeight,1,1e4);i.position.z=400;const r=new Ad({antialias:!0});r.setSize(window.innerWidth,window.innerHeight),r.setPixelRatio(window.devicePixelRatio),a.value.appendChild(r.domElement);const o={amplitude:{value:5},opacity:{value:.3},color:{value:new Il(16777215)}},l=new Ms({uniforms:o,vertexShader:null==(e=document.getElementById("vertexshader"))?void 0:e.textContent,fragmentShader:null==(t=document.getElementById("fragmentshader"))?void 0:t.textContent,blending:2,depthTest:!1,transparent:!0}),s=(new Wh).parse($h),c=new Gh("luyoumin",{font:s,size:50,height:15,curveSegments:10,bevelThickness:5,bevelSize:1.5,bevelEnabled:!0,bevelSegments:10});c.center();const u=c.attributes.position.count,d=new Gl(3*u,3);c.setAttribute("displacement",d);const h=new Gl(3*u,3);c.setAttribute("customColor",h);const p=new Il(16777215);for(let a=0,g=h.count;a<g;a++)p.setHSL(a/g,.5,.5),p.toArray(h.array,a*h.itemSize);const m=new Dd(c,l);m.rotation.x=.2,n.add(m);const f=new Kh;a.value.appendChild(f.dom),window.addEventListener("resize",(()=>{i.aspect=window.innerWidth/window.innerHeight,i.updateProjectionMatrix(),r.setSize(window.innerWidth,window.innerHeight)}));const v=()=>{requestAnimationFrame(v);const e=.001*Date.now();m.rotation.y=.25*e,o.amplitude.value=Math.sin(.5*e),o.color.value.offsetHSL(5e-4,0,0);const t=m.geometry.attributes,a=t.displacement.array;for(let n=0,i=a.length;n<i;n+=3)a[n]+=.3*(.5-Math.random()),a[n+1]+=.3*(.5-Math.random()),a[n+2]+=.3*(.5-Math.random());t.displacement.needsUpdate=!0,r.render(n,i),f.update()};v()}()})),(e,n)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"lymWebglContainer",ref:a,class:"lym-webgl-container"},Jh,512))}}),[["__scopeId","data-v-1afac6f9"]]),Qh=Object.freeze(Object.defineProperty({__proto__:null,default:Zh},Symbol.toStringTag,{value:"Module"})),ep={class:"lym-tree-node"},tp={key:1,style:{width:"8px",height:"8px","margin-right":"5px"}},np=["id"],ip=l(t.defineComponent({__name:"LymTreeNode",props:{node:{type:Object,required:!0},accordion:{type:Boolean,default:!1},labelKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},childrenKey:{type:String,default:"children"},fontSize:{type:Number,default:15},isExpanded:{type:Boolean,default:!1},singleCheck:{type:Boolean,default:!1},multipleCheck:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},idPrefix:{type:String,default:""}},emits:["update:modelValue","toggle","checkChange","clickChange"],setup(e,{emit:n}){const i=e,a=n,r=t.ref(!1),o=t.ref(!1),l=t.ref(!1),s=t.ref(null),c=t.ref(0);t.watch((()=>i.isExpanded),((e,t)=>{r.value!==e&&d()}));const u=t.computed((()=>i.node[i.childrenKey]&&i.node[i.childrenKey].length));function d(e=""){i.singleCheck&&i.checkStrictly&&e&&e.target&&"content-text"===e.target.className||o.value||(o.value=!0,s.value&&(clearTimeout(s.value),s.value=null),r.value?(l.value=!1,r.value=!1,i.node.isExpanded=r.value):(r.value=!0,l.value=!0,i.node.isExpanded=r.value),a("toggle",{isExpanded:l.value,newChildrenH:c.value,key:i.node[i.valueKey]}),o.value=!1)}function h({isExpanded:e,newChildrenH:t,key:n}){e?(c.value+=t,i.accordion&&i.node[i.childrenKey].forEach((e=>{e[i.valueKey]!==n&&(e.isExpanded=!1)}))):c.value-=t,a("toggle",{isExpanded:e,newChildrenH:t,key:i.node[i.valueKey]})}function p(){if(i.node.isIndeterminate=!1,!i.checkStrictly){const e=i.node.checked;f(i.node,e)}a("checkChange",i.node[i.valueKey])}function m(){if(!i.checkStrictly){const e=i.node[i.childrenKey];let t=0,n=0;if(e&&e.length){for(let i=0;i<e.length;i++)e[i].isIndeterminate?n++:e[i].checked&&t++;t===e.length?(i.node.checked=!0,i.node.isIndeterminate=!1):0===t?n>0?(i.node.isIndeterminate=!0,i.node.checked=!1):(i.node.checked=!1,i.node.isIndeterminate=!1):(i.node.isIndeterminate=!0,i.node.checked=!1)}}a("checkChange",i.node[i.valueKey])}function f(e,t){if(e[i.childrenKey]&&e[i.childrenKey].length){let n=!1;for(let a=0;a<e[i.childrenKey].length;a++)e[i.childrenKey][a].disabled?n=!0:(e[i.childrenKey][a].checked=t,e[i.childrenKey][a].isIndeterminate=!1),f(e[i.childrenKey][a],t);n&&(e.checked=t,e.isIndeterminate=!!t)}}function v(){i.node.disabled||i.singleCheck&&(u.value?i.checkStrictly&&a("clickChange",{keys:[i.node[i.valueKey]],node:{...i.node}}):a("clickChange",{keys:[i.node[i.valueKey]],node:{...i.node}}))}function g(e){e.keys.unshift(i.node[i.valueKey]),a("clickChange",e)}return t.onMounted((()=>{t.nextTick((()=>{setTimeout((()=>{const e=document.getElementById(i.idPrefix+i.node[i.valueKey]);if(e){c.value=0;for(let t=0;t<e.children.length;t++)c.value+=e.children[t].clientHeight}}),300)}))})),(n,i)=>{const a=t.resolveComponent("LymTreeNode",!0);return t.openBlock(),t.createElementBlock("div",ep,[t.createElementVNode("div",{class:"node-content lym-flex-c",onClick:d},[u.value?(t.openBlock(),t.createBlock(z,{key:0,src:"triangle-bottom",type:"svgicon",size:"8","fill-color":"#a8abb2",style:t.normalizeStyle([{transform:"rotate("+(l.value?"0":"-90")+"deg)"},{"transition-duration":".3s","margin-right":"5px"}])},null,8,["style"])):(t.openBlock(),t.createElementBlock("div",tp)),e.multipleCheck?(t.openBlock(),t.createBlock(j,{key:2,modelValue:e.node.checked,"onUpdate:modelValue":i[0]||(i[0]=t=>e.node.checked=t),isIndeterminate:e.node.isIndeterminate,disabled:e.node.disabled,onChange:p,onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},null,8,["modelValue","isIndeterminate","disabled"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"content-text",style:t.normalizeStyle({color:e.node.disabled?"rgba(128, 128, 128, 0.7)":e.node.checked?"#409EFF":"#606266",fontSize:e.fontSize+"px",cursor:e.node.disabled?"not-allowed":"pointer",fontWeight:e.node.checked?"bold":"normal"}),onClick:v},[t.renderSlot(n.$slots,"default",{node:e.node},(()=>[t.createTextVNode(t.toDisplayString(e.node.name),1)]),!0)],4)]),u.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:e.idPrefix+e.node[e.valueKey],class:"children",style:t.normalizeStyle({height:l.value?c.value+"px":"0px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.node[e.childrenKey],(i=>(t.openBlock(),t.createBlock(a,{key:i[e.valueKey],node:i,accordion:e.accordion,"is-expanded":i.isExpanded,"label-key":e.labelKey,"value-key":e.valueKey,"children-key":e.childrenKey,"font-size":e.fontSize,"multiple-check":e.multipleCheck,"single-check":e.singleCheck,"check-strictly":e.checkStrictly,onToggle:h,onCheckChange:m,onClickChange:g},{default:t.withCtx((e=>[t.renderSlot(n.$slots,"default",{node:e.node},void 0,!0)])),_:2},1032,["node","accordion","is-expanded","label-key","value-key","children-key","font-size","multiple-check","single-check","check-strictly"])))),128))],12,np)):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-9af8e457"]]),ap=Object.freeze(Object.defineProperty({__proto__:null,default:ip},Symbol.toStringTag,{value:"Module"})),rp={class:"lym-tree"},op=l(t.defineComponent({__name:"LymTree",props:{options:{type:Array,required:!0},defaultData:{type:[Array,String,Number],default:[]},defaultExpandedKey:{type:Number,default:-1},accordion:{type:Boolean,default:!1},labelKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},childrenKey:{type:String,default:"children"},fontSize:{type:Number,default:15},singleCheck:{type:Boolean,default:!1},multipleCheck:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const i=e,a=n,r=t.ref([]),l=t.ref([]),s=t.ref([]),c=t.ref([]),u=t.ref(!1),d=t.ref("");function h(){o(i.defaultData)?c.value=[...i.defaultData]:i.defaultData?c.value=[i.defaultData]:c.value=[],f(r.value),i.multipleCheck&&!i.checkStrictly&&function(e){for(let t=0;t<e.length;t++){const n=v(e[t]);n.isCheckAll?-1!==n.checkedNum&&(e[t].checked=!0,e[t].isIndeterminate=!1):(n.checkedNum>0||n.indeterminateNum>0)&&(e[t].checked=!1,e[t].isIndeterminate=!0)}}(r.value)}function p({isExpanded:e,key:t}){e&&i.accordion&&r.value.forEach((e=>{e[i.valueKey]!==t&&(e.isExpanded=!1)}))}function m(e){e.isExpanded=!0,e[i.childrenKey]&&e[i.childrenKey].length>0&&e[i.childrenKey].forEach((e=>{m(e)}))}function f(e,t=[]){e.forEach((e=>{e.isExpanded=e.isExpanded||!1,e.isIndeterminate=!1;const n=c.value.findIndex((t=>e[i.valueKey]+""===t));e.checked=-1!==n;const a=[...t,e[i.valueKey]];if(e[i.childrenKey]&&e[i.childrenKey].length>0&&f(e[i.childrenKey],a),c.value&&c.value.length){-1!==c.value.findIndex((t=>e[i.valueKey]+""===t))&&(e.checked=!0,i.singleCheck&&(s.value=[...a]))}}))}function v(e){if(e.children&&e.children.length){let t=0,n=0;for(let a=0;a<e.children.length;a++){const r=c.value.findIndex((t=>e.children[a][i.valueKey]+""===t));-1!==r&&t++;const o=v(e.children[a]);o.isCheckAll?-1!==o.checkedNum&&(e.children[a].checked=!0,e.children[a].isIndeterminate=!1,-1===r&&t++):(o.checkedNum>0||o.indeterminateNum>0)&&(e.children[a].checked=!1,e.children[a].isIndeterminate=!0,n++)}return{isCheckAll:t===e.children.length,checkedNum:t,indeterminateNum:n}}return{isCheckAll:!0,checkedNum:-1,indeterminateNum:0}}function g(e){i.checkStrictly||r.value.forEach((t=>{t[i.valueKey]===e&&function(e){const t=e[i.childrenKey];let n=0,a=0;if(t&&t.length){for(let e=0;e<t.length;e++)t[e].isIndeterminate?a++:t[e].checked&&n++;n===t.length?(e.checked=!0,e.isIndeterminate=!1):0===n?a>0?e.isIndeterminate=!0:(e.checked=!1,e.isIndeterminate=!1):e.isIndeterminate=!0}}(t)})),l.value=[],_(r.value),u.value=!0,a("change",JSON.parse(JSON.stringify(l.value)))}function _(e,n=""){i.checkStrictly?e.forEach((e=>{const a=(n?n+"&":"")+e[i.valueKey];e[i.childrenKey]&&e[i.childrenKey].length>0&&_(e[i.childrenKey],a),e.checked&&!e.isIndeterminate&&l.value.push({key:a.split("&").pop(),node:t.toRaw(e)})})):e.forEach((e=>{if(e.checked||e.isIndeterminate){const a=(n?n+"&":"")+e[i.valueKey];e[i.childrenKey]&&e[i.childrenKey].length>0?_(e[i.childrenKey],a):l.value.push({key:a.split("&").pop(),node:t.toRaw(e)})}}))}function x(e){s.value.length&&y(s.value,!1),y(e.keys,!0),s.value=[...e.keys],l.value={key:e.keys.pop(),node:e.node},u.value=!0,a("change",JSON.parse(JSON.stringify(l.value)))}function y(e,t){let n=r.value;for(let a=0;a<e.length;a++){const r=e[a],o=n.findIndex((e=>e[i.valueKey]===r));-1!==o&&(a===e.length-1?n[o].checked=t:n=n[o].children)}}return t.watch((()=>i.defaultData),((e,t)=>{u.value?u.value=!1:h()})),t.computed((()=>0)),t.onMounted((()=>{d.value="childrenBox"+Math.floor(1e3*Math.random()),r.value=JSON.parse(JSON.stringify(i.options)),h(),t.nextTick((()=>{i.defaultExpandedKey>-1&&m(r.value[i.defaultExpandedKey])}))})),(n,i)=>(t.openBlock(),t.createElementBlock("div",rp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value,(i=>(t.openBlock(),t.createBlock(ip,{key:i[e.valueKey],node:i,accordion:e.accordion,"is-expanded":i.isExpanded,"label-key":e.labelKey,"value-key":e.valueKey,"children-key":e.childrenKey,"font-size":e.fontSize,"multiple-check":e.multipleCheck,"single-check":e.singleCheck,"check-strictly":e.checkStrictly,"id-prefix":d.value,onToggle:p,onCheckChange:g,onClickChange:x},{default:t.withCtx((e=>[t.renderSlot(n.$slots,"default",{node:e.node},void 0,!0)])),_:2},1032,["node","accordion","is-expanded","label-key","value-key","children-key","font-size","multiple-check","single-check","check-strictly","id-prefix"])))),128))]))}}),[["__scopeId","data-v-1e862dd5"]]),lp=Object.freeze(Object.defineProperty({__proto__:null,default:op},Symbol.toStringTag,{value:"Module"})),sp={class:"lym-select__wrapper lym-flex-cb no-select"},cp={style:{flex:"1"}},up={class:"lym-flex-c lym-select__multiple-item"},dp={style:{flex:"1"}},hp=(e=>(t.pushScopeId("data-v-bcf7cc77"),e=e(),t.popScopeId(),e))((()=>t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle"},null,-1))),pp={class:"lym-select_dropdown-content lym-flex-wrap",style:{padding:"10px 10px 5px 10px"}},mp={style:{flex:"1"}},fp={key:2,style:{color:"#a8abb2"}},vp={key:3,style:{color:"#606266"}},gp={class:"lym-select_dropdown-content"},_p=l(t.defineComponent({__name:"LymTreeSelect",props:{modelValue:{type:[String,Array,Number],default:""},options:{type:Array,default:()=>[]},width:{type:[String,Number],default:"240px"},ddbWidth:{type:[String,Number],default:"240px"},fontSize:{type:[String,Number],default:"14px"},padding:{type:String,default:"4px 12px"},scrollMaxH:{type:String,default:"200px"},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},collapseTagsTooltip:{type:Boolean,default:!1},collapseTagsTooltipWidth:{type:Number,default:220},defaultExpandedKey:{type:Number,default:-1},accordion:{type:Boolean,default:!1},labelKey:{type:String,default:"name"},valueKey:{type:String,default:"value"},childrenKey:{type:String,default:"children"},treeFontSize:{type:Number,default:15},checkStrictly:{type:Boolean,default:!1}},emits:["update:modelValue","selectCompleted"],setup(e,{emit:n}){const i=e,o=n,l=t.ref([]),s=t.ref([]),c=t.ref("leave"),u=t.ref(!1),d=t.ref(!1),h=t.ref(!1),p=t.ref({}),m=t.ref("请选择"),f="selectMultipleBoxId"+1e3*Math.random(),v=t.ref(!1),g=t.ref(!1),_=t.ref(null),x=t.ref(!1),y=t.ref(0),S=t.ref(""),b=t.ref(),M=t.ref({x:0,y:0});t.watch((()=>i.modelValue),((e,t)=>{e!==t&&(x.value?x.value=!1:C())})),t.watch((()=>i.options),((e,t)=>{l.value=e})),t.watch((()=>i.ddbWidth),((e,t)=>{let n="";a(e)&&(n=e,n=n.replace("px","")),y.value=Number(n)}),{immediate:!0});const E=t.computed((()=>{let e="",t=i.width;a(t)?e+=`width: ${t};`:r(t)&&(e+=`width: ${t}px;`);let n=i.fontSize;return a(n)?e+=`font-size: ${n};`:r(n)&&(e+=`font-size: ${n}px;`),e+=`padding: ${i.padding};`,e+="border-color: "+(i.disabled?"#e4e7ed":u.value?"#409eff":"leave"===c.value?"#dcdfe6":"#c0c4cc")+";",e+="background-color: "+(i.disabled?"#F5F7FA":"white")+";",e+="cursor: "+(i.disabled?"not-allowed":"pointer")+";",e})),w=t.computed((()=>{let e=!1;return e=i.multiple?p.value.length>0:!!p.value[i.valueKey],!i.disabled&&i.clearable&&e&&"enter"===c.value})),T=t.computed((()=>{let e=!1;return e=i.multiple?p.value.length>0:!!p.value[i.valueKey],e}));function C(){l.value=[...i.options],s.value=i.modelValue,p.value=i.multiple?[]:{},A(l.value),t.nextTick((()=>{M.value.x=b.value.offsetLeft,M.value.y=b.value.offsetTop+b.value.offsetHeight+15}))}function A(e){e.forEach((e=>{if(i.multiple){-1!==s.value.findIndex((t=>t===e[i.valueKey]))&&p.value.push(e)}else e[i.valueKey]===s.value&&(p.value=e);e[i.childrenKey]&&e[i.childrenKey].length&&A(e[i.childrenKey])}))}function N(e){const t=e.target,n=[t.offsetLeft,t.offsetLeft+t.offsetWidth],i=[t.offsetTop,t.offsetTop+t.offsetHeight];e.x>n[0]&&e.x<n[1]&&e.y>i[0]&&e.y<i[1]&&(c.value="enter")}function R(){c.value="leave"}function L(){i.disabled||(u.value=!u.value,q())}function P(){u.value=!1,q()}function q(){u.value?(v.value=!1,d.value=!0):(h.value=!0,setTimeout((()=>{d.value=!1,h.value=!1}),150))}function I(){i.disabled||(i.multiple?(p.value=[],S.value=[],s.value=[]):(p.value={},s.value=""),m.value="请选择",V())}function k(e){i.disabled||(v.value&&(g.value.splice(e-1,1),v.value=!1),p.value.splice(e,1),s.value=p.value.map((e=>e[i.valueKey])),U(),V())}function B(){null===_.value&&(_.value=setTimeout((()=>{v.value=!1}),300))}function D(){d.value||(_.value&&(clearTimeout(_.value),_.value=null),g.value=p.value.slice(1,p.value.length),v.value=!0)}function U(){i.multiple&&t.nextTick((()=>{let e=[],t=[];const n=document.getElementById(f);for(let i=0;i<n.children.length;i++){const a=n.children[i];0!==i&&a.offsetTop-t[t.length-1].top>10&&(e.push([...t]),t=[]),t.push({dom:a,top:a.offsetTop}),i===n.children.length-1&&(e.push([...t]),t=[])}e.forEach(((t,n)=>{t.forEach(((i,a)=>{i.dom.style.marginBottom=n===e.length-1?"0px":"5px",i.dom.style.marginRight=a===t.length-1?"0px":"5px"}))}))}))}function V(){x.value=!0,o("update:modelValue",undefined),o("selectCompleted")}function O(e){if(i.multiple){s.value=e.map((e=>e.key));const t=e.map((e=>e.node));p.value=t,U()}else s.value=e.key,p.value=e.node,P();o("update:modelValue",s.value)}return t.onMounted((()=>{C()})),(n,i)=>{const a=t.resolveDirective("lym-click-outside");return t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"lymTreeSelectRef",ref:b,class:"lym-select",style:t.normalizeStyle(E.value),onMouseenter:N,onMouseleave:R,onClick:L},[t.createElementVNode("div",sp,[t.createElementVNode("div",{id:f,class:"lym-flex-wrap",style:{flex:"1","margin-right":"10px"}},[e.multiple&&!e.collapseTags?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(p.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item"},[t.createElementVNode("div",cp,[t.renderSlot(n.$slots,"selectedContent",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>k(a)),["stop"])},null,8,["onClick"])])))),128)):t.createCommentVNode("",!0),e.multiple&&e.collapseTags&&T.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",up,[t.createElementVNode("div",dp,[t.renderSlot(n.$slots,"selectedContent",{selectedData:p.value[0]},(()=>[t.createTextVNode(t.toDisplayString(p.value[0][e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:i[0]||(i[0]=t.withModifiers((e=>k(0)),["stop"]))})]),p.value.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-flex-c lym-select__multiple-item",onMouseenter:D,onMouseleave:B},[t.createTextVNode(" +"+t.toDisplayString(p.value.length-1)+" ",1),v.value&&e.collapseTagsTooltip?(t.openBlock(),t.createElementBlock("div",{key:0,class:"lym-select__multiple-over-items",style:t.normalizeStyle({width:e.collapseTagsTooltipWidth+"px"}),onMouseenter:D,onMouseleave:B,onClick:i[1]||(i[1]=t.withModifiers((()=>{}),["stop"]))},[hp,t.createElementVNode("div",pp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:i[e.valueKey],class:"lym-flex-c lym-select__multiple-item",style:{margin:"0 5px 5px 0"}},[t.createElementVNode("div",mp,[t.renderSlot(n.$slots,"selectedcollapseTags",{selectedData:i},(()=>[t.createTextVNode(t.toDisplayString(i[e.labelKey]),1)]),!0)]),t.createVNode(z,{src:"close",type:"svgicon","fill-color":"#9D9FA4",size:"8",style:{"margin-left":"10px"},onClick:t.withModifiers((e=>k(a+1)),["stop"])},null,8,["onClick"])])))),128))])],36)):t.createCommentVNode("",!0)],32)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),T.value?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",fp,t.toDisplayString(m.value),1)),!e.multiple&&T.value?(t.openBlock(),t.createElementBlock("div",vp,[t.renderSlot(n.$slots,"selectedContent",{selectedData:p.value},(()=>[t.createTextVNode(t.toDisplayString(p.value[e.labelKey]),1)]),!0)])):t.createCommentVNode("",!0)]),w.value?(t.openBlock(),t.createElementBlock("div",{key:0,style:{width:"16px"},onClick:t.withModifiers(I,["stop"])},[t.createVNode(z,{src:"close-circle-line",type:"svgicon","fill-color":"#a8abb2","hover-color":"#909399",size:"16","need-change-hover-cusor":""})])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"lym-select__suffix",style:t.normalizeStyle({transform:"rotate("+(u.value?"180deg":"0")+")"})},[t.createVNode(z,{src:"arrow-bottom",type:"svgicon","fill-color":"#a8abb2",size:"11"})],4))]),d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["lym-select__dropdown-box-"+(h.value?"hide":"show")]),style:t.normalizeStyle({width:y.value+"px",left:M.value.x+"px",top:M.value.y+"px"}),onClick:i[2]||(i[2]=t.withModifiers((()=>{}),["stop"]))},[t.createElementVNode("div",{class:"lym-select__dropdown-top-triangle",style:t.normalizeStyle({left:3*y.value/4/2+"px"})},null,4),t.createElementVNode("div",gp,[t.createElementVNode("div",{class:"lym-custom-scrollbar",style:t.normalizeStyle([{maxHeight:e.scrollMaxH},{"overflow-y":"auto"}])},[t.createVNode(op,{options:l.value,"default-data":s.value,"single-check":!e.multiple,"multiple-check":e.multiple,accordion:e.accordion,"default-expanded-key":e.defaultExpandedKey,"label-key":e.labelKey,"value-key":e.valueKey,"children-key":e.childrenKey,"font-size":e.treeFontSize,"check-strictly":e.checkStrictly,onChange:O},{default:t.withCtx((e=>[t.createTextVNode(t.toDisplayString(e.node.name),1)])),_:1},8,["options","default-data","single-check","multiple-check","accordion","default-expanded-key","label-key","value-key","children-key","font-size","check-strictly"])],4)])],6)):t.createCommentVNode("",!0)],36)),[[a,P]])}}}),[["__scopeId","data-v-bcf7cc77"]]),xp=Object.freeze(Object.defineProperty({__proto__:null,default:_p},Symbol.toStringTag,{value:"Module"}));let yp=null,Sp=null;const bp={show(e){!function(e){const n=document.getElementsByClassName("lym-loading-container");n.length?Sp=n[0]:(Sp=document.createElement("div"),Sp.className="lym-loading-container",document.body.appendChild(Sp)),yp&&(clearTimeout(yp),yp=null,t.render(null,Sp));const i=t.createVNode(jn,e);t.render(i,Sp),e.duration&&(yp=setTimeout((()=>{yp=null,t.render(null,Sp),Sp.remove()}),e.duration))}(e||{})},hide(){Sp&&Sp.children[0]&&(Sp.children[0].className=Sp.children[0].className.replace("lym-gradually-appear","lym-gradually-display"),setTimeout((()=>{yp&&(clearTimeout(yp),yp=null),t.render(null,Sp),Sp.remove()}),300))}};const Mp={beforeMount(e,t){e.clickOutsideEvent=function(n){e===n.target||e.contains(n.target)||t.value(n)},document.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.removeEventListener("click",e.clickOutsideEvent)}},Ep={mounted(e,t){wp(e,t)},updated(e,t){wp(e,t)}};function wp(e,t){let n,i,a,r,o;e.attributes["lym-loading-text"]&&(n=e.attributes["lym-loading-text"].value),e.attributes["lym-loading-bg-color"]&&(i=e.attributes["lym-loading-bg-color"].value),e.attributes["lym-loading-icon"]&&(a=e.attributes["lym-loading-icon"].value),e.attributes["lym-loading-text-color"]&&(r=e.attributes["lym-loading-text-color"].value),e.attributes["lym-loading-icon-color"]&&(o=e.attributes["lym-loading-icon-color"].value),t.value?bp.show({target:e,text:n,bgColor:i,icon:a,textColor:r,iconColor:o}):bp.hide()}const Tp={async mounted(e,t){const n=await Promise.resolve().then((()=>zp));e.src=n.default;const i=new IntersectionObserver((n=>{n.forEach((n=>{n.isIntersecting&&(e.src=t.value,i.unobserve(e))}))}));i.observe(e)}},Cp=document.createElement("div");Cp.className="lym-notification-container",document.body.appendChild(Cp);let Ap=null;async function Np(e){document.getElementsByClassName("lym-notification").length>0&&(clearTimeout(Ap),t.render(null,Cp));const n=await Q({fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",width:e.params.maxWidth||400,content:e.content}),i=n?Number(n):40,a=e.params.maxWidth||400,r=t.createVNode(Yn,{type:e.type,content:e.content,top:Rp,openDuration:e.params.duration||3e3,maxWidth:a,maxHeight:i,fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",isPlain:e.params.isPlain});t.render(r,Cp),clearTimeout(Ap),Ap=setTimeout((()=>{t.render(null,Cp)}),e.params.duration||3e3)}let Rp=10,Lp=[];async function Pp(e){const n=document.createElement("div");Cp.appendChild(n);const i=await Q({fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",width:e.params.maxWidth||400,content:e.content}),a=e.params.maxWidth||400,r=i?Number(i):40,o=t.createVNode(Yn,{type:e.type,content:e.content,top:Rp,openDuration:e.params.duration||3e3,maxWidth:a,maxHeight:r,fontSize:e.params.fontSize||14,padding:e.params.padding||"8px 12px",isPlain:e.params.isPlain,callback:function(e){Lp.push(e)}});t.render(o,n),setTimeout((()=>{t.render(null,n),Lp.shift(),Rp=Rp-r-10,Cp.removeChild(n),Lp.forEach((e=>{e()}))}),e.params.duration||3e3),Rp+=r+10}const qp={default(e,t){const n={type:"default",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)},success(e,t){const n={type:"success",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)},warning(e,t){const n={type:"warning",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)},danger(e,t){const n={type:"danger",content:e,params:t||{}};t&&t.isSingle?Np(n):Pp(n)}},Ip={install(e){var t;!function(e){e.directive("lym-click-outside",Mp),e.directive("lym-loading-cover",Ep),e.directive("lym-lazy",Tp)}(e);const n=Object.assign({"./components/LymBadge.vue":c,"./components/LymBubbleContainer.vue":d,"./components/LymButton.vue":D,"./components/LymCard.vue":H,"./components/LymCarousel.vue":X,"./components/LymCheckBox.vue":$,"./components/LymCheckBoxGroup.vue":Y,"./components/LymColorPicker.vue":we,"./components/LymCountTo.vue":Ne,"./components/LymDialog.vue":Le,"./components/LymDivider.vue":qe,"./components/LymDrawer.vue":ke,"./components/LymForm.vue":De,"./components/LymFormItem.vue":Ge,"./components/LymInput.vue":nt,"./components/LymLink.vue":ot,"./components/LymPagination.vue":Ot,"./components/LymPopover.vue":Gt,"./components/LymProgress.vue":rn,"./components/LymRate.vue":cn,"./components/LymSelect.vue":It,"./components/LymSkeleton.vue":pn,"./components/LymSlider.vue":_n,"./components/LymSteps.vue":bn,"./components/LymSwitch.vue":wn,"./components/LymTag.vue":Nn,"./components/LymTooltip.vue":Pn,"./components/cascader/LymCascader.vue":ht,"./components/collapse/LymCollapse.vue":In,"./components/collapse/LymCollapseItem.vue":Bn,"./components/date/LymDatePicker.vue":Vn,"./components/date/LymDateTimePicker.vue":Hn,"./components/date/LymTimePicker.vue":Wn,"./components/generic-img/LymGenericImg.vue":k,"./components/generic-img/LymSvgIcons.vue":v,"./components/loading/LymLoading.vue":$n,"./components/notification/LymNotification.vue":Jn,"./components/notification/LymNotificationBox.vue":ei,"./components/table/LymTable.vue":ri,"./components/table/LymTableColumn.vue":si,"./components/tabs/LymTabPane.vue":ui,"./components/tabs/LymTabs.vue":pi,"./components/three/LymColumnChart.vue":Hh,"./components/three/LymWebGLComponent.vue":Qh,"./components/tree/LymTree.vue":lp,"./components/tree/LymTreeNode.vue":ap,"./components/tree/LymTreeSelect.vue":xp});for(const i in n){const a=n[i],r=null==(t=i.split("/").pop())?void 0:t.replace(/\.\w+$/,"");r&&e.component(r,a.default)}}},zp=Object.freeze(Object.defineProperty({__proto__:null,default:"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20aria-hidden='true'%20role='img'%20class='iconify%20iconify--logos'%20width='37.07'%20height='36'%20preserveAspectRatio='xMidYMid%20meet'%20viewBox='0%200%20256%20198'%3e%3cpath%20fill='%2341B883'%20d='M204.8%200H256L128%20220.8L0%200h97.92L128%2051.2L157.44%200h47.36Z'%3e%3c/path%3e%3cpath%20fill='%2341B883'%20d='m0%200l128%20220.8L256%200h-51.2L128%20132.48L50.56%200H0Z'%3e%3c/path%3e%3cpath%20fill='%2335495E'%20d='M50.56%200L128%20133.12L204.8%200h-47.36L128%2051.2L97.92%200H50.56Z'%3e%3c/path%3e%3c/svg%3e"},Symbol.toStringTag,{value:"Module"}));e.LymBadge=s,e.LymBubbleContainer=u,e.LymButton=B,e.LymCard=F,e.LymCarousel=W,e.LymCascader=dt,e.LymCheckBox=j,e.LymCheckBoxGroup=K,e.LymCollapse=qn,e.LymCollapseItem=kn,e.LymColorPicker=Ee,e.LymCountTo=Ae,e.LymDatePicker=Un,e.LymDateTimePicker=Fn,e.LymDialog=Re,e.LymDivider=Pe,e.LymDrawer=ze,e.LymForm=Be,e.LymFormItem=He,e.LymGenericImg=z,e.LymInput=tt,e.LymLink=rt,e.LymNotification=qp,e.LymNotificationBox=e=>{const n=document.getElementsByClassName("lym-notification-box-container");let i;return n.length?i=n[0]:(i=document.createElement("div"),i.className="lym-notification-box-container",i.setAttribute("key",Date.now().toString()),document.body.appendChild(i)),new Promise(((n,a)=>{const r=t.createVNode(Qn,{title:e.title,content:e.content,sureText:e.sureText,cancelText:e.cancelText,textCenter:e.textCenter,showCancel:e.showCancel,sureCallback:()=>{t.render(null,i),i.remove(),n(!0)},cancelCallback:()=>{t.render(null,i),i.remove(),a()}});t.render(r,i)}))},e.LymPagination=Vt,e.LymPopover=Ht,e.LymProgress=an,e.LymRate=sn,e.LymSelect=qt,e.LymSkeleton=hn,e.LymSlider=gn,e.LymSteps=Sn,e.LymSwitch=En,e.LymTabPane=ci,e.LymTable=ai,e.LymTableColumn=li,e.LymTabs=hi,e.LymTag=An,e.LymTimePicker=Gn,e.LymTooltip=Ln,e.LymTree=op,e.LymTreeSelect=_p,e.default=Ip,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|