@flyfish-group/file-viewer 1.0.15 → 1.0.17
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/README.md +19 -15
- package/dist/components/3MFLoader.js +1 -1
- package/dist/components/AMFLoader.js +1 -1
- package/dist/components/ArchiveViewer.js +7 -6
- package/dist/components/AudioViewer.js +1 -1
- package/dist/components/CadViewer.js +1 -1
- package/dist/components/CodeViewer.js +1 -1
- package/dist/components/ColladaLoader.js +1 -1
- package/dist/components/DrawingViewer.js +1 -1
- package/dist/components/EdaViewer.js +1 -1
- package/dist/components/EmailViewer.js +1 -1
- package/dist/components/EpubViewer.js +1 -1
- package/dist/components/FBXLoader.js +1 -1
- package/dist/components/GLTFLoader.js +1 -1
- package/dist/components/ImageViewer.js +1 -1
- package/dist/components/KMZLoader.js +1 -1
- package/dist/components/MarkdownViewer.js +1 -1
- package/dist/components/OBJLoader.js +1 -1
- package/dist/components/OfdViewer.js +1 -1
- package/dist/components/PCDLoader.js +1 -1
- package/dist/components/PLYLoader.js +1 -1
- package/dist/components/PdfView.js +3141 -3088
- package/dist/components/STLLoader.js +1 -1
- package/dist/components/TDSLoader.js +1 -1
- package/dist/components/USDLoader.js +1 -1
- package/dist/components/UmdViewer.js +2 -2
- package/dist/components/VRMLLoader.js +1 -1
- package/dist/components/VTKLoader.js +1 -1
- package/dist/components/XYZLoader.js +1 -1
- package/dist/components/XlsxTable.js +1 -1
- package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
- package/dist/components/_commonjs-dynamic-modules.js +1 -1
- package/dist/components/_commonjsHelpers.js +1 -1
- package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
- package/dist/components/arc.js +1 -1
- package/dist/components/architecture-7EHR7CIX.js +1 -1
- package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
- package/dist/components/az-AZ-76LH7QW2.js +1 -1
- package/dist/components/bg-BG-XCXSNQG7.js +1 -1
- package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
- package/dist/components/bn-BD-2XOGV67Q.js +1 -1
- package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
- package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
- package/dist/components/cfb.js +1 -1
- package/dist/components/channel.js +1 -1
- package/dist/components/chunk-2J33WTMH.js +1 -1
- package/dist/components/chunk-4BX2VUAB.js +1 -1
- package/dist/components/chunk-55IACEB6.js +1 -1
- package/dist/components/chunk-727SXJPM.js +1 -1
- package/dist/components/chunk-AQP2D5EJ.js +1 -1
- package/dist/components/chunk-FMBD7UC4.js +1 -1
- package/dist/components/chunk-ND2GUHAM.js +1 -1
- package/dist/components/chunk-QZHKN3VN.js +1 -1
- package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
- package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
- package/dist/components/cytoscape.esm.js +1 -1
- package/dist/components/da-DK-5WZEPLOC.js +1 -1
- package/dist/components/dagre-BM42HDAG.js +1 -1
- package/dist/components/de-DE-XR44H4JA.js +1 -1
- package/dist/components/defaultLocale.js +1 -1
- package/dist/components/diagram-2AECGRRQ.js +1 -1
- package/dist/components/diagram-5GNKFQAL.js +1 -1
- package/dist/components/diagram-KO2AKTUF.js +1 -1
- package/dist/components/diagram-LMA3HP47.js +1 -1
- package/dist/components/diagram-OG6HWLK6.js +1 -1
- package/dist/components/directory-open-01563666.js +1 -1
- package/dist/components/directory-open-4ed118d0.js +1 -1
- package/dist/components/docx-preview.js +2 -2
- package/dist/components/el-GR-BZB4AONW.js +1 -1
- package/dist/components/en-B4ZKOASM.js +1 -1
- package/dist/components/erDiagram-TEJ5UH35.js +1 -1
- package/dist/components/es-ES-U4NZUMDT.js +1 -1
- package/dist/components/eu-ES-A7QVB2H4.js +1 -1
- package/dist/components/eventmodeling-FCH6USID.js +1 -1
- package/dist/components/fa-IR-HGAKTJCU.js +1 -1
- package/dist/components/fflate.module.js +1 -1
- package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
- package/dist/components/file-open-002ab408.js +1 -1
- package/dist/components/file-open-7c801643.js +1 -1
- package/dist/components/file-save-3189631c.js +1 -1
- package/dist/components/file-save-745eba88.js +1 -1
- package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
- package/dist/components/fr-FR-RHASNOE6.js +1 -1
- package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
- package/dist/components/gitGraph-WXDBUCRP.js +1 -1
- package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
- package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/he-IL-6SHJWFNN.js +1 -1
- package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
- package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
- package/dist/components/id-ID-SAP4L64H.js +1 -1
- package/dist/components/image-GAAHSSAO.js +1 -1
- package/dist/components/image-blob-reduce.esm.js +1 -1
- package/dist/components/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +2 -2
- package/dist/components/index22.js +1 -1
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.js +1 -1
- package/dist/components/info-J43DQDTF.js +1 -1
- package/dist/components/infoDiagram-5YYISTIA.js +1 -1
- package/dist/components/init.js +1 -1
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
- package/dist/components/it-IT-JPQ66NNP.js +1 -1
- package/dist/components/ja-JP-DBVTYXUO.js +1 -1
- package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
- package/dist/components/jszip.min.js +1 -1
- package/dist/components/kaa-6HZHGXH3.js +1 -1
- package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
- package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
- package/dist/components/katex.js +1 -1
- package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
- package/dist/components/km-KH-HSX4SM5Z.js +1 -1
- package/dist/components/ko-KR-MTYHY66A.js +1 -1
- package/dist/components/ku-TR-6OUDTVRD.js +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/libarchive.js +1 -1
- package/dist/components/linear.js +1 -1
- package/dist/components/lt-LT-XHIRWOB4.js +1 -1
- package/dist/components/lv-LV-5QDEKY6T.js +1 -1
- package/dist/components/mermaid-parser.core.js +2 -2
- package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
- package/dist/components/mr-IN-CRQNXWMA.js +1 -1
- package/dist/components/my-MM-5M5IBNSE.js +1 -1
- package/dist/components/nb-NO-T6EIAALU.js +1 -1
- package/dist/components/nestedRender.js +1 -1
- package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
- package/dist/components/nn-NO-6E72VCQL.js +1 -1
- package/dist/components/oc-FR-POXYY2M6.js +1 -1
- package/dist/components/ofd.js +1 -1
- package/dist/components/ordinal.js +1 -1
- package/dist/components/pa-IN-N4M65BXN.js +1 -1
- package/dist/components/packet-YPE3B663.js +1 -1
- package/dist/components/percentages-BXMCSKIN.js +1 -1
- package/dist/components/pica.js +1 -1
- package/dist/components/pie-LRSECV5Y.js +1 -1
- package/dist/components/pie.js +1 -1
- package/dist/components/pieDiagram-4H26LBE5.js +1 -1
- package/dist/components/pl-PL-T2D74RX3.js +1 -1
- package/dist/components/postal-mime.js +1 -1
- package/dist/components/pt-BR-5N22H2LF.js +1 -1
- package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
- package/dist/components/radar-GUYGQ44K.js +1 -1
- package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
- package/dist/components/ro-RO-JPDTUUEW.js +1 -1
- package/dist/components/rough.esm.js +1 -1
- package/dist/components/roundRect.js +1 -1
- package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
- package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
- package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
- package/dist/components/si-LK-N5RQ5JYF.js +1 -1
- package/dist/components/sk-SK-C5VTKIMK.js +1 -1
- package/dist/components/sl-SI-NN7IZMDC.js +1 -1
- package/dist/components/stateDiagram-AJRCARHV.js +1 -1
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
- package/dist/components/subset-shared.chunk.js +1 -1
- package/dist/components/subset-worker.chunk.js +1 -1
- package/dist/components/sv-SE-XGPEYMSR.js +1 -1
- package/dist/components/ta-IN-2NMHFXQM.js +1 -1
- package/dist/components/th-TH-HPSO5L25.js +1 -1
- package/dist/components/time.js +1 -1
- package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
- package/dist/components/tr-TR-DEFEU3FU.js +1 -1
- package/dist/components/transform.js +1 -1
- package/dist/components/treeView-BLDUP644.js +1 -1
- package/dist/components/treemap-LRROVOQU.js +1 -1
- package/dist/components/uk-UA-QMV73CPH.js +1 -1
- package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
- package/dist/components/vi-VN-M7AON7JQ.js +1 -1
- package/dist/components/wardley-L42UT6IY.js +1 -1
- package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
- package/dist/components/worker-ref.js +1 -1
- package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
- package/dist/components/zh-CN-LNUGB5OW.js +1 -1
- package/dist/components/zh-HK-E62DVLB3.js +1 -1
- package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
- package/dist/index.d.ts +125 -6
- package/dist/index.mjs +1 -1
- package/dist/package/index.d.ts +1 -0
- package/dist/style.css +3 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const bc=c;(function(a0,a1){const ba=c,a2=a0();while(!![]){try{const a3=-parseInt(ba(0x123))/0x1+-parseInt(ba(0xaa))/0x2+parseInt(ba(0xea))/0x3*(-parseInt(ba(0xe2))/0x4)+-parseInt(ba(0xfe))/0x5*(parseInt(ba(0xf7))/0x6)+-parseInt(ba(0xf0))/0x7+parseInt(ba(0xd5))/0x8*(parseInt(ba(0x9f))/0x9)+parseInt(ba(0x114))/0xa*(parseInt(ba(0x153))/0xb);if(a3===a1)break;else a2['push'](a2['shift']());}catch(a4){a2['push'](a2['shift']());}}}(a,0x4f8b0));function c(b,d){b=b-0x88;const e=a();let f=e[b];return f;}import{u as d}from'./fflate.module.js';function a(){const cI=['parse','inputs:specularColor','trim','transmission','verticalApertureOffset','pow','xformOp:rotateZ','start','connectionPaths','subset','rotateX','_findUVPrimvar','replace','parent','Capsule','transparent','has','int','.inputs:bump_map','pop','_readFieldSets','abs','readInt32','72120bCBLNI','_resolveReference','shaping:cone:angle','_pickBestMaterial','normals:indices','_getMaterialBindingTarget','byteOffset','bind','parseData','xformOp:rotateY','add','_getTextureFromOpenPBRConnection','Variability','4qIiboV','tokens','thickness','dot','_readArrayValue','quat','Token','_buildHierarchy','1526292eJcDIy','scales','xformOp:translate:pivot','map','arnold:image','parentToHoles','1509683wgsvFj','_readTOC','variantChildren','attributesByPrimPath','setAttribute','getInt16','Vec2i','100230REaYAt','log','userData','inputs:width','_readHalf','_getLocalVariantSelections','fieldSets','65yoBHCh','getUint16','split','SphereLight','_applyTriangulationPattern','_conversionBuffer','setUint32','min','emissiveMap','Half','readFloat64','Matrix4d','radius','readUint8','seek','isCompressed','matrix','primvars:st1','double','elementSize','image','reader','14170jtrsGZ','readUint16','_parseAttributeValue','_preprocess','_extractPrimData','makeRotationY','_applyMaterial','join','primvars:normals:indices','Skeleton','push','clippingRange','primvars:skel:geomBindTransform','material:binding','subarray','455658WRfmQy','usd','readFloat32','fStop','_bindSkeletons','AssetPath','shaping:cone:softness','filmGauge','_halfToFloat','Specifier','textureCache','children','max','roughness','byteLength','xformOp:orient','inputs:emission_luminance','isSafeInteger','specularColorMap','materialsByRoot','resolveURL','_applyPreviewSurface','_readPathsRecursive','.inputs:inColor','size','inputs:thin_film_ior','references','set','Cone','readUint32','Shader','Vec4f','forEach','readString','.quaternion','upAxis','_resolveFilePath','USDCParser:\x20Unsupported\x20array\x20type','skinWeight','buffer','TimeSamples','major','_triangulateNGonWithHoles','payload','inputs:varname','geomSubsetsByMeshPath','usdc','specType','16753BAqPca','_buildMaterial','specsByPath','startsWith','skinnedMeshes','endsWith','_getAttributes','keys','slice','name','getInt8','view','isFinite','applyTransform','\x20for\x20type\x20','.inputs:input','_triangulateNGon','UsdUVTexture','_stripBlockComments','indexOf','manager','Int64ListOp','sections','_buildGeometry','skeletons','_selectTopWeights','Vec2f','xformOp:translate','assets','readBytes','isArray','length','position','quaternion','_buildCamera','_loadTextureFromPath','rel\x20','fields','invert','itemError','_parseNumber','projection','scale','primvars:skel:jointIndices','toLowerCase','texCoord','timeSamples','version','emissive','primvars:UVMap','setRGB','load','.inputs:in','values','_computeVertexNormals','primvars:normals','string','xformOp:rotateXYZ','.position','_applyOpenPBRSurface','_readValue','_readInlinedValue','_expandAttribute','xformOp:transform','Prim','tell','get','54mmNTnE','Xform','Attribute','UChar','MayaND_fileTexture_color4','remove','readUint64','test','UsdPrimvarReader_float2','xformOp:scale','_collapseTripleQuotedStrings','978234leMBGU','triangulateShape','opacity','getFloat32','typeEnum','Double','Cylinder','paths','readInt64','pathIndex','Dictionary','makeTranslation','_applyTextureOrValue','multiply','#usda\x201.0','inputs:occlusion','includes','fps','childrenByPath','getUint32'];a=function(){return cI;};return a();}import{G as e,i as f,aw as g,Q as h,V as i,O as j,aA as k,z as l,E as m,q as n,y as o,f as p,a6 as q,w as r,v as s,C as t,aB as u,Z as v,_ as w,$ as x,B as y,g as B,H as F,J as G,a0 as H,S as I,ai as M,R as N,l as O,k as P,ab as R,a9 as S,aa as T,al as U,aj as V,aC as W,L as X,F as Z}from'./ModelViewer.js';import'vue';import'./index7.js';const Xt=/^def\s+(?:(\w+)\s+)?"?([^"]+)"?$/,Zt=/^string\s+(\w+)$/,Qt=/^(?:uniform\s+)?(\w+(?:\[\])?)\s+(.+)$/;class Yt{['parseText'](a0){const bb=c;a0=this[bb(0x117)](a0);const a1={},a2=a0['split']('\x0a');let a3=null,a4=a1;const a5=[a1];for(const a6 of a2)if(a6['includes']('=')){const a7=this['_findAssignmentOperator'](a6);if(a7===-0x1){a3=a6[bb(0xc0)]();continue;}const a8=a6['slice'](0x0,a7)['trim'](),a9=a6['slice'](a7+0x1)['trim']();if(a9[bb(0x158)]('{')){const aa={};a5['push'](aa),a4[a8]=aa,a4=aa;}else{if(a9['endsWith']('(')){const ab=a9['slice'](0x0,-0x1);a4[a8]=ab;const ac={};a5['push'](ac),a4=ac;}else a4[a8]=a9;}}else{if(a6['includes'](':')&&!a6['includes']('=')){const ad=a6['indexOf'](':'),ae=a6['slice'](0x0,ad)['trim'](),af=a6['slice'](ad+0x1)['trim']();/^[\d.]+$/[bb(0xa6)](ae)&&(a4[ae]=af);}else{if(a6['endsWith']('{')){const ag=a4[a3]||{};a5['push'](ag),a4[a3]=ag,a4=ag;}else{if(a6['endsWith']('}')){if(a5['pop'](),a5['length']===0x0)continue;a4=a5[a5[bb(0x172)]-0x1];}else{if(a6['endsWith']('(')){const ah={};a5['push'](ah),a3=a6['split']('(')[0x0]['trim']()||a3,a4[a3]=ah,a4=ah;}else a6['endsWith'](')')?(a5['pop'](),a4=a5[a5[bb(0x172)]-0x1]):a6[bb(0xc0)]()&&(a3=a6['trim']());}}}}return a1;}[bc(0x117)](a0){const bd=bc;a0=this['_stripBlockComments'](a0),a0=this[bd(0xa9)](a0);const a1=a0['split']('\x0a'),a2=[];let a3=!0x1,a4=0x0,a5=0x0,a6='';for(let a7=0x0;a7<a1['length'];a7++){let a8=a1[a7];a8=this['_stripInlineComment'](a8);const a9=a8['trim']();if(a3){a6+='\x20'+a9;for(const aa of a9)aa==='['?a4++:aa===']'?a4--:aa==='('&&a4>0x0?a5++:aa===')'&&a4>0x0&&a5--;a4===0x0&&a5===0x0&&(a2['push'](a6),a6='',a3=!0x1);}else{if(a9['includes']('=')){const ab=this['_findAssignmentOperator'](a9);if(ab!==-0x1){const ac=a9[bd(0x15b)](ab+0x1)['trim']();let ad=0x0,ae=0x0;for(const af of ac)af==='['?ad++:af===']'&&ae++;if(ad>ae){a3=!0x0,a4=ad-ae,a5=0x0,a6=a9;continue;}}}a2['push'](a9);}}return a2['join']('\x0a');}[bc(0x165)](a0){const be=bc;let a1='',a2=0x0;for(;a2<a0['length'];)if(a0[a2]==='/'&&a2+0x1<a0[be(0x172)]&&a0[a2+0x1]==='*'){let a3=a2+0x2;for(;a3<a0['length'];){if(a0[a3]==='*'&&a3+0x1<a0['length']&&a0[a3+0x1]==='/'){a3+=0x2;break;}a3++;}a2=a3;}else a1+=a0[a2],a2++;return a1;}[bc(0xa9)](a0){let a1='',a2=0x0;for(;a2<a0['length'];){if(a2+0x2<a0['length']){const a3=a0['slice'](a2,a2+0x3);if(a3==='\x27\x27\x27'||a3==='\x22\x22\x22'){const a4=a3;for(a1+=a4,a2+=0x3;a2<a0['length'];)if(a2+0x2<a0['length']&&a0['slice'](a2,a2+0x3)===a4){a1+=a4,a2+=0x3;break;}else a0[a2]==='\x0a'?a1+='\x5cn':a0[a2]!=='\x0d'&&(a1+=a0[a2]),a2++;continue;}}a1+=a0[a2],a2++;}return a1;}['_stripInlineComment'](a0){const bf=bc;if(a0['trim']()['startsWith']('#usda'))return a0;let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='#')return a0[bf(0x15b)](0x0,a4)['trimEnd']();}}}return a0;}['_findAssignmentOperator'](a0){let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='=')return a4;}}}return-0x1;}['parseData'](a0){const bg=bc,a1=this['parseText'](a0),a2={},a3={'Attribute':0x1,'Prim':0x6,'Relationship':0x8},a4={};if('#usda\x201.0'in a1){const a6=a1['#usda\x201.0'];a6[bg(0x146)]&&(a4['upAxis']=a6['upAxis']['replace'](/"/g,'')),a6['defaultPrim']&&(a4['defaultPrim']=a6['defaultPrim']['replace'](/"/g,'')),a6['metersPerUnit']!==void 0x0&&(a4['metersPerUnit']=parseFloat(a6['metersPerUnit']));}a2['/']={'specType':a3['Prim'],'fields':a4};const a5=(a7,a8)=>{const bh=bg,a9=[];for(const aa in a7){if(aa===bh(0xb8)||aa==='variants')continue;const ab=aa['match'](Xt);if(ab){const ac=ab[0x1]||'',ad=ab[0x2],ae=a8==='/'?'/'+ad:a8+'/'+ad;a9[bh(0x11e)](ad);const af={'typeName':ac},ag=a7[aa];this['_extractPrimData'](ag,ae,af,a2,a3),a2[ae]={'specType':a3['Prim'],'fields':af},a5(ag,ae);}}a9['length']>0x0&&a2[a8]&&(a2[a8]['fields']['primChildren']=a9);};return a5(a1,'/'),{'specsByPath':a2};}[bc(0x118)](a0,a1,a2,a3,a4){const bi=bc;if(!(!a0||typeof a0!='object'))for(const a5 in a0){if(a5['startsWith']('def\x20'))continue;if(a5==='prepend\x20references'){a2[bi(0x13d)]=[a0[a5]];continue;}if(a5==='payload'){a2['payload']=a0[a5];continue;}if(a5==='variants'){const a7={},a8=a0[a5];for(const a9 in a8){const aa=a9['match'](Zt);if(aa){const ab=aa[0x1],ac=a8[a9]['replace'](/"/g,'');a7[ab]=ac;}}Object[bi(0x15a)](a7)['length']>0x0&&(a2['variantSelection']=a7);continue;}if(a5['startsWith'](bi(0x177))){const ad=a5[bi(0x15b)](0x4),ae=a1+'.'+ad,af=a0[a5]['replace'](/[<>]/g,'');a3[ae]={'specType':a4['Relationship'],'fields':{'targetPaths':[af]}};continue;}if(a5[bi(0xba)]('xformOpOrder')){const ag=a0[a5]['replace'](/[\[\]]/g,'')[bi(0x100)](',')['map'](ah=>ah[bi(0xc0)]()['replace'](/"/g,''));a2['xformOpOrder']=ag;continue;}const a6=a5['match'](Qt);if(a6){const ah=a6[0x1],ai=a6[0x2],aj=a0[a5];if(ai['endsWith']('.connect')){const ak=ai['slice'](0x0,-0x8),al=a1+'.'+ak;let am=String(aj)['trim']();am['startsWith']('<')&&(am=am['slice'](0x1)),am['endsWith']('>')&&(am=am['slice'](0x0,-0x1)),a3[al]||(a3[al]={'specType':a4['Attribute'],'fields':{'typeName':ah}}),a3[al]['fields']['connectionPaths']=[am];continue;}if(ai['endsWith']('.timeSamples')&&typeof aj=='object'){const an=ai['slice'](0x0,-0xc),ao=a1+'.'+an,ap=[],aq=[];for(const as in aj){const au=parseFloat(as);isNaN(au)||(ap['push'](au),aq[bi(0x11e)](this[bi(0x116)](ah,aj[as])));}const ar=ap[bi(0xed)]((av,aw)=>({'t':av,'v':aq[aw]}))['sort']((av,aw)=>av['t']-aw['t']);a3[ao]={'specType':a4['Attribute'],'fields':{'timeSamples':{'times':ar['map'](av=>av['t']),'values':ar['map'](av=>av['v'])},'typeName':ah}};}else{const av=this['_parseAttributeValue'](ah,aj),aw=a1+'.'+ai;a3[aw]={'specType':a4['Attribute'],'fields':{'default':av,'typeName':ah}};}}}}['_parseAttributeValue'](a0,a1){const bj=bc;if(a1==null)return;const a2=String(a1)['trim']();if(a0['endsWith']('[]'))try{let a3=a2['replace'](/\(/g,'[')[bj(0xca)](/\)/g,']');a3['endsWith'](',')&&(a3=a3['slice'](0x0,-0x1));const a4=JSON[bj(0xbe)](a3);return Array['isArray'](a4)&&Array['isArray'](a4[0x0])?a4['flat']():a4;}catch{return a2['replace'](/[\[\]]/g,'')['split'](',')[bj(0xed)](a5=>{const a6=a5['trim'](),a7=parseFloat(a6);return isNaN(a7)?a6['replace'](/"/g,''):a7;});}if(a0['includes']('3')||a0['includes']('2')||a0['includes']('4'))return a2['replace'](/[()]/g,'')['split'](',')['map'](a5=>parseFloat(a5['trim']()));if(a0[bj(0x156)](bj(0xe7))){const a5=a2[bj(0xca)](/[()]/g,'')[bj(0x100)](',')['map'](a6=>parseFloat(a6[bj(0xc0)]()));return[a5[0x1],a5[0x2],a5[0x3],a5[0x0]];}return a0['includes'](bj(0x10e))?a2['replace'](/[()]/g,'')[bj(0x100)](',')['map'](a6=>parseFloat(a6['trim']())):a0==='float'||a0===bj(0x110)||a0===bj(0xcf)?parseFloat(a2):a0==='string'||a0==='token'?this['_parseString'](a2):a0==='asset'?a2[bj(0xca)](/@/g,'')['replace'](/"/g,''):this['_parseString'](a2);}['_parseString'](a0){const bk=bc;(a0['startsWith']('\x22')&&a0['endsWith']('\x22')||a0['startsWith']('\x27')&&a0['endsWith']('\x27'))&&(a0=a0['slice'](0x1,-0x1));let a1='',a2=0x0;for(;a2<a0['length'];)if(a0[a2]==='\x5c'&&a2+0x1<a0[bk(0x172)]){const a3=a0[a2+0x1];switch(a3){case'n':a1+='\x0a';break;case't':a1+='\x09';break;case'r':a1+='\x0d';break;case'\x5c':a1+='\x5c';break;case'\x22':a1+='\x22';break;case'\x27':a1+='\x27';break;default:a1+=a3;break;}a2+=0x2;}else a1+=a0[a2],a2++;return a1;}}const ft=new TextDecoder(),vt=new Float32Array(0x20);for(let A=0x0;A<0x20;A++)vt[A]=Math['pow'](0x2,A-0xf);const Kt=Math[bc(0xc3)](0x2,-0xe),b={'Invalid':0x0,'Bool':0x1,'UChar':0x2,'Int':0x3,'UInt':0x4,'Int64':0x5,'UInt64':0x6,'Half':0x7,'Float':0x8,'Double':0x9,'String':0xa,'Token':0xb,'AssetPath':0xc,'Matrix2d':0xd,'Matrix3d':0xe,'Matrix4d':0xf,'Quatd':0x10,'Quatf':0x11,'Quath':0x12,'Vec2d':0x13,'Vec2f':0x14,'Vec2h':0x15,'Vec2i':0x16,'Vec3d':0x17,'Vec3f':0x18,'Vec3h':0x19,'Vec3i':0x1a,'Vec4d':0x1b,'Vec4f':0x1c,'Vec4h':0x1d,'Vec4i':0x1e,'Dictionary':0x1f,'TokenListOp':0x20,'StringListOp':0x21,'PathListOp':0x22,'ReferenceListOp':0x23,'IntListOp':0x24,'Int64ListOp':0x25,'UIntListOp':0x26,'UInt64ListOp':0x27,'PathVector':0x28,'TokenVector':0x29,'Specifier':0x2a,'Permission':0x2b,'Variability':0x2c,'VariantSelectionMap':0x2d,'TimeSamples':0x2e,'Payload':0x2f,'DoubleVector':0x30,'LayerOffsetVector':0x31,'StringVector':0x32,'ValueBlock':0x33,'Value':0x34,'UnregisteredValue':0x35,'UnregisteredValueListOp':0x36,'PayloadListOp':0x37,'TimeCode':0x38,'PathExpression':0x39,'Relocates':0x3a,'Spline':0x3b,'AnimationBlock':0x3c},$t=0xffffffff,Jt=0x69,te=0x74;function St(a0,a1,a2,a3,a4,a5){for(;a1<a2;){const a6=a0[a1++];if(a1>a2)break;let a7=a6>>0x4;if(a7===0xf){let ab;do{if(a1>=a2)break;ab=a0[a1++],a7+=ab;}while(ab===0xff&&a1<a2);}if(a7>0x0){a1+a7>a2&&(a7=a2-a1);for(let ac=0x0;ac<a7&&!(a4>=a5);ac++)a3[a4++]=a0[a1++];}if(a1>=a2||a1+0x2>a2)break;const a8=a0[a1++]|a0[a1++]<<0x8;if(a8===0x0)break;let a9=(a6&0xf)+0x4;if(a9===0x13){let ad;do{if(a1>=a2)break;ad=a0[a1++],a9+=ad;}while(ad===0xff&&a1<a2);}const aa=a4-a8;if(aa<0x0)break;for(let ae=0x0;ae<a9&&!(a4>=a5);ae++)a3[a4++]=a3[aa+ae];}return a4;}function ut(a0,a1){const bl=bc,a2=new Uint8Array(a1),a3=a0[0x0];if(a3===0x0)return St(a0,0x1,a0['length'],a2,0x0,a1),a2;{let a4=0x1;const a5=[];for(let a8=0x0;a8<a3;a8++){const a9=(a0[a4]|a0[a4+0x1]<<0x8|a0[a4+0x2]<<0x10|a0[a4+0x3]<<0x18)>>>0x0;a5['push'](a9),a4+=0x4;}let a6=a4,a7=0x0;for(let aa=0x0;aa<a3;aa++){const ab=a5[aa],ac=Math[bl(0x105)](0x10000,a1-a7);St(a0,a6,a6+ab,a2,a7,a7+ac),a6+=ab,a7+=ac;}return a2;}}function z(a0,a1){const a2=a1*0x4+(a1*0x2+0x7>>0x3)+0x4,a3=ut(new Uint8Array(a0),a2);return ee(a3,a1);}function ee(a0,a1){const bm=bc,a2=new DataView(a0['buffer'],a0['byteOffset'],a0['byteLength']);let a3=0x0;const a4=a2['getInt32'](a3,!0x0);a3+=0x4;const a5=a1*0x2+0x7>>0x3,a6=a3,a7=a3+a5,a8=new Int32Array(a1);let a9=0x0,aa=a6,ab=a7;for(let ac=0x0;ac<a1;){const ad=a0[aa++];for(let ae=0x0;ae<0x4&&ac<a1;ae++,ac++){const af=ad>>ae*0x2&0x3;let ag=0x0;switch(af){case 0x0:ag=a4;break;case 0x1:ag=a2['getInt8'](ab),ab+=0x1;break;case 0x2:ag=a2[bm(0xf5)](ab,!0x0),ab+=0x2;break;case 0x3:ag=a2['getInt32'](ab,!0x0),ab+=0x4;break;}a9+=ag,a8[ac]=a9;}}return a8;}class se{constructor(a0){const bn=bc;this[bn(0x14a)]=a0,this[bn(0x15e)]=new DataView(a0),this['offset']=0x0;}[bc(0x10c)](a0){this['offset']=a0;}['tell'](){return this['offset'];}['readUint8'](){const a0=this['view']['getUint8'](this['offset']);return this['offset']+=0x1,a0;}['readInt8'](){const a0=this['view']['getInt8'](this['offset']);return this['offset']+=0x1,a0;}[bc(0x115)](){const a0=this['view']['getUint16'](this['offset'],!0x0);return this['offset']+=0x2,a0;}['readInt16'](){const a0=this['view']['getInt16'](this['offset'],!0x0);return this['offset']+=0x2,a0;}['readUint32'](){const a0=this['view']['getUint32'](this['offset'],!0x0);return this['offset']+=0x4,a0;}['readInt32'](){const a0=this['view']['getInt32'](this['offset'],!0x0);return this['offset']+=0x4,a0;}['readUint64'](){const bo=bc,a0=this[bo(0x15e)][bo(0xbd)](this['offset'],!0x0),a1=this['view']['getUint32'](this['offset']+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}[bc(0xb2)](){const bp=bc,a0=this['view'][bp(0xbd)](this['offset'],!0x0),a1=this['view']['getInt32'](this['offset']+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}['readFloat32'](){const bq=bc,a0=this['view'][bq(0xad)](this['offset'],!0x0);return this['offset']+=0x4,a0;}[bc(0x108)](){const a0=this['view']['getFloat64'](this['offset'],!0x0);return this['offset']+=0x8,a0;}['readBytes'](a0){const a1=new Uint8Array(this['buffer'],this['offset'],a0);return this['offset']+=a0,a1;}['readString'](a0){const br=bc,a1=this[br(0x170)](a0);let a2=0x0;for(;a2<a0&&a1[a2]!==0x0;)a2++;return ft['decode'](a1[br(0x122)](0x0,a2));}}class st{constructor(a0,a1){this['lo']=a0,this['hi']=a1;}get['isArray'](){return(this['hi']&0x80000000)!==0x0;}get['isInlined'](){return(this['hi']&0x40000000)!==0x0;}get['isCompressed'](){return(this['hi']&0x20000000)!==0x0;}get['typeEnum'](){return this['hi']>>0x10&0xff;}get['payload'](){return this['lo']+(this['hi']&0xffff)*0x100000000;}['getInlinedValue'](){return this['lo'];}}class ne{[bc(0xdd)](a0){const bs=bc;this[bs(0x14a)]=a0 instanceof ArrayBuffer?a0:a0['buffer'],this['reader']=new se(this['buffer']),this[bs(0x8b)]={'major':0x0,'minor':0x0,'patch':0x0},this['_conversionBuffer']=new ArrayBuffer(0x4),this['_conversionView']=new DataView(this[bs(0x103)]),this['_readBootstrap'](),this[bs(0xf1)](),this['_readTokens'](),this['_readStrings'](),this['_readFields'](),this[bs(0xd2)](),this['_readPaths'](),this['_readSpecs'](),this['specsByPath']={};for(const a1 of this['specs']){const a2=this['paths'][a1[bs(0xb3)]];if(!a2)continue;const a3=this['_getFieldsForSpec'](a1);this['specsByPath'][a2]={'specType':a1['specType'],'fields':a3};}return{'specsByPath':this['specsByPath']};}['_readBootstrap'](){const bu=bc,a0=this['reader'];if(a0[bu(0x10c)](0x0),a0[bu(0x144)](0x8)!=='PXR-USDC')throw new Error('Not\x20a\x20valid\x20USDC\x20file');this['version']['major']=a0[bu(0x10b)](),this[bu(0x8b)]['minor']=a0['readUint8'](),this['version']['patch']=a0['readUint8'](),a0[bu(0x170)](0x5),this['tocOffset']=a0['readUint64']();}['_readTOC'](){const bv=bc,a0=this['reader'];a0['seek'](this['tocOffset']);const a1=a0[bv(0xa5)]();this['sections']={};for(let a2=0x0;a2<a1;a2++){const a3=a0['readString'](0x10),a4=a0['readUint64'](),a5=a0[bv(0xa5)]();this['sections'][a3]={'start':a4,'size':a5};}}['_readTokens'](){const bw=bc,a0=this['sections']['TOKENS'];if(!a0)return;const a1=this['reader'];a1['seek'](a0[bw(0xc5)]);const a2=a1[bw(0xa5)]();if(this['tokens']=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a3=a1[bw(0xa5)](),a4=a1['readBytes'](a3);let a5=0x0;for(let a6=0x0;a6<a2;a6++){let a7=a5;for(;a7<a4['length']&&a4[a7]!==0x0;)a7++;this['tokens']['push'](ft['decode'](a4['subarray'](a5,a7))),a5=a7+0x1;}}else{const a8=a1['readUint64'](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=ut(aa,a8);let ac=0x0;for(let ad=0x0;ad<a2;ad++){let ae=ac;for(;ae<ab['length']&&ab[ae]!==0x0;)ae++;this['tokens']['push'](ft['decode'](ab['subarray'](ac,ae))),ac=ae+0x1;}}}['_readStrings'](){const a0=this['sections']['STRINGS'];if(!a0){this['strings']=[];return;}const a1=this['reader'];a1['seek'](a0['start']);const a2=Math['floor'](a0['size']/0x4);this['strings']=[];for(let a3=0x0;a3<a2;a3++)this['strings']['push'](a1['readUint32']());}['_readFields'](){const bx=bc,a0=this['sections']['FIELDS'];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['fields']=[],this[bx(0x8b)]['major']===0x0&&this['version']['minor']<0x4){const a2=Math['floor'](a0[bx(0x13b)]/0xc);for(let a3=0x0;a3<a2;a3++){const a4=a1['readUint32'](),a5=a1['readUint32'](),a6=a1['readUint32']();this['fields']['push']({'tokenIndex':a4,'valueRep':new st(a5,a6)});}}else{const a7=a1['readUint64'](),a8=a1[bx(0xa5)](),a9=a1['readBytes'](a8),aa=z(a9['buffer'][bx(0x15b)](a9['byteOffset'],a9['byteOffset']+a8),a7),ab=a1['readUint64'](),ac=a1['readBytes'](ab),ad=ut(ac,a7*0x8),ae=new DataView(ad['buffer'],ad[bx(0xdb)],ad['byteLength']);for(let af=0x0;af<a7;af++){const ag=ae['getUint32'](af*0x8,!0x0),ah=ae['getUint32'](af*0x8+0x4,!0x0);this['fields']['push']({'tokenIndex':aa[af],'valueRep':new st(ag,ah)});}}}['_readFieldSets'](){const by=bc,a0=this['sections']['FIELDSETS'];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['fieldSets']=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a2=Math['floor'](a0['size']/0x4);for(let a3=0x0;a3<a2;a3++)this[by(0xfd)][by(0x11e)](a1[by(0x140)]());}else{const a4=a1['readUint64'](),a5=a1[by(0xa5)](),a6=a1['readBytes'](a5),a7=z(a6['buffer']['slice'](a6[by(0xdb)],a6['byteOffset']+a5),a4);for(let a8=0x0;a8<a4;a8++)this['fieldSets']['push'](a7[a8]);}}['_readPaths'](){const bz=bc,a0=this['sections']['PATHS'];if(!a0)return;const a1=this['reader'];a1['seek'](a0[bz(0xc5)]);const a2=a1['readUint64']();if(this['paths']=new Array(a2)['fill'](''),this[bz(0x8b)][bz(0x14c)]===0x0&&this['version']['minor']<0x4)this['_readPathsRecursive']('');else{a1['readUint64']();const a3=a1['readUint64'](),a4=a1['readBytes'](a3),a5=z(a4['buffer']['slice'](a4[bz(0xdb)],a4[bz(0xdb)]+a3),a2),a6=a1['readUint64'](),a7=a1['readBytes'](a6),a8=z(a7['buffer']['slice'](a7[bz(0xdb)],a7['byteOffset']+a6),a2),a9=a1['readUint64'](),aa=a1[bz(0x170)](a9),ab=z(aa[bz(0x14a)]['slice'](aa['byteOffset'],aa[bz(0xdb)]+a9),a2);this['_buildPathsFromCompressed'](a5,a8,ab);}}['_readPathsRecursive'](a0,a1=0x0){const bA=bc,a2=this[bA(0x113)];if(a1>0x3e8)return;const a3=a2['readUint32'](),a4=a2[bA(0x140)](),a5=a2['readUint8'](),a6=(a5&0x1)!==0x0,a7=(a5&0x2)!==0x0,a8=(a5&0x4)!==0x0;let a9;if(a0==='')a9='/';else{const aa=this['tokens'][a4]||'';a8?a9=a0+'.'+aa:a9=a0==='/'?'/'+aa:a0+'/'+aa;}if(this['paths'][a3]=a9,a6&&a7){const ab=a2['readUint64']();this['_readPathsRecursive'](a9,a1+0x1),a2[bA(0x10c)](ab),this[bA(0x139)](a0,a1+0x1);}else a6?this['_readPathsRecursive'](a9,a1+0x1):a7&&this['_readPathsRecursive'](a0,a1+0x1);}['_buildPathsFromCompressed'](a0,a1,a2){const a3=(a4,a5)=>{const bB=c;let a6=a4;for(;a6<a0['length'];){const a7=a6++,a8=a0[a7],a9=a1[a7],aa=a2[a7];let ab;if(a5==='')ab='/',a5=ab;else{const ae=this['tokens'][Math['abs'](a9)]||'';a9<0x0?ab=a5+'.'+ae:ab=a5==='/'?'/'+ae:a5+'/'+ae;}this[bB(0xb1)][a8]=ab;const ac=aa>0x0||aa===-0x1,ad=aa>=0x0;if(ac){if(ad){const af=a7+aa;a3(af,a5);}a5=ab;}else{if(!ad)break;}}};a3(0x0,'');}['_readSpecs'](){const bC=bc,a0=this[bC(0x169)]['SPECS'];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['specs']=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a2=this['version']['minor']===0x0&&this['version']['patch']===0x1?0x10:0xc,a3=Math['floor'](a0['size']/a2);for(let a4=0x0;a4<a3;a4++){const a5=a1['readUint32'](),a6=a1[bC(0x140)](),a7=a1['readUint32']();a2===0x10&&a1['readUint32'](),this['specs']['push']({'pathIndex':a5,'fieldSetIndex':a6,'specType':a7});}}else{const a8=a1[bC(0xa5)](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa['buffer']['slice'](aa['byteOffset'],aa['byteOffset']+a9),a8),ac=a1['readUint64'](),ad=a1['readBytes'](ac),ae=z(ad['buffer']['slice'](ad['byteOffset'],ad['byteOffset']+ac),a8),af=a1['readUint64'](),ag=a1[bC(0x170)](af),ah=z(ag['buffer']['slice'](ag['byteOffset'],ag['byteOffset']+af),a8);for(let ai=0x0;ai<a8;ai++)this['specs']['push']({'pathIndex':ab[ai],'fieldSetIndex':ae[ai],'specType':ah[ai]});}}['_readValue'](a0){const bD=bc,a1=a0['typeEnum'],a2=a0['isArray'],a3=a0['isInlined'];if(a1===b[bD(0x14b)])return this['_readTimeSamples'](a0);if(a3)return this['_readInlinedValue'](a0);const a4=a0['payload'];if(a4===0x0&&a2)return[];if(a4<0x0||a4>=this['buffer']['byteLength'])throw new RangeError('USDCParser:\x20Invalid\x20payload\x20offset\x20'+a4+bD(0x161)+a1+'.');const a5=this['reader']['tell']();this['reader']['seek'](a4);let a6;return a2?a6=this['_readArrayValue'](a0):a6=this['_readScalarValue'](a1),this['reader']['seek'](a5),a6;}['_readInlinedValue'](a0){const bE=bc,a1=a0[bE(0xae)],a2=a0['getInlinedValue'](),a3=this['_conversionView'];switch(a1){case b['Bool']:return a2!==0x0;case b[bE(0xa2)]:return a2&0xff;case b['Int']:case b['UInt']:return a2;case b['Float']:return a3['setUint32'](0x0,a2,!0x0),a3['getFloat32'](0x0,!0x0);case b[bE(0xaf)]:return a3['setUint32'](0x0,a2,!0x0),a3[bE(0xad)](0x0,!0x0);case b['Token']:return this['tokens'][a2]||'';case b['String']:return this['tokens'][this['strings'][a2]]||'';case b[bE(0x128)]:return this['tokens'][a2]||'';case b[bE(0x12c)]:return a2;case b['Permission']:case b[bE(0xe1)]:return a2;case b['Vec2h']:return a3['setUint32'](0x0,a2,!0x0),[this[bE(0x12b)](a3[bE(0xff)](0x0,!0x0)),this['_halfToFloat'](a3['getUint16'](0x2,!0x0))];case b[bE(0x16d)]:case b[bE(0xf6)]:return a3['setUint32'](0x0,a2,!0x0),[a3['getInt8'](0x0),a3['getInt8'](0x1)];case b['Vec3f']:case b['Vec3i']:return a3['setUint32'](0x0,a2,!0x0),[a3['getInt8'](0x0),a3[bE(0x15d)](0x1),a3['getInt8'](0x2)];case b[bE(0x142)]:case b['Vec4i']:return a3[bE(0x104)](0x0,a2,!0x0),[a3['getInt8'](0x0),a3['getInt8'](0x1),a3['getInt8'](0x2),a3['getInt8'](0x3)];case b['Matrix2d']:{a3['setUint32'](0x0,a2,!0x0);const a4=a3['getInt8'](0x0),a5=a3['getInt8'](0x1);return[a4,0x0,0x0,a5];}case b['Matrix3d']:{a3['setUint32'](0x0,a2,!0x0);const a6=a3['getInt8'](0x0),a7=a3[bE(0x15d)](0x1),a8=a3[bE(0x15d)](0x2);return[a6,0x0,0x0,0x0,a7,0x0,0x0,0x0,a8];}case b[bE(0x109)]:{a3['setUint32'](0x0,a2,!0x0);const a9=a3['getInt8'](0x0),aa=a3['getInt8'](0x1),ab=a3[bE(0x15d)](0x2),ac=a3['getInt8'](0x3);return[a9,0x0,0x0,0x0,0x0,aa,0x0,0x0,0x0,0x0,ab,0x0,0x0,0x0,0x0,ac];}default:return a2;}}['_readTimeSamples'](a0){const bF=bc,a1=this['reader'],a2=a0[bF(0x14e)],a3=a1[bF(0x9d)]();a1[bF(0x10c)](a2);const a4=a1['tell'](),a5=a1['readInt64']();a1['seek'](a4+a5);const a6=a1['readUint32'](),a7=a1['readUint32'](),a8=new st(a6,a7),a9=this['_readValue'](a8),aa=a4+a5+0x8;a1['seek'](aa);const ab=a1['tell'](),ac=a1['readInt64']();a1['seek'](ab+ac);const ad=a1[bF(0xa5)](),ae=[];for(let ag=0x0;ag<ad;ag++){const ah=a1['readUint32'](),ai=a1['readUint32']();ae['push'](new st(ah,ai));}const af=[];for(let aj=0x0;aj<ad;aj++)af['push'](this[bF(0x98)](ae[aj]));return a1['seek'](a3),{'times':a9 instanceof Float64Array?Array['from'](a9):Array['isArray'](a9)?a9:[a9],'values':af};}['_readScalarValue'](a0){const bG=bc,a1=this['reader'];switch(a0){case b['Invalid']:return null;case b['Bool']:return a1[bG(0x10b)]()!==0x0;case b['UChar']:return a1['readUint8']();case b['Int']:return a1['readInt32']();case b['UInt']:return a1['readUint32']();case b['Int64']:return a1['readInt64']();case b['UInt64']:return a1['readUint64']();case b['Half']:return this[bG(0xfb)]();case b['Float']:return a1['readFloat32']();case b['Double']:return a1['readFloat64']();case b['String']:case b[bG(0xe8)]:{const a2=a1['readUint32']();return this['tokens'][a2]||'';}case b['AssetPath']:{const a3=a1['readUint32']();return this['tokens'][a3]||'';}case b['Vec2f']:return[a1[bG(0x125)](),a1['readFloat32']()];case b['Vec2d']:return[a1['readFloat64'](),a1['readFloat64']()];case b['Vec2i']:return[a1[bG(0xd4)](),a1['readInt32']()];case b['Vec3f']:return[a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32']()];case b['Vec3d']:return[a1['readFloat64'](),a1[bG(0x108)](),a1['readFloat64']()];case b['Vec3i']:return[a1['readInt32'](),a1['readInt32'](),a1['readInt32']()];case b['Vec4f']:return[a1['readFloat32'](),a1[bG(0x125)](),a1[bG(0x125)](),a1[bG(0x125)]()];case b['Vec4d']:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64']()];case b['Quatf']:return[a1['readFloat32'](),a1['readFloat32'](),a1[bG(0x125)](),a1['readFloat32']()];case b['Quatd']:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1[bG(0x108)]()];case b['Matrix4d']:{const a4=[];for(let a5=0x0;a5<0x10;a5++)a4['push'](a1[bG(0x108)]());return a4;}case b['TokenVector']:{const a6=a1[bG(0xa5)](),a7=[];for(let a8=0x0;a8<a6;a8++){const a9=a1['readUint32']();a7[bG(0x11e)](this['tokens'][a9]||'');}return a7;}case b['PathVector']:{const aa=a1[bG(0xa5)](),ab=[];for(let ac=0x0;ac<aa;ac++){const ad=a1['readUint32']();ab['push'](this['paths'][ad]||'');}return ab;}case b['DoubleVector']:{const ae=a1['readUint64'](),af=new Float64Array(ae);for(let ag=0x0;ag<ae;ag++)af[ag]=a1['readFloat64']();return af;}case b[bG(0xb4)]:{const ah=a1['readUint64'](),ai={};for(let aj=0x0;aj<ah;aj++){const ak=a1['readUint32'](),al=this['tokens'][ak],am=a1['position'],an=a1['readInt64'](),ao=am+an,ap=a1[bG(0x173)];a1['position']=ao;const aq=a1[bG(0xa5)](),ar=new st(aq);let as=null;ar['isInlined']?as=this[bG(0x99)](ar):ar[bG(0x171)]?(a1['position']=ar['payload'],as=this['_readArrayValue'](ar)):(a1['position']=ar['payload'],as=this['_readScalarValue'](ar['typeEnum'])),a1['position']=ap,al!==void 0x0&&as!==null&&(ai[al]=as);}return ai;}case b['TokenListOp']:case b['StringListOp']:case b['IntListOp']:case b[bG(0x168)]:case b['UIntListOp']:case b['UInt64ListOp']:return null;case b['PathListOp']:{const au=a1['readUint8'](),av=(au&0x2)!==0x0,aw=(au&0x4)!==0x0,ax=(au&0x8)!==0x0,ay=(au&0x10)!==0x0,az=(au&0x20)!==0x0,aA=(au&0x40)!==0x0,aB=()=>{const bH=bG,aG=a1['readUint64'](),aH=[];for(let aI=0x0;aI<aG;aI++){const aJ=a1['readUint32']();aH[bH(0x11e)](this['paths'][aJ]);}return aH;};let aC=null,aD=null,aE=null,aF=null;return av&&(aC=aB()),aw&&(aD=aB()),az&&(aE=aB()),aA&&(aF=aB()),ax&&aB(),ay&&aB(),aE&&aE['length']>0x0?aE:aC&&aC['length']>0x0?aC:aF&&aF[bG(0x172)]>0x0?aF:aD&&aD['length']>0x0?aD:null;}case b['VariantSelectionMap']:{const aG=a1['readUint64'](),aH={};for(let aI=0x0;aI<aG;aI++){const aJ=a1['readUint32'](),aK=a1[bG(0x140)](),aL=this[bG(0xe3)][this['strings'][aJ]],aM=this['tokens'][this['strings'][aK]];aL&&aM&&(aH[aL]=aM);}return aH;}default:return console['warn']('USDCParser:\x20Unsupported\x20scalar\x20type',a0),null;}}[bc(0xe6)](a0){const bI=bc,a1=this['reader'],a2=a0['typeEnum'],a3=a0[bI(0x10d)];let a4;if(this['version']['major']===0x0&&this['version']['minor']<0x7?a4=a1['readUint32']():a4=a1['readUint64'](),!Number[bI(0x134)](a4)||a4<0x0)throw new RangeError('USDCParser:\x20Invalid\x20array\x20size\x20'+a4+'\x20for\x20type\x20'+a2+'.');if(a4>0x7fffffff)throw new RangeError('USDCParser:\x20Array\x20size\x20'+a4+'\x20exceeds\x20implementation\x20limits.');if(a4===0x0)return[];if(a3)return this['_readCompressedArray'](a2,a4);switch(a2){case b['Int']:{const a5=new Int32Array(a4);for(let a6=0x0;a6<a4;a6++)a5[a6]=a1['readInt32']();return a5;}case b['UInt']:{const a7=new Uint32Array(a4);for(let a8=0x0;a8<a4;a8++)a7[a8]=a1['readUint32']();return a7;}case b['Float']:{const a9=new Float32Array(a4);for(let aa=0x0;aa<a4;aa++)a9[aa]=a1['readFloat32']();return a9;}case b['Double']:{const ab=new Float64Array(a4);for(let ac=0x0;ac<a4;ac++)ab[ac]=a1['readFloat64']();return ab;}case b['Vec2f']:{const ad=new Float32Array(a4*0x2);for(let ae=0x0;ae<a4*0x2;ae++)ad[ae]=a1['readFloat32']();return ad;}case b['Vec3f']:{const af=new Float32Array(a4*0x3);for(let ag=0x0;ag<a4*0x3;ag++)af[ag]=a1['readFloat32']();return af;}case b['Vec4f']:{const ah=new Float32Array(a4*0x4);for(let ai=0x0;ai<a4*0x4;ai++)ah[ai]=a1['readFloat32']();return ah;}case b['Vec3h']:{const aj=new Float32Array(a4*0x3);for(let ak=0x0;ak<a4*0x3;ak++)aj[ak]=this[bI(0xfb)]();return aj;}case b['Quatf']:{const al=new Float32Array(a4*0x4);for(let am=0x0;am<a4*0x4;am++)al[am]=a1['readFloat32']();return al;}case b['Quath']:{const an=new Float32Array(a4*0x4);for(let ao=0x0;ao<a4*0x4;ao++)an[ao]=this['_readHalf']();return an;}case b['Matrix4d']:{const ap=new Float64Array(a4*0x10);for(let aq=0x0;aq<a4*0x10;aq++)ap[aq]=a1['readFloat64']();return ap;}case b['Token']:{const ar=[];for(let as=0x0;as<a4;as++){const au=a1['readUint32']();ar[bI(0x11e)](this['tokens'][au]||'');}return ar;}case b[bI(0x107)]:{const av=new Float32Array(a4);for(let aw=0x0;aw<a4;aw++)av[aw]=this['_readHalf']();return av;}default:return console['warn'](bI(0x148),a2),[];}}['_readCompressedArray'](a0,a1){const bJ=bc,a2=this['reader'];switch(a0){case b['Int']:case b['UInt']:{const a3=a2['readUint64'](),a4=a2[bJ(0x170)](a3);return z(a4['buffer'][bJ(0x15b)](a4['byteOffset'],a4['byteOffset']+a3),a1);}case b['Float']:{const a5=a2['readInt8']();if(a5===Jt){const a6=a2['readUint64'](),a7=a2['readBytes'](a6),a8=z(a7['buffer'][bJ(0x15b)](a7[bJ(0xdb)],a7['byteOffset']+a6),a1),a9=new Float32Array(a1);for(let aa=0x0;aa<a1;aa++)a9[aa]=a8[aa];return a9;}else{if(a5===te){const ab=a2['readUint32'](),ac=new Float32Array(ab);for(let ah=0x0;ah<ab;ah++)ac[ah]=a2['readFloat32']();const ad=a2['readUint64'](),ae=a2['readBytes'](ad),af=z(ae['buffer']['slice'](ae['byteOffset'],ae['byteOffset']+ad),a1),ag=new Float32Array(a1);for(let ai=0x0;ai<a1;ai++)ag[ai]=ac[af[ai]];return ag;}}return console['warn']('USDCParser:\x20Unknown\x20float\x20compression\x20code',a5),new Float32Array(a1);}default:return console['warn']('USDCParser:\x20Unsupported\x20compressed\x20array\x20type',a0),[];}}['_readHalf'](){return this['_halfToFloat'](this['reader']['readUint16']());}[bc(0x12b)](a0){const a1=(a0&0x8000)>>0xf,a2=(a0&0x7c00)>>0xa,a3=a0&0x3ff;return a2===0x0?a3===0x0?a1?-0x0:0x0:(a1?-0x1:0x1)*Kt*(a3/0x400):a2===0x1f?a3?NaN:a1?-0x1/0x0:0x1/0x0:(a1?-0x1:0x1)*vt[a2]*(0x1+a3/0x400);}['_getFieldsForSpec'](a0){const a1={};let a2=a0['fieldSetIndex'];const a3=0x2710;let a4=0x0;for(;a2<this['fieldSets']['length']&&a4<a3;){const a5=this['fieldSets'][a2];if(a5===$t||a5===-0x1)break;const a6=this['fields'][a5];if(a6){const a7=this['tokens'][a6['tokenIndex']],a8=this['_readValue'](a6['valueRep']);a1[a7]=a8;}a2++,a4++;}return a1;}}const re=/^(.+?)\/\{(\w+)=(\w+)\}\/(.+)$/,K={'Unknown':0x0,'Attribute':0x1,'Connection':0x2,'Expression':0x3,'Mapper':0x4,'MapperArg':0x5,'Prim':0x6,'PseudoRoot':0x7,'Relationship':0x8,'RelationshipTarget':0x9,'Variant':0xa,'VariantSet':0xb},E={'projection':'perspective','clippingRange':[0x1,0xf4240],'horizontalAperture':20.955,'verticalAperture':15.2908,'horizontalApertureOffset':0x0,'verticalApertureOffset':0x0,'focalLength':0x32,'focusDistance':0x0,'fStop':0x0};class tt{constructor(a0=null){this['textureCache']={},this['skinnedMeshes']=[],this['manager']=a0;}['compose'](a0,a1={},a2={},a3=''){const bK=bc;this['specsByPath']=a0['specsByPath'],this['assets']=a1,this['externalVariantSelections']=a2,this['basePath']=a3,this['skinnedMeshes']=[],this['skeletons']={},this['_buildIndexes']();const a4=this['specsByPath']['/'],a5=a4?a4['fields']:{};this['fps']=a5['framesPerSecond']||a5['timeCodesPerSecond']||0x1e;const a6=new e();this['_buildHierarchy'](a6,'/'),this[bK(0x127)]();const a7=Object[bK(0x15a)](this['skeletons']);a7[bK(0x172)]===0x1&&(a6['skeleton']=this['skeletons'][a7[0x0]]['skeleton']),a6['animations']=this['_buildAnimations']();const a8=a5['metersPerUnit'];return a8!==void 0x0&&a8!==0x1&&a6['scale']['setScalar'](a8),a4&&a4['fields']&&a4['fields']['upAxis']==='Z'&&(a6['rotation']['x']=-Math['PI']/0x2),a6;}['applyTransform'](a0,a1,a2={}){const bL=bc,a3={...a1,...a2},a4=a3['xformOpOrder'];if(a4&&a4['length']>0x0){const a5=new f(),a6=new f();let a7=null;for(let a8=0x0;a8<a4[bL(0x172)];a8++){const a9=a4[a8],aa=a9[bL(0x156)]('!invert!'),ab=aa?a9[bL(0x15b)](0x8):a9;if(ab===bL(0x9b)){const ac=a3[bL(0x9b)];ac&&ac[bL(0x172)]===0x10&&(a6[bL(0x13e)](ac[0x0],ac[0x4],ac[0x8],ac[0xc],ac[0x1],ac[0x5],ac[0x9],ac[0xd],ac[0x2],ac[0x6],ac[0xa],ac[0xe],ac[0x3],ac[0x7],ac[0xb],ac[0xf]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:translate'){const ad=a3[bL(0x16e)];ad&&(a6[bL(0xb5)](ad[0x0],ad[0x1],ad[0x2]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:translate:pivot'){const ae=a3[bL(0xec)];ae&&(a6[bL(0xb5)](ae[0x0],ae[0x1],ae[0x2]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab===bL(0xa8)){const af=a3['xformOp:scale'];af&&(Array['isArray'](af)?(a6['makeScale'](af[0x0],af[0x1],af[0x2]),a7=[af[0x0],af[0x1],af[0x2]]):(a6['makeScale'](af,af,af),a7=[af,af,af]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateXYZ'){const ag=a3['xformOp:rotateXYZ'];if(ag){const ah=new g(ag[0x0]*Math['PI']/0xb4,ag[0x1]*Math['PI']/0xb4,ag[0x2]*Math['PI']/0xb4,'ZYX');a6['makeRotationFromEuler'](ah),aa&&a6['invert'](),a5['multiply'](a6);}}else{if(ab==='xformOp:rotateX'){const ai=a3['xformOp:rotateX'];ai!==void 0x0&&(a6['makeRotationX'](ai*Math['PI']/0xb4),aa&&a6[bL(0x179)](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateY'){const aj=a3[bL(0xde)];aj!==void 0x0&&(a6[bL(0x119)](aj*Math['PI']/0xb4),aa&&a6[bL(0x179)](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateZ'){const ak=a3[bL(0xc4)];ak!==void 0x0&&(a6['makeRotationZ'](ak*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:orient'){const al=a3['xformOp:orient'];if(al&&al['length']===0x4){const am=new h(al[0x0],al[0x1],al[0x2],al[0x3]);a6['makeRotationFromQuaternion'](am),aa&&a6['invert'](),a5[bL(0xb7)](a6);}}}}}}}}}}}if(a0['matrix']['copy'](a5),a0['matrix']['decompose'](a0['position'],a0['quaternion'],a0['scale']),a7){const an=a7[0x0]<0x0,ao=a7[0x1]<0x0,ap=a7[0x2]<0x0;(an?0x1:0x0)+(ao?0x1:0x0)+(ap?0x1:0x0)===0x3&&(a0[bL(0x17d)]['set'](a7[0x0],a7[0x1],a7[0x2]),a0['quaternion'][bL(0x13e)](a0['quaternion']['x'],-a0['quaternion']['y'],a0[bL(0x174)]['z'],-a0['quaternion']['w']));}return;}if(a3['xformOp:translate']){const aq=a3['xformOp:translate'];a0['position']['set'](aq[0x0],aq[0x1],aq[0x2]);}if(a3['xformOp:translate:pivot']){const ar=a3[bL(0xec)];a0['pivot']=new i(ar[0x0],ar[0x1],ar[0x2]);}if(a3[bL(0xa8)]){const as=a3['xformOp:scale'];Array['isArray'](as)?a0['scale']['set'](as[0x0],as[0x1],as[0x2]):a0['scale'][bL(0x13e)](as,as,as);}if(a3['xformOp:rotateXYZ']){const au=a3[bL(0x95)];a0['rotation']['set'](au[0x0]*Math['PI']/0xb4,au[0x1]*Math['PI']/0xb4,au[0x2]*Math['PI']/0xb4);}if(a3['xformOp:orient']){const av=a3[bL(0x132)];av['length']===0x4&&a0['quaternion']['set'](av[0x0],av[0x1],av[0x2],av[0x3]);}}['_buildIndexes'](){const bM=bc;this['childrenByPath']=new Map(),this['attributesByPrimPath']=new Map(),this['materialsByRoot']=new Map(),this['shadersByMaterialPath']=new Map(),this[bM(0x150)]=new Map();for(const a0 in this[bM(0x155)]){const a1=this['specsByPath'][a0];if(a1['specType']===K['Prim']){const a2=a0['lastIndexOf']('/');if(a2>0x0){const a4=a0['slice'](0x0,a2),a5=a0['slice'](a2+0x1);this['childrenByPath']['has'](a4)||this['childrenByPath']['set'](a4,[]),this['childrenByPath'][bM(0x9e)](a4)['push']({'name':a5,'path':a0});}else{if(a2===0x0&&a0[bM(0x172)]>0x1){const a6=a0['slice'](0x1);this['childrenByPath']['has']('/')||this['childrenByPath']['set']('/',[]),this['childrenByPath']['get']('/')['push']({'name':a6,'path':a0});}}const a3=a1[bM(0x178)]['typeName'];if(a3==='Material'){const a7=a0['split']('/'),a8=a7['length']>0x1?'/'+a7[0x1]:'/';this['materialsByRoot']['has'](a8)||this['materialsByRoot']['set'](a8,[]),this[bM(0x136)]['get'](a8)['push'](a0);}if(a3===bM(0x141)&&a2>0x0){let a9=a0[bM(0x15b)](0x0,a2);for(;a9['length']>0x0;){const aa=this['specsByPath'][a9];if(aa&&aa[bM(0x152)]===K['Prim']&&aa['fields']['typeName']==='Material'){this['shadersByMaterialPath']['has'](a9)||this['shadersByMaterialPath']['set'](a9,[]),this['shadersByMaterialPath']['get'](a9)['push'](a0);break;}const ab=a9['lastIndexOf']('/');if(ab<=0x0)break;a9=a9['slice'](0x0,ab);}}if(a3==='GeomSubset'&&a2>0x0){const ac=a0['slice'](0x0,a2);this['geomSubsetsByMeshPath']['has'](ac)||this['geomSubsetsByMeshPath']['set'](ac,[]),this['geomSubsetsByMeshPath'][bM(0x9e)](ac)['push'](a0);}}else{if(a1['specType']===K[bM(0xa1)]||a1['specType']===K['Relationship']){const ad=a0['lastIndexOf']('.');if(ad>0x0){const ae=a0['slice'](0x0,ad),af=a0['slice'](ad+0x1);this['attributesByPrimPath']['has'](ae)||this['attributesByPrimPath']['set'](ae,new Map()),this['attributesByPrimPath']['get'](ae)['set'](af,a1);}}}}}['_isDirectChild'](a0,a1,a2){if(!a1['startsWith'](a2))return!0x1;const a3=a1['slice'](a2['length']);return a3['length']===0x0||a3['startsWith']('{')?!0x1:!a3['includes']('/');}['_buildHierarchy'](a0,a1){const bN=bc,a2=[],a3=new Set(),a4=this[bN(0xbc)]['get'](a1);if(a4){for(const a6 of a4)a3['has'](a6['path'])||(a3['add'](a6['path']),a2['push'](a6));}const a5=this['_getVariantPaths'](a1);for(const a7 of a5){const a8=this['childrenByPath']['get'](a7);if(a8){for(const a9 of a8)a3['has'](a9['path'])||(a3['add'](a9['path']),a2['push'](a9));}}for(const {name:aa,path:ab}of a2){const ac=this['specsByPath'][ab];if(!ac||ac['specType']!==K['Prim'])continue;const ad=ac['fields']['typeName'],ae=this['_getReferences'](ac);if(ae['length']>0x0){const af=this['_getLocalVariantSelections'](ac['fields']),ag=[];for(const ah of ae){const ai=this[bN(0xd6)](ah,af);ai&&ag['push'](ai);}if(ag['length']>0x0){const aj=this[bN(0x159)](ab);if(ag['length']===0x1){const al=this['_findSingleMesh'](ag[0x0]);if(al&&(ad===bN(0xa0)||!ad)){al[bN(0x15c)]=aa,this['applyTransform'](al,ac[bN(0x178)],aj),this['_applyMaterialBinding'](al,ab),a0['add'](al),this['_buildHierarchy'](al,ab);continue;}}const ak=new j();ak['name']=aa,this['applyTransform'](ak,ac['fields'],aj);for(const am of ag)for(;am['children']['length']>0x0;)ak[bN(0xdf)](am[bN(0x12e)][0x0]);a0['add'](ak),this['_buildHierarchy'](ak,ab);continue;}}if(ad==='SkelRoot'){const an=new j();an['name']=aa,an['userData']['isSkelRoot']=!0x0;const ao=this['_getAttributes'](ab);this['applyTransform'](an,ac['fields'],ao),a0['add'](an),this['_buildHierarchy'](an,ab);}else{if(ad===bN(0x11d)){const ap=this['_buildSkeleton'](ab);ap&&(this['skeletons'][ab]=ap),this['_buildHierarchy'](a0,ab);}else{if(ad!=='SkelAnimation'){if(ad==='Mesh'){const aq=this['_buildMesh'](ab,ac);aq&&(a0['add'](aq),this['_buildHierarchy'](aq,ab));}else{if(ad==='Camera'){const ar=this[bN(0x175)](ab);ar['name']=aa;const as=this['_getAttributes'](ab);this['applyTransform'](ar,ac['fields'],as),a0['add'](ar),this['_buildHierarchy'](ar,ab);}else{if(ad==='DistantLight'||ad==='SphereLight'||ad==='RectLight'||ad==='DiskLight'){const au=this['_buildLight'](ab,ad);au[bN(0x15c)]=aa;const av=this['_getAttributes'](ab);this['applyTransform'](au,ac['fields'],av),a0['add'](au),this[bN(0xe9)](au,ab);}else{if(ad==='Cube'||ad==='Sphere'||ad===bN(0xb0)||ad===bN(0x13f)||ad===bN(0xcc)){const aw=this['_buildGeomPrimitive'](ab,ac,ad);aw&&(a0[bN(0xdf)](aw),this['_buildHierarchy'](aw,ab));}else{if(!(ad==='Material'||ad==='Shader'||ad==='GeomSubset')){const ax=new j();ax[bN(0x15c)]=aa;const ay=this['_getAttributes'](ab);this['applyTransform'](ax,ac['fields'],ay),a0[bN(0xdf)](ax),this['_buildHierarchy'](ax,ab);}}}}}}}}}}['_getVariantPaths'](a0){const bO=bc,a1=this['specsByPath'][a0],a2=a1?.['fields']?.['variantSetChildren'],a3=[];if(!a2||a2['length']===0x0)return a3;for(const a4 of a2){let a5=this['externalVariantSelections'][a4]||null;if(!a5){const a6=a1['fields']['variantSelection'];a5=a6?a6[a4]:null;}if(!a5){const a7=a0+'/{'+a4+'=}',a8=this['specsByPath'][a7];a8?.['fields']?.[bO(0xf2)]&&(a5=a8['fields'][bO(0xf2)][0x0]);}if(a5){const a9=a0+'/{'+a4+'='+a5+'}';a3['push'](a9);}}return a3;}[bc(0x147)](a0){let a1=a0;return a1['startsWith']('./')&&(a1=a1['slice'](0x2)),this['basePath']?this['basePath']+'/'+a1:a1;}[bc(0xd6)](a0,a1={}){const bP=bc;if(!a0)return null;const a2=a0['match'](/@([^@]+)@(?:<([^>]+)>)?/);if(!a2)return null;const a3=a2[0x1],a4=a2[0x2],a5=this['_resolveFilePath'](a3),a6={...a1,...this['externalVariantSelections']},a7=this['assets'][a5];if(!a7)return null;if(a7['specsByPath']){const a8=new tt(this['manager']),a9=this['_getBasePath'](a5),aa=a8['compose'](a7,this['assets'],a6,a9);if(a4){const ab=a4['split']('/')['pop']();let ac=null;for(const ad of aa['children'])if(ad['name']===ab){ac=ad;break;}if(ac){aa[bP(0xa4)](ac);const ae=new e();return ae['add'](ac),ae;}}return aa;}return a7['isGroup']||a7['isObject3D']?a7['clone']():null;}['_findSingleMesh'](a0){const bQ=bc;for(const a1 of a0['children'])if(a1['isMesh'])return a0['remove'](a1),a1;if(a0['children']['length']===0x1){const a2=a0['children'][0x0];if(a2[bQ(0x12e)]&&a2['children'][bQ(0x172)]===0x1){const a3=a2['children'][0x0];if(a3['isMesh']&&!this['_hasNonIdentityTransform'](a2))return a2['remove'](a3),a3;}}return null;}['_hasNonIdentityTransform'](a0){const a1=a0['position'],a2=a0['rotation'],a3=a0['scale'],a4=a1['x']!==0x0||a1['y']!==0x0||a1['z']!==0x0,a5=a2['x']!==0x0||a2['y']!==0x0||a2['z']!==0x0,a6=a3['x']!==0x1||a3['y']!==0x1||a3['z']!==0x1;return a4||a5||a6;}['_getBasePath'](a0){const a1=a0['lastIndexOf']('/');return a1>=0x0?a0['slice'](0x0,a1):'';}[bc(0xfc)](a0){const a1={};if(a0['variantSelection']){for(const a2 in a0['variantSelection'])a1[a2]=a0['variantSelection'][a2];}return a1;}['_getReferences'](a0){const bR=bc,a1=[];if(a0['fields']['references']&&a0['fields']['references']['length']>0x0){const a2=a0['fields']['references'][0x0];if(typeof a2==bR(0x94)){const a3=a2['matchAll'](/@([^@]+)@(?:<([^>]+)>)?/g);for(const a4 of a3)a1[bR(0x11e)](a4[0x0]);}else a2['assetPath']&&a1['push']('@'+a2['assetPath']+'@');}if(a1['length']===0x0&&a0['fields']['payload']){const a5=a0['fields'][bR(0x14e)];typeof a5=='string'?a1['push'](a5):a5['assetPath']&&a1['push']('@'+a5['assetPath']+'@');}return a1;}['_getAttributes'](a0){const a1={};this['_collectAttributesFromPath'](a0,a1);const a2=a0['match'](re);if(a2){const a3=a2[0x1],a4=a2[0x4],a5=this['_getVariantPaths'](a3);for(const a6 of a5){if(a0['startsWith'](a6))continue;const a7=a6+'/'+a4;this['_collectAttributesFromPath'](a7,a1);}}else{const a8=a0['split']('/');for(let a9=0x1;a9<a8['length']-0x1;a9++){const aa=a8['slice'](0x0,a9+0x1)['join']('/'),ab=a8['slice'](a9+0x1)['join']('/'),ac=this['_getVariantPaths'](aa);for(const ad of ac){const ae=ad+'/'+ab;this['_collectAttributesFromPath'](ae,a1);}}}return a1;}['_collectAttributesFromPath'](a0,a1){const bS=bc,a2=this[bS(0xf3)]['get'](a0);if(a2)for(const [a3,a4]of a2){if(a4['fields']?.['default']!==void 0x0)a1[a3]=a4['fields']['default'];else{if(a4['fields']?.['timeSamples']){const {times:a5,values:a6}=a4[bS(0x178)]['timeSamples'];if(a5&&a6&&a5['length']>0x0){const a7=a5[bS(0x166)](0x0);a1[a3]=a7>=0x0?a6[a7]:a6[0x0];}}}a4['fields']?.[bS(0x111)]!==void 0x0&&(a1[a3+':elementSize']=a4['fields']['elementSize']),a3[bS(0x156)]('primvars:')&&a4['fields']?.['typeName']!==void 0x0&&(a1[a3+':typeName']=a4['fields']['typeName']);}}['_buildGeomPrimitive'](a0,a1,a2){const bT=bc,a3=this['_getAttributes'](a0),a4=a0['split']('/')['pop']();let a5;switch(a2){case'Cube':{const a9=a3['size']||0x2;a5=new o(a9,a9,a9);break;}case'Sphere':{const aa=a3[bT(0x10a)]||0x1;a5=new n(aa,0x20,0x10);break;}case bT(0xb0):{const ab=a3['height']||0x2,ac=a3['radius']||0x1;a5=new m(ac,ac,ab,0x20);break;}case'Cone':{const ad=a3['height']||0x2,ae=a3['radius']||0x1;a5=new l(ae,ad,0x20);break;}case'Capsule':{const af=a3['height']||0x1,ag=a3[bT(0x10a)]||0.5;a5=new k(ag,af,0x10,0x20);break;}}const a6=a3['axis']||'Z';a6==='X'?a5['rotateZ'](-Math['PI']/0x2):a6==='Z'&&a5[bT(0xc8)](Math['PI']/0x2);const a7=this['_buildMaterial'](a0,a1['fields']),a8=new p(a5,a7);return a8['name']=a4,this[bT(0x160)](a8,a1['fields'],a3),a8;}['_buildMesh'](a0,a1){const bU=bc,a2=this['_getAttributes'](a0),a3=a2[bU(0x17e)],a4=a2['primvars:skel:jointWeights'],a5=a3&&a4&&a3['length']>0x0&&a4['length']>0x0,a6=this['_getGeomSubsets'](a0);let a7,a8;if(a6['length']>0x0){a7=this['_buildGeometryWithSubsets'](a2,a6,a5);const ac=this['_getMaterialPath'](a0,a1['fields']);a8=a6['map'](ad=>{const ae=ad['materialPath']||ac;return this['_buildMaterialForPath'](ae);});}else a7=this['_buildGeometry'](a0,a2,a5),a8=this['_buildMaterial'](a0,a1[bU(0x178)]);const a9=a2['primvars:displayColor'];if(a9&&a9['length']>=0x3){const ad=ae=>{const bV=bU;ae['color']&&ae['color']['r']===0x1&&ae['color']['g']===0x1&&ae['color']['b']===0x1&&!ae[bV(0xed)]&&ae['color'][bV(0x8e)](a9[0x0],a9[0x1],a9[0x2],I);};Array['isArray'](a8)?a8[bU(0x143)](ad):ad(a8);}const aa=a2['primvars:displayOpacity'];if(aa&&aa[bU(0x172)]===0x1&&a6['length']===0x0){const ae=aa[0x0],af=ag=>{const bW=bU;ae<0x1&&ag[bW(0xac)]===0x1&&ag['transparent']===!0x1&&(ag['opacity']=ae,ag['transparent']=!0x0);};Array['isArray'](a8)?a8['forEach'](af):af(a8);}let ab;if(a5){ab=new q(a7,a8);let ag=this['specsByPath'][a0+'.skel:skeleton'];ag||(ag=this['specsByPath'][a0+'.rel\x20skel:skeleton']);let ah=null;ag&&(ag['fields']['targetPaths']&&ag['fields']['targetPaths']['length']>0x0?ah=ag['fields']['targetPaths'][0x0]:ag['fields']['default']&&(ah=ag['fields']['default']['replace'](/<|>/g,'')));const ai=a2['skel:joints'],aj=a2[bU(0x120)];this['skinnedMeshes']['push']({'mesh':ab,'skeletonPath':ah,'path':a0,'localJoints':ai,'geomBindTransform':aj});}else ab=new p(a7,a8);return ab['name']=a0['split']('/')['pop'](),this['applyTransform'](ab,a1['fields'],a2),ab;}['_buildCamera'](a0){const bX=bc,a1=this['_getAttributes'](a0),a2=a1[bX(0x17c)],a3=typeof a2=='string'?a2[bX(0x88)]():E[bX(0x17c)],a4=a1['clippingRange']||E['clippingRange'],a5=Math[bX(0x12f)](Number['EPSILON'],this['_parseNumber'](a4[0x0],E[bX(0x11f)][0x0])),a6=Math['max'](a5+Number['EPSILON'],this['_parseNumber'](a4[0x1],E['clippingRange'][0x1])),a7=this['_parseNumber'](a1['horizontalAperture'],E['horizontalAperture']),a8=this[bX(0x17b)](a1['verticalAperture'],E['verticalAperture']),a9=this['_parseNumber'](a1['horizontalApertureOffset'],E['horizontalApertureOffset']),aa=this[bX(0x17b)](a1[bX(0xc2)],E['verticalApertureOffset']),ab=this['_parseNumber'](a1['focalLength'],E['focalLength']),ac=this['_parseNumber'](a1['focusDistance'],E['focusDistance']),ad=this[bX(0x17b)](a1[bX(0x126)],E['fStop']);let ae;if(a3==='orthographic'){const af=a7/0xa,ag=a8/0xa,ah=a9/0xa,ai=aa/0xa;ae=new r(ah-af*0.5,ah+af*0.5,ai+ag*0.5,ai-ag*0.5,a5,a6);}else{const aj=Math['max'](Number['EPSILON'],a8),ak=Math['max'](Number['EPSILON'],ab),al=a7/aj,am=0x2*Math['atan'](aj/(0x2*ak))*0xb4/Math['PI'];ae=new s(am,al,a5,a6),ae[bX(0x12a)]=Math['max'](a7,a8),ae['filmOffset']=a9,ae['focus']=ac,ae['setFocalLength'](ak),aa!==0x0&&(ae['userData']['verticalApertureOffset']=aa);}return ae['userData']['fStop']=ad,ae[bX(0xf9)]['usdProjection']=a3,ae;}['_buildLight'](a0,a1){const bY=bc,a2=this['_getAttributes'](a0),a3=this['_parseNumber'](a2['inputs:intensity'],0x1),a4=a2['inputs:color']||[0x1,0x1,0x1],a5=a2['inputs:enableColorTemperature']===!0x0,a6=this['_parseNumber'](a2['inputs:colorTemperature'],0x1964),a7=new t(a4[0x0],a4[0x1],a4[0x2]);if(a5){const a9=this['_colorTemperature'](a6);a7['multiply'](a9);}let a8;switch(a1){case'DistantLight':a8=new x(a7,a3);break;case bY(0x101):{const aa=this[bY(0x17b)](a2[bY(0xd7)],0x0);if(aa>0x0){const ab=aa*Math['PI']/0xb4,ac=this['_parseNumber'](a2[bY(0x129)],0x0);a8=new v(a7,a3,0x0,ab,ac);}else a8=new w(a7,a3);break;}case'RectLight':{const ad=this['_parseNumber'](a2[bY(0xfa)],0x1),ae=this['_parseNumber'](a2['inputs:height'],0x1);a8=new u(a7,a3,ad,ae);break;}case'DiskLight':{const af=this['_parseNumber'](a2['inputs:radius'],0.5)*0x2;a8=new u(a7,a3,af,af);break;}}return a8;}['_colorTemperature'](a0){const bZ=bc,a1=a0/0x64;let a2,a3,a4;return a1<=0x42?(a2=0x1,a3=0.3900815787690196*Math['log'](a1)-0.6318414437886275):(a2=1.292936186062745*Math['pow'](a1-0x3c,-0.1332047592),a3=1.1298908608952942*Math['pow'](a1-0x3c,-0.0755148492)),a1>=0x42?a4=0x1:a1<=0x13?a4=0x0:a4=0.543206789110196*Math[bZ(0xf8)](a1-0xa)-1.19625408914,new t(Math['min'](Math[bZ(0x12f)](a2,0x0),0x1),Math['min'](Math['max'](a3,0x0),0x1),Math['min'](Math['max'](a4,0x0),0x1));}['_parseNumber'](a0,a1){const c0=bc,a2=Number(a0);return Number[c0(0x15f)](a2)?a2:a1;}['_getGeomSubsets'](a0){const a1=[],a2=this['geomSubsetsByMeshPath']['get'](a0);if(!a2)return a1;for(const a3 of a2){const a4=this['_getAttributes'](a3)['indices'];if(!a4||a4['length']===0x0)continue;const a5=this['_getMaterialBindingTarget'](a3);a1['push']({'name':a3['split']('/')['pop'](),'indices':a4,'materialPath':a5});}return a1;}['_getMaterialBindingTarget'](a0){const c1=bc,a1='material:binding',a2=a0+'.'+a1,a3=this['specsByPath'][a2];if(a3?.['fields']?.['targetPaths']?.['length']>0x0)return a3[c1(0x178)]['targetPaths'][0x0];const a4=a0['split']('/');for(let a5=0x1;a5<a4['length'];a5++){const a6=a4[c1(0x15b)](0x0,a5+0x1)[c1(0x11b)]('/'),a7=a4[c1(0x15b)](a5+0x1)['join']('/'),a8=this['_getVariantPaths'](a6);for(const a9 of a8){const aa=a7?a9+'/'+a7+'.'+a1:a9+'.'+a1,ab=this['specsByPath'][aa];if(ab?.['fields']?.['targetPaths']?.['length']>0x0)return ab['fields']['targetPaths'][0x0];}}return null;}[bc(0x16a)](a0,a1,a2=!0x1){const c2=bc,a3=new y(),a4=a1['points'];if(!a4||a4['length']===0x0)return a3;const a5=a1['faceVertexIndices'],a6=a1['faceVertexCounts'],a7=a1['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7);let a9=a5,aa=null;if(a6&&a6['length']>0x0){const aj=this['_triangulateIndicesWithPattern'](a5,a6,a4,a8);a9=aj['indices'],aa=aj['pattern'];}let ab=a4;a9&&a9['length']>0x0&&(ab=this['_expandAttribute'](a4,a9,0x3)),a3['setAttribute'](c2(0x173),new B(new Float32Array(ab),0x3));const ac=a1['normals']||a1[c2(0x93)],ad=a1[c2(0xd9)]||a1[c2(0x11c)];if(ac&&ac['length']>0x0){let ak=ac;if(ad&&ad['length']>0x0&&aa){const al=this['_applyTriangulationPattern'](ad,aa);ak=this['_expandAttribute'](ac,al,0x3);}else{if(ac['length']===a4['length'])a9&&a9['length']>0x0&&(ak=this['_expandAttribute'](ac,a9,0x3));else{if(aa){const am=this['_applyTriangulationPattern'](Array['from']({'length':ac['length']/0x3},(an,ao)=>ao),aa);ak=this['_expandAttribute'](ac,am,0x3);}}}a3['setAttribute']('normal',new B(new Float32Array(ak),0x3));}else{const an=this[c2(0x92)](a4,a9);a3['setAttribute']('normal',new B(new Float32Array(this['_expandAttribute'](an,a9,0x3)),0x3));}const {uvs:ae,uvIndices:af}=this['_findUVPrimvar'](a1),ag=a5?a5[c2(0x172)]:0x0;if(ae&&ae['length']>0x0){let ao=ae;if(af&&af['length']>0x0&&aa){const ap=this[c2(0x102)](af,aa);ao=this['_expandAttribute'](ae,ap,0x2);}else{if(a9&&ae['length']/0x2===a4['length']/0x3)ao=this[c2(0x9a)](ae,a9,0x2);else{if(aa&&ae['length']/0x2===ag){const aq=this['_applyTriangulationPattern'](Array['from']({'length':ag},(ar,as)=>as),aa);ao=this['_expandAttribute'](ae,aq,0x2);}}}a3[c2(0xf4)]('uv',new B(new Float32Array(ao),0x2));}const {uvs2:ah,uv2Indices:ai}=this['_findUV2Primvar'](a1);if(ah&&ah['length']>0x0){let ar=ah;if(ai&&ai['length']>0x0&&aa){const as=this['_applyTriangulationPattern'](ai,aa);ar=this['_expandAttribute'](ah,as,0x2);}else{if(a9&&ah['length']/0x2===a4['length']/0x3)ar=this['_expandAttribute'](ah,a9,0x2);else{if(aa&&ah['length']/0x2===ag){const au=this['_applyTriangulationPattern'](Array['from']({'length':ag},(av,aw)=>aw),aa);ar=this['_expandAttribute'](ah,au,0x2);}}}a3['setAttribute']('uv1',new B(new Float32Array(ar),0x2));}if(a2){const av=a1['primvars:skel:jointIndices'],aw=a1['primvars:skel:jointWeights'],ax=a1['primvars:skel:jointIndices:elementSize']||0x4;if(av&&aw){const ay=ab['length']/0x3;let az,aA;a9&&a9['length']>0x0?(az=this['_expandAttribute'](av,a9,ax),aA=this['_expandAttribute'](aw,a9,ax)):(az=av,aA=aw);const aB=new Uint16Array(ay*0x4),aC=new Float32Array(ay*0x4);this['_selectTopWeights'](az,aA,ax,ay,aB,aC),a3['setAttribute']('skinIndex',new B(aB,0x4)),a3[c2(0xf4)]('skinWeight',new B(aC,0x4));}}return a3;}['_buildGeometryWithSubsets'](a0,a1,a2=!0x1){const c3=bc,a3=new y(),a4=a0['points'];if(!a4||a4['length']===0x0)return a3;const a5=a0['faceVertexIndices'],a6=a0['faceVertexCounts'];if(!a6||a6['length']===0x0)return a3;const a7=a0['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7),a9=a8['holeFaces'],aa=a8[c3(0xef)],{uvs:ab,uvIndices:ac}=this[c3(0xc9)](a0),{uvs2:ad,uv2Indices:ae}=this['_findUV2Primvar'](a0),af=a0['normals']||a0[c3(0x93)],ag=a0['normals:indices']||a0['primvars:normals:indices'],ah=a2?a0['primvars:skel:jointIndices']:null,ai=a2?a0['primvars:skel:jointWeights']:null,aj=a0['primvars:skel:jointIndices:elementSize']||0x4,ak=[];let al=0x0;for(let aJ=0x0;aJ<a6['length'];aJ++){if(ak[c3(0x11e)](al),a9['has'](aJ))continue;const aK=a6[aJ],aL=aa['get'](aJ);if(aL&&aL['length']>0x0){let aM=aK;for(const aN of aL)aM+=a6[aN];al+=aM-0x2;}else aK>=0x3&&(al+=aK-0x2);}const am=new Int32Array(al)['fill'](-0x1);for(let aO=0x0;aO<a1['length'];aO++){const aP=a1[aO];for(let aQ=0x0;aQ<aP['indices']['length'];aQ++){const aR=aP['indices'][aQ];if(aR>=a6['length'])continue;const aS=ak[aR],aT=a6[aR]-0x2;for(let aU=0x0;aU<aT;aU++)am[aS+aU]=aO;}}const an=[];for(let aV=0x0;aV<al;aV++)an['push']({'original':aV,'subset':am[aV]});an['sort']((aW,aX)=>aW['subset']-aX['subset']);const ao=[];let ap=an['length']>0x0?an[0x0]['subset']:-0x1,aq=0x0;for(let aW=0x0;aW<an[c3(0x172)];aW++)an[aW]['subset']!==ap&&(ap>=0x0&&ao['push']({'start':aq*0x3,'count':(aW-aq)*0x3,'materialIndex':ap}),ap=an[aW][c3(0xc7)],aq=aW);ap>=0x0&&an['length']>aq&&ao['push']({'start':aq*0x3,'count':(an['length']-aq)*0x3,'materialIndex':ap});for(const aX of ao)a3['addGroup'](aX['start'],aX['count'],aX['materialIndex']);const {indices:ar,pattern:as}=this['_triangulateIndicesWithPattern'](a5,a6,a4,a8),au=a6['reduce']((aY,aZ)=>aY+aZ,0x0),av=ab&&!ac&&ab[c3(0x172)]/0x2===au||ad&&!ae&&ad['length']/0x2===au?this['_applyTriangulationPattern'](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aw=ac?this['_applyTriangulationPattern'](ac,as):ab&&ab['length']/0x2===au?av:null,ax=ae?this['_applyTriangulationPattern'](ae,as):ad&&ad[c3(0x172)]/0x2===au?av:null,ay=af&&ag&&ag[c3(0x172)]>0x0,az=af&&af['length']/0x3===au,aA=ay?this['_applyTriangulationPattern'](ag,as):az?this[c3(0x102)](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aB=!af&&ar['length']>0x0?this['_computeVertexNormals'](a4,ar):null,aC=al*0x3,aD=new Float32Array(aC*0x3),aE=ab?new Float32Array(aC*0x2):null,aF=ad?new Float32Array(aC*0x2):null,aG=af||aB?new Float32Array(aC*0x3):null,aH=ah?new Uint16Array(aC*aj):null,aI=ai?new Float32Array(aC*aj):null;for(let aY=0x0;aY<an['length'];aY++){const aZ=an[aY]['original'];for(let b0=0x0;b0<0x3;b0++){const b1=aZ*0x3+b0,b2=aY*0x3+b0,b3=ar[b1];if(aD[b2*0x3]=a4[b3*0x3],aD[b2*0x3+0x1]=a4[b3*0x3+0x1],aD[b2*0x3+0x2]=a4[b3*0x3+0x2],aE&&ab){if(aw){const b4=aw[b1];aE[b2*0x2]=ab[b4*0x2],aE[b2*0x2+0x1]=ab[b4*0x2+0x1];}else ab[c3(0x172)]/0x2===a4['length']/0x3&&(aE[b2*0x2]=ab[b3*0x2],aE[b2*0x2+0x1]=ab[b3*0x2+0x1]);}if(aF&&ad){if(ax){const b5=ax[b1];aF[b2*0x2]=ad[b5*0x2],aF[b2*0x2+0x1]=ad[b5*0x2+0x1];}else ad['length']/0x2===a4['length']/0x3&&(aF[b2*0x2]=ad[b3*0x2],aF[b2*0x2+0x1]=ad[b3*0x2+0x1]);}if(aG){if(af&&aA){const b6=aA[b1];aG[b2*0x3]=af[b6*0x3],aG[b2*0x3+0x1]=af[b6*0x3+0x1],aG[b2*0x3+0x2]=af[b6*0x3+0x2];}else af&&af[c3(0x172)]===a4['length']?(aG[b2*0x3]=af[b3*0x3],aG[b2*0x3+0x1]=af[b3*0x3+0x1],aG[b2*0x3+0x2]=af[b3*0x3+0x2]):aB&&(aG[b2*0x3]=aB[b3*0x3],aG[b2*0x3+0x1]=aB[b3*0x3+0x1],aG[b2*0x3+0x2]=aB[b3*0x3+0x2]);}if(aH&&aI&&ah&&ai){for(let b7=0x0;b7<aj;b7++)aH[b2*aj+b7]=ah[b3*aj+b7]||0x0,aI[b2*aj+b7]=ai[b3*aj+b7]||0x0;}}}if(a3['setAttribute']('position',new B(aD,0x3)),aE&&a3['setAttribute']('uv',new B(aE,0x2)),aF&&a3['setAttribute']('uv1',new B(aF,0x2)),a3['setAttribute']('normal',new B(aG,0x3)),aH&&aI){const b8=new Uint16Array(aC*0x4),b9=new Float32Array(aC*0x4);this[c3(0x16c)](aH,aI,aj,aC,b8,b9),a3[c3(0xf4)]('skinIndex',new B(b8,0x4)),a3['setAttribute'](c3(0x149),new B(b9,0x4));}return a3;}['_selectTopWeights'](a0,a1,a2,a3,a4,a5){if(a2<=0x4){for(let a7=0x0;a7<a3;a7++)for(let a8=0x0;a8<0x4;a8++)a8<a2?(a4[a7*0x4+a8]=a0[a7*a2+a8]||0x0,a5[a7*0x4+a8]=a1[a7*a2+a8]||0x0):(a4[a7*0x4+a8]=0x0,a5[a7*0x4+a8]=0x0);return;}const a6=new Uint32Array(a2);for(let a9=0x0;a9<a3;a9++){const aa=a9*a2;for(let ac=0x0;ac<a2;ac++)a6[ac]=ac;for(let ad=0x0;ad<0x4;ad++){let ae=ad,af=a1[aa+a6[ad]]||0x0;for(let ag=ad+0x1;ag<a2;ag++){const ah=a1[aa+a6[ag]]||0x0;ah>af&&(af=ah,ae=ag);}if(ae!==ad){const ai=a6[ad];a6[ad]=a6[ae],a6[ae]=ai;}}let ab=0x0;for(let aj=0x0;aj<0x4;aj++)ab+=a1[aa+a6[aj]]||0x0;for(let ak=0x0;ak<0x4;ak++){const al=a6[ak];ab>0x0?(a4[a9*0x4+ak]=a0[aa+al]||0x0,a5[a9*0x4+ak]=(a1[aa+al]||0x0)/ab):(a4[a9*0x4+ak]=0x0,a5[a9*0x4+ak]=0x0);}}}['_findUVPrimvar'](a0){const c4=bc;for(const a3 in a0){if(!a3['startsWith']('primvars:')||a3['endsWith'](':typeName')||a3['endsWith'](':elementSize')||a3['endsWith'](':indices')||a3['includes']('skel:'))continue;const a4=a0[a3+':typeName'];if(a4&&a4[c4(0xba)](c4(0x89)))return{'uvs':a0[a3],'uvIndices':a0[a3+':indices']};}const a1=a0['primvars:st']||a0[c4(0x8d)],a2=a0['primvars:st:indices'];return{'uvs':a1,'uvIndices':a2};}['_findUV2Primvar'](a0){const c5=bc,a1=a0[c5(0x10f)],a2=a0['primvars:st1:indices'];return{'uvs2':a1,'uv2Indices':a2};}['_buildHoleMap'](a0){const c6=bc;if(!a0||a0['length']===0x0)return{'parentToHoles':new Map(),'holeFaces':new Set()};const a1=new Map(),a2=new Set();for(let a3=0x0;a3<a0[c6(0x172)];a3+=0x2){const a4=a0[a3],a5=a0[a3+0x1];a2['add'](a4),a1['has'](a5)||a1['set'](a5,[]),a1['get'](a5)['push'](a4);}return{'parentToHoles':a1,'holeFaces':a2};}['_triangulateIndicesWithPattern'](a0,a1,a2=null,a3=null){const c7=bc,a4=[],a5=[],a6=[];let a7=0x0;for(let ab=0x0;ab<a1['length'];ab++)a6['push'](a7),a7+=a1[ab];const a8=a3?.['parentToHoles']||new Map(),a9=a3?.['holeFaces']||new Set();let aa=0x0;for(let ac=0x0;ac<a1['length'];ac++){const ad=a1[ac];if(a9[c7(0xce)](ac)){aa+=ad;continue;}const ae=a8['get'](ac);if(ae&&ae[c7(0x172)]>0x0&&a2&&a2['length']>0x0){const af=new Map(),ag=[];for(let aj=0x0;aj<ad;aj++){const ak=a0[aa+aj];ag['push'](ak),af['set'](ak,aa+aj);}const ah=[];for(const al of ae){const am=a6[al],an=a1[al],ao=[];for(let ap=0x0;ap<an;ap++){const aq=a0[am+ap];ao['push'](aq),af['set'](aq,am+ap);}ah['push'](ao);}const ai=this['_triangulateNGonWithHoles'](ag,ah,a2);for(const ar of ai)a4['push'](ar[0x0],ar[0x1],ar[0x2]),a5['push'](af['get'](ar[0x0]),af['get'](ar[0x1]),af['get'](ar[0x2]));}else{if(ad===0x3)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2]),a5['push'](aa,aa+0x1,aa+0x2);else{if(ad===0x4)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2],a0[aa],a0[aa+0x2],a0[aa+0x3]),a5['push'](aa,aa+0x1,aa+0x2,aa,aa+0x2,aa+0x3);else{if(ad>0x4){if(a2&&a2[c7(0x172)]>0x0){const as=[];for(let av=0x0;av<ad;av++)as['push'](a0[aa+av]);const au=this['_triangulateNGon'](as,a2);for(const aw of au)a4['push'](aw[0x0],aw[0x1],aw[0x2]),a5['push'](aa+as['indexOf'](aw[0x0]),aa+as['indexOf'](aw[0x1]),aa+as[c7(0x166)](aw[0x2]));}else{for(let ax=0x1;ax<ad-0x1;ax++)a4['push'](a0[aa],a0[aa+ax],a0[aa+ax+0x1]),a5['push'](aa,aa+ax,aa+ax+0x1);}}}}}aa+=ad;}return{'indices':a4,'pattern':a5};}['_applyTriangulationPattern'](a0,a1){const c8=bc,a2=[];for(let a3=0x0;a3<a1['length'];a3++)a2[c8(0x11e)](a0[a1[a3]]);return a2;}[bc(0x163)](a0,a1){const c9=bc,a2=[],a3=[];for(const a9 of a0)a3['push'](new i(a1[a9*0x3],a1[a9*0x3+0x1],a1[a9*0x3+0x2]));const a4=new i();for(let aa=0x0;aa<a3['length'];aa++){const ab=a3[aa],ac=a3[(aa+0x1)%a3['length']];a4['x']+=(ab['y']-ac['y'])*(ab['z']+ac['z']),a4['y']+=(ab['z']-ac['z'])*(ab['x']+ac['x']),a4['z']+=(ab['x']-ac['x'])*(ab['y']+ac['y']);}a4['normalize']();const a5=new i(),a6=new i();Math[c9(0xd3)](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5[c9(0x13e)](0x0,0x1,0x0),a6['crossVectors'](a4,a5)['normalize'](),a5['crossVectors'](a6,a4)['normalize']();for(const ad of a3)a2['push'](new F(ad['dot'](a5),ad['dot'](a6)));const a7=G['triangulateShape'](a2,[]),a8=[];for(const ae of a7)a8[c9(0x11e)]([a0[ae[0x0]],a0[ae[0x1]],a0[ae[0x2]]]);return a8;}[bc(0x14d)](a0,a1,a2){const ca=bc,a3=[];for(const ac of a0)a3['push'](new i(a2[ac*0x3],a2[ac*0x3+0x1],a2[ac*0x3+0x2]));const a4=new i();for(let ad=0x0;ad<a3['length'];ad++){const ae=a3[ad],af=a3[(ad+0x1)%a3['length']];a4['x']+=(ae['y']-af['y'])*(ae['z']+af['z']),a4['y']+=(ae['z']-af['z'])*(ae['x']+af['x']),a4['z']+=(ae['x']-af['x'])*(ae['y']+af['y']);}a4['normalize']();const a5=new i(),a6=new i();Math['abs'](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)['normalize'](),a5['crossVectors'](a6,a4)['normalize']();const a7=[];for(const ag of a3)a7['push'](new F(ag['dot'](a5),ag['dot'](a6)));const a8=[];for(const ah of a1){const ai=[];for(const aj of ah){const ak=new i(a2[aj*0x3],a2[aj*0x3+0x1],a2[aj*0x3+0x2]);ai['push'](new F(ak[ca(0xe5)](a5),ak['dot'](a6)));}a8[ca(0x11e)](ai);}const a9=[...a0];for(const al of a1)a9['push'](...al);const aa=G[ca(0xab)](a7,a8),ab=[];for(const am of aa)ab['push']([a9[am[0x0]],a9[am[0x1]],a9[am[0x2]]]);return ab;}['_triangulateIndices'](a0,a1){const a2=[];let a3=0x0;for(let a4=0x0;a4<a1['length'];a4++){const a5=a1[a4];if(a5===0x3)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2]);else{if(a5===0x4)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2],a0[a3],a0[a3+0x2],a0[a3+0x3]);else{if(a5>0x4){for(let a6=0x1;a6<a5-0x1;a6++)a2['push'](a0[a3],a0[a3+a6],a0[a3+a6+0x1]);}}}a3+=a5;}return a2;}['_expandAttribute'](a0,a1,a2){const a3=new Array(a1['length']*a2);for(let a4=0x0;a4<a1['length'];a4++){const a5=a1[a4];for(let a6=0x0;a6<a2;a6++)a3[a4*a2+a6]=a0[a5*a2+a6];}return a3;}[bc(0x92)](a0,a1){const a2=a0['length']/0x3,a3=new Float32Array(a2*0x3);for(let a4=0x0;a4<a1['length'];a4+=0x3){const a5=a1[a4],a6=a1[a4+0x1],a7=a1[a4+0x2],a8=a0[a5*0x3],a9=a0[a5*0x3+0x1],aa=a0[a5*0x3+0x2],ab=a0[a6*0x3],ac=a0[a6*0x3+0x1],ad=a0[a6*0x3+0x2],ae=a0[a7*0x3],af=a0[a7*0x3+0x1],ag=a0[a7*0x3+0x2],ah=ab-a8,ai=ac-a9,aj=ad-aa,ak=ae-a8,al=af-a9,am=ag-aa,an=ai*am-aj*al,ao=aj*ak-ah*am,ap=ah*al-ai*ak;a3[a5*0x3]+=an,a3[a5*0x3+0x1]+=ao,a3[a5*0x3+0x2]+=ap,a3[a6*0x3]+=an,a3[a6*0x3+0x1]+=ao,a3[a6*0x3+0x2]+=ap,a3[a7*0x3]+=an,a3[a7*0x3+0x1]+=ao,a3[a7*0x3+0x2]+=ap;}for(let aq=0x0;aq<a2;aq++){const ar=a3[aq*0x3],as=a3[aq*0x3+0x1],au=a3[aq*0x3+0x2],av=Math['sqrt'](ar*ar+as*as+au*au);av>0x0&&(a3[aq*0x3]/=av,a3[aq*0x3+0x1]/=av,a3[aq*0x3+0x2]/=av);}return a3;}['_getMaterialPath'](a0,a1){const cb=bc;let a2=null;const a3=a1['material:binding'];return a3&&(a2=Array['isArray'](a3)?a3[0x0]:a3),a2||(a2=this[cb(0xda)](a0)),a2;}[bc(0x154)](a0,a1){const cc=bc,a2=new H();let a3=null;const a4=a1[cc(0x121)];if(a4&&(a3=Array['isArray'](a4)?a4[0x0]:a4),a3||(a3=this[cc(0xda)](a0)),!a3){const a5=[],a6=a0+'/';for(const a7 in this['specsByPath']){if(!a7['startsWith'](a6)||!a7['endsWith']('.material:binding'))continue;const a8=this['specsByPath'][a7];if(!a8)continue;const a9=a8[cc(0x178)]['targetPaths'];a9&&a9['length']>0x0&&a5['push'](a9[0x0]);}a5[cc(0x172)]>0x0&&(a3=this[cc(0xd8)](a5));}if(!a3){const aa='/'+a0['split']('/')[0x1],ab=this['materialsByRoot'][cc(0x9e)](aa);if(ab){for(const ac of ab)if(ac[cc(0x156)](aa+'/Looks/')||ac['startsWith'](aa+'/Materials/')){a3=ac;break;}}}return a3&&this['_applyMaterial'](a2,a3),a2;}['_buildMaterialForPath'](a0){const cd=bc,a1=new H();return a0&&this[cd(0x11a)](a1,a0),a1;}['_applyMaterialBinding'](a0,a1){const ce=bc,a2=a1+'.material:binding',a3=this['specsByPath'][a2];if(!a3)return;let a4=null;const a5=a3['fields']?.['targetPaths']||a3['fields']?.['default'];if(a5&&(a4=Array['isArray'](a5)?a5[0x0]:a5),!a4)return;a4=String(a4)['replace'](/^<|>$/g,'');const a6=new H();this[ce(0x11a)](a6,a4),a0['material']=a6;}['_pickBestMaterial'](a0){const cf=bc;for(const a1 of a0){const a2=this['shadersByMaterialPath'][cf(0x9e)](a1);if(a2)for(const a3 of a2){const a4=this['_getAttributes'](a3);if(a4['info:id']==='UsdUVTexture'&&a4['inputs:file'])return a1;}}return a0[0x0];}['_applyMaterial'](a0,a1){const cg=bc;if(!this['specsByPath'][a1])return;const a2=this['shadersByMaterialPath']['get'](a1);if(a2)for(const a3 of a2){const a4=this['specsByPath'][a3];if(!a4)continue;const a5=this['_getAttributes'](a3)['info:id']||a4['fields']['info:id'];a5==='UsdPreviewSurface'||a5==='ND_UsdPreviewSurface_surfaceshader'?this[cg(0x138)](a0,a3):a5==='arnold:openpbr_surface'&&this['_applyOpenPBRSurface'](a0,a3);}}[bc(0xb6)](a0,a1,a2,a3,a4,a5,a6,a7){const ch=bc,a8=a1+'.'+a3,a9=this['specsByPath'][a8];if(a9&&a9['fields']['connectionPaths']&&a9['fields']['connectionPaths']['length']>0x0){const aa=a7===this['_getTextureFromOpenPBRConnection']?a9['fields']['connectionPaths']:[a9[ch(0x178)]['connectionPaths'][0x0]];for(const ab of aa){const ac=a7['call'](this,ab);if(ac)return ac['colorSpace']=a5,a0[a4]=ac,!0x0;}}return a2[a3]!==void 0x0&&a6&&a6(a2[a3]),!0x1;}['_applyPreviewSurface'](a0,a1){const cj=bc,a2=this['_getAttributes'](a1),a3=(a6,a7,a8,a9)=>this['_applyTextureOrValue'](a0,a1,a2,a6,a7,a8,a9,this['_getTextureFromConnection']),a4=a6=>{const a7=a1+'.'+a6;return this['specsByPath'][a7];};if(a3('inputs:diffuseColor','map',I,a6=>{const ci=c;Array['isArray'](a6)&&a6[ci(0x172)]>=0x3&&a0['color']['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}),a0['map']&&a0['map']['userData']['scale']){const a6=a0['map'][cj(0xf9)]['scale'];Array['isArray'](a6)&&a6['length']>=0x3&&a0['color']['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}if(a3('inputs:emissiveColor','emissiveMap',I,a7=>{const ck=cj;Array[ck(0x171)](a7)&&a7['length']>=0x3&&a0['emissive']['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}),a0['emissiveMap']){if(a0[cj(0x106)]['userData']['scale']){const a7=a0[cj(0x106)]['userData']['scale'];Array['isArray'](a7)&&a7['length']>=0x3&&a0['emissive']['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}else a0[cj(0x8c)]['set'](0xffffff);}if(a3('inputs:normal','normalMap',W,null),a0['normalMap']&&a0['normalMap']['userData']['scale']){const a8=a0['normalMap']['userData']['scale'];a0['normalScale']=new F(a8[0x0],a8[0x1]);}if(a3('inputs:roughness','roughnessMap',W,a9=>{a0['roughness']=a9;})&&(a0[cj(0x130)]=0x1),a3('inputs:metallic','metalnessMap',W,a9=>{a0['metalness']=a9;})&&(a0['metalness']=0x1),a3(cj(0xb9),'aoMap',W,null),a2['inputs:ior']!==void 0x0&&(a0['ior']=a2['inputs:ior']),a3(cj(0xbf),'specularColorMap',I,a9=>{Array['isArray'](a9)&&a9['length']>=0x3&&a0['specularColor']['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);}),a0['specularColorMap']&&a0['specularColorMap']['userData']['scale']){const a9=a0[cj(0x135)]['userData']['scale'];Array['isArray'](a9)&&a9['length']>=0x3&&a0['specularColor'][cj(0x8e)](a9[0x0],a9[0x1],a9[0x2],I);}a2['inputs:clearcoat']!==void 0x0&&(a0['clearcoat']=a2['inputs:clearcoat']),a2['inputs:clearcoatRoughness']!==void 0x0&&(a0['clearcoatRoughness']=a2['inputs:clearcoatRoughness']);const a5=a2['inputs:opacityThreshold']!==void 0x0?a2['inputs:opacityThreshold']:0x0;if(a4('inputs:opacity')?.['fields']?.['connectionPaths']?.['length']>0x0)a5>0x0?(a0['alphaTest']=a5,a0[cj(0xcd)]=!0x1):a0['transparent']=!0x0;else{const aa=a2['inputs:opacity']!==void 0x0?a2['inputs:opacity']:0x1;aa<0x1&&(a0['transparent']=!0x0,a0[cj(0xac)]=aa);}}[bc(0x97)](a0,a1){const cm=bc,a2=this['_getAttributes'](a1),a3=(ae,af,ag,ah)=>this['_applyTextureOrValue'](a0,a1,a2,ae,af,ag,ah,this['_getTextureFromOpenPBRConnection']);if(a3('inputs:base_color','map',I,ae=>{const cl=c;Array['isArray'](ae)&&ae[cl(0x172)]>=0x3&&a0['color']['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}),a0['map']&&a0['map']['userData']['scale']){const ae=a0['map']['userData']['scale'];Array['isArray'](ae)&&ae[cm(0x172)]>=0x3&&a0['color'][cm(0x8e)](ae[0x0],ae[0x1],ae[0x2],I);}a3('inputs:base_metalness','metalnessMap',W,af=>{typeof af=='number'&&(a0['metalness']=af);}),a3('inputs:specular_roughness','roughnessMap',W,af=>{typeof af=='number'&&(a0['roughness']=af);});const a4=a3('inputs:emission_color',cm(0x106),I,af=>{const cn=cm;Array[cn(0x171)](af)&&af[cn(0x172)]>=0x3&&a0['emissive']['setRGB'](af[0x0],af[0x1],af[0x2],I);}),a5=a2[cm(0x133)];a5!==void 0x0&&a5>0x0&&(a4?a0['emissiveIntensity']=a5:a0[cm(0x8c)]['multiplyScalar'](a5));const a6=a2['inputs:transmission_weight'];if(a6!==void 0x0&&a6>0x0){a0[cm(0xc1)]=a6;const af=a2['inputs:transmission_depth'];af!==void 0x0&&(a0[cm(0xe4)]=af);const ag=a2['inputs:transmission_color'];ag!==void 0x0&&Array['isArray'](ag)&&(a0['attenuationColor'][cm(0x8e)](ag[0x0],ag[0x1],ag[0x2]),a0['attenuationDistance']=af||0x1);}const a7=a2['inputs:geometry_opacity'];a7!==void 0x0&&a7<0x1&&(a0['opacity']=a7,a0['transparent']=!0x0);const a8=a2['inputs:specular_ior'];a8!==void 0x0&&(a0['ior']=a8);const a9=a2['inputs:coat_weight'];if(a9!==void 0x0&&a9>0x0){a0['clearcoat']=a9;const ah=a2['inputs:coat_roughness'];ah!==void 0x0&&(a0['clearcoatRoughness']=ah);}const aa=a2['inputs:thin_film_weight'];if(aa!==void 0x0&&aa>0x0){a0['iridescence']=aa;const ai=a2[cm(0x13c)];ai!==void 0x0&&(a0['iridescenceIOR']=ai);const aj=a2['inputs:thin_film_thickness'];if(aj!==void 0x0){const ak=aj*0x3e8;a0['iridescenceThicknessRange']=[ak,ak];}}const ab=a2['inputs:specular_weight'];ab!==void 0x0&&(a0['specularIntensity']=ab);const ac=a2['inputs:specular_color'];ac!==void 0x0&&Array[cm(0x171)](ac)&&a0['specularColor']['setRGB'](ac[0x0],ac[0x1],ac[0x2]);const ad=a2['inputs:specular_roughness_anisotropy'];ad!==void 0x0&&ad>0x0&&(a0['anisotropy']=ad),a3('inputs:geometry_normal','normalMap',W,null);}['_getTextureFromOpenPBRConnection'](a0){const co=bc,a1=a0[co(0xca)](/<|>/g,''),a2=a1['split']('.')[0x0],a3=this['specsByPath'][a2];if(!a3)return null;const a4=this['_getAttributes'](a2),a5=a4['info:id']||a3['fields']['info:id'];if(a3['fields']['typeName']==='NodeGraph'){const a7=a1['split']('.')[0x1],a8=a2+'.'+a7,a9=this[co(0x155)][a8];return a9?.['fields']?.[co(0xc6)]?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](a9[co(0x178)]['connectionPaths'][0x0]):null;}if(a5===co(0xee)){const aa=a4['inputs:filename'];return aa?this[co(0x176)](aa):null;}if(a5&&a5['startsWith']('ND_image_')){const ab=a4['inputs:file'];return ab?this[co(0x176)](ab):null;}if(a5===co(0xa3)){const ac=a2+co(0x13a),ad=this['specsByPath'][ac];return ad?.['fields']?.[co(0xc6)]?.[co(0x172)]>0x0?this[co(0xe0)](ad[co(0x178)]['connectionPaths'][0x0]):null;}if(a5&&a5['startsWith']('ND_convert_')){const ae=a2+co(0x90),af=this['specsByPath'][ae];return af?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](af[co(0x178)]['connectionPaths'][0x0]):null;}if(a5==='arnold:bump2d'){const ag=a2+co(0xd0),ah=this['specsByPath'][ag];return ah?.['fields']?.[co(0xc6)]?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](ah['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:color_correct'){const ai=a2+co(0x162),aj=this[co(0x155)][ai];return aj?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](aj['fields']['connectionPaths'][0x0]):null;}const a6=a2['substring'](0x0,a2['lastIndexOf']('/'));if(a6){const ak=this['specsByPath'][a6];if(ak){const al=this['_getAttributes'](a6);if((al['info:id']||ak['fields']['info:id'])===co(0xee)){const am=al['inputs:filename'];if(am)return this['_loadTextureFromPath'](am);}}}return null;}['_loadTextureFromPath'](a0){const cp=bc;if(!a0)return null;if(this['textureCache'][a0])return this['textureCache'][a0];const a1=this['_loadTexture'](a0,null,null);return a1&&(this[cp(0x12d)][a0]=a1),a1;}['_getTextureFromConnection'](a0){const cq=bc,a1=a0['split']('.')[0x0],a2=this['specsByPath'][a1];if(!a2)return null;const a3=this['_getAttributes'](a1);if((a3['info:id']||a2[cq(0x178)]['info:id'])!==cq(0x164))return null;const a4=a3['inputs:file'];if(!a4)return null;let a5=null,a6=0x0;const a7=a1+'.inputs:st',a8=this['specsByPath'][a7];if(a8?.[cq(0x178)]?.[cq(0xc6)]?.['length']>0x0){const ad=a8['fields']['connectionPaths'][0x0]['replace'](/<|>/g,'')['split']('.')[0x0],ae=this['specsByPath'][ad];if(ae){const af=this['_getAttributes'](ad),ag=af['info:id']||ae['fields']['info:id'];if(ag==='UsdTransform2d'){a5=af;const ah=ad+cq(0x90),ai=this['specsByPath'][ah];if(ai?.['fields']?.['connectionPaths']?.[cq(0x172)]>0x0){const aj=ai[cq(0x178)]['connectionPaths'][0x0]['replace'](/<|>/g,'')['split']('.')[0x0],ak=this['_getAttributes'](aj)['inputs:varname'];ak==='st1'?a6=0x1:ak==='st2'&&(a6=0x2);}}else{if(ag===cq(0xa7)){const al=af[cq(0x14f)];al==='st1'?a6=0x1:al==='st2'&&(a6=0x2);}}}}const a9=a3['inputs:scale'],aa=a3['inputs:bias'];let ab=a4;if(a9&&(ab+=':s'+a9['join'](',')),aa&&(ab+=':b'+aa['join'](',')),this['textureCache'][ab])return this['textureCache'][ab];const ac=this['_loadTexture'](a4,a3,a5);return ac&&(a9&&(ac['userData'][cq(0x17d)]=a9),aa&&(ac['userData']['bias']=aa),a6!==0x0&&(ac['channel']=a6),this[cq(0x12d)][ab]=ac),ac;}['_applyTextureTransforms'](a0,a1){const cr=bc;if(!a1)return;const a2=a1['inputs:scale'];a2&&Array['isArray'](a2)&&a2['length']>=0x2&&a0['repeat'][cr(0x13e)](a2[0x0],a2[0x1]);const a3=a1['inputs:translation'];a3&&Array['isArray'](a3)&&a3['length']>=0x2&&a0['offset']['set'](a3[0x0],a3[0x1]);const a4=a1['inputs:rotation'];typeof a4=='number'&&(a0['rotation']=a4*Math['PI']/0xb4);}['_loadTexture'](a0,a1,a2){const cs=bc;let a3=a0;a3['startsWith']('@')&&(a3=a3['slice'](0x1)),a3[cs(0x158)]('@')&&(a3=a3['slice'](0x0,-0x1));const a4=this['_resolveFilePath'](a3);let a5=this[cs(0x16f)][a4];if(a5||(a5=this['assets'][a3]),!a5){const a6=a3['split']('/')['pop']();for(const a7 in this[cs(0x16f)])if(a7['endsWith'](a6)||a7['endsWith']('/'+a6))return this['_createTextureFromData'](this['assets'][a7],a1,a2);if(this['manager']){const a8=this['manager'][cs(0x137)](a6);if(a8!==a6)return this['_createTextureFromData'](a8,a1,a2);}return console['warn']('USDLoader:\x20Texture\x20not\x20found:',a3),null;}return this['_createTextureFromData'](a5,a1,a2);}['_createTextureFromData'](a0,a1,a2){if(!a0)return null;const a3=this,a4=new M();let a5;if(typeof a0=='string')a5=a0;else{if(a0 instanceof Uint8Array||a0 instanceof ArrayBuffer){const a7=new Blob([a0]);a5=URL['createObjectURL'](a7);}else return null;}const a6=new Image();return a6['onload']=function(){const cu=c;a4[cu(0x112)]=a6,a1&&(a4['wrapS']=a3['_getWrapMode'](a1['inputs:wrapS']),a4['wrapT']=a3['_getWrapMode'](a1['inputs:wrapT'])),a3['_applyTextureTransforms'](a4,a2),a4['needsUpdate']=!0x0,typeof a0!='string'&&URL['revokeObjectURL'](a5);},a6['src']=a5,a4;}['_getWrapMode'](a0){return a0==='repeat'?N:a0==='mirror'?O:a0==='clamp'?P:N;}['_buildSkeleton'](a0){const cv=bc,a1=this['_getAttributes'](a0),a2=a1['joints'];if(!a2||a2['length']===0x0)return null;const a3=a1['bindTransforms'],a4=a1['restTransforms'],a5=this['_flattenMatrixArray'](a3,a2['length']),a6=this['_flattenMatrixArray'](a4,a2[cv(0x172)]),a7=[],a8={},a9=[];for(let ad=0x0;ad<a2['length'];ad++){const ae=a2[ad],af=ae['split']('/')['pop'](),ag=new R();if(ag['name']=af,a7['push'](ag),a8[ae]={'bone':ag,'index':ad},a5&&a5['length']>=(ad+0x1)*0x10){const ah=new f(),ai=a5['slice'](ad*0x10,(ad+0x1)*0x10);ah['set'](ai[0x0],ai[0x4],ai[0x8],ai[0xc],ai[0x1],ai[0x5],ai[0x9],ai[0xd],ai[0x2],ai[0x6],ai[0xa],ai[0xe],ai[0x3],ai[0x7],ai[0xb],ai[0xf]);const aj=ah['clone']()['invert']();a9['push'](aj);}else a9['push'](new f());}for(let ak=0x0;ak<a2['length'];ak++){const al=a2[ak][cv(0x100)]('/');if(al[cv(0x172)]>0x1){const am=al[cv(0x15b)](0x0,-0x1)['join']('/'),an=a8[am];an&&an['bone']['add'](a7[ak]);}}if(a6&&a6[cv(0x172)]>=a2[cv(0x172)]*0x10)for(let ao=0x0;ao<a2['length'];ao++){const ap=new f(),aq=a6[cv(0x15b)](ao*0x10,(ao+0x1)*0x10);ap['set'](aq[0x0],aq[0x4],aq[0x8],aq[0xc],aq[0x1],aq[0x5],aq[0x9],aq[0xd],aq[0x2],aq[0x6],aq[0xa],aq[0xe],aq[0x3],aq[0x7],aq[0xb],aq[0xf]),ap['decompose'](a7[ao]['position'],a7[ao]['quaternion'],a7[ao]['scale']);}const aa=a7['filter'](ar=>!ar['parent']||!ar[cv(0xcb)]['isBone']),ab=this[cv(0x155)][a0+'.skel:animationSource'];let ac=null;return ab&&ab['fields']['targetPaths']&&ab['fields']['targetPaths']['length']>0x0&&(ac=ab['fields']['targetPaths'][0x0]),{'skeleton':new S(a7,a9),'joints':a2,'rootBones':aa,'animationPath':ac,'path':a0};}['_bindSkeletons'](){const cw=bc;for(const a0 of this[cw(0x157)]){const {mesh:a1,skeletonPath:a2,localJoints:a3,geomBindTransform:a4}=a0;let a5=null;if(a2&&this['skeletons'][a2]&&(a5=this['skeletons'][a2]),!a5){for(const aa in this['skeletons'])if(a2&&(a2[cw(0xba)](aa)||aa[cw(0xba)](a2))){a5=this['skeletons'][aa];break;}}if(!a5){const ab=Object['keys'](this[cw(0x16b)]);ab['length']>0x0&&(a5=this['skeletons'][ab[0x0]]);}if(!a5){console['warn']('USDComposer:\x20No\x20skeleton\x20found\x20for\x20skinned\x20mesh',a1['name']);continue;}const {skeleton:a6,rootBones:a7,joints:a8}=a5;if(a3&&a3['length']>0x0){const ac=a1['geometry']['attributes']['skinIndex'];if(ac){const ad=[];for(let af=0x0;af<a3['length'];af++){const ag=a3[af],ah=a8['indexOf'](ag);ad[af]=ah>=0x0?ah:0x0;}const ae=ac['array'];for(let ai=0x0;ai<ae['length'];ai++){const aj=ae[ai];aj<ad[cw(0x172)]&&(ae[ai]=ad[aj]);}}}for(const ak of a7)a1['add'](ak);const a9=new f();if(a4&&a4['length']===0x10){const al=a4;a9['set'](al[0x0],al[0x4],al[0x8],al[0xc],al[0x1],al[0x5],al[0x9],al[0xd],al[0x2],al[0x6],al[0xa],al[0xe],al[0x3],al[0x7],al[0xb],al[0xf]);}a1[cw(0xdc)](a6,a9);}}['_buildAnimations'](){const cx=bc,a0=[];for(const a2 in this['specsByPath']){const a3=this['specsByPath'][a2];if(a3['specType']!==K[cx(0x9c)]||a3['fields']['typeName']!=='SkelAnimation')continue;const a4=this['_buildAnimationClip'](a2);a4&&a0['push'](a4);}const a1=this['_buildTransformAnimations']();return a1['length']>0x0&&a0[cx(0x11e)](new T('TransformAnimation',-0x1,a1)),a0;}['_buildTransformAnimations'](){const cy=bc,a0=[];for(const a1 in this['specsByPath']){const a2=this['specsByPath'][a1];if(a2['specType']!==K['Prim'])continue;const a3=a2['fields']?.['typeName'];if(a3!=='Xform'&&a3!=='Scope'&&a3!=='Mesh')continue;const a4=a1['split']('/')['pop'](),a5=a1+'.xformOp:orient',a6=this['specsByPath'][a5];if(a6?.['fields']?.['timeSamples']){const {times:ae,values:af}=a6['fields']['timeSamples'],ag=[],ah=[];for(let ai=0x0;ai<ae['length'];ai++){ag['push'](ae[ai]/this['fps']);const aj=af[ai];ah['push'](aj[0x0],aj[0x1],aj[0x2],aj[0x3]);}ag['length']>0x0&&a0['push'](new U(a4+cy(0x145),new Float32Array(ag),new Float32Array(ah)));}const a7=a1+'.xformOp:rotateXYZ',a8=this['specsByPath'][a7];if(a8?.['fields']?.['timeSamples']){const {times:ak,values:al}=a8['fields'][cy(0x8a)],am=[],an=[],ao=new g(),ap=new h();for(let aq=0x0;aq<ak['length'];aq++){am['push'](ak[aq]/this['fps']);const ar=al[aq];ao['set'](ar[0x0]*Math['PI']/0xb4,ar[0x1]*Math['PI']/0xb4,ar[0x2]*Math['PI']/0xb4,'ZYX'),ap['setFromEuler'](ao),an['push'](ap['x'],ap['y'],ap['z'],ap['w']);}am['length']>0x0&&a0['push'](new U(a4+'.quaternion',new Float32Array(am),new Float32Array(an)));}const a9=a1+'.xformOp:translate',aa=this['specsByPath'][a9];if(aa?.['fields']?.['timeSamples']){const {times:as,values:au}=aa['fields']['timeSamples'],av=[],aw=[];for(let ax=0x0;ax<as[cy(0x172)];ax++){av['push'](as[ax]/this['fps']);const ay=au[ax];aw[cy(0x11e)](ay[0x0],ay[0x1],ay[0x2]);}av[cy(0x172)]>0x0&&a0['push'](new V(a4+'.position',new Float32Array(av),new Float32Array(aw)));}const ab=a1+'.xformOp:scale',ac=this['specsByPath'][ab];if(ac?.['fields']?.['timeSamples']){const {times:az,values:aA}=ac['fields']['timeSamples'],aB=[],aC=[];for(let aD=0x0;aD<az['length'];aD++){aB['push'](az[aD]/this['fps']);const aE=aA[aD];aC[cy(0x11e)](aE[0x0],aE[0x1],aE[0x2]);}aB['length']>0x0&&a0['push'](new V(a4+'.scale',new Float32Array(aB),new Float32Array(aC)));}const ad=a2['fields']?.['properties']||[];for(const aF of ad){if(!aF[cy(0x156)]('xformOp:transform'))continue;const aG=a1+'.'+aF,aH=this['specsByPath'][aG];if(!aH?.['fields']?.[cy(0x8a)])continue;const {times:aI,values:aJ}=aH['fields']['timeSamples'],aK=[],aL=[],aM=[],aN=[],aO=[],aP=[],aQ=new f(),aR=new i(),aS=new h(),aT=new i();for(let aU=0x0;aU<aI['length'];aU++){const aV=aJ[aU];if(!aV||aV['length']<0x10)continue;const aW=aI[aU]/this['fps'];aQ['set'](aV[0x0],aV[0x4],aV[0x8],aV[0xc],aV[0x1],aV[0x5],aV[0x9],aV[0xd],aV[0x2],aV[0x6],aV[0xa],aV[0xe],aV[0x3],aV[0x7],aV[0xb],aV[0xf]),aQ['decompose'](aR,aS,aT),aK['push'](aW),aL[cy(0x11e)](aR['x'],aR['y'],aR['z']),aM[cy(0x11e)](aW),aN[cy(0x11e)](aS['x'],aS['y'],aS['z'],aS['w']),aO['push'](aW),aP['push'](aT['x'],aT['y'],aT['z']);}aK[cy(0x172)]>0x0&&(a0['push'](new V(a4+cy(0x96),new Float32Array(aK),new Float32Array(aL))),a0['push'](new U(a4+cy(0x145),new Float32Array(aM),new Float32Array(aN))),a0['push'](new V(a4+'.scale',new Float32Array(aO),new Float32Array(aP))));break;}}return a0;}['_buildAnimationClip'](a0){const cz=bc,a1=this['_getAttributes'](a0)['joints'];if(!a1||a1['length']===0x0)return null;const a2=[],a3=this['_getTimeSampledAttribute'](a0,'rotations');if(a3&&a3['times']&&a3['values']){const {times:a7,values:a8}=a3;for(let a9=0x0;a9<a1['length'];a9++){const aa=a1[a9]['split']('/')['pop'](),ab=[],ac=[];for(let ad=0x0;ad<a7['length'];ad++){const ae=a8[ad];if(!ae||ae['length']<(a9+0x1)*0x4)continue;ab['push'](a7[ad]/this[cz(0xbb)]);const af=ae[a9*0x4+0x0],ag=ae[a9*0x4+0x1],ah=ae[a9*0x4+0x2],ai=ae[a9*0x4+0x3];ac['push'](af,ag,ah,ai);}ab[cz(0x172)]>0x0&&a2['push'](new U(aa+'.quaternion',new Float32Array(ab),new Float32Array(ac)));}}const a4=this['_getTimeSampledAttribute'](a0,'translations');if(a4&&a4['times']&&a4[cz(0x91)]){const {times:aj,values:ak}=a4;for(let al=0x0;al<a1[cz(0x172)];al++){const am=a1[al]['split']('/')[cz(0xd1)](),an=[],ao=[];for(let ap=0x0;ap<aj['length'];ap++){const aq=ak[ap];!aq||aq['length']<(al+0x1)*0x3||(an['push'](aj[ap]/this['fps']),ao['push'](aq[al*0x3+0x0],aq[al*0x3+0x1],aq[al*0x3+0x2]));}an['length']>0x0&&a2['push'](new V(am+'.position',new Float32Array(an),new Float32Array(ao)));}}const a5=this['_getTimeSampledAttribute'](a0,cz(0xeb));if(a5&&a5['times']&&a5['values']){const {times:ar,values:as}=a5;for(let au=0x0;au<a1['length'];au++){const av=a1[au][cz(0x100)]('/')[cz(0xd1)](),aw=[],ax=[];for(let ay=0x0;ay<ar[cz(0x172)];ay++){const az=as[ay];!az||az['length']<(au+0x1)*0x3||(aw['push'](ar[ay]/this[cz(0xbb)]),ax['push'](az[au*0x3+0x0],az[au*0x3+0x1],az[au*0x3+0x2]));}aw[cz(0x172)]>0x0&&a2['push'](new V(av+'.scale',new Float32Array(aw),new Float32Array(ax)));}}if(a2['length']===0x0)return null;const a6=a0['split']('/')[cz(0xd1)]();return new T(a6,-0x1,a2);}['_getTimeSampledAttribute'](a0,a1){const cA=bc,a2=a0+'.'+a1,a3=this['specsByPath'][a2];if(a3&&a3['fields']['timeSamples']){const a4=a3[cA(0x178)][cA(0x8a)];if(a4['times']&&a4['values'])return a4;}return null;}['_flattenMatrixArray'](a0,a1){if(!a0||a0['length']===0x0)return null;if(typeof a0[0x0]=='number')return a0;const a2=[];for(let a3=0x0;a3<a1;a3++)for(let a4=0x0;a4<0x4;a4++){const a5=a0[a3*0x4+a4];a5&&a5['length']===0x4?a2['push'](a5[0x0],a5[0x1],a5[0x2],a5[0x3]):a2['push'](a4===0x0?0x1:0x0,a4===0x1?0x1:0x0,a4===0x2?0x1:0x0,a4===0x3?0x1:0x0);}return a2;}}class le extends X{constructor(a0){super(a0);}[bc(0x8f)](a0,a1,a2,a3){const cB=bc,a4=this,a5=new Z(a4['manager']);a5['setPath'](a4['path']),a5['setResponseType']('arraybuffer'),a5['setRequestHeader'](a4['requestHeader']),a5['setWithCredentials'](a4['withCredentials']),a5[cB(0x8f)](a0,function(a6){const cC=cB;try{a1(a4[cC(0xbe)](a6));}catch(a7){a3?a3(a7):console['error'](a7),a4[cC(0x167)][cC(0x17a)](a0);}},a2,a3);}[bc(0xbe)](a0){const cH=bc,a1=new Yt(),a2=new ne(),a3=new TextDecoder();function a4(ae){const cD=c;return ae instanceof ArrayBuffer?ae:ae[cD(0xdb)]===0x0&&ae[cD(0x131)]===ae[cD(0x14a)]['byteLength']?ae[cD(0x14a)]:ae['buffer']['slice'](ae[cD(0xdb)],ae[cD(0xdb)]+ae['byteLength']);}function a5(ae){const cE=c,af=ae['lastIndexOf']('.');return af<0x0||ae['lastIndexOf']('/')>af?'':ae[cE(0x15b)](af+0x1)['toLowerCase']();}function a6(ae){const af={};for(const ag in ae){const ah=ae[ag],ai=a5(ag);if(ai==='png'||ai==='jpg'||ai==='jpeg'||ai==='avif'){af[ag]=ah;continue;}ai!=='usd'&&ai!=='usda'&&ai!=='usdc'||(a7(ah)?af[ag]=a2['parseData'](a4(ah)):af[ag]=a1['parseData'](a3['decode'](ah)));}return af;}function a7(ae){const cF=c,af=new Uint8Array([0x50,0x58,0x52,0x2d,0x55,0x53,0x44,0x43]),ag=ae instanceof Uint8Array?ae:new Uint8Array(ae);if(ag[cF(0x131)]<af['length'])return!0x1;for(let ah=0x0;ah<af['length'];ah++)if(ag[ah]!==af[ah])return!0x1;return!0x0;}function a8(ae){const cG=c,af=Object['keys'](ae);if(af['length']<0x1)return{'file':void 0x0,'filename':'','basePath':''};const ag=af[0x0],ah=a5(ag);let ai=!0x1;const aj=ag['lastIndexOf']('/'),ak=aj>=0x0?ag['slice'](0x0,aj):'';if(ah==='usda')return{'file':ae[ag],'filename':ag,'basePath':ak};if(ah===cG(0x151))ai=!0x0;else{if(ah===cG(0x124)){if(a7(ae[ag]))ai=!0x0;else return{'file':ae[ag],'filename':ag,'basePath':ak};}}return ai?{'file':ae[ag],'filename':ag,'basePath':ak}:{'file':void 0x0,'filename':'','basePath':''};}const a9=this;if(typeof a0==cH(0x94)){const ae=new tt(a9['manager']),af=a1['parseData'](a0);return ae['compose'](af,{});}if(a7(a0)){const ag=new tt(a9['manager']),ah=a2['parseData'](a4(a0));return ag['compose'](ah,{});}const aa=new Uint8Array(a0);if(aa[0x0]===0x50&&aa[0x1]===0x4b){const ai=d(aa),aj=a6(ai),{file:ak,filename:al,basePath:am}=a8(ai);if(!ak)throw new Error('USDLoader:\x20Invalid\x20USDZ\x20package.\x20The\x20first\x20ZIP\x20entry\x20must\x20be\x20a\x20USD\x20layer\x20(.usd/.usda/.usdc).');const an=new tt(a9['manager']),ao=aj[al];if(!ao)throw new Error('USDLoader:\x20Failed\x20to\x20parse\x20root\x20layer\x20\x22'+al+'\x22.');return an['compose'](ao,aj,{},am);}const ab=new tt(a9['manager']),ac=a3['decode'](aa),ad=a1['parseData'](ac);return ab['compose'](ad,{});}}export{le as USDLoader};
|
|
1
|
+
const bd=c;(function(a0,a1){const ba=c,a2=a0();while(!![]){try{const a3=parseInt(ba(0x168))/0x1+parseInt(ba(0x198))/0x2+-parseInt(ba(0x19b))/0x3+-parseInt(ba(0x16c))/0x4+parseInt(ba(0x12e))/0x5*(parseInt(ba(0x1b4))/0x6)+-parseInt(ba(0x1a7))/0x7*(-parseInt(ba(0x191))/0x8)+parseInt(ba(0x1a8))/0x9*(-parseInt(ba(0x153))/0xa);if(a3===a1)break;else a2['push'](a2['shift']());}catch(a4){a2['push'](a2['shift']());}}}(a,0x9e519));import{u as d}from'./fflate.module.js';import{G as e,i as f,aw as g,Q as h,V as i,O as j,aA as k,z as l,E as m,q as n,y as o,f as p,a6 as q,w as r,v as s,C as t,aB as u,Z as v,_ as w,$ as x,B as y,g as B,H as F,J as G,a0 as H,S as I,ai as M,R as N,l as O,k as P,ab as R,a9 as S,aa as T,al as U,aj as V,aC as W,L as X,F as Z}from'./ModelViewer.js';import'vue';import'./index7.js';const Xt=/^def\s+(?:(\w+)\s+)?"?([^"]+)"?$/,Zt=/^string\s+(\w+)$/,Qt=/^(?:uniform\s+)?(\w+(?:\[\])?)\s+(.+)$/;class Yt{['parseText'](a0){const bb=c;a0=this['_preprocess'](a0);const a1={},a2=a0['split']('\x0a');let a3=null,a4=a1;const a5=[a1];for(const a6 of a2)if(a6[bb(0x17d)]('=')){const a7=this[bb(0x19e)](a6);if(a7===-0x1){a3=a6['trim']();continue;}const a8=a6['slice'](0x0,a7)[bb(0x122)](),a9=a6['slice'](a7+0x1)['trim']();if(a9['endsWith']('{')){const aa={};a5[bb(0x1e6)](aa),a4[a8]=aa,a4=aa;}else{if(a9['endsWith']('(')){const ab=a9['slice'](0x0,-0x1);a4[a8]=ab;const ac={};a5['push'](ac),a4=ac;}else a4[a8]=a9;}}else{if(a6[bb(0x17d)](':')&&!a6['includes']('=')){const ad=a6['indexOf'](':'),ae=a6['slice'](0x0,ad)['trim'](),af=a6['slice'](ad+0x1)['trim']();/^[\d.]+$/['test'](ae)&&(a4[ae]=af);}else{if(a6['endsWith']('{')){const ag=a4[a3]||{};a5['push'](ag),a4[a3]=ag,a4=ag;}else{if(a6['endsWith']('}')){if(a5['pop'](),a5['length']===0x0)continue;a4=a5[a5[bb(0x15c)]-0x1];}else{if(a6[bb(0x12d)]('(')){const ah={};a5['push'](ah),a3=a6['split']('(')[0x0]['trim']()||a3,a4[a3]=ah,a4=ah;}else a6[bb(0x12d)](')')?(a5['pop'](),a4=a5[a5[bb(0x15c)]-0x1]):a6['trim']()&&(a3=a6['trim']());}}}}return a1;}['_preprocess'](a0){a0=this['_stripBlockComments'](a0),a0=this['_collapseTripleQuotedStrings'](a0);const a1=a0['split']('\x0a'),a2=[];let a3=!0x1,a4=0x0,a5=0x0,a6='';for(let a7=0x0;a7<a1['length'];a7++){let a8=a1[a7];a8=this['_stripInlineComment'](a8);const a9=a8['trim']();if(a3){a6+='\x20'+a9;for(const aa of a9)aa==='['?a4++:aa===']'?a4--:aa==='('&&a4>0x0?a5++:aa===')'&&a4>0x0&&a5--;a4===0x0&&a5===0x0&&(a2['push'](a6),a6='',a3=!0x1);}else{if(a9['includes']('=')){const ab=this['_findAssignmentOperator'](a9);if(ab!==-0x1){const ac=a9['slice'](ab+0x1)['trim']();let ad=0x0,ae=0x0;for(const af of ac)af==='['?ad++:af===']'&&ae++;if(ad>ae){a3=!0x0,a4=ad-ae,a5=0x0,a6=a9;continue;}}}a2['push'](a9);}}return a2['join']('\x0a');}['_stripBlockComments'](a0){let a1='',a2=0x0;for(;a2<a0['length'];)if(a0[a2]==='/'&&a2+0x1<a0['length']&&a0[a2+0x1]==='*'){let a3=a2+0x2;for(;a3<a0['length'];){if(a0[a3]==='*'&&a3+0x1<a0['length']&&a0[a3+0x1]==='/'){a3+=0x2;break;}a3++;}a2=a3;}else a1+=a0[a2],a2++;return a1;}['_collapseTripleQuotedStrings'](a0){const bc=c;let a1='',a2=0x0;for(;a2<a0['length'];){if(a2+0x2<a0['length']){const a3=a0['slice'](a2,a2+0x3);if(a3===bc(0x1c9)||a3==='\x22\x22\x22'){const a4=a3;for(a1+=a4,a2+=0x3;a2<a0['length'];)if(a2+0x2<a0['length']&&a0['slice'](a2,a2+0x3)===a4){a1+=a4,a2+=0x3;break;}else a0[a2]==='\x0a'?a1+='\x5cn':a0[a2]!=='\x0d'&&(a1+=a0[a2]),a2++;continue;}}a1+=a0[a2],a2++;}return a1;}[bd(0x1b7)](a0){if(a0['trim']()['startsWith']('#usda'))return a0;let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='#')return a0['slice'](0x0,a4)['trimEnd']();}}}return a0;}['_findAssignmentOperator'](a0){let a1=!0x1,a2=null,a3=!0x1;for(let a4=0x0;a4<a0['length'];a4++){const a5=a0[a4];if(a3){a3=!0x1;continue;}if(a5==='\x5c'){a3=!0x0;continue;}if(!a1&&(a5==='\x22'||a5==='\x27'))a1=!0x0,a2=a5;else{if(a1&&a5===a2)a1=!0x1,a2=null;else{if(!a1&&a5==='=')return a4;}}}return-0x1;}['parseData'](a0){const be=bd,a1=this['parseText'](a0),a2={},a3={'Attribute':0x1,'Prim':0x6,'Relationship':0x8},a4={};if('#usda\x201.0'in a1){const a6=a1[be(0x1d5)];a6['upAxis']&&(a4['upAxis']=a6['upAxis']['replace'](/"/g,'')),a6['defaultPrim']&&(a4[be(0x1d4)]=a6['defaultPrim'][be(0x130)](/"/g,'')),a6[be(0x1e7)]!==void 0x0&&(a4['metersPerUnit']=parseFloat(a6['metersPerUnit']));}a2['/']={'specType':a3['Prim'],'fields':a4};const a5=(a7,a8)=>{const bf=be,a9=[];for(const aa in a7){if(aa==='#usda\x201.0'||aa==='variants')continue;const ab=aa['match'](Xt);if(ab){const ac=ab[0x1]||'',ad=ab[0x2],ae=a8==='/'?'/'+ad:a8+'/'+ad;a9[bf(0x1e6)](ad);const af={'typeName':ac},ag=a7[aa];this['_extractPrimData'](ag,ae,af,a2,a3),a2[ae]={'specType':a3['Prim'],'fields':af},a5(ag,ae);}}a9[bf(0x15c)]>0x0&&a2[a8]&&(a2[a8]['fields']['primChildren']=a9);};return a5(a1,'/'),{'specsByPath':a2};}['_extractPrimData'](a0,a1,a2,a3,a4){const bg=bd;if(!(!a0||typeof a0!='object'))for(const a5 in a0){if(a5['startsWith'](bg(0x1f7)))continue;if(a5==='prepend\x20references'){a2['references']=[a0[a5]];continue;}if(a5==='payload'){a2['payload']=a0[a5];continue;}if(a5===bg(0x171)){const a7={},a8=a0[a5];for(const a9 in a8){const aa=a9['match'](Zt);if(aa){const ab=aa[0x1],ac=a8[a9]['replace'](/"/g,'');a7[ab]=ac;}}Object['keys'](a7)['length']>0x0&&(a2['variantSelection']=a7);continue;}if(a5['startsWith']('rel\x20')){const ad=a5[bg(0x1e4)](0x4),ae=a1+'.'+ad,af=a0[a5]['replace'](/[<>]/g,'');a3[ae]={'specType':a4['Relationship'],'fields':{'targetPaths':[af]}};continue;}if(a5['includes'](bg(0x1fb))){const ag=a0[a5]['replace'](/[\[\]]/g,'')['split'](',')['map'](ah=>ah[bg(0x122)]()[bg(0x130)](/"/g,''));a2[bg(0x1fb)]=ag;continue;}const a6=a5['match'](Qt);if(a6){const ah=a6[0x1],ai=a6[0x2],aj=a0[a5];if(ai['endsWith']('.connect')){const ak=ai['slice'](0x0,-0x8),al=a1+'.'+ak;let am=String(aj)['trim']();am['startsWith']('<')&&(am=am['slice'](0x1)),am[bg(0x12d)]('>')&&(am=am['slice'](0x0,-0x1)),a3[al]||(a3[al]={'specType':a4['Attribute'],'fields':{'typeName':ah}}),a3[al]['fields']['connectionPaths']=[am];continue;}if(ai['endsWith']('.timeSamples')&&typeof aj=='object'){const an=ai['slice'](0x0,-0xc),ao=a1+'.'+an,ap=[],aq=[];for(const as in aj){const au=parseFloat(as);isNaN(au)||(ap[bg(0x1e6)](au),aq['push'](this['_parseAttributeValue'](ah,aj[as])));}const ar=ap['map']((av,aw)=>({'t':av,'v':aq[aw]}))['sort']((av,aw)=>av['t']-aw['t']);a3[ao]={'specType':a4['Attribute'],'fields':{'timeSamples':{'times':ar['map'](av=>av['t']),'values':ar['map'](av=>av['v'])},'typeName':ah}};}else{const av=this['_parseAttributeValue'](ah,aj),aw=a1+'.'+ai;a3[aw]={'specType':a4['Attribute'],'fields':{'default':av,'typeName':ah}};}}}}['_parseAttributeValue'](a0,a1){const bh=bd;if(a1==null)return;const a2=String(a1)['trim']();if(a0[bh(0x12d)]('[]'))try{let a3=a2['replace'](/\(/g,'[')[bh(0x130)](/\)/g,']');a3['endsWith'](',')&&(a3=a3['slice'](0x0,-0x1));const a4=JSON['parse'](a3);return Array['isArray'](a4)&&Array['isArray'](a4[0x0])?a4[bh(0x1d3)]():a4;}catch{return a2['replace'](/[\[\]]/g,'')['split'](',')['map'](a5=>{const bi=bh,a6=a5[bi(0x122)](),a7=parseFloat(a6);return isNaN(a7)?a6['replace'](/"/g,''):a7;});}if(a0[bh(0x17d)]('3')||a0['includes']('2')||a0['includes']('4'))return a2['replace'](/[()]/g,'')['split'](',')['map'](a5=>parseFloat(a5[bh(0x122)]()));if(a0['startsWith']('quat')){const a5=a2['replace'](/[()]/g,'')['split'](',')['map'](a6=>parseFloat(a6['trim']()));return[a5[0x1],a5[0x2],a5[0x3],a5[0x0]];}return a0['includes']('matrix')?a2[bh(0x130)](/[()]/g,'')['split'](',')['map'](a6=>parseFloat(a6[bh(0x122)]())):a0==='float'||a0==='double'||a0==='int'?parseFloat(a2):a0==='string'||a0==='token'?this['_parseString'](a2):a0===bh(0x128)?a2['replace'](/@/g,'')['replace'](/"/g,''):this['_parseString'](a2);}['_parseString'](a0){const bj=bd;(a0['startsWith']('\x22')&&a0['endsWith']('\x22')||a0['startsWith']('\x27')&&a0['endsWith']('\x27'))&&(a0=a0[bj(0x1e4)](0x1,-0x1));let a1='',a2=0x0;for(;a2<a0[bj(0x15c)];)if(a0[a2]==='\x5c'&&a2+0x1<a0[bj(0x15c)]){const a3=a0[a2+0x1];switch(a3){case'n':a1+='\x0a';break;case't':a1+='\x09';break;case'r':a1+='\x0d';break;case'\x5c':a1+='\x5c';break;case'\x22':a1+='\x22';break;case'\x27':a1+='\x27';break;default:a1+=a3;break;}a2+=0x2;}else a1+=a0[a2],a2++;return a1;}}const ft=new TextDecoder(),vt=new Float32Array(0x20);for(let A=0x0;A<0x20;A++)vt[A]=Math['pow'](0x2,A-0xf);const Kt=Math['pow'](0x2,-0xe),b={'Invalid':0x0,'Bool':0x1,'UChar':0x2,'Int':0x3,'UInt':0x4,'Int64':0x5,'UInt64':0x6,'Half':0x7,'Float':0x8,'Double':0x9,'String':0xa,'Token':0xb,'AssetPath':0xc,'Matrix2d':0xd,'Matrix3d':0xe,'Matrix4d':0xf,'Quatd':0x10,'Quatf':0x11,'Quath':0x12,'Vec2d':0x13,'Vec2f':0x14,'Vec2h':0x15,'Vec2i':0x16,'Vec3d':0x17,'Vec3f':0x18,'Vec3h':0x19,'Vec3i':0x1a,'Vec4d':0x1b,'Vec4f':0x1c,'Vec4h':0x1d,'Vec4i':0x1e,'Dictionary':0x1f,'TokenListOp':0x20,'StringListOp':0x21,'PathListOp':0x22,'ReferenceListOp':0x23,'IntListOp':0x24,'Int64ListOp':0x25,'UIntListOp':0x26,'UInt64ListOp':0x27,'PathVector':0x28,'TokenVector':0x29,'Specifier':0x2a,'Permission':0x2b,'Variability':0x2c,'VariantSelectionMap':0x2d,'TimeSamples':0x2e,'Payload':0x2f,'DoubleVector':0x30,'LayerOffsetVector':0x31,'StringVector':0x32,'ValueBlock':0x33,'Value':0x34,'UnregisteredValue':0x35,'UnregisteredValueListOp':0x36,'PayloadListOp':0x37,'TimeCode':0x38,'PathExpression':0x39,'Relocates':0x3a,'Spline':0x3b,'AnimationBlock':0x3c},$t=0xffffffff,Jt=0x69,te=0x74;function St(a0,a1,a2,a3,a4,a5){for(;a1<a2;){const a6=a0[a1++];if(a1>a2)break;let a7=a6>>0x4;if(a7===0xf){let ab;do{if(a1>=a2)break;ab=a0[a1++],a7+=ab;}while(ab===0xff&&a1<a2);}if(a7>0x0){a1+a7>a2&&(a7=a2-a1);for(let ac=0x0;ac<a7&&!(a4>=a5);ac++)a3[a4++]=a0[a1++];}if(a1>=a2||a1+0x2>a2)break;const a8=a0[a1++]|a0[a1++]<<0x8;if(a8===0x0)break;let a9=(a6&0xf)+0x4;if(a9===0x13){let ad;do{if(a1>=a2)break;ad=a0[a1++],a9+=ad;}while(ad===0xff&&a1<a2);}const aa=a4-a8;if(aa<0x0)break;for(let ae=0x0;ae<a9&&!(a4>=a5);ae++)a3[a4++]=a3[aa+ae];}return a4;}function ut(a0,a1){const a2=new Uint8Array(a1),a3=a0[0x0];if(a3===0x0)return St(a0,0x1,a0['length'],a2,0x0,a1),a2;{let a4=0x1;const a5=[];for(let a8=0x0;a8<a3;a8++){const a9=(a0[a4]|a0[a4+0x1]<<0x8|a0[a4+0x2]<<0x10|a0[a4+0x3]<<0x18)>>>0x0;a5['push'](a9),a4+=0x4;}let a6=a4,a7=0x0;for(let aa=0x0;aa<a3;aa++){const ab=a5[aa],ac=Math['min'](0x10000,a1-a7);St(a0,a6,a6+ab,a2,a7,a7+ac),a6+=ab,a7+=ac;}return a2;}}function z(a0,a1){const a2=a1*0x4+(a1*0x2+0x7>>0x3)+0x4,a3=ut(new Uint8Array(a0),a2);return ee(a3,a1);}function a(){const cM=['floor','scale','version','_buildHierarchy','string','normal','xformOp:rotateX','fieldSets','skinIndex','normalMap','specType','USDCParser:\x20Invalid\x20payload\x20offset\x20','_readHalf','trim','offset','geometry','inputs:width','readInt32','USDCParser:\x20Array\x20size\x20','asset','_applyTriangulationPattern','materialPath','.position','typeName','endsWith','55XXseno','mirror','replace','DiskLight','_getReferences','crossVectors','_applyMaterialBinding','readFloat64','_loadTexture','pivot','_findUV2Primvar','filmGauge','multiply','startsWith','isFinite','translations','PathListOp','_findSingleMesh','isCompressed','readString','rotation','Vec4f','compose','.xformOp:orient','indexOf','primvars:displayColor','readBytes','xformOp:orient','shaping:cone:angle','.quaternion','xformOp:rotateXYZ','indices','matrix','roughness','Vec2h','_halfToFloat','itemError','2680QaIiGB','xformOp:translate','MayaND_fileTexture_color4','parse','makeRotationX','buffer','primvars:skel:jointWeights','subset','call','length','projection','_parseNumber','faceVertexIndices','shadersByMaterialPath','specsByPath','_findUVPrimvar','onload','UsdTransform2d','Bool','uv1','_pickBestMaterial','1203520ByaYJu','.inputs:inColor','USDCParser:\x20Invalid\x20array\x20size\x20','_selectTopWeights','564056RVdeOP','manager','name','_getMaterialBindingTarget','_applyOpenPBRSurface','variants','StringListOp','times','Quath','clearcoat','path','inputs:opacity','default','Cone','inputs:thin_film_thickness','geomSubsetsByMeshPath','setResponseType','includes','_getVariantPaths','inputs:bias','byteOffset','_expandAttribute','readUint64','makeTranslation','original','_conversionBuffer','readFloat32','warn','set','inputs:varname','Token','_resolveReference','_readTimeSamples','_triangulateIndicesWithPattern','basePath','USDLoader:\x20Failed\x20to\x20parse\x20root\x20layer\x20\x22','load','3091856OUqbAp','inputs:translation','normalize','paths','invert','textureCache','fields','97084XTxnHM','get','joints','493209EOsxhp','parseData','pow','_findAssignmentOperator','holeFaces','keys','addGroup','tell','min','max','alphaTest','GeomSubset','21vFIIPY','88425efNYLY','toLowerCase','Vec3f','split','map','emissiveMap','.skel:animationSource','_getAttributes','Vec3d','Float','SphereLight','Vec3i','641172NWUpIF','_buildLight','focusDistance','_stripInlineComment','readUint8','applyTransform','skinWeight','connectionPaths','inputs:intensity','inputs:file','skinnedMeshes','Capsule','_buildTransformAnimations','triangulateShape','timeSamples','_buildGeometryWithSubsets','_readTOC','byteLength','userData','getUint16','UInt','\x27\x27\x27','tokens','radius','Prim','sqrt','thickness','_readValue','points','_getTextureFromOpenPBRConnection','RectLight','flat','defaultPrim','#usda\x201.0','materialsByRoot','getInt8','xformOp:transform','getInt16','setRGB','faceVertexCounts','view','normals:indices','PXR-USDC','_applyTextureOrValue','_readSpecs','attributesByPrimPath','_getBasePath','xformOp:scale','slice','_resolveFilePath','push','metersPerUnit','restTransforms','payload','getInt32','specularColor','inputs:ior','setAttribute','material:binding','axis','lastIndexOf','reader','usdc','_buildAnimations','inputs:thin_film_weight','number','pathIndex','def\x20','UInt64','sections','.inputs:in','xformOpOrder','strings','Shader','_applyMaterial','height','parent','EPSILON','skeletons','primvars:st1:indices','isArray','readUint32','withCredentials'];a=function(){return cM;};return a();}function c(b,d){b=b-0x118;const e=a();let f=e[b];return f;}function ee(a0,a1){const bk=bd,a2=new DataView(a0['buffer'],a0[bk(0x180)],a0['byteLength']);let a3=0x0;const a4=a2['getInt32'](a3,!0x0);a3+=0x4;const a5=a1*0x2+0x7>>0x3,a6=a3,a7=a3+a5,a8=new Int32Array(a1);let a9=0x0,aa=a6,ab=a7;for(let ac=0x0;ac<a1;){const ad=a0[aa++];for(let ae=0x0;ae<0x4&&ac<a1;ae++,ac++){const af=ad>>ae*0x2&0x3;let ag=0x0;switch(af){case 0x0:ag=a4;break;case 0x1:ag=a2['getInt8'](ab),ab+=0x1;break;case 0x2:ag=a2[bk(0x1d9)](ab,!0x0),ab+=0x2;break;case 0x3:ag=a2['getInt32'](ab,!0x0),ab+=0x4;break;}a9+=ag,a8[ac]=a9;}}return a8;}class se{constructor(a0){const bl=bd;this['buffer']=a0,this[bl(0x1dc)]=new DataView(a0),this['offset']=0x0;}['seek'](a0){this['offset']=a0;}[bd(0x1a2)](){return this['offset'];}['readUint8'](){const a0=this['view']['getUint8'](this['offset']);return this['offset']+=0x1,a0;}['readInt8'](){const a0=this['view']['getInt8'](this['offset']);return this['offset']+=0x1,a0;}['readUint16'](){const a0=this['view']['getUint16'](this['offset'],!0x0);return this['offset']+=0x2,a0;}['readInt16'](){const bm=bd,a0=this['view'][bm(0x1d9)](this['offset'],!0x0);return this['offset']+=0x2,a0;}[bd(0x205)](){const bn=bd,a0=this['view']['getUint32'](this['offset'],!0x0);return this[bn(0x123)]+=0x4,a0;}['readInt32'](){const bo=bd,a0=this[bo(0x1dc)]['getInt32'](this[bo(0x123)],!0x0);return this['offset']+=0x4,a0;}['readUint64'](){const a0=this['view']['getUint32'](this['offset'],!0x0),a1=this['view']['getUint32'](this['offset']+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}['readInt64'](){const bp=bd,a0=this['view']['getUint32'](this['offset'],!0x0),a1=this['view'][bp(0x1ea)](this['offset']+0x4,!0x0);return this['offset']+=0x8,a1*0x100000000+a0;}[bd(0x186)](){const a0=this['view']['getFloat32'](this['offset'],!0x0);return this['offset']+=0x4,a0;}['readFloat64'](){const a0=this['view']['getFloat64'](this['offset'],!0x0);return this['offset']+=0x8,a0;}['readBytes'](a0){const a1=new Uint8Array(this['buffer'],this['offset'],a0);return this['offset']+=a0,a1;}['readString'](a0){const a1=this['readBytes'](a0);let a2=0x0;for(;a2<a0&&a1[a2]!==0x0;)a2++;return ft['decode'](a1['subarray'](0x0,a2));}}class st{constructor(a0,a1){this['lo']=a0,this['hi']=a1;}get['isArray'](){return(this['hi']&0x80000000)!==0x0;}get['isInlined'](){return(this['hi']&0x40000000)!==0x0;}get[bd(0x140)](){return(this['hi']&0x20000000)!==0x0;}get['typeEnum'](){return this['hi']>>0x10&0xff;}get[bd(0x1e9)](){return this['lo']+(this['hi']&0xffff)*0x100000000;}['getInlinedValue'](){return this['lo'];}}class ne{[bd(0x19c)](a0){const bq=bd;this['buffer']=a0 instanceof ArrayBuffer?a0:a0['buffer'],this[bq(0x1f1)]=new se(this['buffer']),this[bq(0x209)]={'major':0x0,'minor':0x0,'patch':0x0},this[bq(0x185)]=new ArrayBuffer(0x4),this['_conversionView']=new DataView(this['_conversionBuffer']),this['_readBootstrap'](),this[bq(0x1c4)](),this['_readTokens'](),this['_readStrings'](),this['_readFields'](),this['_readFieldSets'](),this['_readPaths'](),this['_readSpecs'](),this['specsByPath']={};for(const a1 of this['specs']){const a2=this['paths'][a1[bq(0x1f6)]];if(!a2)continue;const a3=this['_getFieldsForSpec'](a1);this['specsByPath'][a2]={'specType':a1['specType'],'fields':a3};}return{'specsByPath':this['specsByPath']};}['_readBootstrap'](){const br=bd,a0=this['reader'];if(a0['seek'](0x0),a0['readString'](0x8)!==br(0x1de))throw new Error('Not\x20a\x20valid\x20USDC\x20file');this['version']['major']=a0[br(0x1b8)](),this['version']['minor']=a0['readUint8'](),this['version']['patch']=a0['readUint8'](),a0['readBytes'](0x5),this['tocOffset']=a0['readUint64']();}['_readTOC'](){const bs=bd,a0=this['reader'];a0['seek'](this['tocOffset']);const a1=a0['readUint64']();this['sections']={};for(let a2=0x0;a2<a1;a2++){const a3=a0[bs(0x141)](0x10),a4=a0[bs(0x182)](),a5=a0['readUint64']();this['sections'][a3]={'start':a4,'size':a5};}}['_readTokens'](){const bu=bd,a0=this['sections']['TOKENS'];if(!a0)return;const a1=this['reader'];a1['seek'](a0['start']);const a2=a1['readUint64']();if(this[bu(0x1ca)]=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a3=a1[bu(0x182)](),a4=a1['readBytes'](a3);let a5=0x0;for(let a6=0x0;a6<a2;a6++){let a7=a5;for(;a7<a4[bu(0x15c)]&&a4[a7]!==0x0;)a7++;this['tokens']['push'](ft['decode'](a4['subarray'](a5,a7))),a5=a7+0x1;}}else{const a8=a1['readUint64'](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=ut(aa,a8);let ac=0x0;for(let ad=0x0;ad<a2;ad++){let ae=ac;for(;ae<ab['length']&&ab[ae]!==0x0;)ae++;this[bu(0x1ca)]['push'](ft['decode'](ab['subarray'](ac,ae))),ac=ae+0x1;}}}['_readStrings'](){const bv=bd,a0=this[bv(0x1f9)]['STRINGS'];if(!a0){this['strings']=[];return;}const a1=this['reader'];a1['seek'](a0['start']);const a2=Math['floor'](a0['size']/0x4);this['strings']=[];for(let a3=0x0;a3<a2;a3++)this['strings'][bv(0x1e6)](a1['readUint32']());}['_readFields'](){const bw=bd,a0=this['sections']['FIELDS'];if(!a0)return;const a1=this['reader'];if(a1['seek'](a0['start']),this['fields']=[],this[bw(0x209)]['major']===0x0&&this['version']['minor']<0x4){const a2=Math[bw(0x207)](a0['size']/0xc);for(let a3=0x0;a3<a2;a3++){const a4=a1[bw(0x205)](),a5=a1['readUint32'](),a6=a1['readUint32']();this['fields']['push']({'tokenIndex':a4,'valueRep':new st(a5,a6)});}}else{const a7=a1['readUint64'](),a8=a1['readUint64'](),a9=a1['readBytes'](a8),aa=z(a9['buffer']['slice'](a9['byteOffset'],a9['byteOffset']+a8),a7),ab=a1['readUint64'](),ac=a1['readBytes'](ab),ad=ut(ac,a7*0x8),ae=new DataView(ad[bw(0x158)],ad['byteOffset'],ad['byteLength']);for(let af=0x0;af<a7;af++){const ag=ae['getUint32'](af*0x8,!0x0),ah=ae['getUint32'](af*0x8+0x4,!0x0);this['fields']['push']({'tokenIndex':aa[af],'valueRep':new st(ag,ah)});}}}['_readFieldSets'](){const bx=bd,a0=this['sections']['FIELDSETS'];if(!a0)return;const a1=this[bx(0x1f1)];if(a1['seek'](a0['start']),this[bx(0x11c)]=[],this['version']['major']===0x0&&this['version']['minor']<0x4){const a2=Math['floor'](a0['size']/0x4);for(let a3=0x0;a3<a2;a3++)this['fieldSets']['push'](a1[bx(0x205)]());}else{const a4=a1['readUint64'](),a5=a1['readUint64'](),a6=a1['readBytes'](a5),a7=z(a6[bx(0x158)]['slice'](a6[bx(0x180)],a6['byteOffset']+a5),a4);for(let a8=0x0;a8<a4;a8++)this['fieldSets']['push'](a7[a8]);}}['_readPaths'](){const by=bd,a0=this['sections']['PATHS'];if(!a0)return;const a1=this['reader'];a1['seek'](a0['start']);const a2=a1['readUint64']();if(this['paths']=new Array(a2)['fill'](''),this['version']['major']===0x0&&this['version']['minor']<0x4)this['_readPathsRecursive']('');else{a1['readUint64']();const a3=a1['readUint64'](),a4=a1[by(0x148)](a3),a5=z(a4['buffer']['slice'](a4['byteOffset'],a4['byteOffset']+a3),a2),a6=a1['readUint64'](),a7=a1['readBytes'](a6),a8=z(a7['buffer'][by(0x1e4)](a7['byteOffset'],a7['byteOffset']+a6),a2),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa['buffer']['slice'](aa['byteOffset'],aa['byteOffset']+a9),a2);this['_buildPathsFromCompressed'](a5,a8,ab);}}['_readPathsRecursive'](a0,a1=0x0){const a2=this['reader'];if(a1>0x3e8)return;const a3=a2['readUint32'](),a4=a2['readUint32'](),a5=a2['readUint8'](),a6=(a5&0x1)!==0x0,a7=(a5&0x2)!==0x0,a8=(a5&0x4)!==0x0;let a9;if(a0==='')a9='/';else{const aa=this['tokens'][a4]||'';a8?a9=a0+'.'+aa:a9=a0==='/'?'/'+aa:a0+'/'+aa;}if(this['paths'][a3]=a9,a6&&a7){const ab=a2['readUint64']();this['_readPathsRecursive'](a9,a1+0x1),a2['seek'](ab),this['_readPathsRecursive'](a0,a1+0x1);}else a6?this['_readPathsRecursive'](a9,a1+0x1):a7&&this['_readPathsRecursive'](a0,a1+0x1);}['_buildPathsFromCompressed'](a0,a1,a2){const a3=(a4,a5)=>{let a6=a4;for(;a6<a0['length'];){const a7=a6++,a8=a0[a7],a9=a1[a7],aa=a2[a7];let ab;if(a5==='')ab='/',a5=ab;else{const ae=this['tokens'][Math['abs'](a9)]||'';a9<0x0?ab=a5+'.'+ae:ab=a5==='/'?'/'+ae:a5+'/'+ae;}this['paths'][a8]=ab;const ac=aa>0x0||aa===-0x1,ad=aa>=0x0;if(ac){if(ad){const af=a7+aa;a3(af,a5);}a5=ab;}else{if(!ad)break;}}};a3(0x0,'');}[bd(0x1e0)](){const bz=bd,a0=this['sections']['SPECS'];if(!a0)return;const a1=this[bz(0x1f1)];if(a1['seek'](a0['start']),this['specs']=[],this['version']['major']===0x0&&this[bz(0x209)]['minor']<0x4){const a2=this[bz(0x209)]['minor']===0x0&&this[bz(0x209)]['patch']===0x1?0x10:0xc,a3=Math['floor'](a0['size']/a2);for(let a4=0x0;a4<a3;a4++){const a5=a1['readUint32'](),a6=a1['readUint32'](),a7=a1[bz(0x205)]();a2===0x10&&a1['readUint32'](),this['specs'][bz(0x1e6)]({'pathIndex':a5,'fieldSetIndex':a6,'specType':a7});}}else{const a8=a1['readUint64'](),a9=a1['readUint64'](),aa=a1['readBytes'](a9),ab=z(aa['buffer']['slice'](aa['byteOffset'],aa['byteOffset']+a9),a8),ac=a1['readUint64'](),ad=a1[bz(0x148)](ac),ae=z(ad['buffer'][bz(0x1e4)](ad['byteOffset'],ad['byteOffset']+ac),a8),af=a1['readUint64'](),ag=a1['readBytes'](af),ah=z(ag[bz(0x158)]['slice'](ag['byteOffset'],ag['byteOffset']+af),a8);for(let ai=0x0;ai<a8;ai++)this['specs']['push']({'pathIndex':ab[ai],'fieldSetIndex':ae[ai],'specType':ah[ai]});}}[bd(0x1cf)](a0){const bA=bd,a1=a0['typeEnum'],a2=a0['isArray'],a3=a0['isInlined'];if(a1===b['TimeSamples'])return this['_readTimeSamples'](a0);if(a3)return this['_readInlinedValue'](a0);const a4=a0['payload'];if(a4===0x0&&a2)return[];if(a4<0x0||a4>=this['buffer']['byteLength'])throw new RangeError(bA(0x120)+a4+'\x20for\x20type\x20'+a1+'.');const a5=this['reader']['tell']();this['reader']['seek'](a4);let a6;return a2?a6=this['_readArrayValue'](a0):a6=this['_readScalarValue'](a1),this['reader']['seek'](a5),a6;}['_readInlinedValue'](a0){const bB=bd,a1=a0['typeEnum'],a2=a0['getInlinedValue'](),a3=this['_conversionView'];switch(a1){case b[bB(0x165)]:return a2!==0x0;case b['UChar']:return a2&0xff;case b['Int']:case b[bB(0x1c8)]:return a2;case b[bB(0x1b1)]:return a3['setUint32'](0x0,a2,!0x0),a3['getFloat32'](0x0,!0x0);case b['Double']:return a3['setUint32'](0x0,a2,!0x0),a3['getFloat32'](0x0,!0x0);case b['Token']:return this['tokens'][a2]||'';case b['String']:return this['tokens'][this['strings'][a2]]||'';case b['AssetPath']:return this['tokens'][a2]||'';case b['Specifier']:return a2;case b['Permission']:case b['Variability']:return a2;case b[bB(0x150)]:return a3['setUint32'](0x0,a2,!0x0),[this['_halfToFloat'](a3['getUint16'](0x0,!0x0)),this[bB(0x151)](a3[bB(0x1c7)](0x2,!0x0))];case b['Vec2f']:case b['Vec2i']:return a3['setUint32'](0x0,a2,!0x0),[a3[bB(0x1d7)](0x0),a3[bB(0x1d7)](0x1)];case b['Vec3f']:case b[bB(0x1b3)]:return a3['setUint32'](0x0,a2,!0x0),[a3[bB(0x1d7)](0x0),a3['getInt8'](0x1),a3[bB(0x1d7)](0x2)];case b['Vec4f']:case b['Vec4i']:return a3['setUint32'](0x0,a2,!0x0),[a3[bB(0x1d7)](0x0),a3['getInt8'](0x1),a3['getInt8'](0x2),a3['getInt8'](0x3)];case b['Matrix2d']:{a3['setUint32'](0x0,a2,!0x0);const a4=a3['getInt8'](0x0),a5=a3['getInt8'](0x1);return[a4,0x0,0x0,a5];}case b['Matrix3d']:{a3['setUint32'](0x0,a2,!0x0);const a6=a3['getInt8'](0x0),a7=a3['getInt8'](0x1),a8=a3['getInt8'](0x2);return[a6,0x0,0x0,0x0,a7,0x0,0x0,0x0,a8];}case b['Matrix4d']:{a3['setUint32'](0x0,a2,!0x0);const a9=a3['getInt8'](0x0),aa=a3['getInt8'](0x1),ab=a3['getInt8'](0x2),ac=a3['getInt8'](0x3);return[a9,0x0,0x0,0x0,0x0,aa,0x0,0x0,0x0,0x0,ab,0x0,0x0,0x0,0x0,ac];}default:return a2;}}[bd(0x18c)](a0){const bC=bd,a1=this['reader'],a2=a0[bC(0x1e9)],a3=a1['tell']();a1['seek'](a2);const a4=a1[bC(0x1a2)](),a5=a1['readInt64']();a1['seek'](a4+a5);const a6=a1[bC(0x205)](),a7=a1['readUint32'](),a8=new st(a6,a7),a9=this['_readValue'](a8),aa=a4+a5+0x8;a1['seek'](aa);const ab=a1['tell'](),ac=a1['readInt64']();a1['seek'](ab+ac);const ad=a1['readUint64'](),ae=[];for(let ag=0x0;ag<ad;ag++){const ah=a1[bC(0x205)](),ai=a1['readUint32']();ae['push'](new st(ah,ai));}const af=[];for(let aj=0x0;aj<ad;aj++)af['push'](this['_readValue'](ae[aj]));return a1['seek'](a3),{'times':a9 instanceof Float64Array?Array['from'](a9):Array[bC(0x204)](a9)?a9:[a9],'values':af};}['_readScalarValue'](a0){const bD=bd,a1=this['reader'];switch(a0){case b['Invalid']:return null;case b['Bool']:return a1['readUint8']()!==0x0;case b['UChar']:return a1['readUint8']();case b['Int']:return a1['readInt32']();case b[bD(0x1c8)]:return a1['readUint32']();case b['Int64']:return a1['readInt64']();case b[bD(0x1f8)]:return a1['readUint64']();case b['Half']:return this['_readHalf']();case b['Float']:return a1['readFloat32']();case b['Double']:return a1[bD(0x135)]();case b['String']:case b['Token']:{const a2=a1['readUint32']();return this[bD(0x1ca)][a2]||'';}case b['AssetPath']:{const a3=a1['readUint32']();return this['tokens'][a3]||'';}case b['Vec2f']:return[a1[bD(0x186)](),a1['readFloat32']()];case b['Vec2d']:return[a1['readFloat64'](),a1['readFloat64']()];case b['Vec2i']:return[a1['readInt32'](),a1['readInt32']()];case b['Vec3f']:return[a1['readFloat32'](),a1[bD(0x186)](),a1['readFloat32']()];case b[bD(0x1b0)]:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64']()];case b['Vec3i']:return[a1[bD(0x126)](),a1['readInt32'](),a1['readInt32']()];case b[bD(0x143)]:return[a1[bD(0x186)](),a1['readFloat32'](),a1[bD(0x186)](),a1[bD(0x186)]()];case b['Vec4d']:return[a1['readFloat64'](),a1['readFloat64'](),a1[bD(0x135)](),a1['readFloat64']()];case b['Quatf']:return[a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32'](),a1['readFloat32']()];case b['Quatd']:return[a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64'](),a1['readFloat64']()];case b['Matrix4d']:{const a4=[];for(let a5=0x0;a5<0x10;a5++)a4['push'](a1['readFloat64']());return a4;}case b['TokenVector']:{const a6=a1['readUint64'](),a7=[];for(let a8=0x0;a8<a6;a8++){const a9=a1['readUint32']();a7['push'](this['tokens'][a9]||'');}return a7;}case b['PathVector']:{const aa=a1['readUint64'](),ab=[];for(let ac=0x0;ac<aa;ac++){const ad=a1[bD(0x205)]();ab['push'](this[bD(0x194)][ad]||'');}return ab;}case b['DoubleVector']:{const ae=a1['readUint64'](),af=new Float64Array(ae);for(let ag=0x0;ag<ae;ag++)af[ag]=a1['readFloat64']();return af;}case b['Dictionary']:{const ah=a1['readUint64'](),ai={};for(let aj=0x0;aj<ah;aj++){const ak=a1[bD(0x205)](),al=this['tokens'][ak],am=a1['position'],an=a1['readInt64'](),ao=am+an,ap=a1['position'];a1['position']=ao;const aq=a1['readUint64'](),ar=new st(aq);let as=null;ar['isInlined']?as=this['_readInlinedValue'](ar):ar['isArray']?(a1['position']=ar['payload'],as=this['_readArrayValue'](ar)):(a1['position']=ar['payload'],as=this['_readScalarValue'](ar['typeEnum'])),a1['position']=ap,al!==void 0x0&&as!==null&&(ai[al]=as);}return ai;}case b['TokenListOp']:case b[bD(0x172)]:case b['IntListOp']:case b['Int64ListOp']:case b['UIntListOp']:case b['UInt64ListOp']:return null;case b[bD(0x13e)]:{const au=a1['readUint8'](),av=(au&0x2)!==0x0,aw=(au&0x4)!==0x0,ax=(au&0x8)!==0x0,ay=(au&0x10)!==0x0,az=(au&0x20)!==0x0,aA=(au&0x40)!==0x0,aB=()=>{const aG=a1['readUint64'](),aH=[];for(let aI=0x0;aI<aG;aI++){const aJ=a1['readUint32']();aH['push'](this['paths'][aJ]);}return aH;};let aC=null,aD=null,aE=null,aF=null;return av&&(aC=aB()),aw&&(aD=aB()),az&&(aE=aB()),aA&&(aF=aB()),ax&&aB(),ay&&aB(),aE&&aE['length']>0x0?aE:aC&&aC['length']>0x0?aC:aF&&aF['length']>0x0?aF:aD&&aD['length']>0x0?aD:null;}case b['VariantSelectionMap']:{const aG=a1['readUint64'](),aH={};for(let aI=0x0;aI<aG;aI++){const aJ=a1['readUint32'](),aK=a1[bD(0x205)](),aL=this[bD(0x1ca)][this[bD(0x1fc)][aJ]],aM=this[bD(0x1ca)][this['strings'][aK]];aL&&aM&&(aH[aL]=aM);}return aH;}default:return console['warn']('USDCParser:\x20Unsupported\x20scalar\x20type',a0),null;}}['_readArrayValue'](a0){const bE=bd,a1=this['reader'],a2=a0['typeEnum'],a3=a0[bE(0x140)];let a4;if(this[bE(0x209)]['major']===0x0&&this['version']['minor']<0x7?a4=a1['readUint32']():a4=a1['readUint64'](),!Number['isSafeInteger'](a4)||a4<0x0)throw new RangeError(bE(0x16a)+a4+'\x20for\x20type\x20'+a2+'.');if(a4>0x7fffffff)throw new RangeError(bE(0x127)+a4+'\x20exceeds\x20implementation\x20limits.');if(a4===0x0)return[];if(a3)return this['_readCompressedArray'](a2,a4);switch(a2){case b['Int']:{const a5=new Int32Array(a4);for(let a6=0x0;a6<a4;a6++)a5[a6]=a1['readInt32']();return a5;}case b['UInt']:{const a7=new Uint32Array(a4);for(let a8=0x0;a8<a4;a8++)a7[a8]=a1['readUint32']();return a7;}case b['Float']:{const a9=new Float32Array(a4);for(let aa=0x0;aa<a4;aa++)a9[aa]=a1['readFloat32']();return a9;}case b['Double']:{const ab=new Float64Array(a4);for(let ac=0x0;ac<a4;ac++)ab[ac]=a1['readFloat64']();return ab;}case b['Vec2f']:{const ad=new Float32Array(a4*0x2);for(let ae=0x0;ae<a4*0x2;ae++)ad[ae]=a1['readFloat32']();return ad;}case b[bE(0x1aa)]:{const af=new Float32Array(a4*0x3);for(let ag=0x0;ag<a4*0x3;ag++)af[ag]=a1['readFloat32']();return af;}case b['Vec4f']:{const ah=new Float32Array(a4*0x4);for(let ai=0x0;ai<a4*0x4;ai++)ah[ai]=a1[bE(0x186)]();return ah;}case b['Vec3h']:{const aj=new Float32Array(a4*0x3);for(let ak=0x0;ak<a4*0x3;ak++)aj[ak]=this['_readHalf']();return aj;}case b['Quatf']:{const al=new Float32Array(a4*0x4);for(let am=0x0;am<a4*0x4;am++)al[am]=a1['readFloat32']();return al;}case b[bE(0x174)]:{const an=new Float32Array(a4*0x4);for(let ao=0x0;ao<a4*0x4;ao++)an[ao]=this['_readHalf']();return an;}case b['Matrix4d']:{const ap=new Float64Array(a4*0x10);for(let aq=0x0;aq<a4*0x10;aq++)ap[aq]=a1['readFloat64']();return ap;}case b[bE(0x18a)]:{const ar=[];for(let as=0x0;as<a4;as++){const au=a1['readUint32']();ar[bE(0x1e6)](this['tokens'][au]||'');}return ar;}case b['Half']:{const av=new Float32Array(a4);for(let aw=0x0;aw<a4;aw++)av[aw]=this[bE(0x121)]();return av;}default:return console['warn']('USDCParser:\x20Unsupported\x20array\x20type',a2),[];}}['_readCompressedArray'](a0,a1){const bF=bd,a2=this['reader'];switch(a0){case b['Int']:case b['UInt']:{const a3=a2['readUint64'](),a4=a2[bF(0x148)](a3);return z(a4['buffer']['slice'](a4['byteOffset'],a4['byteOffset']+a3),a1);}case b['Float']:{const a5=a2['readInt8']();if(a5===Jt){const a6=a2['readUint64'](),a7=a2['readBytes'](a6),a8=z(a7['buffer']['slice'](a7['byteOffset'],a7[bF(0x180)]+a6),a1),a9=new Float32Array(a1);for(let aa=0x0;aa<a1;aa++)a9[aa]=a8[aa];return a9;}else{if(a5===te){const ab=a2['readUint32'](),ac=new Float32Array(ab);for(let ah=0x0;ah<ab;ah++)ac[ah]=a2['readFloat32']();const ad=a2['readUint64'](),ae=a2['readBytes'](ad),af=z(ae['buffer']['slice'](ae['byteOffset'],ae['byteOffset']+ad),a1),ag=new Float32Array(a1);for(let ai=0x0;ai<a1;ai++)ag[ai]=ac[af[ai]];return ag;}}return console['warn']('USDCParser:\x20Unknown\x20float\x20compression\x20code',a5),new Float32Array(a1);}default:return console[bF(0x187)]('USDCParser:\x20Unsupported\x20compressed\x20array\x20type',a0),[];}}['_readHalf'](){return this['_halfToFloat'](this['reader']['readUint16']());}['_halfToFloat'](a0){const a1=(a0&0x8000)>>0xf,a2=(a0&0x7c00)>>0xa,a3=a0&0x3ff;return a2===0x0?a3===0x0?a1?-0x0:0x0:(a1?-0x1:0x1)*Kt*(a3/0x400):a2===0x1f?a3?NaN:a1?-0x1/0x0:0x1/0x0:(a1?-0x1:0x1)*vt[a2]*(0x1+a3/0x400);}['_getFieldsForSpec'](a0){const bG=bd,a1={};let a2=a0['fieldSetIndex'];const a3=0x2710;let a4=0x0;for(;a2<this['fieldSets'][bG(0x15c)]&&a4<a3;){const a5=this['fieldSets'][a2];if(a5===$t||a5===-0x1)break;const a6=this['fields'][a5];if(a6){const a7=this['tokens'][a6['tokenIndex']],a8=this['_readValue'](a6['valueRep']);a1[a7]=a8;}a2++,a4++;}return a1;}}const re=/^(.+?)\/\{(\w+)=(\w+)\}\/(.+)$/,K={'Unknown':0x0,'Attribute':0x1,'Connection':0x2,'Expression':0x3,'Mapper':0x4,'MapperArg':0x5,'Prim':0x6,'PseudoRoot':0x7,'Relationship':0x8,'RelationshipTarget':0x9,'Variant':0xa,'VariantSet':0xb},E={'projection':'perspective','clippingRange':[0x1,0xf4240],'horizontalAperture':20.955,'verticalAperture':15.2908,'horizontalApertureOffset':0x0,'verticalApertureOffset':0x0,'focalLength':0x32,'focusDistance':0x0,'fStop':0x0};class tt{constructor(a0=null){const bH=bd;this[bH(0x196)]={},this[bH(0x1be)]=[],this['manager']=a0;}['compose'](a0,a1={},a2={},a3=''){const bI=bd;this['specsByPath']=a0['specsByPath'],this['assets']=a1,this['externalVariantSelections']=a2,this['basePath']=a3,this[bI(0x1be)]=[],this['skeletons']={},this['_buildIndexes']();const a4=this[bI(0x161)]['/'],a5=a4?a4['fields']:{};this['fps']=a5['framesPerSecond']||a5['timeCodesPerSecond']||0x1e;const a6=new e();this['_buildHierarchy'](a6,'/'),this['_bindSkeletons']();const a7=Object['keys'](this['skeletons']);a7['length']===0x1&&(a6['skeleton']=this[bI(0x202)][a7[0x0]]['skeleton']),a6['animations']=this[bI(0x1f3)]();const a8=a5[bI(0x1e7)];return a8!==void 0x0&&a8!==0x1&&a6['scale']['setScalar'](a8),a4&&a4[bI(0x197)]&&a4['fields']['upAxis']==='Z'&&(a6[bI(0x142)]['x']=-Math['PI']/0x2),a6;}['applyTransform'](a0,a1,a2={}){const bJ=bd,a3={...a1,...a2},a4=a3[bJ(0x1fb)];if(a4&&a4['length']>0x0){const a5=new f(),a6=new f();let a7=null;for(let a8=0x0;a8<a4['length'];a8++){const a9=a4[a8],aa=a9[bJ(0x13b)]('!invert!'),ab=aa?a9['slice'](0x8):a9;if(ab==='xformOp:transform'){const ac=a3['xformOp:transform'];ac&&ac['length']===0x10&&(a6['set'](ac[0x0],ac[0x4],ac[0x8],ac[0xc],ac[0x1],ac[0x5],ac[0x9],ac[0xd],ac[0x2],ac[0x6],ac[0xa],ac[0xe],ac[0x3],ac[0x7],ac[0xb],ac[0xf]),aa&&a6[bJ(0x195)](),a5[bJ(0x13a)](a6));}else{if(ab===bJ(0x154)){const ad=a3['xformOp:translate'];ad&&(a6['makeTranslation'](ad[0x0],ad[0x1],ad[0x2]),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:translate:pivot'){const ae=a3['xformOp:translate:pivot'];ae&&(a6[bJ(0x183)](ae[0x0],ae[0x1],ae[0x2]),aa&&a6[bJ(0x195)](),a5['multiply'](a6));}else{if(ab==='xformOp:scale'){const af=a3['xformOp:scale'];af&&(Array['isArray'](af)?(a6['makeScale'](af[0x0],af[0x1],af[0x2]),a7=[af[0x0],af[0x1],af[0x2]]):(a6['makeScale'](af,af,af),a7=[af,af,af]),aa&&a6[bJ(0x195)](),a5[bJ(0x13a)](a6));}else{if(ab==='xformOp:rotateXYZ'){const ag=a3[bJ(0x14c)];if(ag){const ah=new g(ag[0x0]*Math['PI']/0xb4,ag[0x1]*Math['PI']/0xb4,ag[0x2]*Math['PI']/0xb4,'ZYX');a6['makeRotationFromEuler'](ah),aa&&a6['invert'](),a5['multiply'](a6);}}else{if(ab==='xformOp:rotateX'){const ai=a3[bJ(0x11b)];ai!==void 0x0&&(a6[bJ(0x157)](ai*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateY'){const aj=a3['xformOp:rotateY'];aj!==void 0x0&&(a6['makeRotationY'](aj*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:rotateZ'){const ak=a3['xformOp:rotateZ'];ak!==void 0x0&&(a6['makeRotationZ'](ak*Math['PI']/0xb4),aa&&a6['invert'](),a5['multiply'](a6));}else{if(ab==='xformOp:orient'){const al=a3[bJ(0x149)];if(al&&al['length']===0x4){const am=new h(al[0x0],al[0x1],al[0x2],al[0x3]);a6['makeRotationFromQuaternion'](am),aa&&a6['invert'](),a5['multiply'](a6);}}}}}}}}}}}if(a0[bJ(0x14e)]['copy'](a5),a0[bJ(0x14e)]['decompose'](a0['position'],a0['quaternion'],a0['scale']),a7){const an=a7[0x0]<0x0,ao=a7[0x1]<0x0,ap=a7[0x2]<0x0;(an?0x1:0x0)+(ao?0x1:0x0)+(ap?0x1:0x0)===0x3&&(a0['scale']['set'](a7[0x0],a7[0x1],a7[0x2]),a0['quaternion']['set'](a0['quaternion']['x'],-a0['quaternion']['y'],a0['quaternion']['z'],-a0['quaternion']['w']));}return;}if(a3['xformOp:translate']){const aq=a3['xformOp:translate'];a0['position'][bJ(0x188)](aq[0x0],aq[0x1],aq[0x2]);}if(a3['xformOp:translate:pivot']){const ar=a3['xformOp:translate:pivot'];a0[bJ(0x137)]=new i(ar[0x0],ar[0x1],ar[0x2]);}if(a3[bJ(0x1e3)]){const as=a3['xformOp:scale'];Array['isArray'](as)?a0['scale']['set'](as[0x0],as[0x1],as[0x2]):a0[bJ(0x208)][bJ(0x188)](as,as,as);}if(a3['xformOp:rotateXYZ']){const au=a3['xformOp:rotateXYZ'];a0[bJ(0x142)][bJ(0x188)](au[0x0]*Math['PI']/0xb4,au[0x1]*Math['PI']/0xb4,au[0x2]*Math['PI']/0xb4);}if(a3[bJ(0x149)]){const av=a3['xformOp:orient'];av['length']===0x4&&a0['quaternion']['set'](av[0x0],av[0x1],av[0x2],av[0x3]);}}['_buildIndexes'](){const bK=bd;this['childrenByPath']=new Map(),this['attributesByPrimPath']=new Map(),this['materialsByRoot']=new Map(),this[bK(0x160)]=new Map(),this['geomSubsetsByMeshPath']=new Map();for(const a0 in this['specsByPath']){const a1=this[bK(0x161)][a0];if(a1['specType']===K[bK(0x1cc)]){const a2=a0['lastIndexOf']('/');if(a2>0x0){const a4=a0['slice'](0x0,a2),a5=a0[bK(0x1e4)](a2+0x1);this['childrenByPath']['has'](a4)||this['childrenByPath']['set'](a4,[]),this['childrenByPath']['get'](a4)['push']({'name':a5,'path':a0});}else{if(a2===0x0&&a0['length']>0x1){const a6=a0['slice'](0x1);this['childrenByPath']['has']('/')||this['childrenByPath']['set']('/',[]),this['childrenByPath']['get']('/')['push']({'name':a6,'path':a0});}}const a3=a1['fields']['typeName'];if(a3==='Material'){const a7=a0['split']('/'),a8=a7['length']>0x1?'/'+a7[0x1]:'/';this['materialsByRoot']['has'](a8)||this[bK(0x1d6)]['set'](a8,[]),this[bK(0x1d6)][bK(0x199)](a8)[bK(0x1e6)](a0);}if(a3===bK(0x1fd)&&a2>0x0){let a9=a0['slice'](0x0,a2);for(;a9[bK(0x15c)]>0x0;){const aa=this['specsByPath'][a9];if(aa&&aa[bK(0x11f)]===K['Prim']&&aa['fields']['typeName']==='Material'){this['shadersByMaterialPath']['has'](a9)||this['shadersByMaterialPath']['set'](a9,[]),this['shadersByMaterialPath']['get'](a9)['push'](a0);break;}const ab=a9['lastIndexOf']('/');if(ab<=0x0)break;a9=a9['slice'](0x0,ab);}}if(a3==='GeomSubset'&&a2>0x0){const ac=a0['slice'](0x0,a2);this[bK(0x17b)]['has'](ac)||this['geomSubsetsByMeshPath']['set'](ac,[]),this['geomSubsetsByMeshPath']['get'](ac)[bK(0x1e6)](a0);}}else{if(a1[bK(0x11f)]===K['Attribute']||a1['specType']===K['Relationship']){const ad=a0[bK(0x1f0)]('.');if(ad>0x0){const ae=a0[bK(0x1e4)](0x0,ad),af=a0['slice'](ad+0x1);this['attributesByPrimPath']['has'](ae)||this[bK(0x1e1)]['set'](ae,new Map()),this['attributesByPrimPath']['get'](ae)['set'](af,a1);}}}}}['_isDirectChild'](a0,a1,a2){const bL=bd;if(!a1['startsWith'](a2))return!0x1;const a3=a1[bL(0x1e4)](a2['length']);return a3['length']===0x0||a3['startsWith']('{')?!0x1:!a3['includes']('/');}['_buildHierarchy'](a0,a1){const bM=bd,a2=[],a3=new Set(),a4=this['childrenByPath']['get'](a1);if(a4){for(const a6 of a4)a3['has'](a6['path'])||(a3['add'](a6['path']),a2['push'](a6));}const a5=this['_getVariantPaths'](a1);for(const a7 of a5){const a8=this['childrenByPath']['get'](a7);if(a8){for(const a9 of a8)a3['has'](a9['path'])||(a3['add'](a9[bM(0x176)]),a2['push'](a9));}}for(const {name:aa,path:ab}of a2){const ac=this[bM(0x161)][ab];if(!ac||ac['specType']!==K['Prim'])continue;const ad=ac['fields']['typeName'],ae=this['_getReferences'](ac);if(ae['length']>0x0){const af=this['_getLocalVariantSelections'](ac['fields']),ag=[];for(const ah of ae){const ai=this['_resolveReference'](ah,af);ai&&ag[bM(0x1e6)](ai);}if(ag['length']>0x0){const aj=this['_getAttributes'](ab);if(ag['length']===0x1){const al=this['_findSingleMesh'](ag[0x0]);if(al&&(ad==='Xform'||!ad)){al['name']=aa,this[bM(0x1b9)](al,ac['fields'],aj),this[bM(0x134)](al,ab),a0['add'](al),this[bM(0x118)](al,ab);continue;}}const ak=new j();ak[bM(0x16e)]=aa,this['applyTransform'](ak,ac['fields'],aj);for(const am of ag)for(;am['children']['length']>0x0;)ak['add'](am['children'][0x0]);a0['add'](ak),this[bM(0x118)](ak,ab);continue;}}if(ad==='SkelRoot'){const an=new j();an['name']=aa,an['userData']['isSkelRoot']=!0x0;const ao=this['_getAttributes'](ab);this['applyTransform'](an,ac['fields'],ao),a0['add'](an),this['_buildHierarchy'](an,ab);}else{if(ad==='Skeleton'){const ap=this['_buildSkeleton'](ab);ap&&(this['skeletons'][ab]=ap),this['_buildHierarchy'](a0,ab);}else{if(ad!=='SkelAnimation'){if(ad==='Mesh'){const aq=this['_buildMesh'](ab,ac);aq&&(a0['add'](aq),this['_buildHierarchy'](aq,ab));}else{if(ad==='Camera'){const ar=this['_buildCamera'](ab);ar['name']=aa;const as=this['_getAttributes'](ab);this[bM(0x1b9)](ar,ac['fields'],as),a0['add'](ar),this['_buildHierarchy'](ar,ab);}else{if(ad==='DistantLight'||ad==='SphereLight'||ad==='RectLight'||ad==='DiskLight'){const au=this[bM(0x1b5)](ab,ad);au[bM(0x16e)]=aa;const av=this[bM(0x1af)](ab);this[bM(0x1b9)](au,ac['fields'],av),a0['add'](au),this['_buildHierarchy'](au,ab);}else{if(ad==='Cube'||ad==='Sphere'||ad==='Cylinder'||ad===bM(0x179)||ad==='Capsule'){const aw=this['_buildGeomPrimitive'](ab,ac,ad);aw&&(a0['add'](aw),this['_buildHierarchy'](aw,ab));}else{if(!(ad==='Material'||ad==='Shader'||ad===bM(0x1a6))){const ax=new j();ax['name']=aa;const ay=this[bM(0x1af)](ab);this['applyTransform'](ax,ac['fields'],ay),a0['add'](ax),this[bM(0x118)](ax,ab);}}}}}}}}}}['_getVariantPaths'](a0){const bN=bd,a1=this['specsByPath'][a0],a2=a1?.['fields']?.['variantSetChildren'],a3=[];if(!a2||a2['length']===0x0)return a3;for(const a4 of a2){let a5=this['externalVariantSelections'][a4]||null;if(!a5){const a6=a1[bN(0x197)]['variantSelection'];a5=a6?a6[a4]:null;}if(!a5){const a7=a0+'/{'+a4+'=}',a8=this['specsByPath'][a7];a8?.[bN(0x197)]?.['variantChildren']&&(a5=a8['fields']['variantChildren'][0x0]);}if(a5){const a9=a0+'/{'+a4+'='+a5+'}';a3['push'](a9);}}return a3;}[bd(0x1e5)](a0){const bO=bd;let a1=a0;return a1['startsWith']('./')&&(a1=a1['slice'](0x2)),this[bO(0x18e)]?this['basePath']+'/'+a1:a1;}[bd(0x18b)](a0,a1={}){const bP=bd;if(!a0)return null;const a2=a0['match'](/@([^@]+)@(?:<([^>]+)>)?/);if(!a2)return null;const a3=a2[0x1],a4=a2[0x2],a5=this['_resolveFilePath'](a3),a6={...a1,...this['externalVariantSelections']},a7=this['assets'][a5];if(!a7)return null;if(a7['specsByPath']){const a8=new tt(this['manager']),a9=this[bP(0x1e2)](a5),aa=a8['compose'](a7,this['assets'],a6,a9);if(a4){const ab=a4[bP(0x1ab)]('/')['pop']();let ac=null;for(const ad of aa['children'])if(ad['name']===ab){ac=ad;break;}if(ac){aa['remove'](ac);const ae=new e();return ae['add'](ac),ae;}}return aa;}return a7['isGroup']||a7['isObject3D']?a7['clone']():null;}[bd(0x13f)](a0){const bQ=bd;for(const a1 of a0['children'])if(a1['isMesh'])return a0['remove'](a1),a1;if(a0['children']['length']===0x1){const a2=a0['children'][0x0];if(a2['children']&&a2['children'][bQ(0x15c)]===0x1){const a3=a2['children'][0x0];if(a3['isMesh']&&!this['_hasNonIdentityTransform'](a2))return a2['remove'](a3),a3;}}return null;}['_hasNonIdentityTransform'](a0){const bR=bd,a1=a0['position'],a2=a0['rotation'],a3=a0[bR(0x208)],a4=a1['x']!==0x0||a1['y']!==0x0||a1['z']!==0x0,a5=a2['x']!==0x0||a2['y']!==0x0||a2['z']!==0x0,a6=a3['x']!==0x1||a3['y']!==0x1||a3['z']!==0x1;return a4||a5||a6;}['_getBasePath'](a0){const a1=a0['lastIndexOf']('/');return a1>=0x0?a0['slice'](0x0,a1):'';}['_getLocalVariantSelections'](a0){const a1={};if(a0['variantSelection']){for(const a2 in a0['variantSelection'])a1[a2]=a0['variantSelection'][a2];}return a1;}[bd(0x132)](a0){const bS=bd,a1=[];if(a0['fields']['references']&&a0['fields']['references']['length']>0x0){const a2=a0['fields']['references'][0x0];if(typeof a2=='string'){const a3=a2['matchAll'](/@([^@]+)@(?:<([^>]+)>)?/g);for(const a4 of a3)a1['push'](a4[0x0]);}else a2['assetPath']&&a1['push']('@'+a2['assetPath']+'@');}if(a1[bS(0x15c)]===0x0&&a0['fields']['payload']){const a5=a0['fields']['payload'];typeof a5=='string'?a1[bS(0x1e6)](a5):a5['assetPath']&&a1['push']('@'+a5['assetPath']+'@');}return a1;}['_getAttributes'](a0){const bT=bd,a1={};this['_collectAttributesFromPath'](a0,a1);const a2=a0['match'](re);if(a2){const a3=a2[0x1],a4=a2[0x4],a5=this['_getVariantPaths'](a3);for(const a6 of a5){if(a0['startsWith'](a6))continue;const a7=a6+'/'+a4;this['_collectAttributesFromPath'](a7,a1);}}else{const a8=a0['split']('/');for(let a9=0x1;a9<a8['length']-0x1;a9++){const aa=a8['slice'](0x0,a9+0x1)['join']('/'),ab=a8['slice'](a9+0x1)['join']('/'),ac=this[bT(0x17e)](aa);for(const ad of ac){const ae=ad+'/'+ab;this['_collectAttributesFromPath'](ae,a1);}}}return a1;}['_collectAttributesFromPath'](a0,a1){const bU=bd,a2=this['attributesByPrimPath'][bU(0x199)](a0);if(a2)for(const [a3,a4]of a2){if(a4['fields']?.['default']!==void 0x0)a1[a3]=a4['fields']['default'];else{if(a4['fields']?.['timeSamples']){const {times:a5,values:a6}=a4['fields']['timeSamples'];if(a5&&a6&&a5['length']>0x0){const a7=a5['indexOf'](0x0);a1[a3]=a7>=0x0?a6[a7]:a6[0x0];}}}a4['fields']?.['elementSize']!==void 0x0&&(a1[a3+':elementSize']=a4[bU(0x197)]['elementSize']),a3['startsWith']('primvars:')&&a4[bU(0x197)]?.['typeName']!==void 0x0&&(a1[a3+':typeName']=a4[bU(0x197)]['typeName']);}}['_buildGeomPrimitive'](a0,a1,a2){const bV=bd,a3=this[bV(0x1af)](a0),a4=a0['split']('/')['pop']();let a5;switch(a2){case'Cube':{const a9=a3['size']||0x2;a5=new o(a9,a9,a9);break;}case'Sphere':{const aa=a3['radius']||0x1;a5=new n(aa,0x20,0x10);break;}case'Cylinder':{const ab=a3[bV(0x1ff)]||0x2,ac=a3['radius']||0x1;a5=new m(ac,ac,ab,0x20);break;}case bV(0x179):{const ad=a3[bV(0x1ff)]||0x2,ae=a3['radius']||0x1;a5=new l(ae,ad,0x20);break;}case bV(0x1bf):{const af=a3['height']||0x1,ag=a3[bV(0x1cb)]||0.5;a5=new k(ag,af,0x10,0x20);break;}}const a6=a3[bV(0x1ef)]||'Z';a6==='X'?a5['rotateZ'](-Math['PI']/0x2):a6==='Z'&&a5['rotateX'](Math['PI']/0x2);const a7=this['_buildMaterial'](a0,a1['fields']),a8=new p(a5,a7);return a8[bV(0x16e)]=a4,this[bV(0x1b9)](a8,a1['fields'],a3),a8;}['_buildMesh'](a0,a1){const bW=bd,a2=this['_getAttributes'](a0),a3=a2['primvars:skel:jointIndices'],a4=a2['primvars:skel:jointWeights'],a5=a3&&a4&&a3['length']>0x0&&a4[bW(0x15c)]>0x0,a6=this['_getGeomSubsets'](a0);let a7,a8;if(a6[bW(0x15c)]>0x0){a7=this['_buildGeometryWithSubsets'](a2,a6,a5);const ac=this['_getMaterialPath'](a0,a1['fields']);a8=a6['map'](ad=>{const bX=bW,ae=ad[bX(0x12a)]||ac;return this['_buildMaterialForPath'](ae);});}else a7=this['_buildGeometry'](a0,a2,a5),a8=this['_buildMaterial'](a0,a1['fields']);const a9=a2[bW(0x147)];if(a9&&a9['length']>=0x3){const ad=ae=>{const bY=bW;ae['color']&&ae['color']['r']===0x1&&ae['color']['g']===0x1&&ae['color']['b']===0x1&&!ae[bY(0x1ac)]&&ae['color']['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);};Array[bW(0x204)](a8)?a8['forEach'](ad):ad(a8);}const aa=a2['primvars:displayOpacity'];if(aa&&aa[bW(0x15c)]===0x1&&a6['length']===0x0){const ae=aa[0x0],af=ag=>{ae<0x1&&ag['opacity']===0x1&&ag['transparent']===!0x1&&(ag['opacity']=ae,ag['transparent']=!0x0);};Array['isArray'](a8)?a8['forEach'](af):af(a8);}let ab;if(a5){ab=new q(a7,a8);let ag=this['specsByPath'][a0+'.skel:skeleton'];ag||(ag=this[bW(0x161)][a0+'.rel\x20skel:skeleton']);let ah=null;ag&&(ag['fields']['targetPaths']&&ag[bW(0x197)]['targetPaths']['length']>0x0?ah=ag[bW(0x197)]['targetPaths'][0x0]:ag['fields']['default']&&(ah=ag['fields'][bW(0x178)]['replace'](/<|>/g,'')));const ai=a2['skel:joints'],aj=a2['primvars:skel:geomBindTransform'];this['skinnedMeshes']['push']({'mesh':ab,'skeletonPath':ah,'path':a0,'localJoints':ai,'geomBindTransform':aj});}else ab=new p(a7,a8);return ab['name']=a0['split']('/')['pop'](),this['applyTransform'](ab,a1['fields'],a2),ab;}['_buildCamera'](a0){const bZ=bd,a1=this['_getAttributes'](a0),a2=a1['projection'],a3=typeof a2==bZ(0x119)?a2[bZ(0x1a9)]():E[bZ(0x15d)],a4=a1['clippingRange']||E['clippingRange'],a5=Math['max'](Number['EPSILON'],this['_parseNumber'](a4[0x0],E['clippingRange'][0x0])),a6=Math['max'](a5+Number[bZ(0x201)],this['_parseNumber'](a4[0x1],E['clippingRange'][0x1])),a7=this['_parseNumber'](a1['horizontalAperture'],E['horizontalAperture']),a8=this['_parseNumber'](a1['verticalAperture'],E['verticalAperture']),a9=this['_parseNumber'](a1['horizontalApertureOffset'],E['horizontalApertureOffset']),aa=this['_parseNumber'](a1['verticalApertureOffset'],E['verticalApertureOffset']),ab=this['_parseNumber'](a1['focalLength'],E['focalLength']),ac=this['_parseNumber'](a1[bZ(0x1b6)],E['focusDistance']),ad=this[bZ(0x15e)](a1['fStop'],E['fStop']);let ae;if(a3==='orthographic'){const af=a7/0xa,ag=a8/0xa,ah=a9/0xa,ai=aa/0xa;ae=new r(ah-af*0.5,ah+af*0.5,ai+ag*0.5,ai-ag*0.5,a5,a6);}else{const aj=Math['max'](Number['EPSILON'],a8),ak=Math['max'](Number['EPSILON'],ab),al=a7/aj,am=0x2*Math['atan'](aj/(0x2*ak))*0xb4/Math['PI'];ae=new s(am,al,a5,a6),ae[bZ(0x139)]=Math['max'](a7,a8),ae['filmOffset']=a9,ae['focus']=ac,ae['setFocalLength'](ak),aa!==0x0&&(ae['userData']['verticalApertureOffset']=aa);}return ae['userData']['fStop']=ad,ae['userData']['usdProjection']=a3,ae;}[bd(0x1b5)](a0,a1){const c0=bd,a2=this[c0(0x1af)](a0),a3=this['_parseNumber'](a2[c0(0x1bc)],0x1),a4=a2['inputs:color']||[0x1,0x1,0x1],a5=a2['inputs:enableColorTemperature']===!0x0,a6=this['_parseNumber'](a2['inputs:colorTemperature'],0x1964),a7=new t(a4[0x0],a4[0x1],a4[0x2]);if(a5){const a9=this['_colorTemperature'](a6);a7['multiply'](a9);}let a8;switch(a1){case'DistantLight':a8=new x(a7,a3);break;case c0(0x1b2):{const aa=this[c0(0x15e)](a2[c0(0x14a)],0x0);if(aa>0x0){const ab=aa*Math['PI']/0xb4,ac=this['_parseNumber'](a2['shaping:cone:softness'],0x0);a8=new v(a7,a3,0x0,ab,ac);}else a8=new w(a7,a3);break;}case c0(0x1d2):{const ad=this['_parseNumber'](a2[c0(0x125)],0x1),ae=this['_parseNumber'](a2['inputs:height'],0x1);a8=new u(a7,a3,ad,ae);break;}case c0(0x131):{const af=this['_parseNumber'](a2['inputs:radius'],0.5)*0x2;a8=new u(a7,a3,af,af);break;}}return a8;}['_colorTemperature'](a0){const c1=bd,a1=a0/0x64;let a2,a3,a4;return a1<=0x42?(a2=0x1,a3=0.3900815787690196*Math['log'](a1)-0.6318414437886275):(a2=1.292936186062745*Math['pow'](a1-0x3c,-0.1332047592),a3=1.1298908608952942*Math[c1(0x19d)](a1-0x3c,-0.0755148492)),a1>=0x42?a4=0x1:a1<=0x13?a4=0x0:a4=0.543206789110196*Math['log'](a1-0xa)-1.19625408914,new t(Math['min'](Math[c1(0x1a4)](a2,0x0),0x1),Math[c1(0x1a3)](Math['max'](a3,0x0),0x1),Math['min'](Math['max'](a4,0x0),0x1));}['_parseNumber'](a0,a1){const c2=bd,a2=Number(a0);return Number[c2(0x13c)](a2)?a2:a1;}['_getGeomSubsets'](a0){const c3=bd,a1=[],a2=this['geomSubsetsByMeshPath'][c3(0x199)](a0);if(!a2)return a1;for(const a3 of a2){const a4=this['_getAttributes'](a3)['indices'];if(!a4||a4['length']===0x0)continue;const a5=this['_getMaterialBindingTarget'](a3);a1['push']({'name':a3['split']('/')['pop'](),'indices':a4,'materialPath':a5});}return a1;}['_getMaterialBindingTarget'](a0){const c4=bd,a1='material:binding',a2=a0+'.'+a1,a3=this['specsByPath'][a2];if(a3?.['fields']?.['targetPaths']?.['length']>0x0)return a3['fields']['targetPaths'][0x0];const a4=a0['split']('/');for(let a5=0x1;a5<a4['length'];a5++){const a6=a4[c4(0x1e4)](0x0,a5+0x1)['join']('/'),a7=a4[c4(0x1e4)](a5+0x1)['join']('/'),a8=this['_getVariantPaths'](a6);for(const a9 of a8){const aa=a7?a9+'/'+a7+'.'+a1:a9+'.'+a1,ab=this['specsByPath'][aa];if(ab?.['fields']?.['targetPaths']?.['length']>0x0)return ab['fields']['targetPaths'][0x0];}}return null;}['_buildGeometry'](a0,a1,a2=!0x1){const c5=bd,a3=new y(),a4=a1['points'];if(!a4||a4['length']===0x0)return a3;const a5=a1[c5(0x15f)],a6=a1['faceVertexCounts'],a7=a1['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7);let a9=a5,aa=null;if(a6&&a6['length']>0x0){const aj=this[c5(0x18d)](a5,a6,a4,a8);a9=aj['indices'],aa=aj['pattern'];}let ab=a4;a9&&a9[c5(0x15c)]>0x0&&(ab=this['_expandAttribute'](a4,a9,0x3)),a3['setAttribute']('position',new B(new Float32Array(ab),0x3));const ac=a1['normals']||a1['primvars:normals'],ad=a1['normals:indices']||a1['primvars:normals:indices'];if(ac&&ac[c5(0x15c)]>0x0){let ak=ac;if(ad&&ad['length']>0x0&&aa){const al=this[c5(0x129)](ad,aa);ak=this['_expandAttribute'](ac,al,0x3);}else{if(ac['length']===a4['length'])a9&&a9[c5(0x15c)]>0x0&&(ak=this['_expandAttribute'](ac,a9,0x3));else{if(aa){const am=this['_applyTriangulationPattern'](Array['from']({'length':ac[c5(0x15c)]/0x3},(an,ao)=>ao),aa);ak=this['_expandAttribute'](ac,am,0x3);}}}a3[c5(0x1ed)](c5(0x11a),new B(new Float32Array(ak),0x3));}else{const an=this['_computeVertexNormals'](a4,a9);a3['setAttribute']('normal',new B(new Float32Array(this['_expandAttribute'](an,a9,0x3)),0x3));}const {uvs:ae,uvIndices:af}=this['_findUVPrimvar'](a1),ag=a5?a5['length']:0x0;if(ae&&ae['length']>0x0){let ao=ae;if(af&&af['length']>0x0&&aa){const ap=this[c5(0x129)](af,aa);ao=this['_expandAttribute'](ae,ap,0x2);}else{if(a9&&ae['length']/0x2===a4['length']/0x3)ao=this['_expandAttribute'](ae,a9,0x2);else{if(aa&&ae['length']/0x2===ag){const aq=this['_applyTriangulationPattern'](Array['from']({'length':ag},(ar,as)=>as),aa);ao=this[c5(0x181)](ae,aq,0x2);}}}a3[c5(0x1ed)]('uv',new B(new Float32Array(ao),0x2));}const {uvs2:ah,uv2Indices:ai}=this['_findUV2Primvar'](a1);if(ah&&ah['length']>0x0){let ar=ah;if(ai&&ai['length']>0x0&&aa){const as=this['_applyTriangulationPattern'](ai,aa);ar=this['_expandAttribute'](ah,as,0x2);}else{if(a9&&ah['length']/0x2===a4['length']/0x3)ar=this['_expandAttribute'](ah,a9,0x2);else{if(aa&&ah['length']/0x2===ag){const au=this['_applyTriangulationPattern'](Array['from']({'length':ag},(av,aw)=>aw),aa);ar=this[c5(0x181)](ah,au,0x2);}}}a3['setAttribute'](c5(0x166),new B(new Float32Array(ar),0x2));}if(a2){const av=a1['primvars:skel:jointIndices'],aw=a1[c5(0x159)],ax=a1['primvars:skel:jointIndices:elementSize']||0x4;if(av&&aw){const ay=ab['length']/0x3;let az,aA;a9&&a9['length']>0x0?(az=this['_expandAttribute'](av,a9,ax),aA=this['_expandAttribute'](aw,a9,ax)):(az=av,aA=aw);const aB=new Uint16Array(ay*0x4),aC=new Float32Array(ay*0x4);this['_selectTopWeights'](az,aA,ax,ay,aB,aC),a3['setAttribute']('skinIndex',new B(aB,0x4)),a3['setAttribute']('skinWeight',new B(aC,0x4));}}return a3;}[bd(0x1c3)](a0,a1,a2=!0x1){const c6=bd,a3=new y(),a4=a0[c6(0x1d0)];if(!a4||a4['length']===0x0)return a3;const a5=a0['faceVertexIndices'],a6=a0[c6(0x1db)];if(!a6||a6['length']===0x0)return a3;const a7=a0['primvars:arnold:polygon_holes'],a8=this['_buildHoleMap'](a7),a9=a8['holeFaces'],aa=a8['parentToHoles'],{uvs:ab,uvIndices:ac}=this['_findUVPrimvar'](a0),{uvs2:ad,uv2Indices:ae}=this[c6(0x138)](a0),af=a0['normals']||a0['primvars:normals'],ag=a0[c6(0x1dd)]||a0['primvars:normals:indices'],ah=a2?a0['primvars:skel:jointIndices']:null,ai=a2?a0[c6(0x159)]:null,aj=a0['primvars:skel:jointIndices:elementSize']||0x4,ak=[];let al=0x0;for(let aJ=0x0;aJ<a6['length'];aJ++){if(ak['push'](al),a9['has'](aJ))continue;const aK=a6[aJ],aL=aa[c6(0x199)](aJ);if(aL&&aL['length']>0x0){let aM=aK;for(const aN of aL)aM+=a6[aN];al+=aM-0x2;}else aK>=0x3&&(al+=aK-0x2);}const am=new Int32Array(al)['fill'](-0x1);for(let aO=0x0;aO<a1['length'];aO++){const aP=a1[aO];for(let aQ=0x0;aQ<aP[c6(0x14d)]['length'];aQ++){const aR=aP['indices'][aQ];if(aR>=a6[c6(0x15c)])continue;const aS=ak[aR],aT=a6[aR]-0x2;for(let aU=0x0;aU<aT;aU++)am[aS+aU]=aO;}}const an=[];for(let aV=0x0;aV<al;aV++)an['push']({'original':aV,'subset':am[aV]});an['sort']((aW,aX)=>aW['subset']-aX[c6(0x15a)]);const ao=[];let ap=an['length']>0x0?an[0x0]['subset']:-0x1,aq=0x0;for(let aW=0x0;aW<an[c6(0x15c)];aW++)an[aW]['subset']!==ap&&(ap>=0x0&&ao['push']({'start':aq*0x3,'count':(aW-aq)*0x3,'materialIndex':ap}),ap=an[aW]['subset'],aq=aW);ap>=0x0&&an['length']>aq&&ao['push']({'start':aq*0x3,'count':(an['length']-aq)*0x3,'materialIndex':ap});for(const aX of ao)a3[c6(0x1a1)](aX['start'],aX['count'],aX['materialIndex']);const {indices:ar,pattern:as}=this['_triangulateIndicesWithPattern'](a5,a6,a4,a8),au=a6['reduce']((aY,aZ)=>aY+aZ,0x0),av=ab&&!ac&&ab['length']/0x2===au||ad&&!ae&&ad[c6(0x15c)]/0x2===au?this['_applyTriangulationPattern'](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aw=ac?this['_applyTriangulationPattern'](ac,as):ab&&ab[c6(0x15c)]/0x2===au?av:null,ax=ae?this[c6(0x129)](ae,as):ad&&ad['length']/0x2===au?av:null,ay=af&&ag&&ag['length']>0x0,az=af&&af['length']/0x3===au,aA=ay?this['_applyTriangulationPattern'](ag,as):az?this[c6(0x129)](Array['from']({'length':au},(aY,aZ)=>aZ),as):null,aB=!af&&ar[c6(0x15c)]>0x0?this['_computeVertexNormals'](a4,ar):null,aC=al*0x3,aD=new Float32Array(aC*0x3),aE=ab?new Float32Array(aC*0x2):null,aF=ad?new Float32Array(aC*0x2):null,aG=af||aB?new Float32Array(aC*0x3):null,aH=ah?new Uint16Array(aC*aj):null,aI=ai?new Float32Array(aC*aj):null;for(let aY=0x0;aY<an['length'];aY++){const aZ=an[aY][c6(0x184)];for(let b0=0x0;b0<0x3;b0++){const b1=aZ*0x3+b0,b2=aY*0x3+b0,b3=ar[b1];if(aD[b2*0x3]=a4[b3*0x3],aD[b2*0x3+0x1]=a4[b3*0x3+0x1],aD[b2*0x3+0x2]=a4[b3*0x3+0x2],aE&&ab){if(aw){const b4=aw[b1];aE[b2*0x2]=ab[b4*0x2],aE[b2*0x2+0x1]=ab[b4*0x2+0x1];}else ab['length']/0x2===a4['length']/0x3&&(aE[b2*0x2]=ab[b3*0x2],aE[b2*0x2+0x1]=ab[b3*0x2+0x1]);}if(aF&&ad){if(ax){const b5=ax[b1];aF[b2*0x2]=ad[b5*0x2],aF[b2*0x2+0x1]=ad[b5*0x2+0x1];}else ad['length']/0x2===a4['length']/0x3&&(aF[b2*0x2]=ad[b3*0x2],aF[b2*0x2+0x1]=ad[b3*0x2+0x1]);}if(aG){if(af&&aA){const b6=aA[b1];aG[b2*0x3]=af[b6*0x3],aG[b2*0x3+0x1]=af[b6*0x3+0x1],aG[b2*0x3+0x2]=af[b6*0x3+0x2];}else af&&af['length']===a4['length']?(aG[b2*0x3]=af[b3*0x3],aG[b2*0x3+0x1]=af[b3*0x3+0x1],aG[b2*0x3+0x2]=af[b3*0x3+0x2]):aB&&(aG[b2*0x3]=aB[b3*0x3],aG[b2*0x3+0x1]=aB[b3*0x3+0x1],aG[b2*0x3+0x2]=aB[b3*0x3+0x2]);}if(aH&&aI&&ah&&ai){for(let b7=0x0;b7<aj;b7++)aH[b2*aj+b7]=ah[b3*aj+b7]||0x0,aI[b2*aj+b7]=ai[b3*aj+b7]||0x0;}}}if(a3['setAttribute']('position',new B(aD,0x3)),aE&&a3['setAttribute']('uv',new B(aE,0x2)),aF&&a3['setAttribute']('uv1',new B(aF,0x2)),a3['setAttribute']('normal',new B(aG,0x3)),aH&&aI){const b8=new Uint16Array(aC*0x4),b9=new Float32Array(aC*0x4);this['_selectTopWeights'](aH,aI,aj,aC,b8,b9),a3[c6(0x1ed)]('skinIndex',new B(b8,0x4)),a3['setAttribute'](c6(0x1ba),new B(b9,0x4));}return a3;}[bd(0x16b)](a0,a1,a2,a3,a4,a5){if(a2<=0x4){for(let a7=0x0;a7<a3;a7++)for(let a8=0x0;a8<0x4;a8++)a8<a2?(a4[a7*0x4+a8]=a0[a7*a2+a8]||0x0,a5[a7*0x4+a8]=a1[a7*a2+a8]||0x0):(a4[a7*0x4+a8]=0x0,a5[a7*0x4+a8]=0x0);return;}const a6=new Uint32Array(a2);for(let a9=0x0;a9<a3;a9++){const aa=a9*a2;for(let ac=0x0;ac<a2;ac++)a6[ac]=ac;for(let ad=0x0;ad<0x4;ad++){let ae=ad,af=a1[aa+a6[ad]]||0x0;for(let ag=ad+0x1;ag<a2;ag++){const ah=a1[aa+a6[ag]]||0x0;ah>af&&(af=ah,ae=ag);}if(ae!==ad){const ai=a6[ad];a6[ad]=a6[ae],a6[ae]=ai;}}let ab=0x0;for(let aj=0x0;aj<0x4;aj++)ab+=a1[aa+a6[aj]]||0x0;for(let ak=0x0;ak<0x4;ak++){const al=a6[ak];ab>0x0?(a4[a9*0x4+ak]=a0[aa+al]||0x0,a5[a9*0x4+ak]=(a1[aa+al]||0x0)/ab):(a4[a9*0x4+ak]=0x0,a5[a9*0x4+ak]=0x0);}}}[bd(0x162)](a0){const c7=bd;for(const a3 in a0){if(!a3['startsWith']('primvars:')||a3['endsWith'](':typeName')||a3[c7(0x12d)](':elementSize')||a3[c7(0x12d)](':indices')||a3[c7(0x17d)]('skel:'))continue;const a4=a0[a3+':typeName'];if(a4&&a4[c7(0x17d)]('texCoord'))return{'uvs':a0[a3],'uvIndices':a0[a3+':indices']};}const a1=a0['primvars:st']||a0['primvars:UVMap'],a2=a0['primvars:st:indices'];return{'uvs':a1,'uvIndices':a2};}['_findUV2Primvar'](a0){const c8=bd,a1=a0['primvars:st1'],a2=a0[c8(0x203)];return{'uvs2':a1,'uv2Indices':a2};}['_buildHoleMap'](a0){const c9=bd;if(!a0||a0['length']===0x0)return{'parentToHoles':new Map(),'holeFaces':new Set()};const a1=new Map(),a2=new Set();for(let a3=0x0;a3<a0['length'];a3+=0x2){const a4=a0[a3],a5=a0[a3+0x1];a2['add'](a4),a1['has'](a5)||a1['set'](a5,[]),a1['get'](a5)[c9(0x1e6)](a4);}return{'parentToHoles':a1,'holeFaces':a2};}['_triangulateIndicesWithPattern'](a0,a1,a2=null,a3=null){const ca=bd,a4=[],a5=[],a6=[];let a7=0x0;for(let ab=0x0;ab<a1['length'];ab++)a6['push'](a7),a7+=a1[ab];const a8=a3?.['parentToHoles']||new Map(),a9=a3?.[ca(0x19f)]||new Set();let aa=0x0;for(let ac=0x0;ac<a1['length'];ac++){const ad=a1[ac];if(a9['has'](ac)){aa+=ad;continue;}const ae=a8['get'](ac);if(ae&&ae['length']>0x0&&a2&&a2[ca(0x15c)]>0x0){const af=new Map(),ag=[];for(let aj=0x0;aj<ad;aj++){const ak=a0[aa+aj];ag['push'](ak),af['set'](ak,aa+aj);}const ah=[];for(const al of ae){const am=a6[al],an=a1[al],ao=[];for(let ap=0x0;ap<an;ap++){const aq=a0[am+ap];ao['push'](aq),af['set'](aq,am+ap);}ah['push'](ao);}const ai=this['_triangulateNGonWithHoles'](ag,ah,a2);for(const ar of ai)a4['push'](ar[0x0],ar[0x1],ar[0x2]),a5['push'](af['get'](ar[0x0]),af['get'](ar[0x1]),af[ca(0x199)](ar[0x2]));}else{if(ad===0x3)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2]),a5['push'](aa,aa+0x1,aa+0x2);else{if(ad===0x4)a4['push'](a0[aa],a0[aa+0x1],a0[aa+0x2],a0[aa],a0[aa+0x2],a0[aa+0x3]),a5[ca(0x1e6)](aa,aa+0x1,aa+0x2,aa,aa+0x2,aa+0x3);else{if(ad>0x4){if(a2&&a2[ca(0x15c)]>0x0){const as=[];for(let av=0x0;av<ad;av++)as['push'](a0[aa+av]);const au=this['_triangulateNGon'](as,a2);for(const aw of au)a4[ca(0x1e6)](aw[0x0],aw[0x1],aw[0x2]),a5['push'](aa+as[ca(0x146)](aw[0x0]),aa+as['indexOf'](aw[0x1]),aa+as['indexOf'](aw[0x2]));}else{for(let ax=0x1;ax<ad-0x1;ax++)a4['push'](a0[aa],a0[aa+ax],a0[aa+ax+0x1]),a5['push'](aa,aa+ax,aa+ax+0x1);}}}}}aa+=ad;}return{'indices':a4,'pattern':a5};}['_applyTriangulationPattern'](a0,a1){const a2=[];for(let a3=0x0;a3<a1['length'];a3++)a2['push'](a0[a1[a3]]);return a2;}['_triangulateNGon'](a0,a1){const cb=bd,a2=[],a3=[];for(const a9 of a0)a3['push'](new i(a1[a9*0x3],a1[a9*0x3+0x1],a1[a9*0x3+0x2]));const a4=new i();for(let aa=0x0;aa<a3[cb(0x15c)];aa++){const ab=a3[aa],ac=a3[(aa+0x1)%a3['length']];a4['x']+=(ab['y']-ac['y'])*(ab['z']+ac['z']),a4['y']+=(ab['z']-ac['z'])*(ab['x']+ac['x']),a4['z']+=(ab['x']-ac['x'])*(ab['y']+ac['y']);}a4['normalize']();const a5=new i(),a6=new i();Math['abs'](a4['y'])>0.9?a5['set'](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)[cb(0x193)](),a5[cb(0x133)](a6,a4)['normalize']();for(const ad of a3)a2['push'](new F(ad['dot'](a5),ad['dot'](a6)));const a7=G[cb(0x1c1)](a2,[]),a8=[];for(const ae of a7)a8['push']([a0[ae[0x0]],a0[ae[0x1]],a0[ae[0x2]]]);return a8;}['_triangulateNGonWithHoles'](a0,a1,a2){const cc=bd,a3=[];for(const ac of a0)a3['push'](new i(a2[ac*0x3],a2[ac*0x3+0x1],a2[ac*0x3+0x2]));const a4=new i();for(let ad=0x0;ad<a3['length'];ad++){const ae=a3[ad],af=a3[(ad+0x1)%a3['length']];a4['x']+=(ae['y']-af['y'])*(ae['z']+af['z']),a4['y']+=(ae['z']-af['z'])*(ae['x']+af['x']),a4['z']+=(ae['x']-af['x'])*(ae['y']+af['y']);}a4['normalize']();const a5=new i(),a6=new i();Math['abs'](a4['y'])>0.9?a5[cc(0x188)](0x1,0x0,0x0):a5['set'](0x0,0x1,0x0),a6['crossVectors'](a4,a5)['normalize'](),a5['crossVectors'](a6,a4)['normalize']();const a7=[];for(const ag of a3)a7['push'](new F(ag['dot'](a5),ag['dot'](a6)));const a8=[];for(const ah of a1){const ai=[];for(const aj of ah){const ak=new i(a2[aj*0x3],a2[aj*0x3+0x1],a2[aj*0x3+0x2]);ai['push'](new F(ak['dot'](a5),ak['dot'](a6)));}a8['push'](ai);}const a9=[...a0];for(const al of a1)a9['push'](...al);const aa=G['triangulateShape'](a7,a8),ab=[];for(const am of aa)ab['push']([a9[am[0x0]],a9[am[0x1]],a9[am[0x2]]]);return ab;}['_triangulateIndices'](a0,a1){const a2=[];let a3=0x0;for(let a4=0x0;a4<a1['length'];a4++){const a5=a1[a4];if(a5===0x3)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2]);else{if(a5===0x4)a2['push'](a0[a3],a0[a3+0x1],a0[a3+0x2],a0[a3],a0[a3+0x2],a0[a3+0x3]);else{if(a5>0x4){for(let a6=0x1;a6<a5-0x1;a6++)a2['push'](a0[a3],a0[a3+a6],a0[a3+a6+0x1]);}}}a3+=a5;}return a2;}['_expandAttribute'](a0,a1,a2){const a3=new Array(a1['length']*a2);for(let a4=0x0;a4<a1['length'];a4++){const a5=a1[a4];for(let a6=0x0;a6<a2;a6++)a3[a4*a2+a6]=a0[a5*a2+a6];}return a3;}['_computeVertexNormals'](a0,a1){const cd=bd,a2=a0['length']/0x3,a3=new Float32Array(a2*0x3);for(let a4=0x0;a4<a1['length'];a4+=0x3){const a5=a1[a4],a6=a1[a4+0x1],a7=a1[a4+0x2],a8=a0[a5*0x3],a9=a0[a5*0x3+0x1],aa=a0[a5*0x3+0x2],ab=a0[a6*0x3],ac=a0[a6*0x3+0x1],ad=a0[a6*0x3+0x2],ae=a0[a7*0x3],af=a0[a7*0x3+0x1],ag=a0[a7*0x3+0x2],ah=ab-a8,ai=ac-a9,aj=ad-aa,ak=ae-a8,al=af-a9,am=ag-aa,an=ai*am-aj*al,ao=aj*ak-ah*am,ap=ah*al-ai*ak;a3[a5*0x3]+=an,a3[a5*0x3+0x1]+=ao,a3[a5*0x3+0x2]+=ap,a3[a6*0x3]+=an,a3[a6*0x3+0x1]+=ao,a3[a6*0x3+0x2]+=ap,a3[a7*0x3]+=an,a3[a7*0x3+0x1]+=ao,a3[a7*0x3+0x2]+=ap;}for(let aq=0x0;aq<a2;aq++){const ar=a3[aq*0x3],as=a3[aq*0x3+0x1],au=a3[aq*0x3+0x2],av=Math[cd(0x1cd)](ar*ar+as*as+au*au);av>0x0&&(a3[aq*0x3]/=av,a3[aq*0x3+0x1]/=av,a3[aq*0x3+0x2]/=av);}return a3;}['_getMaterialPath'](a0,a1){const ce=bd;let a2=null;const a3=a1['material:binding'];return a3&&(a2=Array[ce(0x204)](a3)?a3[0x0]:a3),a2||(a2=this['_getMaterialBindingTarget'](a0)),a2;}['_buildMaterial'](a0,a1){const cf=bd,a2=new H();let a3=null;const a4=a1[cf(0x1ee)];if(a4&&(a3=Array['isArray'](a4)?a4[0x0]:a4),a3||(a3=this[cf(0x16f)](a0)),!a3){const a5=[],a6=a0+'/';for(const a7 in this[cf(0x161)]){if(!a7['startsWith'](a6)||!a7['endsWith']('.material:binding'))continue;const a8=this[cf(0x161)][a7];if(!a8)continue;const a9=a8[cf(0x197)]['targetPaths'];a9&&a9['length']>0x0&&a5['push'](a9[0x0]);}a5['length']>0x0&&(a3=this[cf(0x167)](a5));}if(!a3){const aa='/'+a0[cf(0x1ab)]('/')[0x1],ab=this['materialsByRoot']['get'](aa);if(ab){for(const ac of ab)if(ac['startsWith'](aa+'/Looks/')||ac['startsWith'](aa+'/Materials/')){a3=ac;break;}}}return a3&&this['_applyMaterial'](a2,a3),a2;}['_buildMaterialForPath'](a0){const cg=bd,a1=new H();return a0&&this[cg(0x1fe)](a1,a0),a1;}['_applyMaterialBinding'](a0,a1){const ch=bd,a2=a1+'.material:binding',a3=this[ch(0x161)][a2];if(!a3)return;let a4=null;const a5=a3[ch(0x197)]?.['targetPaths']||a3['fields']?.['default'];if(a5&&(a4=Array['isArray'](a5)?a5[0x0]:a5),!a4)return;a4=String(a4)[ch(0x130)](/^<|>$/g,'');const a6=new H();this['_applyMaterial'](a6,a4),a0['material']=a6;}['_pickBestMaterial'](a0){const ci=bd;for(const a1 of a0){const a2=this['shadersByMaterialPath']['get'](a1);if(a2)for(const a3 of a2){const a4=this[ci(0x1af)](a3);if(a4['info:id']==='UsdUVTexture'&&a4['inputs:file'])return a1;}}return a0[0x0];}[bd(0x1fe)](a0,a1){if(!this['specsByPath'][a1])return;const a2=this['shadersByMaterialPath']['get'](a1);if(a2)for(const a3 of a2){const a4=this['specsByPath'][a3];if(!a4)continue;const a5=this['_getAttributes'](a3)['info:id']||a4['fields']['info:id'];a5==='UsdPreviewSurface'||a5==='ND_UsdPreviewSurface_surfaceshader'?this['_applyPreviewSurface'](a0,a3):a5==='arnold:openpbr_surface'&&this['_applyOpenPBRSurface'](a0,a3);}}['_applyTextureOrValue'](a0,a1,a2,a3,a4,a5,a6,a7){const cj=bd,a8=a1+'.'+a3,a9=this['specsByPath'][a8];if(a9&&a9['fields']['connectionPaths']&&a9['fields']['connectionPaths']['length']>0x0){const aa=a7===this['_getTextureFromOpenPBRConnection']?a9['fields']['connectionPaths']:[a9['fields'][cj(0x1bb)][0x0]];for(const ab of aa){const ac=a7[cj(0x15b)](this,ab);if(ac)return ac['colorSpace']=a5,a0[a4]=ac,!0x0;}}return a2[a3]!==void 0x0&&a6&&a6(a2[a3]),!0x1;}['_applyPreviewSurface'](a0,a1){const ck=bd,a2=this['_getAttributes'](a1),a3=(a6,a7,a8,a9)=>this['_applyTextureOrValue'](a0,a1,a2,a6,a7,a8,a9,this['_getTextureFromConnection']),a4=a6=>{const a7=a1+'.'+a6;return this['specsByPath'][a7];};if(a3('inputs:diffuseColor',ck(0x1ac),I,a6=>{const cl=ck;Array[cl(0x204)](a6)&&a6['length']>=0x3&&a0['color']['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}),a0['map']&&a0['map']['userData']['scale']){const a6=a0[ck(0x1ac)]['userData']['scale'];Array['isArray'](a6)&&a6['length']>=0x3&&a0['color']['setRGB'](a6[0x0],a6[0x1],a6[0x2],I);}if(a3('inputs:emissiveColor','emissiveMap',I,a7=>{const cm=ck;Array[cm(0x204)](a7)&&a7['length']>=0x3&&a0['emissive']['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}),a0['emissiveMap']){if(a0[ck(0x1ad)]['userData']['scale']){const a7=a0['emissiveMap'][ck(0x1c6)][ck(0x208)];Array['isArray'](a7)&&a7['length']>=0x3&&a0['emissive']['setRGB'](a7[0x0],a7[0x1],a7[0x2],I);}else a0['emissive']['set'](0xffffff);}if(a3('inputs:normal',ck(0x11e),W,null),a0['normalMap']&&a0['normalMap'][ck(0x1c6)]['scale']){const a8=a0['normalMap']['userData']['scale'];a0['normalScale']=new F(a8[0x0],a8[0x1]);}if(a3('inputs:roughness','roughnessMap',W,a9=>{const cn=ck;a0[cn(0x14f)]=a9;})&&(a0['roughness']=0x1),a3('inputs:metallic','metalnessMap',W,a9=>{a0['metalness']=a9;})&&(a0['metalness']=0x1),a3('inputs:occlusion','aoMap',W,null),a2['inputs:ior']!==void 0x0&&(a0['ior']=a2[ck(0x1ec)]),a3('inputs:specularColor','specularColorMap',I,a9=>{const co=ck;Array['isArray'](a9)&&a9['length']>=0x3&&a0[co(0x1eb)]['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);}),a0['specularColorMap']&&a0['specularColorMap'][ck(0x1c6)]['scale']){const a9=a0['specularColorMap'][ck(0x1c6)]['scale'];Array['isArray'](a9)&&a9['length']>=0x3&&a0['specularColor']['setRGB'](a9[0x0],a9[0x1],a9[0x2],I);}a2['inputs:clearcoat']!==void 0x0&&(a0[ck(0x175)]=a2['inputs:clearcoat']),a2['inputs:clearcoatRoughness']!==void 0x0&&(a0['clearcoatRoughness']=a2['inputs:clearcoatRoughness']);const a5=a2['inputs:opacityThreshold']!==void 0x0?a2['inputs:opacityThreshold']:0x0;if(a4('inputs:opacity')?.[ck(0x197)]?.['connectionPaths']?.[ck(0x15c)]>0x0)a5>0x0?(a0[ck(0x1a5)]=a5,a0['transparent']=!0x1):a0['transparent']=!0x0;else{const aa=a2['inputs:opacity']!==void 0x0?a2[ck(0x177)]:0x1;aa<0x1&&(a0['transparent']=!0x0,a0['opacity']=aa);}}[bd(0x170)](a0,a1){const cp=bd,a2=this['_getAttributes'](a1),a3=(ae,af,ag,ah)=>this[cp(0x1df)](a0,a1,a2,ae,af,ag,ah,this['_getTextureFromOpenPBRConnection']);if(a3('inputs:base_color','map',I,ae=>{const cq=cp;Array[cq(0x204)](ae)&&ae[cq(0x15c)]>=0x3&&a0['color']['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}),a0['map']&&a0['map'][cp(0x1c6)]['scale']){const ae=a0['map'][cp(0x1c6)][cp(0x208)];Array['isArray'](ae)&&ae['length']>=0x3&&a0['color']['setRGB'](ae[0x0],ae[0x1],ae[0x2],I);}a3('inputs:base_metalness','metalnessMap',W,af=>{const cr=cp;typeof af==cr(0x1f5)&&(a0['metalness']=af);}),a3('inputs:specular_roughness','roughnessMap',W,af=>{typeof af=='number'&&(a0['roughness']=af);});const a4=a3('inputs:emission_color','emissiveMap',I,af=>{const cs=cp;Array['isArray'](af)&&af[cs(0x15c)]>=0x3&&a0['emissive']['setRGB'](af[0x0],af[0x1],af[0x2],I);}),a5=a2['inputs:emission_luminance'];a5!==void 0x0&&a5>0x0&&(a4?a0['emissiveIntensity']=a5:a0['emissive']['multiplyScalar'](a5));const a6=a2['inputs:transmission_weight'];if(a6!==void 0x0&&a6>0x0){a0['transmission']=a6;const af=a2['inputs:transmission_depth'];af!==void 0x0&&(a0[cp(0x1ce)]=af);const ag=a2['inputs:transmission_color'];ag!==void 0x0&&Array['isArray'](ag)&&(a0['attenuationColor'][cp(0x1da)](ag[0x0],ag[0x1],ag[0x2]),a0['attenuationDistance']=af||0x1);}const a7=a2['inputs:geometry_opacity'];a7!==void 0x0&&a7<0x1&&(a0['opacity']=a7,a0['transparent']=!0x0);const a8=a2['inputs:specular_ior'];a8!==void 0x0&&(a0['ior']=a8);const a9=a2['inputs:coat_weight'];if(a9!==void 0x0&&a9>0x0){a0[cp(0x175)]=a9;const ah=a2['inputs:coat_roughness'];ah!==void 0x0&&(a0['clearcoatRoughness']=ah);}const aa=a2[cp(0x1f4)];if(aa!==void 0x0&&aa>0x0){a0['iridescence']=aa;const ai=a2['inputs:thin_film_ior'];ai!==void 0x0&&(a0['iridescenceIOR']=ai);const aj=a2[cp(0x17a)];if(aj!==void 0x0){const ak=aj*0x3e8;a0['iridescenceThicknessRange']=[ak,ak];}}const ab=a2['inputs:specular_weight'];ab!==void 0x0&&(a0['specularIntensity']=ab);const ac=a2['inputs:specular_color'];ac!==void 0x0&&Array['isArray'](ac)&&a0['specularColor']['setRGB'](ac[0x0],ac[0x1],ac[0x2]);const ad=a2['inputs:specular_roughness_anisotropy'];ad!==void 0x0&&ad>0x0&&(a0['anisotropy']=ad),a3('inputs:geometry_normal',cp(0x11e),W,null);}['_getTextureFromOpenPBRConnection'](a0){const cu=bd,a1=a0['replace'](/<|>/g,''),a2=a1[cu(0x1ab)]('.')[0x0],a3=this['specsByPath'][a2];if(!a3)return null;const a4=this['_getAttributes'](a2),a5=a4['info:id']||a3['fields']['info:id'];if(a3[cu(0x197)][cu(0x12c)]==='NodeGraph'){const a7=a1[cu(0x1ab)]('.')[0x1],a8=a2+'.'+a7,a9=this['specsByPath'][a8];return a9?.[cu(0x197)]?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](a9['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:image'){const aa=a4['inputs:filename'];return aa?this['_loadTextureFromPath'](aa):null;}if(a5&&a5['startsWith']('ND_image_')){const ab=a4['inputs:file'];return ab?this['_loadTextureFromPath'](ab):null;}if(a5===cu(0x155)){const ac=a2+cu(0x169),ad=this['specsByPath'][ac];return ad?.['fields']?.['connectionPaths']?.[cu(0x15c)]>0x0?this[cu(0x1d1)](ad[cu(0x197)]['connectionPaths'][0x0]):null;}if(a5&&a5['startsWith']('ND_convert_')){const ae=a2+'.inputs:in',af=this[cu(0x161)][ae];return af?.['fields']?.['connectionPaths']?.['length']>0x0?this[cu(0x1d1)](af['fields'][cu(0x1bb)][0x0]):null;}if(a5==='arnold:bump2d'){const ag=a2+'.inputs:bump_map',ah=this['specsByPath'][ag];return ah?.['fields']?.['connectionPaths']?.['length']>0x0?this['_getTextureFromOpenPBRConnection'](ah['fields']['connectionPaths'][0x0]):null;}if(a5==='arnold:color_correct'){const ai=a2+'.inputs:input',aj=this['specsByPath'][ai];return aj?.['fields']?.['connectionPaths']?.['length']>0x0?this[cu(0x1d1)](aj['fields'][cu(0x1bb)][0x0]):null;}const a6=a2['substring'](0x0,a2['lastIndexOf']('/'));if(a6){const ak=this[cu(0x161)][a6];if(ak){const al=this['_getAttributes'](a6);if((al['info:id']||ak['fields']['info:id'])==='arnold:image'){const am=al['inputs:filename'];if(am)return this['_loadTextureFromPath'](am);}}}return null;}['_loadTextureFromPath'](a0){if(!a0)return null;if(this['textureCache'][a0])return this['textureCache'][a0];const a1=this['_loadTexture'](a0,null,null);return a1&&(this['textureCache'][a0]=a1),a1;}['_getTextureFromConnection'](a0){const cv=bd,a1=a0['split']('.')[0x0],a2=this['specsByPath'][a1];if(!a2)return null;const a3=this[cv(0x1af)](a1);if((a3['info:id']||a2['fields']['info:id'])!=='UsdUVTexture')return null;const a4=a3[cv(0x1bd)];if(!a4)return null;let a5=null,a6=0x0;const a7=a1+'.inputs:st',a8=this[cv(0x161)][a7];if(a8?.['fields']?.['connectionPaths']?.[cv(0x15c)]>0x0){const ad=a8[cv(0x197)]['connectionPaths'][0x0]['replace'](/<|>/g,'')[cv(0x1ab)]('.')[0x0],ae=this['specsByPath'][ad];if(ae){const af=this['_getAttributes'](ad),ag=af['info:id']||ae['fields']['info:id'];if(ag===cv(0x164)){a5=af;const ah=ad+cv(0x1fa),ai=this['specsByPath'][ah];if(ai?.['fields']?.['connectionPaths']?.['length']>0x0){const aj=ai['fields']['connectionPaths'][0x0][cv(0x130)](/<|>/g,'')['split']('.')[0x0],ak=this['_getAttributes'](aj)[cv(0x189)];ak==='st1'?a6=0x1:ak==='st2'&&(a6=0x2);}}else{if(ag==='UsdPrimvarReader_float2'){const al=af['inputs:varname'];al==='st1'?a6=0x1:al==='st2'&&(a6=0x2);}}}}const a9=a3['inputs:scale'],aa=a3[cv(0x17f)];let ab=a4;if(a9&&(ab+=':s'+a9['join'](',')),aa&&(ab+=':b'+aa['join'](',')),this['textureCache'][ab])return this['textureCache'][ab];const ac=this[cv(0x136)](a4,a3,a5);return ac&&(a9&&(ac[cv(0x1c6)]['scale']=a9),aa&&(ac['userData']['bias']=aa),a6!==0x0&&(ac['channel']=a6),this[cv(0x196)][ab]=ac),ac;}['_applyTextureTransforms'](a0,a1){const cw=bd;if(!a1)return;const a2=a1['inputs:scale'];a2&&Array['isArray'](a2)&&a2['length']>=0x2&&a0['repeat']['set'](a2[0x0],a2[0x1]);const a3=a1[cw(0x192)];a3&&Array['isArray'](a3)&&a3[cw(0x15c)]>=0x2&&a0['offset']['set'](a3[0x0],a3[0x1]);const a4=a1['inputs:rotation'];typeof a4=='number'&&(a0['rotation']=a4*Math['PI']/0xb4);}['_loadTexture'](a0,a1,a2){const cx=bd;let a3=a0;a3['startsWith']('@')&&(a3=a3[cx(0x1e4)](0x1)),a3['endsWith']('@')&&(a3=a3['slice'](0x0,-0x1));const a4=this['_resolveFilePath'](a3);let a5=this['assets'][a4];if(a5||(a5=this['assets'][a3]),!a5){const a6=a3[cx(0x1ab)]('/')['pop']();for(const a7 in this['assets'])if(a7['endsWith'](a6)||a7['endsWith']('/'+a6))return this['_createTextureFromData'](this['assets'][a7],a1,a2);if(this['manager']){const a8=this['manager']['resolveURL'](a6);if(a8!==a6)return this['_createTextureFromData'](a8,a1,a2);}return console[cx(0x187)]('USDLoader:\x20Texture\x20not\x20found:',a3),null;}return this['_createTextureFromData'](a5,a1,a2);}['_createTextureFromData'](a0,a1,a2){const cy=bd;if(!a0)return null;const a3=this,a4=new M();let a5;if(typeof a0=='string')a5=a0;else{if(a0 instanceof Uint8Array||a0 instanceof ArrayBuffer){const a7=new Blob([a0]);a5=URL['createObjectURL'](a7);}else return null;}const a6=new Image();return a6[cy(0x163)]=function(){const cz=cy;a4['image']=a6,a1&&(a4['wrapS']=a3['_getWrapMode'](a1['inputs:wrapS']),a4['wrapT']=a3['_getWrapMode'](a1['inputs:wrapT'])),a3['_applyTextureTransforms'](a4,a2),a4['needsUpdate']=!0x0,typeof a0!=cz(0x119)&&URL['revokeObjectURL'](a5);},a6['src']=a5,a4;}['_getWrapMode'](a0){const cA=bd;return a0==='repeat'?N:a0===cA(0x12f)?O:a0==='clamp'?P:N;}['_buildSkeleton'](a0){const cB=bd,a1=this['_getAttributes'](a0),a2=a1['joints'];if(!a2||a2[cB(0x15c)]===0x0)return null;const a3=a1['bindTransforms'],a4=a1[cB(0x1e8)],a5=this['_flattenMatrixArray'](a3,a2['length']),a6=this['_flattenMatrixArray'](a4,a2['length']),a7=[],a8={},a9=[];for(let ad=0x0;ad<a2['length'];ad++){const ae=a2[ad],af=ae[cB(0x1ab)]('/')['pop'](),ag=new R();if(ag['name']=af,a7[cB(0x1e6)](ag),a8[ae]={'bone':ag,'index':ad},a5&&a5['length']>=(ad+0x1)*0x10){const ah=new f(),ai=a5['slice'](ad*0x10,(ad+0x1)*0x10);ah['set'](ai[0x0],ai[0x4],ai[0x8],ai[0xc],ai[0x1],ai[0x5],ai[0x9],ai[0xd],ai[0x2],ai[0x6],ai[0xa],ai[0xe],ai[0x3],ai[0x7],ai[0xb],ai[0xf]);const aj=ah['clone']()['invert']();a9['push'](aj);}else a9['push'](new f());}for(let ak=0x0;ak<a2['length'];ak++){const al=a2[ak]['split']('/');if(al[cB(0x15c)]>0x1){const am=al['slice'](0x0,-0x1)['join']('/'),an=a8[am];an&&an['bone']['add'](a7[ak]);}}if(a6&&a6[cB(0x15c)]>=a2['length']*0x10)for(let ao=0x0;ao<a2['length'];ao++){const ap=new f(),aq=a6[cB(0x1e4)](ao*0x10,(ao+0x1)*0x10);ap['set'](aq[0x0],aq[0x4],aq[0x8],aq[0xc],aq[0x1],aq[0x5],aq[0x9],aq[0xd],aq[0x2],aq[0x6],aq[0xa],aq[0xe],aq[0x3],aq[0x7],aq[0xb],aq[0xf]),ap['decompose'](a7[ao]['position'],a7[ao]['quaternion'],a7[ao]['scale']);}const aa=a7['filter'](ar=>!ar[cB(0x200)]||!ar['parent']['isBone']),ab=this['specsByPath'][a0+cB(0x1ae)];let ac=null;return ab&&ab['fields']['targetPaths']&&ab['fields']['targetPaths'][cB(0x15c)]>0x0&&(ac=ab['fields']['targetPaths'][0x0]),{'skeleton':new S(a7,a9),'joints':a2,'rootBones':aa,'animationPath':ac,'path':a0};}['_bindSkeletons'](){const cC=bd;for(const a0 of this['skinnedMeshes']){const {mesh:a1,skeletonPath:a2,localJoints:a3,geomBindTransform:a4}=a0;let a5=null;if(a2&&this['skeletons'][a2]&&(a5=this['skeletons'][a2]),!a5){for(const aa in this['skeletons'])if(a2&&(a2['includes'](aa)||aa['includes'](a2))){a5=this['skeletons'][aa];break;}}if(!a5){const ab=Object[cC(0x1a0)](this[cC(0x202)]);ab['length']>0x0&&(a5=this['skeletons'][ab[0x0]]);}if(!a5){console['warn']('USDComposer:\x20No\x20skeleton\x20found\x20for\x20skinned\x20mesh',a1['name']);continue;}const {skeleton:a6,rootBones:a7,joints:a8}=a5;if(a3&&a3['length']>0x0){const ac=a1[cC(0x124)]['attributes'][cC(0x11d)];if(ac){const ad=[];for(let af=0x0;af<a3['length'];af++){const ag=a3[af],ah=a8['indexOf'](ag);ad[af]=ah>=0x0?ah:0x0;}const ae=ac['array'];for(let ai=0x0;ai<ae['length'];ai++){const aj=ae[ai];aj<ad['length']&&(ae[ai]=ad[aj]);}}}for(const ak of a7)a1['add'](ak);const a9=new f();if(a4&&a4['length']===0x10){const al=a4;a9[cC(0x188)](al[0x0],al[0x4],al[0x8],al[0xc],al[0x1],al[0x5],al[0x9],al[0xd],al[0x2],al[0x6],al[0xa],al[0xe],al[0x3],al[0x7],al[0xb],al[0xf]);}a1['bind'](a6,a9);}}['_buildAnimations'](){const cD=bd,a0=[];for(const a2 in this['specsByPath']){const a3=this['specsByPath'][a2];if(a3[cD(0x11f)]!==K['Prim']||a3['fields']['typeName']!=='SkelAnimation')continue;const a4=this['_buildAnimationClip'](a2);a4&&a0['push'](a4);}const a1=this[cD(0x1c0)]();return a1['length']>0x0&&a0['push'](new T('TransformAnimation',-0x1,a1)),a0;}['_buildTransformAnimations'](){const cE=bd,a0=[];for(const a1 in this['specsByPath']){const a2=this['specsByPath'][a1];if(a2['specType']!==K['Prim'])continue;const a3=a2[cE(0x197)]?.['typeName'];if(a3!=='Xform'&&a3!=='Scope'&&a3!=='Mesh')continue;const a4=a1[cE(0x1ab)]('/')['pop'](),a5=a1+cE(0x145),a6=this['specsByPath'][a5];if(a6?.['fields']?.[cE(0x1c2)]){const {times:ae,values:af}=a6['fields']['timeSamples'],ag=[],ah=[];for(let ai=0x0;ai<ae[cE(0x15c)];ai++){ag['push'](ae[ai]/this['fps']);const aj=af[ai];ah['push'](aj[0x0],aj[0x1],aj[0x2],aj[0x3]);}ag['length']>0x0&&a0['push'](new U(a4+'.quaternion',new Float32Array(ag),new Float32Array(ah)));}const a7=a1+'.xformOp:rotateXYZ',a8=this[cE(0x161)][a7];if(a8?.['fields']?.[cE(0x1c2)]){const {times:ak,values:al}=a8['fields'][cE(0x1c2)],am=[],an=[],ao=new g(),ap=new h();for(let aq=0x0;aq<ak['length'];aq++){am['push'](ak[aq]/this['fps']);const ar=al[aq];ao['set'](ar[0x0]*Math['PI']/0xb4,ar[0x1]*Math['PI']/0xb4,ar[0x2]*Math['PI']/0xb4,'ZYX'),ap['setFromEuler'](ao),an['push'](ap['x'],ap['y'],ap['z'],ap['w']);}am['length']>0x0&&a0['push'](new U(a4+'.quaternion',new Float32Array(am),new Float32Array(an)));}const a9=a1+'.xformOp:translate',aa=this['specsByPath'][a9];if(aa?.[cE(0x197)]?.[cE(0x1c2)]){const {times:as,values:au}=aa['fields']['timeSamples'],av=[],aw=[];for(let ax=0x0;ax<as['length'];ax++){av['push'](as[ax]/this['fps']);const ay=au[ax];aw['push'](ay[0x0],ay[0x1],ay[0x2]);}av['length']>0x0&&a0['push'](new V(a4+'.position',new Float32Array(av),new Float32Array(aw)));}const ab=a1+'.xformOp:scale',ac=this['specsByPath'][ab];if(ac?.['fields']?.['timeSamples']){const {times:az,values:aA}=ac['fields']['timeSamples'],aB=[],aC=[];for(let aD=0x0;aD<az[cE(0x15c)];aD++){aB['push'](az[aD]/this['fps']);const aE=aA[aD];aC['push'](aE[0x0],aE[0x1],aE[0x2]);}aB['length']>0x0&&a0[cE(0x1e6)](new V(a4+'.scale',new Float32Array(aB),new Float32Array(aC)));}const ad=a2['fields']?.['properties']||[];for(const aF of ad){if(!aF['startsWith'](cE(0x1d8)))continue;const aG=a1+'.'+aF,aH=this['specsByPath'][aG];if(!aH?.['fields']?.['timeSamples'])continue;const {times:aI,values:aJ}=aH['fields']['timeSamples'],aK=[],aL=[],aM=[],aN=[],aO=[],aP=[],aQ=new f(),aR=new i(),aS=new h(),aT=new i();for(let aU=0x0;aU<aI['length'];aU++){const aV=aJ[aU];if(!aV||aV['length']<0x10)continue;const aW=aI[aU]/this['fps'];aQ['set'](aV[0x0],aV[0x4],aV[0x8],aV[0xc],aV[0x1],aV[0x5],aV[0x9],aV[0xd],aV[0x2],aV[0x6],aV[0xa],aV[0xe],aV[0x3],aV[0x7],aV[0xb],aV[0xf]),aQ['decompose'](aR,aS,aT),aK[cE(0x1e6)](aW),aL[cE(0x1e6)](aR['x'],aR['y'],aR['z']),aM['push'](aW),aN['push'](aS['x'],aS['y'],aS['z'],aS['w']),aO['push'](aW),aP['push'](aT['x'],aT['y'],aT['z']);}aK['length']>0x0&&(a0['push'](new V(a4+'.position',new Float32Array(aK),new Float32Array(aL))),a0['push'](new U(a4+cE(0x14b),new Float32Array(aM),new Float32Array(aN))),a0[cE(0x1e6)](new V(a4+'.scale',new Float32Array(aO),new Float32Array(aP))));break;}}return a0;}['_buildAnimationClip'](a0){const cF=bd,a1=this['_getAttributes'](a0)[cF(0x19a)];if(!a1||a1['length']===0x0)return null;const a2=[],a3=this['_getTimeSampledAttribute'](a0,'rotations');if(a3&&a3['times']&&a3['values']){const {times:a7,values:a8}=a3;for(let a9=0x0;a9<a1[cF(0x15c)];a9++){const aa=a1[a9]['split']('/')['pop'](),ab=[],ac=[];for(let ad=0x0;ad<a7[cF(0x15c)];ad++){const ae=a8[ad];if(!ae||ae['length']<(a9+0x1)*0x4)continue;ab['push'](a7[ad]/this['fps']);const af=ae[a9*0x4+0x0],ag=ae[a9*0x4+0x1],ah=ae[a9*0x4+0x2],ai=ae[a9*0x4+0x3];ac['push'](af,ag,ah,ai);}ab['length']>0x0&&a2['push'](new U(aa+'.quaternion',new Float32Array(ab),new Float32Array(ac)));}}const a4=this['_getTimeSampledAttribute'](a0,cF(0x13d));if(a4&&a4[cF(0x173)]&&a4['values']){const {times:aj,values:ak}=a4;for(let al=0x0;al<a1['length'];al++){const am=a1[al]['split']('/')['pop'](),an=[],ao=[];for(let ap=0x0;ap<aj['length'];ap++){const aq=ak[ap];!aq||aq[cF(0x15c)]<(al+0x1)*0x3||(an['push'](aj[ap]/this['fps']),ao['push'](aq[al*0x3+0x0],aq[al*0x3+0x1],aq[al*0x3+0x2]));}an['length']>0x0&&a2['push'](new V(am+cF(0x12b),new Float32Array(an),new Float32Array(ao)));}}const a5=this['_getTimeSampledAttribute'](a0,'scales');if(a5&&a5['times']&&a5['values']){const {times:ar,values:as}=a5;for(let au=0x0;au<a1['length'];au++){const av=a1[au]['split']('/')['pop'](),aw=[],ax=[];for(let ay=0x0;ay<ar['length'];ay++){const az=as[ay];!az||az['length']<(au+0x1)*0x3||(aw[cF(0x1e6)](ar[ay]/this['fps']),ax['push'](az[au*0x3+0x0],az[au*0x3+0x1],az[au*0x3+0x2]));}aw[cF(0x15c)]>0x0&&a2['push'](new V(av+'.scale',new Float32Array(aw),new Float32Array(ax)));}}if(a2['length']===0x0)return null;const a6=a0['split']('/')['pop']();return new T(a6,-0x1,a2);}['_getTimeSampledAttribute'](a0,a1){const a2=a0+'.'+a1,a3=this['specsByPath'][a2];if(a3&&a3['fields']['timeSamples']){const a4=a3['fields']['timeSamples'];if(a4['times']&&a4['values'])return a4;}return null;}['_flattenMatrixArray'](a0,a1){if(!a0||a0['length']===0x0)return null;if(typeof a0[0x0]=='number')return a0;const a2=[];for(let a3=0x0;a3<a1;a3++)for(let a4=0x0;a4<0x4;a4++){const a5=a0[a3*0x4+a4];a5&&a5['length']===0x4?a2['push'](a5[0x0],a5[0x1],a5[0x2],a5[0x3]):a2['push'](a4===0x0?0x1:0x0,a4===0x1?0x1:0x0,a4===0x2?0x1:0x0,a4===0x3?0x1:0x0);}return a2;}}class le extends X{constructor(a0){super(a0);}['load'](a0,a1,a2,a3){const cG=bd,a4=this,a5=new Z(a4['manager']);a5['setPath'](a4['path']),a5[cG(0x17c)]('arraybuffer'),a5['setRequestHeader'](a4['requestHeader']),a5['setWithCredentials'](a4[cG(0x206)]),a5[cG(0x190)](a0,function(a6){const cH=cG;try{a1(a4[cH(0x156)](a6));}catch(a7){a3?a3(a7):console['error'](a7),a4['manager'][cH(0x152)](a0);}},a2,a3);}[bd(0x156)](a0){const cL=bd,a1=new Yt(),a2=new ne(),a3=new TextDecoder();function a4(ae){const cI=c;return ae instanceof ArrayBuffer?ae:ae['byteOffset']===0x0&&ae['byteLength']===ae[cI(0x158)][cI(0x1c5)]?ae[cI(0x158)]:ae['buffer']['slice'](ae['byteOffset'],ae['byteOffset']+ae[cI(0x1c5)]);}function a5(ae){const af=ae['lastIndexOf']('.');return af<0x0||ae['lastIndexOf']('/')>af?'':ae['slice'](af+0x1)['toLowerCase']();}function a6(ae){const af={};for(const ag in ae){const ah=ae[ag],ai=a5(ag);if(ai==='png'||ai==='jpg'||ai==='jpeg'||ai==='avif'){af[ag]=ah;continue;}ai!=='usd'&&ai!=='usda'&&ai!=='usdc'||(a7(ah)?af[ag]=a2['parseData'](a4(ah)):af[ag]=a1['parseData'](a3['decode'](ah)));}return af;}function a7(ae){const cJ=c,af=new Uint8Array([0x50,0x58,0x52,0x2d,0x55,0x53,0x44,0x43]),ag=ae instanceof Uint8Array?ae:new Uint8Array(ae);if(ag[cJ(0x1c5)]<af[cJ(0x15c)])return!0x1;for(let ah=0x0;ah<af['length'];ah++)if(ag[ah]!==af[ah])return!0x1;return!0x0;}function a8(ae){const cK=c,af=Object['keys'](ae);if(af['length']<0x1)return{'file':void 0x0,'filename':'','basePath':''};const ag=af[0x0],ah=a5(ag);let ai=!0x1;const aj=ag['lastIndexOf']('/'),ak=aj>=0x0?ag['slice'](0x0,aj):'';if(ah==='usda')return{'file':ae[ag],'filename':ag,'basePath':ak};if(ah===cK(0x1f2))ai=!0x0;else{if(ah==='usd'){if(a7(ae[ag]))ai=!0x0;else return{'file':ae[ag],'filename':ag,'basePath':ak};}}return ai?{'file':ae[ag],'filename':ag,'basePath':ak}:{'file':void 0x0,'filename':'','basePath':''};}const a9=this;if(typeof a0==cL(0x119)){const ae=new tt(a9['manager']),af=a1['parseData'](a0);return ae['compose'](af,{});}if(a7(a0)){const ag=new tt(a9[cL(0x16d)]),ah=a2[cL(0x19c)](a4(a0));return ag[cL(0x144)](ah,{});}const aa=new Uint8Array(a0);if(aa[0x0]===0x50&&aa[0x1]===0x4b){const ai=d(aa),aj=a6(ai),{file:ak,filename:al,basePath:am}=a8(ai);if(!ak)throw new Error('USDLoader:\x20Invalid\x20USDZ\x20package.\x20The\x20first\x20ZIP\x20entry\x20must\x20be\x20a\x20USD\x20layer\x20(.usd/.usda/.usdc).');const an=new tt(a9['manager']),ao=aj[al];if(!ao)throw new Error(cL(0x18f)+al+'\x22.');return an['compose'](ao,aj,{},am);}const ab=new tt(a9['manager']),ac=a3['decode'](aa),ad=a1['parseData'](ac);return ab['compose'](ad,{});}}export{le as USDLoader};
|