@flyfish-group/file-viewer 1.0.22 → 1.0.23

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.
Files changed (211) hide show
  1. package/README.md +10 -10
  2. package/dist/components/3MFLoader.js +1 -1
  3. package/dist/components/AMFLoader.js +1 -1
  4. package/dist/components/AudioViewer.js +1 -1
  5. package/dist/components/CadViewer.js +1 -1
  6. package/dist/components/CodeViewer.js +1 -1
  7. package/dist/components/ColladaLoader.js +1 -1
  8. package/dist/components/DrawingViewer.js +1 -1
  9. package/dist/components/EdaViewer.js +1 -1
  10. package/dist/components/EmailViewer.js +1 -1
  11. package/dist/components/EpubViewer.js +1 -1
  12. package/dist/components/FBXLoader.js +1 -1
  13. package/dist/components/GLTFLoader.js +1 -1
  14. package/dist/components/ImageViewer.js +1 -1
  15. package/dist/components/KMZLoader.js +1 -1
  16. package/dist/components/MarkdownViewer.js +1 -1
  17. package/dist/components/OBJLoader.js +1 -1
  18. package/dist/components/OfdViewer.js +1 -1
  19. package/dist/components/PCDLoader.js +1 -1
  20. package/dist/components/PLYLoader.js +1 -1
  21. package/dist/components/STLLoader.js +1 -1
  22. package/dist/components/TDSLoader.js +1 -1
  23. package/dist/components/USDLoader.js +1 -1
  24. package/dist/components/UmdViewer.js +2 -2
  25. package/dist/components/VRMLLoader.js +1 -1
  26. package/dist/components/VTKLoader.js +1 -1
  27. package/dist/components/XYZLoader.js +1 -1
  28. package/dist/components/XlsxTable.js +1 -1
  29. package/dist/components/___vite-browser-external_commonjs-proxy.js +1 -1
  30. package/dist/components/_commonjs-dynamic-modules.js +1 -1
  31. package/dist/components/_commonjsHelpers.js +1 -1
  32. package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
  33. package/dist/components/arc.js +1 -1
  34. package/dist/components/architecture-7EHR7CIX.js +1 -1
  35. package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
  36. package/dist/components/az-AZ-76LH7QW2.js +1 -1
  37. package/dist/components/bg-BG-XCXSNQG7.js +1 -1
  38. package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
  39. package/dist/components/bn-BD-2XOGV67Q.js +1 -1
  40. package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
  41. package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
  42. package/dist/components/cfb.js +1 -1
  43. package/dist/components/channel.js +1 -1
  44. package/dist/components/chunk-2J33WTMH.js +1 -1
  45. package/dist/components/chunk-4BX2VUAB.js +1 -1
  46. package/dist/components/chunk-55IACEB6.js +1 -1
  47. package/dist/components/chunk-727SXJPM.js +1 -1
  48. package/dist/components/chunk-AQP2D5EJ.js +1 -1
  49. package/dist/components/chunk-FMBD7UC4.js +1 -1
  50. package/dist/components/chunk-ND2GUHAM.js +1 -1
  51. package/dist/components/chunk-QZHKN3VN.js +1 -1
  52. package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
  53. package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
  54. package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
  55. package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
  56. package/dist/components/cytoscape.esm.js +1 -1
  57. package/dist/components/da-DK-5WZEPLOC.js +1 -1
  58. package/dist/components/dagre-BM42HDAG.js +1 -1
  59. package/dist/components/de-DE-XR44H4JA.js +1 -1
  60. package/dist/components/defaultLocale.js +1 -1
  61. package/dist/components/diagram-2AECGRRQ.js +1 -1
  62. package/dist/components/diagram-5GNKFQAL.js +1 -1
  63. package/dist/components/diagram-KO2AKTUF.js +1 -1
  64. package/dist/components/diagram-LMA3HP47.js +1 -1
  65. package/dist/components/diagram-OG6HWLK6.js +1 -1
  66. package/dist/components/directory-open-01563666.js +1 -1
  67. package/dist/components/directory-open-4ed118d0.js +1 -1
  68. package/dist/components/docx-preview.js +2 -2
  69. package/dist/components/el-GR-BZB4AONW.js +1 -1
  70. package/dist/components/en-B4ZKOASM.js +1 -1
  71. package/dist/components/erDiagram-TEJ5UH35.js +1 -1
  72. package/dist/components/es-ES-U4NZUMDT.js +1 -1
  73. package/dist/components/eu-ES-A7QVB2H4.js +1 -1
  74. package/dist/components/eventmodeling-FCH6USID.js +1 -1
  75. package/dist/components/fa-IR-HGAKTJCU.js +1 -1
  76. package/dist/components/fflate.module.js +1 -1
  77. package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
  78. package/dist/components/file-open-002ab408.js +1 -1
  79. package/dist/components/file-open-7c801643.js +1 -1
  80. package/dist/components/file-save-3189631c.js +1 -1
  81. package/dist/components/file-save-745eba88.js +1 -1
  82. package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
  83. package/dist/components/fr-FR-RHASNOE6.js +1 -1
  84. package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
  85. package/dist/components/gitGraph-WXDBUCRP.js +1 -1
  86. package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
  87. package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
  88. package/dist/components/global-compiler.js +1 -1
  89. package/dist/components/global-renderer.js +1 -1
  90. package/dist/components/graph.js +1 -1
  91. package/dist/components/he-IL-6SHJWFNN.js +1 -1
  92. package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
  93. package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
  94. package/dist/components/id-ID-SAP4L64H.js +1 -1
  95. package/dist/components/image-GAAHSSAO.js +1 -1
  96. package/dist/components/image-blob-reduce.esm.js +1 -1
  97. package/dist/components/index10.js +1 -1
  98. package/dist/components/index11.js +1 -1
  99. package/dist/components/index12.js +1 -1
  100. package/dist/components/index13.js +1 -1
  101. package/dist/components/index14.js +1 -1
  102. package/dist/components/index15.js +1 -1
  103. package/dist/components/index16.js +1 -1
  104. package/dist/components/index17.js +1 -1
  105. package/dist/components/index18.js +1 -1
  106. package/dist/components/index19.js +1 -1
  107. package/dist/components/index2.js +1 -1
  108. package/dist/components/index20.js +1 -1
  109. package/dist/components/index21.js +1 -1
  110. package/dist/components/index22.js +2 -2
  111. package/dist/components/index23.js +1 -1
  112. package/dist/components/index24.js +1 -1
  113. package/dist/components/index3.js +1 -1
  114. package/dist/components/index4.js +1 -1
  115. package/dist/components/index5.js +1 -1
  116. package/dist/components/index6.js +1 -1
  117. package/dist/components/index7.js +1 -1
  118. package/dist/components/index8.js +1 -1
  119. package/dist/components/index9.js +1 -1
  120. package/dist/components/info-J43DQDTF.js +1 -1
  121. package/dist/components/infoDiagram-5YYISTIA.js +1 -1
  122. package/dist/components/init.js +1 -1
  123. package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
  124. package/dist/components/it-IT-JPQ66NNP.js +1 -1
  125. package/dist/components/ja-JP-DBVTYXUO.js +1 -1
  126. package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
  127. package/dist/components/jszip.min.js +1 -1
  128. package/dist/components/kaa-6HZHGXH3.js +1 -1
  129. package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
  130. package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
  131. package/dist/components/katex.js +1 -1
  132. package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
  133. package/dist/components/km-KH-HSX4SM5Z.js +1 -1
  134. package/dist/components/ko-KR-MTYHY66A.js +1 -1
  135. package/dist/components/ku-TR-6OUDTVRD.js +1 -1
  136. package/dist/components/layout.js +1 -1
  137. package/dist/components/libarchive.js +1 -1
  138. package/dist/components/linear.js +1 -1
  139. package/dist/components/lt-LT-XHIRWOB4.js +1 -1
  140. package/dist/components/lv-LV-5QDEKY6T.js +1 -1
  141. package/dist/components/mermaid-parser.core.js +2 -2
  142. package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
  143. package/dist/components/mr-IN-CRQNXWMA.js +1 -1
  144. package/dist/components/my-MM-5M5IBNSE.js +1 -1
  145. package/dist/components/nb-NO-T6EIAALU.js +1 -1
  146. package/dist/components/nestedRender.js +1 -1
  147. package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
  148. package/dist/components/nn-NO-6E72VCQL.js +1 -1
  149. package/dist/components/oc-FR-POXYY2M6.js +1 -1
  150. package/dist/components/ofd.js +1 -1
  151. package/dist/components/ordinal.js +1 -1
  152. package/dist/components/pa-IN-N4M65BXN.js +1 -1
  153. package/dist/components/packet-YPE3B663.js +1 -1
  154. package/dist/components/percentages-BXMCSKIN.js +1 -1
  155. package/dist/components/pica.js +1 -1
  156. package/dist/components/pie-LRSECV5Y.js +1 -1
  157. package/dist/components/pie.js +1 -1
  158. package/dist/components/pieDiagram-4H26LBE5.js +1 -1
  159. package/dist/components/pl-PL-T2D74RX3.js +1 -1
  160. package/dist/components/postal-mime.js +1 -1
  161. package/dist/components/printLayout.js +1 -1
  162. package/dist/components/pt-BR-5N22H2LF.js +1 -1
  163. package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
  164. package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
  165. package/dist/components/radar-GUYGQ44K.js +1 -1
  166. package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
  167. package/dist/components/ro-RO-JPDTUUEW.js +1 -1
  168. package/dist/components/rough.esm.js +1 -1
  169. package/dist/components/roundRect.js +1 -1
  170. package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
  171. package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
  172. package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
  173. package/dist/components/si-LK-N5RQ5JYF.js +1 -1
  174. package/dist/components/sk-SK-C5VTKIMK.js +1 -1
  175. package/dist/components/sl-SI-NN7IZMDC.js +1 -1
  176. package/dist/components/stateDiagram-AJRCARHV.js +1 -1
  177. package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
  178. package/dist/components/subset-shared.chunk.js +1 -1
  179. package/dist/components/subset-worker.chunk.js +1 -1
  180. package/dist/components/sv-SE-XGPEYMSR.js +1 -1
  181. package/dist/components/ta-IN-2NMHFXQM.js +1 -1
  182. package/dist/components/th-TH-HPSO5L25.js +1 -1
  183. package/dist/components/time.js +1 -1
  184. package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
  185. package/dist/components/tr-TR-DEFEU3FU.js +1 -1
  186. package/dist/components/transform.js +1 -1
  187. package/dist/components/treeView-BLDUP644.js +1 -1
  188. package/dist/components/treemap-LRROVOQU.js +1 -1
  189. package/dist/components/uk-UA-QMV73CPH.js +1 -1
  190. package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
  191. package/dist/components/vi-VN-M7AON7JQ.js +1 -1
  192. package/dist/components/wardley-L42UT6IY.js +1 -1
  193. package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
  194. package/dist/components/wasm-pack-shim.js +1 -1
  195. package/dist/components/wasm-pack-shim2.js +1 -1
  196. package/dist/components/worker-ref.js +1 -1
  197. package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
  198. package/dist/components/zh-CN-LNUGB5OW.js +1 -1
  199. package/dist/components/zh-HK-E62DVLB3.js +1 -1
  200. package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
  201. package/dist/index.d.ts +48 -0
  202. package/dist/index.mjs +1 -1
  203. package/dist/style.css +1 -1
  204. package/dist/wasm/cad/DwgWorker-CuZJ5EUe.js +349 -0
  205. package/dist/wasm/cad/dwfv-render.wasm +0 -0
  206. package/dist/wasm/cad/dwg-worker.js +349 -0
  207. package/dist/wasm/cad/index-C365l3i9.js +4161 -0
  208. package/dist/wasm/cad/libredwg-web.js +15 -0
  209. package/dist/wasm/cad/libredwg-web.wasm +0 -0
  210. package/package.json +9 -8
  211. package/dist/components/index25.js +0 -1
@@ -1 +1 @@
1
- function c(b,d){b=b-0xc7;const e=a();let f=e[b];return f;}function a(){const ar=['elements','keys','2249995eSpooM','arr','empty','size','getFloat32','faceVertexColors','attrNX','property','vertex_index','6vWJaCR','manager','getUint16','float','faceVertexUvs','2073782zTtgbH','attrG','3224490Sqpxqf','1184990HmBRjG','fromCharCode','decode','texture_v','withCredentials','2157716azpkfG','format','getUint32','attrNZ','properties','map','face','type','next','diffuse_g','attrY','customPropertyMapping','name','attrT','load','vertex','count','36DHZFsA','84rNLkuF','red','3hpblQN','8mECyeJ','5723634RviLMH','push','length','float64','test','shift','561804VLcKrG','getFloat64','setAttribute','uint8','char','diffuse_red','uvs','green'];a=function(){return ar;};return a();}const a9=c;(function(l,m){const a8=c,n=l();while(!![]){try{const o=-parseInt(a8(0xcf))/0x1+parseInt(a8(0xe7))/0x2*(parseInt(a8(0xc7))/0x3)+-parseInt(a8(0xef))/0x4+parseInt(a8(0xea))/0x5*(-parseInt(a8(0xe2))/0x6)+parseInt(a8(0xc9))/0x7*(parseInt(a8(0xc8))/0x8)+parseInt(a8(0x100))/0x9*(-parseInt(a8(0xe9))/0xa)+-parseInt(a8(0xd9))/0xb*(-parseInt(a8(0x101))/0xc);if(o===m)break;else n['push'](n['shift']());}catch(p){n['push'](n['shift']());}}}(a,0xa0ba5));import{C as d,L as e,F as g,B as i,a as k,S}from'./ModelViewer.js';import'vue';import'./index7.js';const f=new d();class F extends e{constructor(l){super(l),this['propertyNameMapping']={},this['customPropertyMapping']={};}[a9(0xfd)](l,m,n,o){const aa=a9,p=this,q=new g(this['manager']);q['setPath'](this['path']),q['setResponseType']('arraybuffer'),q['setRequestHeader'](this['requestHeader']),q['setWithCredentials'](this[aa(0xee)]),q['load'](l,function(r){const ab=aa;try{m(p['parse'](r));}catch(s){o?o(s):console['error'](s),p[ab(0xe3)]['itemError'](l);}},n,o);}['setPropertyNameMapping'](l){this['propertyNameMapping']=l;}['setCustomPropertyNameMapping'](l){this['customPropertyMapping']=l;}['parse'](l){const ap=a9;function m(U,W=0x0){const ad=c,X=/^ply([\s\S]*)end_header(\r\n|\r|\n)/;let Y='';const Z=X['exec'](U);Z!==null&&(Y=Z[0x1]);const a0={'comments':[],'elements':[],'headerLength':W,'objInfo':''},a1=Y['split'](/\r\n|\r|\n/);let a2;function a3(a4,a5){const ac=c,a6={'type':a4[0x0]};return a6['type']==='list'?(a6[ac(0xfb)]=a4[0x3],a6['countType']=a4[0x1],a6['itemType']=a4[0x2]):a6['name']=a4[0x1],a6['name']in a5&&(a6['name']=a5[a6['name']]),a6;}for(let a4=0x0;a4<a1['length'];a4++){let a5=a1[a4];if(a5=a5['trim'](),a5==='')continue;const a6=a5['split'](/\s+/),a7=a6[ad(0xce)]();switch(a5=a6['join']('\x20'),a7){case'format':a0[ad(0xf0)]=a6[0x0],a0['version']=a6[0x1];break;case'comment':a0['comments']['push'](a5);break;case'element':a2!==void 0x0&&a0[ad(0xd7)]['push'](a2),a2={},a2['name']=a6[0x0],a2['count']=parseInt(a6[0x1]),a2['properties']=[];break;case ad(0xe0):a2['properties']['push'](a3(a6,T['propertyNameMapping']));break;case'obj_info':a0['objInfo']=a5;break;default:console['log']('unhandled',a7,a6);}}return a2!==void 0x0&&a0['elements']['push'](a2),a0;}function o(U,W){const ae=c;switch(W){case'char':case'uchar':case'short':case'ushort':case'int':case'uint':case'int8':case ae(0xd2):case'int16':case'uint16':case'int32':case'uint32':return parseInt(U);case ae(0xe5):case'double':case'float32':case ae(0xcc):return parseFloat(U);}}function p(U,W){const af=c,X={};for(let Y=0x0;Y<U['length'];Y++){if(W['empty']())return null;if(U[Y]['type']==='list'){const Z=[],a0=o(W['next'](),U[Y]['countType']);for(let a1=0x0;a1<a0;a1++){if(W[af(0xdb)]())return null;Z[af(0xca)](o(W['next'](),U[Y]['itemType']));}X[U[Y]['name']]=Z;}else X[U[Y]['name']]=o(W[af(0xf7)](),U[Y][af(0xf6)]);}return X;}function q(){const U={'indices':[],'vertices':[],'normals':[],'uvs':[],'faceVertexUvs':[],'colors':[],'faceVertexColors':[]};for(const W of Object['keys'](T['customPropertyMapping']))U[W]=[];return U;}function D(U){const ag=c,W=U[ag(0xf4)](Y=>Y[ag(0xfb)]);function X(Y){for(let Z=0x0,a0=Y['length'];Z<a0;Z++){const a1=Y[Z];if(W['includes'](a1))return a1;}return null;}return{'attrX':X(['x','px','posx'])||'x','attrY':X(['y','py','posy'])||'y','attrZ':X(['z','pz','posz'])||'z','attrNX':X(['nx','normalx']),'attrNY':X(['ny','normaly']),'attrNZ':X(['nz','normalz']),'attrS':X(['s','u','texture_u','tx']),'attrT':X(['t','v',ag(0xed),'ty']),'attrR':X([ag(0x102),ag(0xd4),'r','diffuse_r']),'attrG':X([ag(0xd6),'diffuse_green','g',ag(0xf8)]),'attrB':X(['blue','diffuse_blue','b','diffuse_b'])};}function E(U,W){const ah=c,X=q(),Y=/end_header\s+(\S[\s\S]*\S|\S)\s*$/;let Z,a0;(a0=Y['exec'](U))!==null?Z=a0[0x1]['split'](/\s+/):Z=[];const a1=new L(Z);a7:for(let a2=0x0;a2<W['elements']['length'];a2++){const a3=W['elements'][a2],a4=D(a3['properties']);for(let a5=0x0;a5<a3[ah(0xff)];a5++){const a6=p(a3['properties'],a1);if(!a6)break a7;H(X,a3['name'],a6,a4);}}return G(X);}function G(U){const ai=c;let W=new i();U['indices']['length']>0x0&&W['setIndex'](U['indices']),W['setAttribute']('position',new k(U['vertices'],0x3)),U['normals']['length']>0x0&&W['setAttribute']('normal',new k(U['normals'],0x3)),U['uvs'][ai(0xcb)]>0x0&&W['setAttribute']('uv',new k(U[ai(0xd5)],0x2)),U['colors']['length']>0x0&&W['setAttribute']('color',new k(U['colors'],0x3)),(U[ai(0xe6)]['length']>0x0||U['faceVertexColors'][ai(0xcb)]>0x0)&&(W=W['toNonIndexed'](),U['faceVertexUvs']['length']>0x0&&W[ai(0xd1)]('uv',new k(U['faceVertexUvs'],0x2)),U['faceVertexColors']['length']>0x0&&W['setAttribute']('color',new k(U['faceVertexColors'],0x3)));for(const X of Object['keys'](T['customPropertyMapping']))U[X]['length']>0x0&&W[ai(0xd1)](X,new k(U[X],T['customPropertyMapping'][X]['length']));return W['computeBoundingSphere'](),W;}function H(U,W,X,Y){const aj=c;if(W===aj(0xfe)){U['vertices']['push'](X[Y['attrX']],X[Y[aj(0xf9)]],X[Y['attrZ']]),Y['attrNX']!==null&&Y['attrNY']!==null&&Y['attrNZ']!==null&&U['normals']['push'](X[Y[aj(0xdf)]],X[Y['attrNY']],X[Y[aj(0xf2)]]),Y['attrS']!==null&&Y['attrT']!==null&&U['uvs'][aj(0xca)](X[Y['attrS']],X[Y[aj(0xfc)]]),Y['attrR']!==null&&Y[aj(0xe8)]!==null&&Y['attrB']!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y['attrB']]/0xff,S),U['colors']['push'](f['r'],f['g'],f['b']));for(const Z of Object[aj(0xd8)](T['customPropertyMapping']))for(const a0 of T[aj(0xfa)][Z])U[Z]['push'](X[a0]);}else{if(W===aj(0xf5)){const a1=X['vertex_indices']||X[aj(0xe1)],a2=X['texcoord'];a1['length']===0x3?(U['indices']['push'](a1[0x0],a1[0x1],a1[0x2]),a2&&a2['length']===0x6&&(U['faceVertexUvs'][aj(0xca)](a2[0x0],a2[0x1]),U['faceVertexUvs'][aj(0xca)](a2[0x2],a2[0x3]),U['faceVertexUvs']['push'](a2[0x4],a2[0x5]))):a1['length']===0x4&&(U['indices']['push'](a1[0x0],a1[0x1],a1[0x3]),U['indices'][aj(0xca)](a1[0x1],a1[0x2],a1[0x3])),Y['attrR']!==null&&Y['attrG']!==null&&Y['attrB']!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y['attrB']]/0xff,S),U[aj(0xde)]['push'](f['r'],f['g'],f['b']),U['faceVertexColors']['push'](f['r'],f['g'],f['b']),U['faceVertexColors']['push'](f['r'],f['g'],f['b']));}}}function J(U,W){const ak=c,X={};let Y=0x0;for(let Z=0x0;Z<W['length'];Z++){const a0=W[Z],a1=a0['valueReader'];if(a0['type']==='list'){const a2=[],a3=a0['countReader']['read'](U+Y);Y+=a0['countReader']['size'];for(let a4=0x0;a4<a3;a4++)a2['push'](a1['read'](U+Y)),Y+=a1[ak(0xdc)];X[a0[ak(0xfb)]]=a2;}else X[a0['name']]=a1['read'](U+Y),Y+=a1[ak(0xdc)];}return[X,Y];}function K(U,W,X){const am=c;function Y(Z,a0,a1){const al=c;switch(a0){case'int8':case al(0xd3):return{'read':a2=>Z['getInt8'](a2),'size':0x1};case'uint8':case'uchar':return{'read':a2=>Z['getUint8'](a2),'size':0x1};case'int16':case'short':return{'read':a2=>Z['getInt16'](a2,a1),'size':0x2};case'uint16':case'ushort':return{'read':a2=>Z[al(0xe4)](a2,a1),'size':0x2};case'int32':case'int':return{'read':a2=>Z['getInt32'](a2,a1),'size':0x4};case'uint32':case'uint':return{'read':a2=>Z[al(0xf1)](a2,a1),'size':0x4};case'float32':case'float':return{'read':a2=>Z[al(0xdd)](a2,a1),'size':0x4};case'float64':case'double':return{'read':a2=>Z[al(0xd0)](a2,a1),'size':0x8};}}for(let Z=0x0,a0=U['length'];Z<a0;Z++){const a1=U[Z];a1[am(0xf6)]==='list'?(a1['countReader']=Y(W,a1['countType'],X),a1['valueReader']=Y(W,a1['itemType'],X)):a1['valueReader']=Y(W,a1['type'],X);}}function N(U,W){const an=c,X=q(),Y=W['format']==='binary_little_endian',Z=new DataView(U,W['headerLength']);let a0,a1=0x0;for(let a2=0x0;a2<W['elements']['length'];a2++){const a3=W['elements'][a2],a4=a3[an(0xf3)],a5=D(a4);K(a4,Z,Y);for(let a6=0x0;a6<a3['count'];a6++){a0=J(a1,a4),a1+=a0[0x1];const a7=a0[0x0];H(X,a3['name'],a7,a5);}}return G(X);}function O(U){const ao=c;let W=0x0,X=!0x0,Y='';const Z=[],a0=new TextDecoder()['decode'](U['subarray'](0x0,0x5)),a1=/^ply\r\n/[ao(0xcd)](a0);do{const a2=String[ao(0xeb)](U[W++]);a2!=='\x0a'&&a2!=='\x0d'?Y+=a2:(Y==='end_header'&&(X=!0x1),Y!==''&&(Z['push'](Y),Y=''));}while(X&&W<U['length']);return a1===!0x0&&W++,{'headerText':Z['join']('\x0d')+'\x0d','headerLength':W};}let Q;const T=this;if(l instanceof ArrayBuffer){const U=new Uint8Array(l),{headerText:W,headerLength:X}=O(U),Y=m(W,X);if(Y[ap(0xf0)]==='ascii'){const Z=new TextDecoder()[ap(0xec)](U);Q=E(Z,Y);}else Q=N(l,Y);}else Q=E(l,m(l));return Q;}}class L{constructor(l){this['arr']=l,this['i']=0x0;}['empty'](){return this['i']>=this['arr']['length'];}[a9(0xf7)](){const aq=a9;return this[aq(0xda)][this['i']++];}}export{F as PLYLoader};
1
+ const aq=c;(function(l,m){const a8=c,n=l();while(!![]){try{const o=-parseInt(a8(0x11a))/0x1+-parseInt(a8(0x12c))/0x2+-parseInt(a8(0x120))/0x3+-parseInt(a8(0x111))/0x4+-parseInt(a8(0x131))/0x5+-parseInt(a8(0x10a))/0x6+-parseInt(a8(0x11d))/0x7*(-parseInt(a8(0x13a))/0x8);if(o===m)break;else n['push'](n['shift']());}catch(p){n['push'](n['shift']());}}}(a,0x713a7));function c(b,d){b=b-0x108;const e=a();let f=e[b];return f;}import{C as d,L as e,F as g,B as i,a as k,S}from'./ModelViewer.js';import'vue';function a(){const ar=['vertex_index','format','end_header','1637892GfKkJE','int32','uvs','setAttribute','list','ascii','setResponseType','arraybuffer','property','806228MntAaV','name','customPropertyMapping','22447901WbUuHs','count','exec','1372170XdYgNk','texture_u','subarray','faceVertexColors','uint32','length','test','comments','char','empty','arr','keys','582974iUwuWq','unhandled','uint16','properties','posz','1379860KAqksS','uint','texcoord','int8','normals','attrX','red','decode','color','8mPVFFc','attrY','attrB','3015060RErVIl','getInt32','normalx','push'];a=function(){return ar;};return a();}import'./index7.js';const f=new d();class F extends e{constructor(l){const a9=c;super(l),this['propertyNameMapping']={},this[a9(0x11c)]={};}['load'](l,m,n,o){const aa=c,p=this,q=new g(this['manager']);q['setPath'](this['path']),q[aa(0x117)](aa(0x118)),q['setRequestHeader'](this['requestHeader']),q['setWithCredentials'](this['withCredentials']),q['load'](l,function(r){try{m(p['parse'](r));}catch(s){o?o(s):console['error'](s),p['manager']['itemError'](l);}},n,o);}['setPropertyNameMapping'](l){this['propertyNameMapping']=l;}['setCustomPropertyNameMapping'](l){this['customPropertyMapping']=l;}['parse'](l){const ao=c;function m(U,W=0x0){const ab=c,X=/^ply([\s\S]*)end_header(\r\n|\r|\n)/;let Y='';const Z=X[ab(0x11f)](U);Z!==null&&(Y=Z[0x1]);const a0={'comments':[],'elements':[],'headerLength':W,'objInfo':''},a1=Y['split'](/\r\n|\r|\n/);let a2;function a3(a4,a5){const ac=ab,a6={'type':a4[0x0]};return a6['type']==='list'?(a6[ac(0x11b)]=a4[0x3],a6['countType']=a4[0x1],a6['itemType']=a4[0x2]):a6[ac(0x11b)]=a4[0x1],a6[ac(0x11b)]in a5&&(a6['name']=a5[a6[ac(0x11b)]]),a6;}for(let a4=0x0;a4<a1['length'];a4++){let a5=a1[a4];if(a5=a5['trim'](),a5==='')continue;const a6=a5['split'](/\s+/),a7=a6['shift']();switch(a5=a6['join']('\x20'),a7){case'format':a0[ab(0x10f)]=a6[0x0],a0['version']=a6[0x1];break;case'comment':a0[ab(0x127)]['push'](a5);break;case'element':a2!==void 0x0&&a0['elements']['push'](a2),a2={},a2['name']=a6[0x0],a2['count']=parseInt(a6[0x1]),a2['properties']=[];break;case ab(0x119):a2['properties']['push'](a3(a6,T['propertyNameMapping']));break;case'obj_info':a0['objInfo']=a5;break;default:console['log'](ab(0x12d),a7,a6);}}return a2!==void 0x0&&a0['elements']['push'](a2),a0;}function o(U,W){const ad=c;switch(W){case'char':case'uchar':case'short':case'ushort':case'int':case'uint':case ad(0x134):case'uint8':case'int16':case ad(0x12e):case ad(0x112):case'uint32':return parseInt(U);case'float':case'double':case'float32':case'float64':return parseFloat(U);}}function p(U,W){const ae=c,X={};for(let Y=0x0;Y<U['length'];Y++){if(W['empty']())return null;if(U[Y]['type']===ae(0x115)){const Z=[],a0=o(W['next'](),U[Y]['countType']);for(let a1=0x0;a1<a0;a1++){if(W['empty']())return null;Z[ae(0x10d)](o(W['next'](),U[Y]['itemType']));}X[U[Y]['name']]=Z;}else X[U[Y]['name']]=o(W['next'](),U[Y]['type']);}return X;}function q(){const U={'indices':[],'vertices':[],'normals':[],'uvs':[],'faceVertexUvs':[],'colors':[],'faceVertexColors':[]};for(const W of Object['keys'](T['customPropertyMapping']))U[W]=[];return U;}function D(U){const af=c,W=U['map'](Y=>Y['name']);function X(Y){for(let Z=0x0,a0=Y['length'];Z<a0;Z++){const a1=Y[Z];if(W['includes'](a1))return a1;}return null;}return{'attrX':X(['x','px','posx'])||'x','attrY':X(['y','py','posy'])||'y','attrZ':X(['z','pz',af(0x130)])||'z','attrNX':X(['nx',af(0x10c)]),'attrNY':X(['ny','normaly']),'attrNZ':X(['nz','normalz']),'attrS':X(['s','u',af(0x121),'tx']),'attrT':X(['t','v','texture_v','ty']),'attrR':X([af(0x137),'diffuse_red','r','diffuse_r']),'attrG':X(['green','diffuse_green','g','diffuse_g']),'attrB':X(['blue','diffuse_blue','b','diffuse_b'])};}function E(U,W){const ag=c,X=q(),Y=/end_header\s+(\S[\s\S]*\S|\S)\s*$/;let Z,a0;(a0=Y['exec'](U))!==null?Z=a0[0x1]['split'](/\s+/):Z=[];const a1=new L(Z);a7:for(let a2=0x0;a2<W['elements']['length'];a2++){const a3=W['elements'][a2],a4=D(a3['properties']);for(let a5=0x0;a5<a3[ag(0x11e)];a5++){const a6=p(a3['properties'],a1);if(!a6)break a7;H(X,a3[ag(0x11b)],a6,a4);}}return G(X);}function G(U){const ah=c;let W=new i();U['indices']['length']>0x0&&W['setIndex'](U['indices']),W[ah(0x114)]('position',new k(U['vertices'],0x3)),U[ah(0x135)]['length']>0x0&&W['setAttribute']('normal',new k(U['normals'],0x3)),U['uvs']['length']>0x0&&W[ah(0x114)]('uv',new k(U[ah(0x113)],0x2)),U['colors'][ah(0x125)]>0x0&&W['setAttribute']('color',new k(U['colors'],0x3)),(U['faceVertexUvs']['length']>0x0||U['faceVertexColors']['length']>0x0)&&(W=W['toNonIndexed'](),U['faceVertexUvs']['length']>0x0&&W['setAttribute']('uv',new k(U['faceVertexUvs'],0x2)),U['faceVertexColors']['length']>0x0&&W['setAttribute'](ah(0x139),new k(U['faceVertexColors'],0x3)));for(const X of Object[ah(0x12b)](T[ah(0x11c)]))U[X]['length']>0x0&&W['setAttribute'](X,new k(U[X],T['customPropertyMapping'][X]['length']));return W['computeBoundingSphere'](),W;}function H(U,W,X,Y){const ai=c;if(W==='vertex'){U['vertices'][ai(0x10d)](X[Y[ai(0x136)]],X[Y[ai(0x108)]],X[Y['attrZ']]),Y['attrNX']!==null&&Y['attrNY']!==null&&Y['attrNZ']!==null&&U['normals']['push'](X[Y['attrNX']],X[Y['attrNY']],X[Y['attrNZ']]),Y['attrS']!==null&&Y['attrT']!==null&&U['uvs']['push'](X[Y['attrS']],X[Y['attrT']]),Y['attrR']!==null&&Y['attrG']!==null&&Y['attrB']!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y['attrB']]/0xff,S),U['colors']['push'](f['r'],f['g'],f['b']));for(const Z of Object['keys'](T['customPropertyMapping']))for(const a0 of T[ai(0x11c)][Z])U[Z]['push'](X[a0]);}else{if(W==='face'){const a1=X['vertex_indices']||X[ai(0x10e)],a2=X[ai(0x133)];a1[ai(0x125)]===0x3?(U['indices']['push'](a1[0x0],a1[0x1],a1[0x2]),a2&&a2['length']===0x6&&(U['faceVertexUvs']['push'](a2[0x0],a2[0x1]),U['faceVertexUvs'][ai(0x10d)](a2[0x2],a2[0x3]),U['faceVertexUvs']['push'](a2[0x4],a2[0x5]))):a1['length']===0x4&&(U['indices']['push'](a1[0x0],a1[0x1],a1[0x3]),U['indices']['push'](a1[0x1],a1[0x2],a1[0x3])),Y['attrR']!==null&&Y['attrG']!==null&&Y['attrB']!==null&&(f['setRGB'](X[Y['attrR']]/0xff,X[Y['attrG']]/0xff,X[Y[ai(0x109)]]/0xff,S),U['faceVertexColors']['push'](f['r'],f['g'],f['b']),U[ai(0x123)][ai(0x10d)](f['r'],f['g'],f['b']),U[ai(0x123)]['push'](f['r'],f['g'],f['b']));}}}function J(U,W){const aj=c,X={};let Y=0x0;for(let Z=0x0;Z<W[aj(0x125)];Z++){const a0=W[Z],a1=a0['valueReader'];if(a0['type']==='list'){const a2=[],a3=a0['countReader']['read'](U+Y);Y+=a0['countReader']['size'];for(let a4=0x0;a4<a3;a4++)a2['push'](a1['read'](U+Y)),Y+=a1['size'];X[a0['name']]=a2;}else X[a0['name']]=a1['read'](U+Y),Y+=a1['size'];}return[X,Y];}function K(U,W,X){const al=c;function Y(Z,a0,a1){const ak=c;switch(a0){case'int8':case ak(0x128):return{'read':a2=>Z['getInt8'](a2),'size':0x1};case'uint8':case'uchar':return{'read':a2=>Z['getUint8'](a2),'size':0x1};case'int16':case'short':return{'read':a2=>Z['getInt16'](a2,a1),'size':0x2};case'uint16':case'ushort':return{'read':a2=>Z['getUint16'](a2,a1),'size':0x2};case ak(0x112):case'int':return{'read':a2=>Z[ak(0x10b)](a2,a1),'size':0x4};case ak(0x124):case ak(0x132):return{'read':a2=>Z['getUint32'](a2,a1),'size':0x4};case'float32':case'float':return{'read':a2=>Z['getFloat32'](a2,a1),'size':0x4};case'float64':case'double':return{'read':a2=>Z['getFloat64'](a2,a1),'size':0x8};}}for(let Z=0x0,a0=U[al(0x125)];Z<a0;Z++){const a1=U[Z];a1['type']===al(0x115)?(a1['countReader']=Y(W,a1['countType'],X),a1['valueReader']=Y(W,a1['itemType'],X)):a1['valueReader']=Y(W,a1['type'],X);}}function N(U,W){const am=c,X=q(),Y=W['format']==='binary_little_endian',Z=new DataView(U,W['headerLength']);let a0,a1=0x0;for(let a2=0x0;a2<W['elements']['length'];a2++){const a3=W['elements'][a2],a4=a3[am(0x12f)],a5=D(a4);K(a4,Z,Y);for(let a6=0x0;a6<a3['count'];a6++){a0=J(a1,a4),a1+=a0[0x1];const a7=a0[0x0];H(X,a3[am(0x11b)],a7,a5);}}return G(X);}function O(U){const an=c;let W=0x0,X=!0x0,Y='';const Z=[],a0=new TextDecoder()['decode'](U[an(0x122)](0x0,0x5)),a1=/^ply\r\n/[an(0x126)](a0);do{const a2=String['fromCharCode'](U[W++]);a2!=='\x0a'&&a2!=='\x0d'?Y+=a2:(Y===an(0x110)&&(X=!0x1),Y!==''&&(Z['push'](Y),Y=''));}while(X&&W<U['length']);return a1===!0x0&&W++,{'headerText':Z['join']('\x0d')+'\x0d','headerLength':W};}let Q;const T=this;if(l instanceof ArrayBuffer){const U=new Uint8Array(l),{headerText:W,headerLength:X}=O(U),Y=m(W,X);if(Y['format']===ao(0x116)){const Z=new TextDecoder()[ao(0x138)](U);Q=E(Z,Y);}else Q=N(l,Y);}else Q=E(l,m(l));return Q;}}class L{constructor(l){const ap=c;this[ap(0x12a)]=l,this['i']=0x0;}[aq(0x129)](){return this['i']>=this['arr']['length'];}['next'](){return this['arr'][this['i']++];}}export{F as PLYLoader};
@@ -1 +1 @@
1
- function a(){const ar=['error','exec','1BBMxTb','8MTCFxy','51681iZikmx','setResponseType','4pvazhZ','push','4211352MDUroh','1857486dYLqsd','load','314448SYtFFG','873328SksLOL','normal','setPath','24865fVyxrC','30Wihfht','2679809EyMDvW','charCodeAt','setAttribute','length','path'];a=function(){return ar;};return a();}const al=b;function b(c,d){c=c-0x115;const e=a();let f=e[c];return f;}(function(l,m){const ak=b,n=l();while(!![]){try{const o=-parseInt(ak(0x124))/0x1*(-parseInt(ak(0x118))/0x2)+-parseInt(ak(0x117))/0x3+-parseInt(ak(0x128))/0x4*(-parseInt(ak(0x11b))/0x5)+-parseInt(ak(0x115))/0x6+-parseInt(ak(0x126))/0x7*(-parseInt(ak(0x125))/0x8)+-parseInt(ak(0x12a))/0x9+parseInt(ak(0x11c))/0xa*(parseInt(ak(0x11d))/0xb);if(o===m)break;else n['push'](n['shift']());}catch(p){n['push'](n['shift']());}}}(a,0x48a50));import{L as c,F as d,B as e,C as f,S as g,g as h,a as i,V as j}from'./ModelViewer.js';import'vue';import'./index7.js';class Y extends c{constructor(l){super(l);}[al(0x116)](l,n,o,p){const am=al,q=this,r=new d(this['manager']);r[am(0x11a)](this[am(0x121)]),r[am(0x127)]('arraybuffer'),r['setRequestHeader'](this['requestHeader']),r['setWithCredentials'](this['withCredentials']),r['load'](l,function(s){const an=am;try{n(q['parse'](s));}catch(t){p?p(t):console[an(0x122)](t),q['manager']['itemError'](l);}},o,p);}['parse'](l){function n(u){const v=new DataView(u),w=0x20/0x8*0x3+0x20/0x8*0x3*0x3+0x10/0x8,x=v['getUint32'](0x50,!0x0);if(0x50+0x20/0x8+x*w===v['byteLength'])return!0x0;const A=[0x73,0x6f,0x6c,0x69,0x64];for(let B=0x0;B<0x5;B++)if(o(A,v,B))return!0x1;return!0x0;}function o(u,v,w){for(let x=0x0,A=u['length'];x<A;x++)if(u[x]!==v['getUint8'](w+x))return!0x1;return!0x0;}function p(J){const ao=b,K=new DataView(J),M=K['getUint32'](0x50,!0x0);let O,Q,W,X=!0x1,Z,a0,a1,a2,a3;for(let aa=0x0;aa<0x50-0xa;aa++)K['getUint32'](aa,!0x1)==0x434f4c4f&&K['getUint8'](aa+0x4)==0x52&&K['getUint8'](aa+0x5)==0x3d&&(X=!0x0,Z=new Float32Array(M*0x3*0x3),a0=K['getUint8'](aa+0x6)/0xff,a1=K['getUint8'](aa+0x7)/0xff,a2=K['getUint8'](aa+0x8)/0xff,a3=K['getUint8'](aa+0x9)/0xff);const a4=0x54,a5=0xc*0x4+0x2,a6=new e(),a7=new Float32Array(M*0x3*0x3),a8=new Float32Array(M*0x3*0x3),a9=new f();for(let ab=0x0;ab<M;ab++){const ac=a4+ab*a5,ad=K['getFloat32'](ac,!0x0),ae=K['getFloat32'](ac+0x4,!0x0),af=K['getFloat32'](ac+0x8,!0x0);if(X){const ag=K['getUint16'](ac+0x30,!0x0);ag&0x8000?(O=a0,Q=a1,W=a2):(O=(ag&0x1f)/0x1f,Q=(ag>>0x5&0x1f)/0x1f,W=(ag>>0xa&0x1f)/0x1f);}for(let ah=0x1;ah<=0x3;ah++){const ai=ac+ah*0xc,aj=ab*0x3*0x3+(ah-0x1)*0x3;a7[aj]=K['getFloat32'](ai,!0x0),a7[aj+0x1]=K['getFloat32'](ai+0x4,!0x0),a7[aj+0x2]=K['getFloat32'](ai+0x8,!0x0),a8[aj]=ad,a8[aj+0x1]=ae,a8[aj+0x2]=af,X&&(a9['setRGB'](O,Q,W,g),Z[aj]=a9['r'],Z[aj+0x1]=a9['g'],Z[aj+0x2]=a9['b']);}}return a6['setAttribute']('position',new h(a7,0x3)),a6['setAttribute'](ao(0x119),new h(a8,0x3)),X&&(a6[ao(0x11f)]('color',new h(Z,0x3)),a6['hasColors']=!0x0,a6['alpha']=a3),a6;}function q(u){const ap=b,E=new e(),J=/solid([\s\S]*?)endsolid/g,K=/facet([\s\S]*?)endfacet/g,M=/solid\s(.+)/;let O=0x0;const Q=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/['source'],W=new RegExp('vertex'+Q+Q+Q,'g'),X=new RegExp('normal'+Q+Q+Q,'g'),Z=[],a0=[],a1=[],a2=new j();let a3,a4=0x0,a5=0x0,a6=0x0;for(;(a3=J['exec'](u))!==null;){a5=a6;const a7=a3[0x0],a8=(a3=M['exec'](a7))!==null?a3[0x1]:'';for(a1['push'](a8);(a3=K['exec'](a7))!==null;){let ab=0x0,ac=0x0;const ad=a3[0x0];for(;(a3=X[ap(0x123)](ad))!==null;)a2['x']=parseFloat(a3[0x1]),a2['y']=parseFloat(a3[0x2]),a2['z']=parseFloat(a3[0x3]),ac++;for(;(a3=W['exec'](ad))!==null;)Z[ap(0x129)](parseFloat(a3[0x1]),parseFloat(a3[0x2]),parseFloat(a3[0x3])),a0['push'](a2['x'],a2['y'],a2['z']),ab++,a6++;ac!==0x1&&console['error']('THREE.STLLoader:\x20Something\x20isn\x27t\x20right\x20with\x20the\x20normal\x20of\x20face\x20number\x20'+O),ab!==0x3&&console['error']('THREE.STLLoader:\x20Something\x20isn\x27t\x20right\x20with\x20the\x20vertices\x20of\x20face\x20number\x20'+O),O++;}const a9=a5,aa=a6-a5;E['userData']['groupNames']=a1,E['addGroup'](a9,aa,a4),a4++;}return E['setAttribute']('position',new i(Z,0x3)),E['setAttribute']('normal',new i(a0,0x3)),E;}function r(u){return typeof u!='string'?new TextDecoder()['decode'](u):u;}function s(u){const aq=b;if(typeof u=='string'){const v=new Uint8Array(u[aq(0x120)]);for(let w=0x0;w<u['length'];w++)v[w]=u[aq(0x11e)](w)&0xff;return v['buffer']||v;}else return u;}const t=s(l);return n(t)?p(t):q(r(l));}}export{Y as STLLoader};
1
+ (function(l,m){const ak=b,n=l();while(!![]){try{const o=parseInt(ak(0xba))/0x1*(parseInt(ak(0xaf))/0x2)+parseInt(ak(0xbd))/0x3*(-parseInt(ak(0xa6))/0x4)+-parseInt(ak(0xab))/0x5*(-parseInt(ak(0xae))/0x6)+-parseInt(ak(0xb5))/0x7*(-parseInt(ak(0xbc))/0x8)+-parseInt(ak(0xb7))/0x9+-parseInt(ak(0xb3))/0xa+parseInt(ak(0xa4))/0xb;if(o===m)break;else n['push'](n['shift']());}catch(p){n['push'](n['shift']());}}}(a,0x56ea5));import{L as c,F as d,B as e,C as f,S as g,g as h,a as i,V as j}from'./ModelViewer.js';import'vue';function b(c,d){c=c-0xa4;const e=a();let f=e[c];return f;}import'./index7.js';class Y extends c{constructor(l){super(l);}['load'](l,n,o,p){const al=b,q=this,r=new d(this['manager']);r['setPath'](this['path']),r['setResponseType'](al(0xad)),r['setRequestHeader'](this[al(0xbb)]),r['setWithCredentials'](this['withCredentials']),r['load'](l,function(s){const am=al;try{n(q['parse'](s));}catch(t){p?p(t):console['error'](t),q[am(0xb9)]['itemError'](l);}},o,p);}['parse'](l){function n(u){const an=b,v=new DataView(u),w=0x20/0x8*0x3+0x20/0x8*0x3*0x3+0x10/0x8,x=v[an(0xa9)](0x50,!0x0);if(0x50+0x20/0x8+x*w===v[an(0xa7)])return!0x0;const A=[0x73,0x6f,0x6c,0x69,0x64];for(let B=0x0;B<0x5;B++)if(o(A,v,B))return!0x1;return!0x0;}function o(u,v,w){for(let x=0x0,A=u['length'];x<A;x++)if(u[x]!==v['getUint8'](w+x))return!0x1;return!0x0;}function p(J){const ao=b,K=new DataView(J),M=K[ao(0xa9)](0x50,!0x0);let O,Q,W,X=!0x1,Z,a0,a1,a2,a3;for(let aa=0x0;aa<0x50-0xa;aa++)K['getUint32'](aa,!0x1)==0x434f4c4f&&K['getUint8'](aa+0x4)==0x52&&K['getUint8'](aa+0x5)==0x3d&&(X=!0x0,Z=new Float32Array(M*0x3*0x3),a0=K['getUint8'](aa+0x6)/0xff,a1=K['getUint8'](aa+0x7)/0xff,a2=K['getUint8'](aa+0x8)/0xff,a3=K[ao(0xbf)](aa+0x9)/0xff);const a4=0x54,a5=0xc*0x4+0x2,a6=new e(),a7=new Float32Array(M*0x3*0x3),a8=new Float32Array(M*0x3*0x3),a9=new f();for(let ab=0x0;ab<M;ab++){const ac=a4+ab*a5,ad=K['getFloat32'](ac,!0x0),ae=K['getFloat32'](ac+0x4,!0x0),af=K['getFloat32'](ac+0x8,!0x0);if(X){const ag=K['getUint16'](ac+0x30,!0x0);ag&0x8000?(O=a0,Q=a1,W=a2):(O=(ag&0x1f)/0x1f,Q=(ag>>0x5&0x1f)/0x1f,W=(ag>>0xa&0x1f)/0x1f);}for(let ah=0x1;ah<=0x3;ah++){const ai=ac+ah*0xc,aj=ab*0x3*0x3+(ah-0x1)*0x3;a7[aj]=K['getFloat32'](ai,!0x0),a7[aj+0x1]=K[ao(0xac)](ai+0x4,!0x0),a7[aj+0x2]=K['getFloat32'](ai+0x8,!0x0),a8[aj]=ad,a8[aj+0x1]=ae,a8[aj+0x2]=af,X&&(a9['setRGB'](O,Q,W,g),Z[aj]=a9['r'],Z[aj+0x1]=a9['g'],Z[aj+0x2]=a9['b']);}}return a6['setAttribute'](ao(0xc0),new h(a7,0x3)),a6['setAttribute']('normal',new h(a8,0x3)),X&&(a6['setAttribute'](ao(0xb1),new h(Z,0x3)),a6['hasColors']=!0x0,a6['alpha']=a3),a6;}function q(u){const ap=b,E=new e(),J=/solid([\s\S]*?)endsolid/g,K=/facet([\s\S]*?)endfacet/g,M=/solid\s(.+)/;let O=0x0;const Q=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/[ap(0xa8)],W=new RegExp('vertex'+Q+Q+Q,'g'),X=new RegExp(ap(0xb0)+Q+Q+Q,'g'),Z=[],a0=[],a1=[],a2=new j();let a3,a4=0x0,a5=0x0,a6=0x0;for(;(a3=J['exec'](u))!==null;){a5=a6;const a7=a3[0x0],a8=(a3=M[ap(0xaa)](a7))!==null?a3[0x1]:'';for(a1['push'](a8);(a3=K['exec'](a7))!==null;){let ab=0x0,ac=0x0;const ad=a3[0x0];for(;(a3=X['exec'](ad))!==null;)a2['x']=parseFloat(a3[0x1]),a2['y']=parseFloat(a3[0x2]),a2['z']=parseFloat(a3[0x3]),ac++;for(;(a3=W['exec'](ad))!==null;)Z['push'](parseFloat(a3[0x1]),parseFloat(a3[0x2]),parseFloat(a3[0x3])),a0['push'](a2['x'],a2['y'],a2['z']),ab++,a6++;ac!==0x1&&console['error']('THREE.STLLoader:\x20Something\x20isn\x27t\x20right\x20with\x20the\x20normal\x20of\x20face\x20number\x20'+O),ab!==0x3&&console[ap(0xa5)]('THREE.STLLoader:\x20Something\x20isn\x27t\x20right\x20with\x20the\x20vertices\x20of\x20face\x20number\x20'+O),O++;}const a9=a5,aa=a6-a5;E[ap(0xbe)]['groupNames']=a1,E['addGroup'](a9,aa,a4),a4++;}return E['setAttribute']('position',new i(Z,0x3)),E[ap(0xb8)](ap(0xb0),new i(a0,0x3)),E;}function r(u){return typeof u!='string'?new TextDecoder()['decode'](u):u;}function s(u){const aq=b;if(typeof u==aq(0xb6)){const v=new Uint8Array(u['length']);for(let w=0x0;w<u[aq(0xb4)];w++)v[w]=u['charCodeAt'](w)&0xff;return v[aq(0xb2)]||v;}else return u;}const t=s(l);return n(t)?p(t):q(r(l));}}export{Y as STLLoader};function a(){const ar=['3gIxyai','userData','getUint8','position','6639754vaPvBR','error','2188892jOKOmF','byteLength','source','getUint32','exec','5GQwYCa','getFloat32','arraybuffer','3767748AryupP','6gDjxEw','normal','color','buffer','2458510CvUpmR','length','1393EchRKV','string','3594195gLySvd','setAttribute','manager','72255krVZWr','requestHeader','4024iNFDPE'];a=function(){return ar;};return a();}
@@ -1 +1 @@
1
- const am=d;(function(a4,a5){const ak=d,a6=a4();while(!![]){try{const a7=-parseInt(ak(0xcd))/0x1+-parseInt(ak(0xcb))/0x2+-parseInt(ak(0xac))/0x3+parseInt(ak(0xc1))/0x4*(parseInt(ak(0xd5))/0x5)+parseInt(ak(0xbc))/0x6+-parseInt(ak(0xb3))/0x7*(-parseInt(ak(0xb4))/0x8)+parseInt(ak(0xb7))/0x9*(-parseInt(ak(0xc6))/0xa);if(a7===a5)break;else a6['push'](a6['shift']());}catch(a8){a6['push'](a6['shift']());}}}(a,0x6b864));import{L as e,h as i,F as l,G as n,c as o,D as r,A as s,B as t,f as a0,a as a1,i as a2,T,C as a3}from'./ModelViewer.js';import'vue';function a(){const aC=['getFloat32','elements','materials','Mesh\x20Version:\x20','\x20\x20\x20Additive\x20Blending','position','21lZEveg','2335448MkflGk','material','readByte','8262kNftHh','meshes','\x20\x20\x20Faces:\x20','length','manager','2681526bGVCwo','index','\x20\x20\x20SpecularMap','specularMap','hexId','164eGVkpl','load','readMap','mesh','\x20\x20\x20Wireframe\x20Thickness:\x20','4520qTZMCz','setIndex','data','wireframe','readString','222834aGKtRO','readChunk','852653UhOAcD','Material','readColor','requestHeader','push','debugMessage','specular','readFile','91800BKLOVv','\x20\x20\x20BumpMap','readMaterialEntry','\x20\x20Transparency\x20:\x20','readWord','scale','\x20meshes','\x20\x20\x20DoubleSided','readFloat','Unknown\x20named\x20object\x20chunk:\x20','768144eBLlQs'];a=function(){return aC;};return a();}import'./index7.js';function d(b,c){b=b-0xa3;const e=a();let f=e[b];return f;}class Me extends e{constructor(a4){const al=d;super(a4),this['debug']=!0x1,this['group']=null,this['materials']=[],this[al(0xb8)]=[];}[am(0xc2)](a4,a5,a6,a7){const an=am,a8=this,a9=this['path']===''?i['extractUrlBase'](a4):this['path'],aa=new l(this['manager']);aa['setPath'](this['path']),aa['setResponseType']('arraybuffer'),aa['setRequestHeader'](this[an(0xd0)]),aa['setWithCredentials'](this['withCredentials']),aa['load'](a4,function(ab){try{a5(a8['parse'](ab,a9));}catch(ac){a7?a7(ac):console['error'](ac),a8['manager']['itemError'](a4);}},a6,a7);}['parse'](a4,a5){const ao=am;this['group']=new n(),this[ao(0xaf)]=[],this['meshes']=[],this[ao(0xd4)](a4,a5);for(let a6=0x0;a6<this['meshes']['length'];a6++)this['group']['add'](this['meshes'][a6]);return this['group'];}['readFile'](a4,a5){const ap=am,a6=new DataView(a4),a7=new h(a6,0x0,this['debugMessage']);if(a7['id']===E||a7['id']===w||a7['id']===F){let a8=a7['readChunk']();for(;a8;){if(a8['id']===I){const a9=a8['readDWord']();this[ap(0xd2)]('3DS\x20file\x20version:\x20'+a9);}else a8['id']===P?this['readMeshData'](a8,a5):this[ap(0xd2)]('Unknown\x20main\x20chunk:\x20'+a8['hexId']);a8=a7['readChunk']();}}this['debugMessage']('Parsed\x20'+this['meshes'][ap(0xba)]+ap(0xa8));}['readMeshData'](a4,a5){const aq=am;let a6=a4['readChunk']();for(;a6;){if(a6['id']===N){const a7=+a6['readDWord']();this['debugMessage'](aq(0xb0)+a7);}else{if(a6['id']===B){const a8=a6['readFloat']();this['debugMessage']('Master\x20scale:\x20'+a8),this['group'][aq(0xa7)]['set'](a8,a8,a8);}else a6['id']===ae?(this['debugMessage']('Named\x20Object'),this['readNamedObject'](a6)):a6['id']===U?(this['debugMessage'](aq(0xce)),this[aq(0xa4)](a6,a5)):this['debugMessage']('Unknown\x20MDATA\x20chunk:\x20'+a6['hexId']);}a6=a4['readChunk']();}}['readNamedObject'](a4){const ar=am,a5=a4['readString']();let a6=a4['readChunk']();for(;a6;){if(a6['id']===ie){const a7=this['readMesh'](a6);a7['name']=a5,this['meshes'][ar(0xd1)](a7);}else this['debugMessage'](ar(0xab)+a6[ar(0xc0)]);a6=a4['readChunk']();}}[am(0xa4)](a4,a5){const as=am;let a6=a4['readChunk']();const a7=new o();for(;a6;){if(a6['id']===L)a7['name']=a6['readString'](),this['debugMessage']('\x20\x20\x20Name:\x20'+a7['name']);else{if(a6['id']===j)this['debugMessage']('\x20\x20\x20Wireframe'),a7[as(0xc9)]=!0x0;else{if(a6['id']===z){const a8=a6['readByte']();a7['wireframeLinewidth']=a8,this['debugMessage'](as(0xc5)+a8);}else{if(a6['id']===Y)a7['side']=r,this['debugMessage'](as(0xa9));else{if(a6['id']===X)this['debugMessage'](as(0xb1)),a7['blending']=s;else{if(a6['id']===v)this[as(0xd2)]('\x20\x20\x20Diffuse\x20Color'),a7['color']=this[as(0xcf)](a6);else{if(a6['id']===G)this['debugMessage']('\x20\x20\x20Specular\x20Color'),a7[as(0xd3)]=this['readColor'](a6);else{if(a6['id']===W)this['debugMessage']('\x20\x20\x20Ambient\x20color'),a7['color']=this[as(0xcf)](a6);else{if(a6['id']===V){const a9=this['readPercentage'](a6);a7['shininess']=a9*0x64,this['debugMessage']('\x20\x20\x20Shininess\x20:\x20'+a9);}else{if(a6['id']===H){const aa=this['readPercentage'](a6);a7['opacity']=0x1-aa,this['debugMessage'](as(0xa5)+aa),a7['transparent']=a7['opacity']<0x1;}else a6['id']===q?(this['debugMessage']('\x20\x20\x20ColorMap'),a7['map']=this['readMap'](a6,a5)):a6['id']===Z?(this['debugMessage'](as(0xa3)),a7['bumpMap']=this['readMap'](a6,a5)):a6['id']===J?(this[as(0xd2)]('\x20\x20\x20OpacityMap'),a7['alphaMap']=this['readMap'](a6,a5)):a6['id']===K?(this['debugMessage'](as(0xbe)),a7[as(0xbf)]=this[as(0xc3)](a6,a5)):this[as(0xd2)]('\x20\x20\x20Unknown\x20material\x20chunk:\x20'+a6['hexId']);}}}}}}}}}a6=a4['readChunk']();}this['materials'][a7['name']]=a7;}['readMesh'](a4){const at=am;let a5=a4[at(0xcc)]();const a6=new t(),a7=new o(),a8=new a0(a6,a7);for(a8['name']=at(0xc4);a5;){if(a5['id']===re){const a9=a5['readWord']();this['debugMessage']('\x20\x20\x20Vertex:\x20'+a9);const aa=[];for(let ab=0x0;ab<a9;ab++)aa['push'](a5[at(0xaa)]()),aa['push'](a5['readFloat']()),aa['push'](a5['readFloat']());a6['setAttribute']('position',new a1(aa,0x3));}else{if(a5['id']===ne)this['readFaceArray'](a5,a8);else{if(a5['id']===de){const ac=a5['readWord']();this[at(0xd2)]('\x20\x20\x20UV:\x20'+ac);const ad=[];for(let af=0x0;af<ac;af++)ad['push'](a5[at(0xaa)]()),ad['push'](a5['readFloat']());a6['setAttribute']('uv',new a1(ad,0x2));}else{if(a5['id']===he){this[at(0xd2)]('\x20\x20\x20Transformation\x20Matrix\x20(TODO)');const ag=[];for(let aj=0x0;aj<0xc;aj++)ag[aj]=a5['readFloat']();const ah=new a2();ah[at(0xae)][0x0]=ag[0x0],ah['elements'][0x1]=ag[0x6],ah['elements'][0x2]=ag[0x3],ah['elements'][0x3]=ag[0x9],ah['elements'][0x4]=ag[0x2],ah['elements'][0x5]=ag[0x8],ah[at(0xae)][0x6]=ag[0x5],ah['elements'][0x7]=ag[0xb],ah['elements'][0x8]=ag[0x1],ah['elements'][0x9]=ag[0x7],ah['elements'][0xa]=ag[0x4],ah[at(0xae)][0xb]=ag[0xa],ah['elements'][0xc]=0x0,ah[at(0xae)][0xd]=0x0,ah[at(0xae)][0xe]=0x0,ah['elements'][0xf]=0x1,ah['transpose']();const ai=new a2();ai['copy'](ah)['invert'](),a6['applyMatrix4'](ai),ah['decompose'](a8['position'],a8['quaternion'],a8['scale']);}else this['debugMessage']('\x20\x20\x20Unknown\x20mesh\x20chunk:\x20'+a5['hexId']);}}}a5=a4['readChunk']();}return a6['computeVertexNormals'](),a8;}['readFaceArray'](a4,a5){const au=am,a6=a4['readWord']();this['debugMessage'](au(0xb9)+a6);const a7=[];for(let aa=0x0;aa<a6;++aa)a7['push'](a4[au(0xa6)](),a4['readWord'](),a4[au(0xa6)]()),a4['readWord']();a5['geometry'][au(0xc7)](a7);let a8=0x0,a9=0x0;for(;!a4['endOfChunk'];){const ab=a4['readChunk']();if(ab['id']===oe){this[au(0xd2)]('\x20\x20\x20\x20\x20\x20Material\x20Group');const ac=this['readMaterialGroup'](ab),ad=ac[au(0xbd)][au(0xba)]*0x3;a5['geometry']['addGroup'](a9,ad,a8),a9+=ad,a8++;const af=this['materials'][ac['name']];Array['isArray'](a5['material'])===!0x1&&(a5['material']=[]),af!==void 0x0&&a5['material']['push'](af);}else this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20face\x20array\x20chunk:\x20'+ab[au(0xc0)]);}a5['material']['length']===0x1&&(a5[au(0xb5)]=a5['material'][0x0]);}['readMap'](a4,a5){const av=am;let a6=a4['readChunk'](),a7={};const a8=new T(this[av(0xbb)]);for(a8['setPath'](this['resourcePath']||a5)['setCrossOrigin'](this['crossOrigin']);a6;){if(a6['id']===Q){const a9=a6['readString']();a7=a8['load'](a9),this['debugMessage']('\x20\x20\x20\x20\x20\x20File:\x20'+a5+a9);}else a6['id']===se?(a7['offset']['x']=a6['readFloat'](),this['debugMessage']('\x20\x20\x20\x20\x20\x20OffsetX:\x20'+a7['offset']['x'])):a6['id']===te?(a7['offset']['y']=a6[av(0xaa)](),this['debugMessage']('\x20\x20\x20\x20\x20\x20OffsetY:\x20'+a7['offset']['y'])):a6['id']===$?(a7['repeat']['x']=a6[av(0xaa)](),this['debugMessage']('\x20\x20\x20\x20\x20\x20RepeatX:\x20'+a7['repeat']['x'])):a6['id']===ee?(a7['repeat']['y']=a6['readFloat'](),this['debugMessage']('\x20\x20\x20\x20\x20\x20RepeatY:\x20'+a7['repeat']['y'])):this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20map\x20chunk:\x20'+a6[av(0xc0)]);a6=a4['readChunk']();}return a7;}['readMaterialGroup'](a4){const aw=am,a5=a4[aw(0xca)](),a6=a4['readWord']();this[aw(0xd2)]('\x20\x20\x20\x20\x20\x20\x20\x20\x20Name:\x20'+a5),this['debugMessage']('\x20\x20\x20\x20\x20\x20\x20\x20\x20Faces:\x20'+a6);const a7=[];for(let a8=0x0;a8<a6;++a8)a7[aw(0xd1)](a4['readWord']());return{'name':a5,'index':a7};}['readColor'](a4){const a5=a4['readChunk'](),a6=new a3();if(a5['id']===y||a5['id']===O){const a7=a5['readByte'](),a8=a5['readByte'](),a9=a5['readByte']();a6['setRGB'](a7/0xff,a8/0xff,a9/0xff),this['debugMessage']('\x20\x20\x20\x20\x20\x20Color:\x20'+a6['r']+',\x20'+a6['g']+',\x20'+a6['b']);}else{if(a5['id']===S||a5['id']===k){const aa=a5['readFloat'](),ab=a5['readFloat'](),ac=a5['readFloat']();a6['setRGB'](aa,ab,ac),this['debugMessage']('\x20\x20\x20\x20\x20\x20Color:\x20'+a6['r']+',\x20'+a6['g']+',\x20'+a6['b']);}else this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20color\x20chunk:\x20'+a5['hexId']);}return a6;}['readPercentage'](a4){const a5=a4['readChunk']();switch(a5['id']){case D:return a5['readShort']()/0x64;case R:return a5['readFloat']();default:return this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20percentage\x20chunk:\x20'+a5['hexId']),0x0;}}['debugMessage'](a4){this['debug']&&console['log'](a4);}}class h{constructor(a4,a5,a6){const ax=am;this['data']=a4,this['offset']=a5,this['position']=a5,this[ax(0xd2)]=a6,this['debugMessage']instanceof Function&&(this['debugMessage']=function(){}),this['id']=this['readWord'](),this['size']=this['readDWord'](),this['end']=this['offset']+this['size'],this['end']>a4['byteLength']&&this['debugMessage']('Bad\x20chunk\x20size\x20for\x20chunk\x20at\x20'+a5);}['readChunk'](){const ay=am;if(this['endOfChunk'])return null;try{const a4=new h(this['data'],this['position'],this['debugMessage']);return this['position']+=a4['size'],a4;}catch{return this['debugMessage']('Unable\x20to\x20read\x20chunk\x20at\x20'+this[ay(0xb2)]),null;}}get['hexId'](){return this['id']['toString'](0x10);}get['endOfChunk'](){return this['position']>=this['end'];}['readByte'](){const az=am,a4=this[az(0xc8)]['getUint8'](this['position'],!0x0);return this['position']+=0x1,a4;}['readFloat'](){const aA=am;try{const a4=this['data'][aA(0xad)](this['position'],!0x0);return this[aA(0xb2)]+=0x4,a4;}catch(a5){return this['debugMessage'](a5+'\x20'+this[aA(0xb2)]+'\x20'+this[aA(0xc8)]['byteLength']),0x0;}}['readInt'](){const a4=this['data']['getInt32'](this['position'],!0x0);return this['position']+=0x4,a4;}['readShort'](){const a4=this['data']['getInt16'](this['position'],!0x0);return this['position']+=0x2,a4;}['readDWord'](){const a4=this['data']['getUint32'](this['position'],!0x0);return this['position']+=0x4,a4;}['readWord'](){const a4=this['data']['getUint16'](this['position'],!0x0);return this['position']+=0x2,a4;}['readString'](){const aB=am;let a4='',a5=this[aB(0xb6)]();for(;a5;)a4+=String['fromCharCode'](a5),a5=this['readByte']();return a4;}}const F=0x4d4d,E=0x3daa,w=0xc23d,I=0x2,S=0x10,y=0x11,O=0x12,k=0x13,D=0x30,R=0x31,P=0x3d3d,N=0x3d3e,B=0x100,U=0xafff,L=0xa000,W=0xa010,v=0xa020,G=0xa030,V=0xa040,H=0xa050,Y=0xa081,X=0xa083,j=0xa085,z=0xa087,q=0xa200,J=0xa210,Z=0xa230,K=0xa204,Q=0xa300,$=0xa354,ee=0xa356,se=0xa358,te=0xa35a,ae=0x4000,ie=0x4100,re=0x4110,ne=0x4120,oe=0x4130,de=0x4140,he=0x4160;export{Me as TDSLoader};
1
+ const at=d;(function(a4,a5){const ak=d,a6=a4();while(!![]){try{const a7=-parseInt(ak(0x182))/0x1*(parseInt(ak(0x1a7))/0x2)+parseInt(ak(0x181))/0x3*(-parseInt(ak(0x173))/0x4)+-parseInt(ak(0x190))/0x5+-parseInt(ak(0x192))/0x6*(parseInt(ak(0x1a1))/0x7)+parseInt(ak(0x174))/0x8+parseInt(ak(0x1a9))/0x9*(-parseInt(ak(0x18f))/0xa)+parseInt(ak(0x1af))/0xb*(parseInt(ak(0x176))/0xc);if(a7===a5)break;else a6['push'](a6['shift']());}catch(a8){a6['push'](a6['shift']());}}}(a,0x9dcf6));import{L as e,h as i,F as l,G as n,c as o,D as r,A as s,B as t,f as a0,a as a1,i as a2,T,C as a3}from'./ModelViewer.js';import'vue';function d(b,c){b=b-0x16f;const e=a();let f=e[b];return f;}import'./index7.js';class Me extends e{constructor(a4){const al=d;super(a4),this[al(0x1a0)]=!0x1,this[al(0x19c)]=null,this['materials']=[],this['meshes']=[];}['load'](a4,a5,a6,a7){const am=d,a8=this,a9=this[am(0x18d)]===''?i['extractUrlBase'](a4):this['path'],aa=new l(this['manager']);aa['setPath'](this['path']),aa[am(0x194)](am(0x19e)),aa['setRequestHeader'](this['requestHeader']),aa['setWithCredentials'](this['withCredentials']),aa['load'](a4,function(ab){const an=am;try{a5(a8[an(0x18e)](ab,a9));}catch(ac){a7?a7(ac):console['error'](ac),a8['manager']['itemError'](a4);}},a6,a7);}['parse'](a4,a5){const ao=d;this['group']=new n(),this['materials']=[],this['meshes']=[],this['readFile'](a4,a5);for(let a6=0x0;a6<this['meshes']['length'];a6++)this[ao(0x19c)][ao(0x18c)](this['meshes'][a6]);return this['group'];}['readFile'](a4,a5){const ap=d,a6=new DataView(a4),a7=new h(a6,0x0,this[ap(0x17e)]);if(a7['id']===E||a7['id']===w||a7['id']===F){let a8=a7['readChunk']();for(;a8;){if(a8['id']===I){const a9=a8['readDWord']();this['debugMessage']('3DS\x20file\x20version:\x20'+a9);}else a8['id']===P?this['readMeshData'](a8,a5):this['debugMessage']('Unknown\x20main\x20chunk:\x20'+a8['hexId']);a8=a7[ap(0x179)]();}}this[ap(0x17e)]('Parsed\x20'+this['meshes']['length']+'\x20meshes');}['readMeshData'](a4,a5){const aq=d;let a6=a4['readChunk']();for(;a6;){if(a6['id']===N){const a7=+a6['readDWord']();this['debugMessage'](aq(0x19d)+a7);}else{if(a6['id']===B){const a8=a6['readFloat']();this['debugMessage'](aq(0x172)+a8),this['group']['scale']['set'](a8,a8,a8);}else a6['id']===ae?(this[aq(0x17e)]('Named\x20Object'),this['readNamedObject'](a6)):a6['id']===U?(this[aq(0x17e)]('Material'),this['readMaterialEntry'](a6,a5)):this['debugMessage']('Unknown\x20MDATA\x20chunk:\x20'+a6[aq(0x1a3)]);}a6=a4['readChunk']();}}['readNamedObject'](a4){const ar=d,a5=a4['readString']();let a6=a4['readChunk']();for(;a6;){if(a6['id']===ie){const a7=this[ar(0x16f)](a6);a7['name']=a5,this['meshes']['push'](a7);}else this['debugMessage']('Unknown\x20named\x20object\x20chunk:\x20'+a6['hexId']);a6=a4['readChunk']();}}['readMaterialEntry'](a4,a5){const as=d;let a6=a4['readChunk']();const a7=new o();for(;a6;){if(a6['id']===L)a7['name']=a6[as(0x19f)](),this['debugMessage']('\x20\x20\x20Name:\x20'+a7[as(0x188)]);else{if(a6['id']===j)this['debugMessage'](as(0x193)),a7['wireframe']=!0x0;else{if(a6['id']===z){const a8=a6[as(0x175)]();a7['wireframeLinewidth']=a8,this['debugMessage']('\x20\x20\x20Wireframe\x20Thickness:\x20'+a8);}else{if(a6['id']===Y)a7[as(0x186)]=r,this['debugMessage'](as(0x1ae));else{if(a6['id']===X)this['debugMessage']('\x20\x20\x20Additive\x20Blending'),a7[as(0x1aa)]=s;else{if(a6['id']===v)this['debugMessage']('\x20\x20\x20Diffuse\x20Color'),a7['color']=this['readColor'](a6);else{if(a6['id']===G)this['debugMessage'](as(0x17b)),a7[as(0x1ac)]=this['readColor'](a6);else{if(a6['id']===W)this['debugMessage']('\x20\x20\x20Ambient\x20color'),a7['color']=this['readColor'](a6);else{if(a6['id']===V){const a9=this['readPercentage'](a6);a7['shininess']=a9*0x64,this['debugMessage']('\x20\x20\x20Shininess\x20:\x20'+a9);}else{if(a6['id']===H){const aa=this['readPercentage'](a6);a7['opacity']=0x1-aa,this['debugMessage']('\x20\x20Transparency\x20:\x20'+aa),a7['transparent']=a7['opacity']<0x1;}else a6['id']===q?(this['debugMessage']('\x20\x20\x20ColorMap'),a7['map']=this['readMap'](a6,a5)):a6['id']===Z?(this['debugMessage']('\x20\x20\x20BumpMap'),a7['bumpMap']=this['readMap'](a6,a5)):a6['id']===J?(this['debugMessage']('\x20\x20\x20OpacityMap'),a7[as(0x17c)]=this['readMap'](a6,a5)):a6['id']===K?(this['debugMessage'](as(0x1a8)),a7[as(0x1a6)]=this['readMap'](a6,a5)):this[as(0x17e)]('\x20\x20\x20Unknown\x20material\x20chunk:\x20'+a6['hexId']);}}}}}}}}}a6=a4['readChunk']();}this['materials'][a7['name']]=a7;}[at(0x16f)](a4){const au=at;let a5=a4['readChunk']();const a6=new t(),a7=new o(),a8=new a0(a6,a7);for(a8[au(0x188)]='mesh';a5;){if(a5['id']===re){const a9=a5['readWord']();this['debugMessage']('\x20\x20\x20Vertex:\x20'+a9);const aa=[];for(let ab=0x0;ab<a9;ab++)aa['push'](a5['readFloat']()),aa['push'](a5['readFloat']()),aa[au(0x178)](a5['readFloat']());a6['setAttribute']('position',new a1(aa,0x3));}else{if(a5['id']===ne)this['readFaceArray'](a5,a8);else{if(a5['id']===de){const ac=a5['readWord']();this['debugMessage'](au(0x1ab)+ac);const ad=[];for(let af=0x0;af<ac;af++)ad[au(0x178)](a5[au(0x19b)]()),ad['push'](a5['readFloat']());a6['setAttribute']('uv',new a1(ad,0x2));}else{if(a5['id']===he){this['debugMessage']('\x20\x20\x20Transformation\x20Matrix\x20(TODO)');const ag=[];for(let aj=0x0;aj<0xc;aj++)ag[aj]=a5['readFloat']();const ah=new a2();ah['elements'][0x0]=ag[0x0],ah[au(0x199)][0x1]=ag[0x6],ah['elements'][0x2]=ag[0x3],ah['elements'][0x3]=ag[0x9],ah[au(0x199)][0x4]=ag[0x2],ah['elements'][0x5]=ag[0x8],ah['elements'][0x6]=ag[0x5],ah['elements'][0x7]=ag[0xb],ah['elements'][0x8]=ag[0x1],ah['elements'][0x9]=ag[0x7],ah[au(0x199)][0xa]=ag[0x4],ah[au(0x199)][0xb]=ag[0xa],ah['elements'][0xc]=0x0,ah[au(0x199)][0xd]=0x0,ah['elements'][0xe]=0x0,ah[au(0x199)][0xf]=0x1,ah['transpose']();const ai=new a2();ai[au(0x196)](ah)[au(0x17a)](),a6['applyMatrix4'](ai),ah['decompose'](a8['position'],a8['quaternion'],a8['scale']);}else this[au(0x17e)]('\x20\x20\x20Unknown\x20mesh\x20chunk:\x20'+a5['hexId']);}}}a5=a4['readChunk']();}return a6['computeVertexNormals'](),a8;}[at(0x187)](a4,a5){const av=at,a6=a4[av(0x17d)]();this['debugMessage']('\x20\x20\x20Faces:\x20'+a6);const a7=[];for(let aa=0x0;aa<a6;++aa)a7['push'](a4['readWord'](),a4['readWord'](),a4['readWord']()),a4['readWord']();a5[av(0x170)]['setIndex'](a7);let a8=0x0,a9=0x0;for(;!a4['endOfChunk'];){const ab=a4['readChunk']();if(ab['id']===oe){this[av(0x17e)]('\x20\x20\x20\x20\x20\x20Material\x20Group');const ac=this['readMaterialGroup'](ab),ad=ac['index']['length']*0x3;a5['geometry']['addGroup'](a9,ad,a8),a9+=ad,a8++;const af=this['materials'][ac['name']];Array['isArray'](a5['material'])===!0x1&&(a5['material']=[]),af!==void 0x0&&a5['material']['push'](af);}else this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20face\x20array\x20chunk:\x20'+ab['hexId']);}a5['material'][av(0x197)]===0x1&&(a5['material']=a5['material'][0x0]);}['readMap'](a4,a5){const aw=at;let a6=a4['readChunk'](),a7={};const a8=new T(this['manager']);for(a8['setPath'](this['resourcePath']||a5)[aw(0x185)](this['crossOrigin']);a6;){if(a6['id']===Q){const a9=a6['readString']();a7=a8[aw(0x191)](a9),this['debugMessage']('\x20\x20\x20\x20\x20\x20File:\x20'+a5+a9);}else a6['id']===se?(a7['offset']['x']=a6['readFloat'](),this[aw(0x17e)]('\x20\x20\x20\x20\x20\x20OffsetX:\x20'+a7['offset']['x'])):a6['id']===te?(a7['offset']['y']=a6['readFloat'](),this['debugMessage']('\x20\x20\x20\x20\x20\x20OffsetY:\x20'+a7[aw(0x177)]['y'])):a6['id']===$?(a7[aw(0x171)]['x']=a6['readFloat'](),this['debugMessage']('\x20\x20\x20\x20\x20\x20RepeatX:\x20'+a7['repeat']['x'])):a6['id']===ee?(a7['repeat']['y']=a6[aw(0x19b)](),this['debugMessage']('\x20\x20\x20\x20\x20\x20RepeatY:\x20'+a7['repeat']['y'])):this['debugMessage'](aw(0x18b)+a6['hexId']);a6=a4['readChunk']();}return a7;}[at(0x183)](a4){const ax=at,a5=a4['readString'](),a6=a4[ax(0x17d)]();this['debugMessage']('\x20\x20\x20\x20\x20\x20\x20\x20\x20Name:\x20'+a5),this[ax(0x17e)](ax(0x19a)+a6);const a7=[];for(let a8=0x0;a8<a6;++a8)a7['push'](a4['readWord']());return{'name':a5,'index':a7};}[at(0x1a2)](a4){const ay=at,a5=a4['readChunk'](),a6=new a3();if(a5['id']===y||a5['id']===O){const a7=a5[ay(0x175)](),a8=a5[ay(0x175)](),a9=a5['readByte']();a6[ay(0x1a5)](a7/0xff,a8/0xff,a9/0xff),this['debugMessage']('\x20\x20\x20\x20\x20\x20Color:\x20'+a6['r']+',\x20'+a6['g']+',\x20'+a6['b']);}else{if(a5['id']===S||a5['id']===k){const aa=a5['readFloat'](),ab=a5['readFloat'](),ac=a5['readFloat']();a6['setRGB'](aa,ab,ac),this[ay(0x17e)](ay(0x198)+a6['r']+',\x20'+a6['g']+',\x20'+a6['b']);}else this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20color\x20chunk:\x20'+a5['hexId']);}return a6;}['readPercentage'](a4){const a5=a4['readChunk']();switch(a5['id']){case D:return a5['readShort']()/0x64;case R:return a5['readFloat']();default:return this['debugMessage']('\x20\x20\x20\x20\x20\x20Unknown\x20percentage\x20chunk:\x20'+a5['hexId']),0x0;}}[at(0x17e)](a4){const az=at;this[az(0x1a0)]&&console['log'](a4);}}class h{constructor(a4,a5,a6){const aA=at;this[aA(0x18a)]=a4,this[aA(0x177)]=a5,this['position']=a5,this['debugMessage']=a6,this[aA(0x17e)]instanceof Function&&(this['debugMessage']=function(){}),this['id']=this['readWord'](),this['size']=this[aA(0x180)](),this['end']=this['offset']+this['size'],this[aA(0x184)]>a4['byteLength']&&this[aA(0x17e)]('Bad\x20chunk\x20size\x20for\x20chunk\x20at\x20'+a5);}[at(0x179)](){const aB=at;if(this['endOfChunk'])return null;try{const a4=new h(this['data'],this[aB(0x195)],this['debugMessage']);return this['position']+=a4['size'],a4;}catch{return this['debugMessage'](aB(0x1ad)+this['position']),null;}}get[at(0x1a3)](){return this['id']['toString'](0x10);}get[at(0x189)](){return this['position']>=this['end'];}['readByte'](){const aC=at,a4=this['data'][aC(0x1a4)](this['position'],!0x0);return this['position']+=0x1,a4;}['readFloat'](){const aD=at;try{const a4=this['data']['getFloat32'](this[aD(0x195)],!0x0);return this['position']+=0x4,a4;}catch(a5){return this['debugMessage'](a5+'\x20'+this['position']+'\x20'+this['data']['byteLength']),0x0;}}['readInt'](){const aE=at,a4=this[aE(0x18a)]['getInt32'](this['position'],!0x0);return this['position']+=0x4,a4;}['readShort'](){const aF=at,a4=this['data'][aF(0x17f)](this['position'],!0x0);return this['position']+=0x2,a4;}[at(0x180)](){const aG=at,a4=this[aG(0x18a)]['getUint32'](this[aG(0x195)],!0x0);return this['position']+=0x4,a4;}['readWord'](){const a4=this['data']['getUint16'](this['position'],!0x0);return this['position']+=0x2,a4;}['readString'](){const aH=at;let a4='',a5=this[aH(0x175)]();for(;a5;)a4+=String['fromCharCode'](a5),a5=this['readByte']();return a4;}}function a(){const aI=['data','\x20\x20\x20\x20\x20\x20Unknown\x20map\x20chunk:\x20','add','path','parse','30aGawqp','3224315fdJftR','load','6348234rqJYeh','\x20\x20\x20Wireframe','setResponseType','position','copy','length','\x20\x20\x20\x20\x20\x20Color:\x20','elements','\x20\x20\x20\x20\x20\x20\x20\x20\x20Faces:\x20','readFloat','group','Mesh\x20Version:\x20','arraybuffer','readString','debug','7KhxYHi','readColor','hexId','getUint8','setRGB','specularMap','52sOqJcO','\x20\x20\x20SpecularMap','2344878KSlypl','blending','\x20\x20\x20UV:\x20','specular','Unable\x20to\x20read\x20chunk\x20at\x20','\x20\x20\x20DoubleSided','33586421CRmJXJ','readMesh','geometry','repeat','Master\x20scale:\x20','473412wwWmYW','7855312jYoVjL','readByte','12uuHtAP','offset','push','readChunk','invert','\x20\x20\x20Specular\x20Color','alphaMap','readWord','debugMessage','getInt16','readDWord','3CuXODT','30229aNcSZY','readMaterialGroup','end','setCrossOrigin','side','readFaceArray','name','endOfChunk'];a=function(){return aI;};return a();}const F=0x4d4d,E=0x3daa,w=0xc23d,I=0x2,S=0x10,y=0x11,O=0x12,k=0x13,D=0x30,R=0x31,P=0x3d3d,N=0x3d3e,B=0x100,U=0xafff,L=0xa000,W=0xa010,v=0xa020,G=0xa030,V=0xa040,H=0xa050,Y=0xa081,X=0xa083,j=0xa085,z=0xa087,q=0xa200,J=0xa210,Z=0xa230,K=0xa204,Q=0xa300,$=0xa354,ee=0xa356,se=0xa358,te=0xa35a,ae=0x4000,ie=0x4100,re=0x4110,ne=0x4120,oe=0x4130,de=0x4140,he=0x4160;export{Me as TDSLoader};