@mlightcad/cad-html-core 1.7.8-preview.6 → 1.8.0-preview.0
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 +6 -4
- package/dist/cad-html-core.js +697 -697
- package/dist/cad-html-core.umd.cjs +19 -19
- package/lib/AcExHtmlAccess.d.ts +22 -22
- package/lib/AcExHtmlAccess.d.ts.map +1 -1
- package/lib/AcExHtmlAccess.js +32 -32
- package/lib/AcExHtmlAccess.js.map +1 -1
- package/lib/AcExHtmlBackground.d.ts +9 -9
- package/lib/AcExHtmlBackground.d.ts.map +1 -1
- package/lib/AcExHtmlBackground.js +11 -11
- package/lib/AcExHtmlBackground.js.map +1 -1
- package/lib/AcExHtmlBatchBinaryCodec.d.ts +38 -0
- package/lib/AcExHtmlBatchBinaryCodec.d.ts.map +1 -0
- package/lib/{AcExBatchBinaryCodec.js → AcExHtmlBatchBinaryCodec.js} +11 -11
- package/lib/AcExHtmlBatchBinaryCodec.js.map +1 -0
- package/lib/{AcExBatchBuffers.d.ts → AcExHtmlBatchBuffers.d.ts} +14 -14
- package/lib/AcExHtmlBatchBuffers.d.ts.map +1 -0
- package/lib/{AcExBatchBuffers.js → AcExHtmlBatchBuffers.js} +14 -14
- package/lib/AcExHtmlBatchBuffers.js.map +1 -0
- package/lib/{AcExBinaryIO.d.ts → AcExHtmlBinaryIO.d.ts} +4 -4
- package/lib/AcExHtmlBinaryIO.d.ts.map +1 -0
- package/lib/{AcExBinaryIO.js → AcExHtmlBinaryIO.js} +34 -34
- package/lib/AcExHtmlBinaryIO.js.map +1 -0
- package/lib/AcExHtmlBinaryText.d.ts +6 -6
- package/lib/AcExHtmlBinaryText.js +8 -8
- package/lib/{AcExChunkBinaryCodec.d.ts → AcExHtmlChunkBinaryCodec.d.ts} +12 -12
- package/lib/AcExHtmlChunkBinaryCodec.d.ts.map +1 -0
- package/lib/{AcExChunkBinaryCodec.js → AcExHtmlChunkBinaryCodec.js} +26 -26
- package/lib/AcExHtmlChunkBinaryCodec.js.map +1 -0
- package/lib/{AcExDocsUrl.d.ts → AcExHtmlDocsUrl.d.ts} +6 -6
- package/lib/AcExHtmlDocsUrl.d.ts.map +1 -0
- package/lib/{AcExDocsUrl.js → AcExHtmlDocsUrl.js} +8 -8
- package/lib/AcExHtmlDocsUrl.js.map +1 -0
- package/lib/AcExHtmlEmbeddedPackage.d.ts +20 -20
- package/lib/AcExHtmlEmbeddedPackage.d.ts.map +1 -1
- package/lib/AcExHtmlEmbeddedPackage.js +45 -45
- package/lib/AcExHtmlEmbeddedPackage.js.map +1 -1
- package/lib/{AcExExtentCluster.d.ts → AcExHtmlExtentCluster.d.ts} +5 -5
- package/lib/AcExHtmlExtentCluster.d.ts.map +1 -0
- package/lib/{AcExExtentCluster.js → AcExHtmlExtentCluster.js} +5 -5
- package/lib/AcExHtmlExtentCluster.js.map +1 -0
- package/lib/{AcExGeometryBatchSplit.d.ts → AcExHtmlGeometryBatchSplit.d.ts} +4 -4
- package/lib/AcExHtmlGeometryBatchSplit.d.ts.map +1 -0
- package/lib/{AcExGeometryBatchSplit.js → AcExHtmlGeometryBatchSplit.js} +7 -7
- package/lib/AcExHtmlGeometryBatchSplit.js.map +1 -0
- package/lib/AcExHtmlI18n.d.ts +7 -7
- package/lib/AcExHtmlI18n.js +12 -12
- package/lib/AcExHtmlIconSvgs.d.ts +1 -1
- package/lib/AcExHtmlIconSvgs.d.ts.map +1 -1
- package/lib/AcExHtmlIconSvgs.js +1 -1
- package/lib/AcExHtmlIconSvgs.js.map +1 -1
- package/lib/AcExHtmlIcons.d.ts +2 -2
- package/lib/AcExHtmlIcons.d.ts.map +1 -1
- package/lib/AcExHtmlIcons.js +2 -2
- package/lib/AcExHtmlIcons.js.map +1 -1
- package/lib/{AcExLayerExtents.d.ts → AcExHtmlLayerExtents.d.ts} +36 -36
- package/lib/AcExHtmlLayerExtents.d.ts.map +1 -0
- package/lib/{AcExLayerExtents.js → AcExHtmlLayerExtents.js} +54 -54
- package/lib/AcExHtmlLayerExtents.js.map +1 -0
- package/lib/{AcExMeshTextureExport.d.ts → AcExHtmlMeshTextureExport.d.ts} +12 -12
- package/lib/AcExHtmlMeshTextureExport.d.ts.map +1 -0
- package/lib/{AcExMeshTextureExport.js → AcExHtmlMeshTextureExport.js} +11 -11
- package/lib/AcExHtmlMeshTextureExport.js.map +1 -0
- package/lib/{AcExOsnapCatalogCodec.d.ts → AcExHtmlOsnapCatalogCodec.d.ts} +11 -11
- package/lib/AcExHtmlOsnapCatalogCodec.d.ts.map +1 -0
- package/lib/{AcExOsnapCatalogCodec.js → AcExHtmlOsnapCatalogCodec.js} +23 -23
- package/lib/AcExHtmlOsnapCatalogCodec.js.map +1 -0
- package/lib/{AcExOsnapPrimitiveBuilder.d.ts → AcExHtmlOsnapPrimitiveBuilder.d.ts} +8 -8
- package/lib/AcExHtmlOsnapPrimitiveBuilder.d.ts.map +1 -0
- package/lib/{AcExOsnapPrimitiveBuilder.js → AcExHtmlOsnapPrimitiveBuilder.js} +19 -19
- package/lib/AcExHtmlOsnapPrimitiveBuilder.js.map +1 -0
- package/lib/{AcExOsnapPrimitiveToAcGe.d.ts → AcExHtmlOsnapPrimitiveToAcGe.d.ts} +18 -18
- package/lib/AcExHtmlOsnapPrimitiveToAcGe.d.ts.map +1 -0
- package/lib/{AcExOsnapPrimitiveToAcGe.js → AcExHtmlOsnapPrimitiveToAcGe.js} +24 -24
- package/lib/AcExHtmlOsnapPrimitiveToAcGe.js.map +1 -0
- package/lib/{AcExOsnapPrimitiveTypes.d.ts → AcExHtmlOsnapPrimitiveTypes.d.ts} +36 -36
- package/lib/AcExHtmlOsnapPrimitiveTypes.d.ts.map +1 -0
- package/lib/{AcExOsnapPrimitiveTypes.js → AcExHtmlOsnapPrimitiveTypes.js} +6 -6
- package/lib/AcExHtmlOsnapPrimitiveTypes.js.map +1 -0
- package/lib/AcExHtmlPackageBootstrap.d.ts +23 -23
- package/lib/AcExHtmlPackageBootstrap.d.ts.map +1 -1
- package/lib/AcExHtmlPackageBootstrap.js +24 -24
- package/lib/AcExHtmlPackageBootstrap.js.map +1 -1
- package/lib/{AcExPackageBuilder.d.ts → AcExHtmlPackageBuilder.d.ts} +14 -14
- package/lib/AcExHtmlPackageBuilder.d.ts.map +1 -0
- package/lib/{AcExPackageBuilder.js → AcExHtmlPackageBuilder.js} +31 -31
- package/lib/AcExHtmlPackageBuilder.js.map +1 -0
- package/lib/{AcExPackageLoader.d.ts → AcExHtmlPackageLoader.d.ts} +29 -29
- package/lib/AcExHtmlPackageLoader.d.ts.map +1 -0
- package/lib/{AcExPackageLoader.js → AcExHtmlPackageLoader.js} +38 -38
- package/lib/AcExHtmlPackageLoader.js.map +1 -0
- package/lib/{AcExPackageTypes.d.ts → AcExHtmlPackageTypes.d.ts} +25 -25
- package/lib/AcExHtmlPackageTypes.d.ts.map +1 -0
- package/lib/{AcExPackageTypes.js → AcExHtmlPackageTypes.js} +2 -2
- package/lib/AcExHtmlPackageTypes.js.map +1 -0
- package/lib/{AcExPackageZip.d.ts → AcExHtmlPackageZip.d.ts} +5 -5
- package/lib/AcExHtmlPackageZip.d.ts.map +1 -0
- package/lib/{AcExPackageZip.js → AcExHtmlPackageZip.js} +4 -4
- package/lib/AcExHtmlPackageZip.js.map +1 -0
- package/lib/AcExHtmlPackager.d.ts +12 -12
- package/lib/AcExHtmlPackager.d.ts.map +1 -1
- package/lib/AcExHtmlPackager.js +11 -11
- package/lib/AcExHtmlPackager.js.map +1 -1
- package/lib/{AcExPaperViewportCollector.d.ts → AcExHtmlPaperViewportCollector.d.ts} +3 -3
- package/lib/AcExHtmlPaperViewportCollector.d.ts.map +1 -0
- package/lib/{AcExPaperViewportCollector.js → AcExHtmlPaperViewportCollector.js} +2 -2
- package/lib/AcExHtmlPaperViewportCollector.js.map +1 -0
- package/lib/{AcExPatternSnapshot.d.ts → AcExHtmlPatternSnapshot.d.ts} +17 -17
- package/lib/AcExHtmlPatternSnapshot.d.ts.map +1 -0
- package/lib/{AcExPatternSnapshot.js → AcExHtmlPatternSnapshot.js} +26 -26
- package/lib/AcExHtmlPatternSnapshot.js.map +1 -0
- package/lib/{AcExSavedView.d.ts → AcExHtmlSavedView.d.ts} +3 -3
- package/lib/AcExHtmlSavedView.d.ts.map +1 -0
- package/lib/{AcExSavedView.js → AcExHtmlSavedView.js} +2 -2
- package/lib/AcExHtmlSavedView.js.map +1 -0
- package/lib/{AcExSceneBatchCollector.d.ts → AcExHtmlSceneBatchCollector.d.ts} +13 -13
- package/lib/AcExHtmlSceneBatchCollector.d.ts.map +1 -0
- package/lib/{AcExSceneBatchCollector.js → AcExHtmlSceneBatchCollector.js} +43 -43
- package/lib/AcExHtmlSceneBatchCollector.js.map +1 -0
- package/lib/AcExHtmlShell.d.ts +4 -4
- package/lib/AcExHtmlShell.d.ts.map +1 -1
- package/lib/AcExHtmlShell.js +5 -5
- package/lib/AcExHtmlShell.js.map +1 -1
- package/lib/AcExHtmlShellFragments.d.ts +4 -4
- package/lib/AcExHtmlShellFragments.js +8 -8
- package/lib/AcExHtmlShellFragments.js.map +1 -1
- package/lib/AcExHtmlSnapshotBinaryCodec.d.ts +17 -0
- package/lib/AcExHtmlSnapshotBinaryCodec.d.ts.map +1 -0
- package/lib/{AcExSnapshotBinaryCodec.js → AcExHtmlSnapshotBinaryCodec.js} +17 -17
- package/lib/AcExHtmlSnapshotBinaryCodec.js.map +1 -0
- package/lib/AcExHtmlSnapshotCodec.d.ts +43 -0
- package/lib/AcExHtmlSnapshotCodec.d.ts.map +1 -0
- package/lib/{AcExSnapshotCodec.js → AcExHtmlSnapshotCodec.js} +22 -22
- package/lib/AcExHtmlSnapshotCodec.js.map +1 -0
- package/lib/{AcExSnapshotCompression.d.ts → AcExHtmlSnapshotCompression.d.ts} +13 -13
- package/lib/AcExHtmlSnapshotCompression.d.ts.map +1 -0
- package/lib/{AcExSnapshotCompression.js → AcExHtmlSnapshotCompression.js} +8 -8
- package/lib/AcExHtmlSnapshotCompression.js.map +1 -0
- package/lib/{AcExSnapshotFromSceneData.d.ts → AcExHtmlSnapshotFromSceneData.d.ts} +20 -20
- package/lib/AcExHtmlSnapshotFromSceneData.d.ts.map +1 -0
- package/lib/{AcExSnapshotFromSceneData.js → AcExHtmlSnapshotFromSceneData.js} +24 -24
- package/lib/AcExHtmlSnapshotFromSceneData.js.map +1 -0
- package/lib/{AcExSnapshotTypes.d.ts → AcExHtmlSnapshotTypes.d.ts} +84 -84
- package/lib/AcExHtmlSnapshotTypes.d.ts.map +1 -0
- package/lib/{AcExSnapshotTypes.js → AcExHtmlSnapshotTypes.js} +10 -10
- package/lib/AcExHtmlSnapshotTypes.js.map +1 -0
- package/lib/{AcExViewerMetadata.d.ts → AcExHtmlViewerMetadata.d.ts} +11 -11
- package/lib/AcExHtmlViewerMetadata.d.ts.map +1 -0
- package/lib/{AcExViewerMetadata.js → AcExHtmlViewerMetadata.js} +4 -4
- package/lib/AcExHtmlViewerMetadata.js.map +1 -0
- package/lib/index.d.ts +38 -38
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +38 -38
- package/lib/index.js.map +1 -1
- package/package.json +5 -5
- package/lib/AcExBatchBinaryCodec.d.ts +0 -38
- package/lib/AcExBatchBinaryCodec.d.ts.map +0 -1
- package/lib/AcExBatchBinaryCodec.js.map +0 -1
- package/lib/AcExBatchBuffers.d.ts.map +0 -1
- package/lib/AcExBatchBuffers.js.map +0 -1
- package/lib/AcExBinaryIO.d.ts.map +0 -1
- package/lib/AcExBinaryIO.js.map +0 -1
- package/lib/AcExChunkBinaryCodec.d.ts.map +0 -1
- package/lib/AcExChunkBinaryCodec.js.map +0 -1
- package/lib/AcExDocsUrl.d.ts.map +0 -1
- package/lib/AcExDocsUrl.js.map +0 -1
- package/lib/AcExExtentCluster.d.ts.map +0 -1
- package/lib/AcExExtentCluster.js.map +0 -1
- package/lib/AcExGeometryBatchSplit.d.ts.map +0 -1
- package/lib/AcExGeometryBatchSplit.js.map +0 -1
- package/lib/AcExLayerExtents.d.ts.map +0 -1
- package/lib/AcExLayerExtents.js.map +0 -1
- package/lib/AcExMeshTextureExport.d.ts.map +0 -1
- package/lib/AcExMeshTextureExport.js.map +0 -1
- package/lib/AcExOsnapCatalogCodec.d.ts.map +0 -1
- package/lib/AcExOsnapCatalogCodec.js.map +0 -1
- package/lib/AcExOsnapPrimitiveBuilder.d.ts.map +0 -1
- package/lib/AcExOsnapPrimitiveBuilder.js.map +0 -1
- package/lib/AcExOsnapPrimitiveToAcGe.d.ts.map +0 -1
- package/lib/AcExOsnapPrimitiveToAcGe.js.map +0 -1
- package/lib/AcExOsnapPrimitiveTypes.d.ts.map +0 -1
- package/lib/AcExOsnapPrimitiveTypes.js.map +0 -1
- package/lib/AcExPackageBuilder.d.ts.map +0 -1
- package/lib/AcExPackageBuilder.js.map +0 -1
- package/lib/AcExPackageLoader.d.ts.map +0 -1
- package/lib/AcExPackageLoader.js.map +0 -1
- package/lib/AcExPackageTypes.d.ts.map +0 -1
- package/lib/AcExPackageTypes.js.map +0 -1
- package/lib/AcExPackageZip.d.ts.map +0 -1
- package/lib/AcExPackageZip.js.map +0 -1
- package/lib/AcExPaperViewportCollector.d.ts.map +0 -1
- package/lib/AcExPaperViewportCollector.js.map +0 -1
- package/lib/AcExPatternSnapshot.d.ts.map +0 -1
- package/lib/AcExPatternSnapshot.js.map +0 -1
- package/lib/AcExSavedView.d.ts.map +0 -1
- package/lib/AcExSavedView.js.map +0 -1
- package/lib/AcExSceneBatchCollector.d.ts.map +0 -1
- package/lib/AcExSceneBatchCollector.js.map +0 -1
- package/lib/AcExSnapshotBinaryCodec.d.ts +0 -17
- package/lib/AcExSnapshotBinaryCodec.d.ts.map +0 -1
- package/lib/AcExSnapshotBinaryCodec.js.map +0 -1
- package/lib/AcExSnapshotCodec.d.ts +0 -43
- package/lib/AcExSnapshotCodec.d.ts.map +0 -1
- package/lib/AcExSnapshotCodec.js.map +0 -1
- package/lib/AcExSnapshotCompression.d.ts.map +0 -1
- package/lib/AcExSnapshotCompression.js.map +0 -1
- package/lib/AcExSnapshotFromSceneData.d.ts.map +0 -1
- package/lib/AcExSnapshotFromSceneData.js.map +0 -1
- package/lib/AcExSnapshotTypes.d.ts.map +0 -1
- package/lib/AcExSnapshotTypes.js.map +0 -1
- package/lib/AcExViewerMetadata.d.ts.map +0 -1
- package/lib/AcExViewerMetadata.js.map +0 -1
package/dist/cad-html-core.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AcTrLinePatternShaders as co, createHatchPatternShaderMaterial as uo, createGradientHatchShaderMaterialFromUniforms as mo, wrapPatternBaseToLocalFrame as po, isHighlightOverlayDescendant as fo, isHighlightCloneDrawable as ho, AcTrBatchedLine as
|
|
1
|
+
import { AcTrLinePatternShaders as co, createHatchPatternShaderMaterial as uo, createGradientHatchShaderMaterialFromUniforms as mo, wrapPatternBaseToLocalFrame as po, isHighlightOverlayDescendant as fo, isHighlightCloneDrawable as ho, AcTrBatchedLine as Rn, AcTrBatchedLine2 as go, AcTrBatchedMesh as _n, AcTrBatchedPoint as xo, getSceneDrawableUserData as yr, getMaterialMetadata as br, isBatchGeometryActive as wo, isBatchGeometryVisible as vo, AcTrViewportView as yo } from "@mlightcad/three-renderer";
|
|
2
2
|
import * as L from "three";
|
|
3
3
|
import { LineMaterial as kr } from "three/examples/jsm/lines/LineMaterial.js";
|
|
4
4
|
import { LineSegments2 as bo } from "three/examples/jsm/lines/LineSegments2.js";
|
|
5
|
-
import { AcDbSysVarManager as ko, AcDbSystemVariables as
|
|
6
|
-
var
|
|
5
|
+
import { AcDbSysVarManager as ko, AcDbSystemVariables as vt, AcCmColor as Lo, AcCmColorMethod as Ao, AcGeCircArc2d as Oe, AcGePoint2d as nn, TAU as Ie, AcGeEllipseArc2d as Lr, AcGeLine2d as Ar, AcGeNurbsCurve as Co, AcDbTable as Eo, AcDbAttribute as Mo, AcDbDimension as So, AcDbCircle as Ho, AcDbArc as Po, AcDbEllipse as rn, AcDbSpline as Io, AcDbPolyline as zo, AcDb2dPolyline as Bo, AcDb3dPolyline as To, AcDbHatch as Fo, AcDbRay as Uo, AcDbXline as Ro, AcDbSolid as _o, AcDbTrace as Oo, AcDbFace as Do, AcDbLeader as No, AcDbMLine as $o, AcDbMLeader as Vo, AcDbText as Xo, AcDbMText as Yo, AcDbOle2Frame as Zo, AcDbRasterImage as jo, AcDbPoint as Go, AcDbLine as Ko, AcGeTol as xe, FLOAT_TOL as Cr, AcGePolyline2d as Wo, AcGeLoop2d as Jo, AcDbViewport as qo } from "@mlightcad/data-model";
|
|
6
|
+
var H = Uint8Array, Z = Uint16Array, an = Int32Array, it = new H([
|
|
7
7
|
0,
|
|
8
8
|
0,
|
|
9
9
|
0,
|
|
@@ -38,7 +38,7 @@ var I = Uint8Array, Z = Uint16Array, an = Int32Array, it = new I([
|
|
|
38
38
|
0,
|
|
39
39
|
/* impossible */
|
|
40
40
|
0
|
|
41
|
-
]), st = new
|
|
41
|
+
]), st = new H([
|
|
42
42
|
0,
|
|
43
43
|
0,
|
|
44
44
|
0,
|
|
@@ -72,16 +72,16 @@ var I = Uint8Array, Z = Uint16Array, an = Int32Array, it = new I([
|
|
|
72
72
|
/* unused */
|
|
73
73
|
0,
|
|
74
74
|
0
|
|
75
|
-
]), St = new
|
|
75
|
+
]), St = new H([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Er = function(e, t) {
|
|
76
76
|
for (var n = new Z(31), r = 0; r < 31; ++r)
|
|
77
77
|
n[r] = t += 1 << e[r - 1];
|
|
78
78
|
for (var a = new an(n[30]), r = 1; r < 30; ++r)
|
|
79
79
|
for (var o = n[r]; o < n[r + 1]; ++o)
|
|
80
80
|
a[o] = o - n[r] << 5 | r;
|
|
81
81
|
return { b: n, r: a };
|
|
82
|
-
}, Mr = Er(it, 2), Sr = Mr.b,
|
|
83
|
-
Sr[28] = 258,
|
|
84
|
-
var
|
|
82
|
+
}, Mr = Er(it, 2), Sr = Mr.b, Ht = Mr.r;
|
|
83
|
+
Sr[28] = 258, Ht[258] = 28;
|
|
84
|
+
var Hr = Er(st, 0), Qo = Hr.b, On = Hr.r, Pt = new Z(32768);
|
|
85
85
|
for (var S = 0; S < 32768; ++S) {
|
|
86
86
|
var oe = (S & 43690) >> 1 | (S & 21845) << 1;
|
|
87
87
|
oe = (oe & 52428) >> 2 | (oe & 13107) << 2, oe = (oe & 61680) >> 4 | (oe & 3855) << 4, Pt[S] = ((oe & 65280) >> 8 | (oe & 255) << 8) >> 1;
|
|
@@ -104,7 +104,7 @@ var q = (function(e, t, n) {
|
|
|
104
104
|
for (s = new Z(r), a = 0; a < r; ++a)
|
|
105
105
|
e[a] && (s[a] = Pt[i[e[a] - 1]++] >> 15 - e[a]);
|
|
106
106
|
return s;
|
|
107
|
-
}), se = new
|
|
107
|
+
}), se = new H(288);
|
|
108
108
|
for (var S = 0; S < 144; ++S)
|
|
109
109
|
se[S] = 8;
|
|
110
110
|
for (var S = 144; S < 256; ++S)
|
|
@@ -113,10 +113,10 @@ for (var S = 256; S < 280; ++S)
|
|
|
113
113
|
se[S] = 7;
|
|
114
114
|
for (var S = 280; S < 288; ++S)
|
|
115
115
|
se[S] = 8;
|
|
116
|
-
var
|
|
116
|
+
var Te = new H(32);
|
|
117
117
|
for (var S = 0; S < 32; ++S)
|
|
118
|
-
|
|
119
|
-
var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /* @__PURE__ */ q(
|
|
118
|
+
Te[S] = 5;
|
|
119
|
+
var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /* @__PURE__ */ q(Te, 5, 0), ri = /* @__PURE__ */ q(Te, 5, 1), yt = function(e) {
|
|
120
120
|
for (var t = e[0], n = 1; n < e.length; ++n)
|
|
121
121
|
e[n] > t && (t = e[n]);
|
|
122
122
|
return t;
|
|
@@ -129,7 +129,7 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
129
129
|
}, on = function(e) {
|
|
130
130
|
return (e + 7) / 8 | 0;
|
|
131
131
|
}, De = function(e, t, n) {
|
|
132
|
-
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new
|
|
132
|
+
return (t == null || t < 0) && (t = 0), (n == null || n > e.length) && (n = e.length), new H(e.subarray(t, n));
|
|
133
133
|
}, ai = [
|
|
134
134
|
"unexpected EOF",
|
|
135
135
|
"invalid block type",
|
|
@@ -146,75 +146,75 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
146
146
|
"stream finishing",
|
|
147
147
|
"invalid zip data"
|
|
148
148
|
// determined by unknown compression method
|
|
149
|
-
],
|
|
149
|
+
], _ = function(e, t, n) {
|
|
150
150
|
var r = new Error(t || ai[e]);
|
|
151
|
-
if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r,
|
|
151
|
+
if (r.code = e, Error.captureStackTrace && Error.captureStackTrace(r, _), !n)
|
|
152
152
|
throw r;
|
|
153
153
|
return r;
|
|
154
154
|
}, Pr = function(e, t, n, r) {
|
|
155
155
|
var a = e.length, o = r ? r.length : 0;
|
|
156
156
|
if (!a || t.f && !t.l)
|
|
157
|
-
return n || new
|
|
157
|
+
return n || new H(0);
|
|
158
158
|
var i = !n, s = i || t.i != 2, l = t.i;
|
|
159
|
-
i && (n = new
|
|
159
|
+
i && (n = new H(a * 3));
|
|
160
160
|
var c = function(Ae) {
|
|
161
161
|
var Ce = n.length;
|
|
162
162
|
if (Ae > Ce) {
|
|
163
|
-
var fe = new
|
|
163
|
+
var fe = new H(Math.max(Ce * 2, Ae));
|
|
164
164
|
fe.set(n), n = fe;
|
|
165
165
|
}
|
|
166
|
-
}, d = t.f || 0, u = t.p || 0, p = t.b || 0, m = t.l, f = t.d, h = t.m,
|
|
166
|
+
}, d = t.f || 0, u = t.p || 0, p = t.b || 0, m = t.l, f = t.d, h = t.m, x = t.n, w = a * 8;
|
|
167
167
|
do {
|
|
168
168
|
if (!m) {
|
|
169
169
|
d = G(e, u, 1);
|
|
170
170
|
var g = G(e, u + 1, 3);
|
|
171
171
|
if (u += 3, g)
|
|
172
172
|
if (g == 1)
|
|
173
|
-
m = ti, f = ri, h = 9,
|
|
173
|
+
m = ti, f = ri, h = 9, x = 5;
|
|
174
174
|
else if (g == 2) {
|
|
175
175
|
var A = G(e, u, 31) + 257, M = G(e, u + 10, 15) + 4, k = A + G(e, u + 5, 31) + 1;
|
|
176
176
|
u += 14;
|
|
177
|
-
for (var
|
|
178
|
-
|
|
177
|
+
for (var v = new H(k), F = new H(19), B = 0; B < M; ++B)
|
|
178
|
+
F[St[B]] = G(e, u + B * 3, 7);
|
|
179
179
|
u += M * 3;
|
|
180
|
-
for (var
|
|
180
|
+
for (var O = yt(F), ae = (1 << O) - 1, V = q(F, O, 1), B = 0; B < k; ) {
|
|
181
181
|
var N = V[G(e, u, ae)];
|
|
182
182
|
u += N & 15;
|
|
183
183
|
var b = N >> 4;
|
|
184
184
|
if (b < 16)
|
|
185
|
-
|
|
185
|
+
v[B++] = b;
|
|
186
186
|
else {
|
|
187
187
|
var U = 0, P = 0;
|
|
188
|
-
for (b == 16 ? (P = 3 + G(e, u, 3), u += 2, U =
|
|
189
|
-
|
|
188
|
+
for (b == 16 ? (P = 3 + G(e, u, 3), u += 2, U = v[B - 1]) : b == 17 ? (P = 3 + G(e, u, 7), u += 3) : b == 18 && (P = 11 + G(e, u, 127), u += 7); P--; )
|
|
189
|
+
v[B++] = U;
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
var $ =
|
|
193
|
-
h = yt($),
|
|
192
|
+
var $ = v.subarray(0, A), R = v.subarray(A);
|
|
193
|
+
h = yt($), x = yt(R), m = q($, h, 1), f = q(R, x, 1);
|
|
194
194
|
} else
|
|
195
|
-
|
|
195
|
+
_(1);
|
|
196
196
|
else {
|
|
197
197
|
var b = on(u) + 4, y = e[b - 4] | e[b - 3] << 8, E = b + y;
|
|
198
198
|
if (E > a) {
|
|
199
|
-
l &&
|
|
199
|
+
l && _(0);
|
|
200
200
|
break;
|
|
201
201
|
}
|
|
202
202
|
s && c(p + y), n.set(e.subarray(b, E), p), t.b = p += y, t.p = u = E * 8, t.f = d;
|
|
203
203
|
continue;
|
|
204
204
|
}
|
|
205
|
-
if (u >
|
|
206
|
-
l &&
|
|
205
|
+
if (u > w) {
|
|
206
|
+
l && _(0);
|
|
207
207
|
break;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
s && c(p + 131072);
|
|
211
|
-
for (var Le = (1 << h) - 1, j = (1 <<
|
|
211
|
+
for (var Le = (1 << h) - 1, j = (1 << x) - 1, Q = u; ; Q = u) {
|
|
212
212
|
var U = m[bt(e, u) & Le], X = U >> 4;
|
|
213
|
-
if (u += U & 15, u >
|
|
214
|
-
l &&
|
|
213
|
+
if (u += U & 15, u > w) {
|
|
214
|
+
l && _(0);
|
|
215
215
|
break;
|
|
216
216
|
}
|
|
217
|
-
if (U ||
|
|
217
|
+
if (U || _(2), X < 256)
|
|
218
218
|
n[p++] = X;
|
|
219
219
|
else if (X == 256) {
|
|
220
220
|
Q = u, m = null;
|
|
@@ -222,32 +222,32 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
222
222
|
} else {
|
|
223
223
|
var Y = X - 254;
|
|
224
224
|
if (X > 264) {
|
|
225
|
-
var
|
|
226
|
-
Y = G(e, u, (1 <<
|
|
225
|
+
var B = X - 257, I = it[B];
|
|
226
|
+
Y = G(e, u, (1 << I) - 1) + Sr[B], u += I;
|
|
227
227
|
}
|
|
228
228
|
var W = f[bt(e, u) & j], me = W >> 4;
|
|
229
|
-
W ||
|
|
230
|
-
var
|
|
229
|
+
W || _(3), u += W & 15;
|
|
230
|
+
var R = Qo[me];
|
|
231
231
|
if (me > 3) {
|
|
232
|
-
var
|
|
233
|
-
|
|
232
|
+
var I = st[me];
|
|
233
|
+
R += bt(e, u) & (1 << I) - 1, u += I;
|
|
234
234
|
}
|
|
235
|
-
if (u >
|
|
236
|
-
l &&
|
|
235
|
+
if (u > w) {
|
|
236
|
+
l && _(0);
|
|
237
237
|
break;
|
|
238
238
|
}
|
|
239
239
|
s && c(p + 131072);
|
|
240
240
|
var pe = p + Y;
|
|
241
|
-
if (p <
|
|
242
|
-
var Ye = o -
|
|
243
|
-
for (Ye + p < 0 &&
|
|
241
|
+
if (p < R) {
|
|
242
|
+
var Ye = o - R, Ze = Math.min(R, pe);
|
|
243
|
+
for (Ye + p < 0 && _(3); p < Ze; ++p)
|
|
244
244
|
n[p] = r[Ye + p];
|
|
245
245
|
}
|
|
246
246
|
for (; p < pe; ++p)
|
|
247
|
-
n[p] = n[p -
|
|
247
|
+
n[p] = n[p - R];
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
t.l = m, t.p = Q, t.b = p, t.f = d, m && (d = 1, t.m = h, t.d = f, t.n =
|
|
250
|
+
t.l = m, t.p = Q, t.b = p, t.f = d, m && (d = 1, t.m = h, t.d = f, t.n = x);
|
|
251
251
|
} while (!d);
|
|
252
252
|
return p != n.length && i ? De(n, 0, p) : n.subarray(0, p);
|
|
253
253
|
}, ee = function(e, t, n) {
|
|
@@ -263,9 +263,9 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
263
263
|
e[r] && n.push({ s: r, f: e[r] });
|
|
264
264
|
var a = n.length, o = n.slice();
|
|
265
265
|
if (!a)
|
|
266
|
-
return { t:
|
|
266
|
+
return { t: zr, l: 0 };
|
|
267
267
|
if (a == 1) {
|
|
268
|
-
var i = new
|
|
268
|
+
var i = new H(n[0].s + 1);
|
|
269
269
|
return i[n[0].s] = 1, { t: i, l: 1 };
|
|
270
270
|
}
|
|
271
271
|
n.sort(function(E, A) {
|
|
@@ -276,19 +276,19 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
276
276
|
s = n[n[c].f < n[u].f ? c++ : u++], l = n[c != d && n[c].f < n[u].f ? c++ : u++], n[d++] = { s: -1, f: s.f + l.f, l: s, r: l };
|
|
277
277
|
for (var p = o[0].s, r = 1; r < a; ++r)
|
|
278
278
|
o[r].s > p && (p = o[r].s);
|
|
279
|
-
var m = new Z(p + 1), f =
|
|
279
|
+
var m = new Z(p + 1), f = It(n[d - 1], m, 0);
|
|
280
280
|
if (f > t) {
|
|
281
|
-
var r = 0, h = 0,
|
|
281
|
+
var r = 0, h = 0, x = f - t, w = 1 << x;
|
|
282
282
|
for (o.sort(function(A, M) {
|
|
283
283
|
return m[M.s] - m[A.s] || A.f - M.f;
|
|
284
284
|
}); r < a; ++r) {
|
|
285
285
|
var g = o[r].s;
|
|
286
286
|
if (m[g] > t)
|
|
287
|
-
h +=
|
|
287
|
+
h += w - (1 << f - m[g]), m[g] = t;
|
|
288
288
|
else
|
|
289
289
|
break;
|
|
290
290
|
}
|
|
291
|
-
for (h >>=
|
|
291
|
+
for (h >>= x; h > 0; ) {
|
|
292
292
|
var b = o[r].s;
|
|
293
293
|
m[b] < t ? h -= 1 << t - m[b]++ - 1 : ++r;
|
|
294
294
|
}
|
|
@@ -298,9 +298,9 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
298
298
|
}
|
|
299
299
|
f = t;
|
|
300
300
|
}
|
|
301
|
-
return { t: new
|
|
302
|
-
},
|
|
303
|
-
return e.s == -1 ? Math.max(
|
|
301
|
+
return { t: new H(m), l: f };
|
|
302
|
+
}, It = function(e, t, n) {
|
|
303
|
+
return e.s == -1 ? Math.max(It(e.l, t, n + 1), It(e.r, t, n + 1)) : t[e.s] = n;
|
|
304
304
|
}, Dn = function(e) {
|
|
305
305
|
for (var t = e.length; t && !e[--t]; )
|
|
306
306
|
;
|
|
@@ -328,7 +328,7 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
328
328
|
for (var n = 0, r = 0; r < t.length; ++r)
|
|
329
329
|
n += e[r] * t[r];
|
|
330
330
|
return n;
|
|
331
|
-
},
|
|
331
|
+
}, Ir = function(e, t, n) {
|
|
332
332
|
var r = n.length, a = on(t + 2);
|
|
333
333
|
e[a] = r & 255, e[a + 1] = r >> 8, e[a + 2] = e[a] ^ 255, e[a + 3] = e[a + 1] ^ 255;
|
|
334
334
|
for (var o = 0; o < r; ++o)
|
|
@@ -336,90 +336,90 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
336
336
|
return (a + 4 + r) * 8;
|
|
337
337
|
}, Nn = function(e, t, n, r, a, o, i, s, l, c, d) {
|
|
338
338
|
ee(t, d++, n), ++a[256];
|
|
339
|
-
for (var u = kt(a, 15), p = u.t, m = u.l, f = kt(o, 15), h = f.t,
|
|
339
|
+
for (var u = kt(a, 15), p = u.t, m = u.l, f = kt(o, 15), h = f.t, x = f.l, w = Dn(p), g = w.c, b = w.n, y = Dn(h), E = y.c, A = y.n, M = new Z(19), k = 0; k < g.length; ++k)
|
|
340
340
|
++M[g[k] & 31];
|
|
341
341
|
for (var k = 0; k < E.length; ++k)
|
|
342
342
|
++M[E[k] & 31];
|
|
343
|
-
for (var
|
|
343
|
+
for (var v = kt(M, 7), F = v.t, B = v.l, O = 19; O > 4 && !F[St[O - 1]]; --O)
|
|
344
344
|
;
|
|
345
|
-
var ae = c + 5 << 3, V = Me(a, se) + Me(o,
|
|
345
|
+
var ae = c + 5 << 3, V = Me(a, se) + Me(o, Te) + i, N = Me(a, p) + Me(o, h) + i + 14 + 3 * O + Me(M, F) + 2 * M[16] + 3 * M[17] + 7 * M[18];
|
|
346
346
|
if (l >= 0 && ae <= V && ae <= N)
|
|
347
|
-
return
|
|
348
|
-
var U, P, $,
|
|
347
|
+
return Ir(t, d, e.subarray(l, l + c));
|
|
348
|
+
var U, P, $, R;
|
|
349
349
|
if (ee(t, d, 1 + (N < V)), d += 2, N < V) {
|
|
350
|
-
U = q(p, m, 0), P = p, $ = q(h,
|
|
351
|
-
var Le = q(
|
|
352
|
-
ee(t, d, b - 257), ee(t, d + 5, A - 1), ee(t, d + 10,
|
|
353
|
-
for (var k = 0; k <
|
|
354
|
-
ee(t, d + 3 * k,
|
|
355
|
-
d += 3 *
|
|
350
|
+
U = q(p, m, 0), P = p, $ = q(h, x, 0), R = h;
|
|
351
|
+
var Le = q(F, B, 0);
|
|
352
|
+
ee(t, d, b - 257), ee(t, d + 5, A - 1), ee(t, d + 10, O - 4), d += 14;
|
|
353
|
+
for (var k = 0; k < O; ++k)
|
|
354
|
+
ee(t, d + 3 * k, F[St[k]]);
|
|
355
|
+
d += 3 * O;
|
|
356
356
|
for (var j = [g, E], Q = 0; Q < 2; ++Q)
|
|
357
357
|
for (var X = j[Q], k = 0; k < X.length; ++k) {
|
|
358
358
|
var Y = X[k] & 31;
|
|
359
|
-
ee(t, d, Le[Y]), d +=
|
|
359
|
+
ee(t, d, Le[Y]), d += F[Y], Y > 15 && (ee(t, d, X[k] >> 5 & 127), d += X[k] >> 12);
|
|
360
360
|
}
|
|
361
361
|
} else
|
|
362
|
-
U = ei, P = se, $ = ni,
|
|
362
|
+
U = ei, P = se, $ = ni, R = Te;
|
|
363
363
|
for (var k = 0; k < s; ++k) {
|
|
364
|
-
var
|
|
365
|
-
if (
|
|
366
|
-
var Y =
|
|
367
|
-
Ee(t, d, U[Y + 257]), d += P[Y + 257], Y > 7 && (ee(t, d,
|
|
368
|
-
var W =
|
|
369
|
-
Ee(t, d, $[W]), d +=
|
|
364
|
+
var I = r[k];
|
|
365
|
+
if (I > 255) {
|
|
366
|
+
var Y = I >> 18 & 31;
|
|
367
|
+
Ee(t, d, U[Y + 257]), d += P[Y + 257], Y > 7 && (ee(t, d, I >> 23 & 31), d += it[Y]);
|
|
368
|
+
var W = I & 31;
|
|
369
|
+
Ee(t, d, $[W]), d += R[W], W > 3 && (Ee(t, d, I >> 5 & 8191), d += st[W]);
|
|
370
370
|
} else
|
|
371
|
-
Ee(t, d, U[
|
|
371
|
+
Ee(t, d, U[I]), d += P[I];
|
|
372
372
|
}
|
|
373
373
|
return Ee(t, d, U[256]), d + P[256];
|
|
374
|
-
}, oi = /* @__PURE__ */ new an([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]),
|
|
375
|
-
var i = o.z || e.length, s = new
|
|
374
|
+
}, oi = /* @__PURE__ */ new an([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), zr = /* @__PURE__ */ new H(0), ii = function(e, t, n, r, a, o) {
|
|
375
|
+
var i = o.z || e.length, s = new H(r + i + 5 * (1 + Math.ceil(i / 7e3)) + a), l = s.subarray(r, s.length - a), c = o.l, d = (o.r || 0) & 7;
|
|
376
376
|
if (t) {
|
|
377
377
|
d && (l[0] = o.r >> 3);
|
|
378
|
-
for (var u = oi[t - 1], p = u >> 13, m = u & 8191, f = (1 << n) - 1, h = o.p || new Z(32768),
|
|
379
|
-
return (e[
|
|
380
|
-
}, y = new an(25e3), E = new Z(288), A = new Z(32), M = 0, k = 0,
|
|
381
|
-
var ae = b(
|
|
382
|
-
if (h[V] = N,
|
|
383
|
-
var U = i -
|
|
384
|
-
if ((M > 7e3 ||
|
|
385
|
-
d = Nn(e, l, 0, y, E, A, k,
|
|
378
|
+
for (var u = oi[t - 1], p = u >> 13, m = u & 8191, f = (1 << n) - 1, h = o.p || new Z(32768), x = o.h || new Z(f + 1), w = Math.ceil(n / 3), g = 2 * w, b = function(wt) {
|
|
379
|
+
return (e[wt] ^ e[wt + 1] << w ^ e[wt + 2] << g) & f;
|
|
380
|
+
}, y = new an(25e3), E = new Z(288), A = new Z(32), M = 0, k = 0, v = o.i || 0, F = 0, B = o.w || 0, O = 0; v + 2 < i; ++v) {
|
|
381
|
+
var ae = b(v), V = v & 32767, N = x[ae];
|
|
382
|
+
if (h[V] = N, x[ae] = V, B <= v) {
|
|
383
|
+
var U = i - v;
|
|
384
|
+
if ((M > 7e3 || F > 24576) && (U > 423 || !c)) {
|
|
385
|
+
d = Nn(e, l, 0, y, E, A, k, F, O, v - O, d), F = M = k = 0, O = v;
|
|
386
386
|
for (var P = 0; P < 286; ++P)
|
|
387
387
|
E[P] = 0;
|
|
388
388
|
for (var P = 0; P < 30; ++P)
|
|
389
389
|
A[P] = 0;
|
|
390
390
|
}
|
|
391
|
-
var $ = 2,
|
|
392
|
-
if (U > 2 && ae == b(
|
|
393
|
-
for (var Q = Math.min(p, U) - 1, X = Math.min(32767,
|
|
394
|
-
if (e[
|
|
395
|
-
for (var
|
|
391
|
+
var $ = 2, R = 0, Le = m, j = V - N & 32767;
|
|
392
|
+
if (U > 2 && ae == b(v - j))
|
|
393
|
+
for (var Q = Math.min(p, U) - 1, X = Math.min(32767, v), Y = Math.min(258, U); j <= X && --Le && V != N; ) {
|
|
394
|
+
if (e[v + $] == e[v + $ - j]) {
|
|
395
|
+
for (var I = 0; I < Y && e[v + I] == e[v + I - j]; ++I)
|
|
396
396
|
;
|
|
397
|
-
if (
|
|
398
|
-
if ($ =
|
|
397
|
+
if (I > $) {
|
|
398
|
+
if ($ = I, R = j, I > Q)
|
|
399
399
|
break;
|
|
400
|
-
for (var W = Math.min(j,
|
|
401
|
-
var pe =
|
|
400
|
+
for (var W = Math.min(j, I - 2), me = 0, P = 0; P < W; ++P) {
|
|
401
|
+
var pe = v - j + P & 32767, Ye = h[pe], Ze = pe - Ye & 32767;
|
|
402
402
|
Ze > me && (me = Ze, N = pe);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
V = N, N = h[V], j += V - N & 32767;
|
|
407
407
|
}
|
|
408
|
-
if (
|
|
409
|
-
y[
|
|
410
|
-
var Ae =
|
|
411
|
-
k += it[Ae] + st[Ce], ++E[257 + Ae], ++A[Ce],
|
|
408
|
+
if (R) {
|
|
409
|
+
y[F++] = 268435456 | Ht[$] << 18 | On[R];
|
|
410
|
+
var Ae = Ht[$] & 31, Ce = On[R] & 31;
|
|
411
|
+
k += it[Ae] + st[Ce], ++E[257 + Ae], ++A[Ce], B = v + $, ++M;
|
|
412
412
|
} else
|
|
413
|
-
y[
|
|
413
|
+
y[F++] = e[v], ++E[e[v]];
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
for (
|
|
417
|
-
y[
|
|
418
|
-
d = Nn(e, l, c, y, E, A, k,
|
|
416
|
+
for (v = Math.max(v, B); v < i; ++v)
|
|
417
|
+
y[F++] = e[v], ++E[e[v]];
|
|
418
|
+
d = Nn(e, l, c, y, E, A, k, F, O, v - O, d), c || (o.r = d & 7 | l[d / 8 | 0] << 3, d -= 7, o.h = x, o.p = h, o.i = v, o.w = B);
|
|
419
419
|
} else {
|
|
420
|
-
for (var
|
|
421
|
-
var fe =
|
|
422
|
-
fe >= i && (l[d / 8 | 0] = c, fe = i), d =
|
|
420
|
+
for (var v = o.w || 0; v < i + c; v += 65535) {
|
|
421
|
+
var fe = v + 65535;
|
|
422
|
+
fe >= i && (l[d / 8 | 0] = c, fe = i), d = Ir(l, d + 1, e.subarray(v, fe));
|
|
423
423
|
}
|
|
424
424
|
o.i = i;
|
|
425
425
|
}
|
|
@@ -431,7 +431,7 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
431
431
|
e[t] = n;
|
|
432
432
|
}
|
|
433
433
|
return e;
|
|
434
|
-
})(),
|
|
434
|
+
})(), Br = function() {
|
|
435
435
|
var e = -1;
|
|
436
436
|
return {
|
|
437
437
|
p: function(t) {
|
|
@@ -443,13 +443,13 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
443
443
|
return ~e;
|
|
444
444
|
}
|
|
445
445
|
};
|
|
446
|
-
},
|
|
446
|
+
}, Tr = function(e, t, n, r, a) {
|
|
447
447
|
if (!a && (a = { l: 1 }, t.dictionary)) {
|
|
448
|
-
var o = t.dictionary.subarray(-32768), i = new
|
|
448
|
+
var o = t.dictionary.subarray(-32768), i = new H(o.length + e.length);
|
|
449
449
|
i.set(o), i.set(e, o.length), e = i, a.w = o.length;
|
|
450
450
|
}
|
|
451
451
|
return ii(e, t.level == null ? 6 : t.level, t.mem == null ? a.l ? Math.ceil(Math.max(8, Math.min(13, Math.log(e.length))) * 1.5) : 20 : 12 + t.mem, n, r, a);
|
|
452
|
-
},
|
|
452
|
+
}, Fr = function(e, t) {
|
|
453
453
|
var n = {};
|
|
454
454
|
for (var r in e)
|
|
455
455
|
n[r] = e[r];
|
|
@@ -462,18 +462,18 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
462
462
|
return (e[t] | e[t + 1] << 8 | e[t + 2] << 16 | e[t + 3] << 24) >>> 0;
|
|
463
463
|
}, Lt = function(e, t) {
|
|
464
464
|
return K(e, t) + K(e, t + 4) * 4294967296;
|
|
465
|
-
},
|
|
465
|
+
}, z = function(e, t, n) {
|
|
466
466
|
for (; n; ++t)
|
|
467
467
|
e[t] = n, n >>>= 8;
|
|
468
468
|
}, li = function(e, t) {
|
|
469
469
|
var n = t.filename;
|
|
470
|
-
if (e[0] = 31, e[1] = 139, e[2] = 8, e[8] = t.level < 2 ? 4 : t.level == 9 ? 2 : 0, e[9] = 3, t.mtime != 0 &&
|
|
470
|
+
if (e[0] = 31, e[1] = 139, e[2] = 8, e[8] = t.level < 2 ? 4 : t.level == 9 ? 2 : 0, e[9] = 3, t.mtime != 0 && z(e, 4, Math.floor(new Date(t.mtime || Date.now()) / 1e3)), n) {
|
|
471
471
|
e[3] = 8;
|
|
472
472
|
for (var r = 0; r <= n.length; ++r)
|
|
473
473
|
e[r + 10] = n.charCodeAt(r);
|
|
474
474
|
}
|
|
475
475
|
}, ci = function(e) {
|
|
476
|
-
(e[0] != 31 || e[1] != 139 || e[2] != 8) &&
|
|
476
|
+
(e[0] != 31 || e[1] != 139 || e[2] != 8) && _(6, "invalid gzip data");
|
|
477
477
|
var t = e[3], n = 10;
|
|
478
478
|
t & 4 && (n += (e[10] | e[11] << 8) + 2);
|
|
479
479
|
for (var r = (t >> 3 & 1) + (t >> 4 & 1); r > 0; r -= !e[n++])
|
|
@@ -486,33 +486,33 @@ var ei = /* @__PURE__ */ q(se, 9, 0), ti = /* @__PURE__ */ q(se, 9, 1), ni = /*
|
|
|
486
486
|
return 10 + (e.filename ? e.filename.length + 1 : 0);
|
|
487
487
|
};
|
|
488
488
|
function mi(e, t) {
|
|
489
|
-
return
|
|
489
|
+
return Tr(e, t || {}, 0, 0);
|
|
490
490
|
}
|
|
491
491
|
function pi(e, t) {
|
|
492
492
|
return Pr(e, { i: 2 }, t && t.out, t && t.dictionary);
|
|
493
493
|
}
|
|
494
494
|
function fi(e, t) {
|
|
495
495
|
t || (t = {});
|
|
496
|
-
var n =
|
|
496
|
+
var n = Br(), r = e.length;
|
|
497
497
|
n.p(e);
|
|
498
|
-
var a =
|
|
499
|
-
return li(a, t),
|
|
498
|
+
var a = Tr(e, t, ui(t), 8), o = a.length;
|
|
499
|
+
return li(a, t), z(a, o - 8, n.d()), z(a, o - 4, r), a;
|
|
500
500
|
}
|
|
501
501
|
function hi(e, t) {
|
|
502
502
|
var n = ci(e);
|
|
503
|
-
return n + 8 > e.length &&
|
|
503
|
+
return n + 8 > e.length && _(6, "invalid gzip data"), Pr(e.subarray(n, -8), { i: 2 }, new H(di(e)), t);
|
|
504
504
|
}
|
|
505
505
|
var Ur = function(e, t, n, r) {
|
|
506
506
|
for (var a in e) {
|
|
507
507
|
var o = e[a], i = t + a, s = r;
|
|
508
|
-
Array.isArray(o) && (s =
|
|
508
|
+
Array.isArray(o) && (s = Fr(r, o[1]), o = o[0]), o instanceof H ? n[i] = [o, s] : (n[i += "/"] = [new H(0), s], Ur(o, i, n, r));
|
|
509
509
|
}
|
|
510
|
-
}, $n = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(),
|
|
510
|
+
}, $n = typeof TextEncoder < "u" && /* @__PURE__ */ new TextEncoder(), zt = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), gi = 0;
|
|
511
511
|
try {
|
|
512
|
-
|
|
512
|
+
zt.decode(zr, { stream: !0 }), gi = 1;
|
|
513
513
|
} catch {
|
|
514
514
|
}
|
|
515
|
-
var
|
|
515
|
+
var xi = function(e) {
|
|
516
516
|
for (var t = "", n = 0; ; ) {
|
|
517
517
|
var r = e[n++], a = (r > 127) + (r > 223) + (r > 239);
|
|
518
518
|
if (n + a > e.length)
|
|
@@ -520,15 +520,15 @@ var wi = function(e) {
|
|
|
520
520
|
a ? a == 3 ? (r = ((r & 15) << 18 | (e[n++] & 63) << 12 | (e[n++] & 63) << 6 | e[n++] & 63) - 65536, t += String.fromCharCode(55296 | r >> 10, 56320 | r & 1023)) : a & 1 ? t += String.fromCharCode((r & 31) << 6 | e[n++] & 63) : t += String.fromCharCode((r & 15) << 12 | (e[n++] & 63) << 6 | e[n++] & 63) : t += String.fromCharCode(r);
|
|
521
521
|
}
|
|
522
522
|
};
|
|
523
|
-
function
|
|
523
|
+
function we(e, t) {
|
|
524
524
|
var n;
|
|
525
525
|
if ($n)
|
|
526
526
|
return $n.encode(e);
|
|
527
|
-
for (var r = e.length, a = new
|
|
527
|
+
for (var r = e.length, a = new H(e.length + (e.length >> 1)), o = 0, i = function(c) {
|
|
528
528
|
a[o++] = c;
|
|
529
529
|
}, n = 0; n < r; ++n) {
|
|
530
530
|
if (o + 5 > a.length) {
|
|
531
|
-
var s = new
|
|
531
|
+
var s = new H(o + 8 + (r - n << 1));
|
|
532
532
|
s.set(a), a = s;
|
|
533
533
|
}
|
|
534
534
|
var l = e.charCodeAt(n);
|
|
@@ -542,41 +542,41 @@ function sn(e, t) {
|
|
|
542
542
|
n += String.fromCharCode.apply(null, e.subarray(r, r + 16384));
|
|
543
543
|
return n;
|
|
544
544
|
} else {
|
|
545
|
-
if (
|
|
546
|
-
return
|
|
547
|
-
var a =
|
|
548
|
-
return n.length &&
|
|
545
|
+
if (zt)
|
|
546
|
+
return zt.decode(e);
|
|
547
|
+
var a = xi(e), o = a.s, n = a.r;
|
|
548
|
+
return n.length && _(8), o;
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
|
-
var
|
|
551
|
+
var wi = function(e, t) {
|
|
552
552
|
return t + 30 + J(e, t + 26) + J(e, t + 28);
|
|
553
|
-
},
|
|
553
|
+
}, vi = function(e, t, n) {
|
|
554
554
|
var r = J(e, t + 28), a = sn(e.subarray(t + 46, t + 46 + r), !(J(e, t + 8) & 2048)), o = t + 46 + r, i = K(e, t + 20), s = n && i == 4294967295 ? yi(e, o) : [i, K(e, t + 24), K(e, t + 42)], l = s[0], c = s[1], d = s[2];
|
|
555
555
|
return [J(e, t + 10), l, c, a, o + J(e, t + 30) + J(e, t + 32), d];
|
|
556
556
|
}, yi = function(e, t) {
|
|
557
557
|
for (; J(e, t) != 1; t += 4 + J(e, t + 2))
|
|
558
558
|
;
|
|
559
559
|
return [Lt(e, t + 12), Lt(e, t + 4), Lt(e, t + 20)];
|
|
560
|
-
},
|
|
560
|
+
}, Bt = function(e) {
|
|
561
561
|
var t = 0;
|
|
562
562
|
if (e)
|
|
563
563
|
for (var n in e) {
|
|
564
564
|
var r = e[n].length;
|
|
565
|
-
r > 65535 &&
|
|
565
|
+
r > 65535 && _(9), t += r + 4;
|
|
566
566
|
}
|
|
567
567
|
return t;
|
|
568
568
|
}, Vn = function(e, t, n, r, a, o, i, s) {
|
|
569
|
-
var l = r.length, c = n.extra, d = s && s.length, u =
|
|
570
|
-
|
|
569
|
+
var l = r.length, c = n.extra, d = s && s.length, u = Bt(c);
|
|
570
|
+
z(e, t, i != null ? 33639248 : 67324752), t += 4, i != null && (e[t++] = 20, e[t++] = n.os), e[t] = 20, t += 2, e[t++] = n.flag << 1 | (o < 0 && 8), e[t++] = a && 8, e[t++] = n.compression & 255, e[t++] = n.compression >> 8;
|
|
571
571
|
var p = new Date(n.mtime == null ? Date.now() : n.mtime), m = p.getFullYear() - 1980;
|
|
572
|
-
if ((m < 0 || m > 119) &&
|
|
572
|
+
if ((m < 0 || m > 119) && _(10), z(e, t, m << 25 | p.getMonth() + 1 << 21 | p.getDate() << 16 | p.getHours() << 11 | p.getMinutes() << 5 | p.getSeconds() >> 1), t += 4, o != -1 && (z(e, t, n.crc), z(e, t + 4, o < 0 ? -o - 2 : o), z(e, t + 8, n.size)), z(e, t + 12, l), z(e, t + 14, u), t += 16, i != null && (z(e, t, d), z(e, t + 6, n.attrs), z(e, t + 10, i), t += 14), e.set(r, t), t += l, u)
|
|
573
573
|
for (var f in c) {
|
|
574
|
-
var h = c[f],
|
|
575
|
-
|
|
574
|
+
var h = c[f], x = h.length;
|
|
575
|
+
z(e, t, +f), z(e, t + 2, x), e.set(h, t + 4), t += 4 + x;
|
|
576
576
|
}
|
|
577
577
|
return d && (e.set(s, t), t += d), t;
|
|
578
578
|
}, bi = function(e, t, n, r, a) {
|
|
579
|
-
|
|
579
|
+
z(e, t, 101010256), z(e, t + 8, n), z(e, t + 10, n), z(e, t + 12, r), z(e, t + 16, a);
|
|
580
580
|
};
|
|
581
581
|
function ki(e, t) {
|
|
582
582
|
t || (t = {});
|
|
@@ -584,31 +584,31 @@ function ki(e, t) {
|
|
|
584
584
|
Ur(e, "", n, t);
|
|
585
585
|
var a = 0, o = 0;
|
|
586
586
|
for (var i in n) {
|
|
587
|
-
var s = n[i], l = s[0], c = s[1], d = c.level == 0 ? 0 : 8, u =
|
|
588
|
-
p > 65535 &&
|
|
589
|
-
var
|
|
590
|
-
b.p(l), r.push(
|
|
587
|
+
var s = n[i], l = s[0], c = s[1], d = c.level == 0 ? 0 : 8, u = we(i), p = u.length, m = c.comment, f = m && we(m), h = f && f.length, x = Bt(c.extra);
|
|
588
|
+
p > 65535 && _(11);
|
|
589
|
+
var w = d ? mi(l, c) : l, g = w.length, b = Br();
|
|
590
|
+
b.p(l), r.push(Fr(c, {
|
|
591
591
|
size: l.length,
|
|
592
592
|
crc: b.d(),
|
|
593
|
-
c:
|
|
593
|
+
c: w,
|
|
594
594
|
f: u,
|
|
595
595
|
m: f,
|
|
596
596
|
u: p != i.length || f && m.length != h,
|
|
597
597
|
o: a,
|
|
598
598
|
compression: d
|
|
599
|
-
})), a += 30 + p +
|
|
599
|
+
})), a += 30 + p + x + g, o += 76 + 2 * (p + x) + (h || 0) + g;
|
|
600
600
|
}
|
|
601
|
-
for (var y = new
|
|
601
|
+
for (var y = new H(o + 22), E = a, A = o - a, M = 0; M < r.length; ++M) {
|
|
602
602
|
var u = r[M];
|
|
603
603
|
Vn(y, u.o, u, u.f, u.u, u.c.length);
|
|
604
|
-
var k = 30 + u.f.length +
|
|
604
|
+
var k = 30 + u.f.length + Bt(u.extra);
|
|
605
605
|
y.set(u.c, u.o + k), Vn(y, a, u, u.f, u.u, u.c.length, u.o, u.m), a += 16 + k + (u.m ? u.m.length : 0);
|
|
606
606
|
}
|
|
607
607
|
return bi(y, a, r.length, A, E), y;
|
|
608
608
|
}
|
|
609
609
|
function Li(e, t) {
|
|
610
610
|
for (var n = {}, r = e.length - 22; K(e, r) != 101010256; --r)
|
|
611
|
-
(!r || e.length - r > 65558) &&
|
|
611
|
+
(!r || e.length - r > 65558) && _(13);
|
|
612
612
|
var a = J(e, r + 8);
|
|
613
613
|
if (!a)
|
|
614
614
|
return {};
|
|
@@ -618,8 +618,8 @@ function Li(e, t) {
|
|
|
618
618
|
i = K(e, s) == 101075792, i && (a = K(e, s + 32), o = K(e, s + 48));
|
|
619
619
|
}
|
|
620
620
|
for (var l = 0; l < a; ++l) {
|
|
621
|
-
var c =
|
|
622
|
-
o = f, d ? d == 8 ? n[m] = pi(e.subarray(
|
|
621
|
+
var c = vi(e, o, i), d = c[0], u = c[1], p = c[2], m = c[3], f = c[4], h = c[5], x = wi(e, h);
|
|
622
|
+
o = f, d ? d == 8 ? n[m] = pi(e.subarray(x, x + u), { out: new H(p) }) : _(14, "unknown compression type " + d) : n[m] = De(e, x, x + u);
|
|
623
623
|
}
|
|
624
624
|
return n;
|
|
625
625
|
}
|
|
@@ -652,7 +652,7 @@ class ln {
|
|
|
652
652
|
this.chunks.push(t), this.length += t.length;
|
|
653
653
|
}
|
|
654
654
|
writeString(t) {
|
|
655
|
-
const n =
|
|
655
|
+
const n = we(t);
|
|
656
656
|
this.writeU32(n.length), this.writeBytes(n);
|
|
657
657
|
}
|
|
658
658
|
writeJson(t) {
|
|
@@ -798,22 +798,22 @@ class cn {
|
|
|
798
798
|
return new Uint8Array(r).set(n), new Uint32Array(r);
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
|
-
const D = 4,
|
|
802
|
-
let
|
|
801
|
+
const D = 4, Tt = "gzip", Ci = 512 * 1024 * 1024, Ft = 256 * 1024 * 1024;
|
|
802
|
+
let Fe = null;
|
|
803
803
|
function Gd(e) {
|
|
804
|
-
|
|
804
|
+
Fe = e;
|
|
805
805
|
}
|
|
806
806
|
function Ue(e) {
|
|
807
807
|
return {
|
|
808
|
-
bytes:
|
|
809
|
-
compression:
|
|
808
|
+
bytes: Fe ? Fe.gzipSync(e) : fi(e),
|
|
809
|
+
compression: Tt
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
async function
|
|
813
|
-
if (
|
|
812
|
+
async function Rr(e) {
|
|
813
|
+
if (Fe)
|
|
814
814
|
return {
|
|
815
|
-
bytes: await
|
|
816
|
-
compression:
|
|
815
|
+
bytes: await Fe.gzip(e),
|
|
816
|
+
compression: Tt
|
|
817
817
|
};
|
|
818
818
|
if (typeof CompressionStream > "u")
|
|
819
819
|
return Ue(e);
|
|
@@ -823,17 +823,17 @@ async function Or(e) {
|
|
|
823
823
|
const n = new Blob([t]).stream().pipeThrough(new CompressionStream("gzip"));
|
|
824
824
|
return {
|
|
825
825
|
bytes: new Uint8Array(await new Response(n).arrayBuffer()),
|
|
826
|
-
compression:
|
|
826
|
+
compression: Tt
|
|
827
827
|
};
|
|
828
828
|
} catch {
|
|
829
829
|
return Ue(e);
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function _r(e) {
|
|
833
833
|
return e.byteLength >= 2 && e[0] === 31 && e[1] === 139;
|
|
834
834
|
}
|
|
835
835
|
function dn(e) {
|
|
836
|
-
if (e.byteLength >
|
|
836
|
+
if (e.byteLength > Ft)
|
|
837
837
|
throw new Error("Compressed payload exceeds size limit");
|
|
838
838
|
const t = hi(e);
|
|
839
839
|
if (t.byteLength > Ci)
|
|
@@ -843,12 +843,12 @@ function dn(e) {
|
|
|
843
843
|
const We = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!#$%()*+,-.;=?@[]^_{|}~", Ut = new Int16Array(128).fill(-1);
|
|
844
844
|
for (let e = 0; e < We.length; e++)
|
|
845
845
|
Ut[We.charCodeAt(e)] = e;
|
|
846
|
-
function
|
|
846
|
+
function Or(e) {
|
|
847
847
|
const t = (e == null ? void 0 : e.toLowerCase()) ?? "";
|
|
848
848
|
return t.includes(";base85") || t.endsWith("base85") ? "base85" : "base64";
|
|
849
849
|
}
|
|
850
850
|
function Ne(e, t) {
|
|
851
|
-
return t === "base85" ? Ei(e) :
|
|
851
|
+
return t === "base85" ? Ei(e) : Hi(e);
|
|
852
852
|
}
|
|
853
853
|
function lt(e, t) {
|
|
854
854
|
const n = e.length > 0 && (e.charCodeAt(0) <= 32 || e.charCodeAt(e.length - 1) <= 32) ? e.trim() : e;
|
|
@@ -893,7 +893,7 @@ function Si(e) {
|
|
|
893
893
|
throw new Error("Invalid base85 character");
|
|
894
894
|
return t;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Hi(e) {
|
|
897
897
|
let t = "";
|
|
898
898
|
for (let n = 0; n < e.length; n++)
|
|
899
899
|
t += String.fromCharCode(e[n]);
|
|
@@ -905,7 +905,7 @@ function Pi(e) {
|
|
|
905
905
|
n[r] = t.charCodeAt(r);
|
|
906
906
|
return n;
|
|
907
907
|
}
|
|
908
|
-
const
|
|
908
|
+
const Rt = 1, _t = 2, Ot = 4, Dt = 8, Nt = 16, Dr = 32, $t = 1, Vt = 2, Xt = 4, Yt = 8, Zt = 16, Nr = 32, jt = 64, Gt = 128;
|
|
909
909
|
function un(e) {
|
|
910
910
|
let t = 256 + e.positions.byteLength;
|
|
911
911
|
return e.indices && (t += e.indices.byteLength), e.lineDistances && (t += e.lineDistances.byteLength), e.linePattern && (t += 64 + e.linePattern.pattern.length * 8), t;
|
|
@@ -917,7 +917,7 @@ function mn(e) {
|
|
|
917
917
|
function $r(e, t) {
|
|
918
918
|
e.writeString(t.layer), e.writeU32(t.color >>> 0), e.writeF64(t.offset[0]), e.writeF64(t.offset[1]), e.writeF64(t.offset[2]), e.writeFloat32Array(t.positions);
|
|
919
919
|
let n = 0;
|
|
920
|
-
t.indices && t.indices.length > 0 && (n |=
|
|
920
|
+
t.indices && t.indices.length > 0 && (n |= Rt), t.linePattern && (n |= _t), t.lineDistances && t.lineDistances.length > 0 && (n |= Ot), t.lineWidth != null && t.lineWidth > 0 && (n |= Dt), t.renderOrder != null && t.renderOrder !== 0 && (n |= Nt), t.excludeFromOsnap && (n |= Dr), e.writeU8(n), n & Rt && e.writeUint32Array(t.indices), n & _t && e.writeJson(t.linePattern), n & Ot && e.writeFloat32Array(t.lineDistances), n & Dt && e.writeF32(t.lineWidth), n & Nt && e.writeI32(t.renderOrder);
|
|
921
921
|
}
|
|
922
922
|
function Vr(e) {
|
|
923
923
|
const t = e.readString(), n = e.readU32(), r = [
|
|
@@ -925,7 +925,7 @@ function Vr(e) {
|
|
|
925
925
|
e.readF64(),
|
|
926
926
|
e.readF64()
|
|
927
927
|
], a = e.readFloat32Array(), o = e.readU8(), i = { layer: t, color: n, offset: r, positions: a };
|
|
928
|
-
return o &
|
|
928
|
+
return o & Rt && (i.indices = e.readUint32Array()), o & _t && (i.linePattern = e.readJson()), o & Ot && (i.lineDistances = e.readFloat32Array()), o & Dt && (i.lineWidth = e.readF32()), o & Nt && (i.renderOrder = e.readI32()), o & Dr && (i.excludeFromOsnap = !0), i;
|
|
929
929
|
}
|
|
930
930
|
function Xr(e, t) {
|
|
931
931
|
e.writeString(t.layer), e.writeU32(t.color >>> 0), e.writeF64(t.offset[0]), e.writeF64(t.offset[1]), e.writeF64(t.offset[2]), e.writeFloat32Array(t.positions);
|
|
@@ -948,7 +948,7 @@ function Yr(e) {
|
|
|
948
948
|
}
|
|
949
949
|
return i;
|
|
950
950
|
}
|
|
951
|
-
const pn = 1329939265, Zr = 1, jr = 5e5,
|
|
951
|
+
const pn = 1329939265, Zr = 1, jr = 5e5, Ii = 1e5, Gr = 1, Kr = 2, Wr = 3, Jr = 4, qr = 5, Qr = 6, ea = 7;
|
|
952
952
|
function ta(e) {
|
|
953
953
|
var t;
|
|
954
954
|
switch (e.kind) {
|
|
@@ -970,7 +970,7 @@ function ta(e) {
|
|
|
970
970
|
return e;
|
|
971
971
|
}
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function zi(e, t) {
|
|
974
974
|
if (e.length === 0)
|
|
975
975
|
return [];
|
|
976
976
|
const n = [];
|
|
@@ -1000,7 +1000,7 @@ function $e(e) {
|
|
|
1000
1000
|
t.writeString(o);
|
|
1001
1001
|
t.writeU32(e.primitives.length);
|
|
1002
1002
|
for (const o of e.primitives)
|
|
1003
|
-
|
|
1003
|
+
Ri(t, o, a(o.layer));
|
|
1004
1004
|
return t.toUint8Array();
|
|
1005
1005
|
}
|
|
1006
1006
|
function fn(e) {
|
|
@@ -1011,7 +1011,7 @@ function fn(e) {
|
|
|
1011
1011
|
if (t.readU8(), t.readU8(), t.readU8(), r !== Zr)
|
|
1012
1012
|
throw new Error(`Unsupported osnap catalog version: ${r}`);
|
|
1013
1013
|
const a = t.readU32();
|
|
1014
|
-
if (a >
|
|
1014
|
+
if (a > Ii)
|
|
1015
1015
|
throw new Error("Osnap layer count exceeds limit");
|
|
1016
1016
|
const o = [];
|
|
1017
1017
|
for (let l = 0; l < a; l++)
|
|
@@ -1021,22 +1021,22 @@ function fn(e) {
|
|
|
1021
1021
|
throw new Error("Osnap primitive count exceeds limit");
|
|
1022
1022
|
const s = [];
|
|
1023
1023
|
for (let l = 0; l < i; l++)
|
|
1024
|
-
s.push(
|
|
1024
|
+
s.push(_i(t, o));
|
|
1025
1025
|
return { primitives: s };
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Bi(e) {
|
|
1028
1028
|
const t = $e(e), n = Ue(t).bytes;
|
|
1029
1029
|
return { uncompressed: t, compressed: n };
|
|
1030
1030
|
}
|
|
1031
|
-
async function
|
|
1032
|
-
const t = $e(e), n = (await
|
|
1031
|
+
async function Ti(e) {
|
|
1032
|
+
const t = $e(e), n = (await Rr(t)).bytes;
|
|
1033
1033
|
return { uncompressed: t, compressed: n };
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function Fi(e) {
|
|
1036
1036
|
return fn(dn(e));
|
|
1037
1037
|
}
|
|
1038
1038
|
function Ui(e) {
|
|
1039
|
-
return
|
|
1039
|
+
return _r(e) ? Fi(e) : fn(e);
|
|
1040
1040
|
}
|
|
1041
1041
|
function At(e, t) {
|
|
1042
1042
|
e.writeU8(t < 0 ? 0 : 1);
|
|
@@ -1049,7 +1049,7 @@ function Se(e, t) {
|
|
|
1049
1049
|
for (const n of t)
|
|
1050
1050
|
e.writeF64(n);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function He(e) {
|
|
1053
1053
|
const t = e.readU32();
|
|
1054
1054
|
if (t > jr)
|
|
1055
1055
|
throw new Error("Float64 array count exceeds limit");
|
|
@@ -1058,7 +1058,7 @@ function Ie(e) {
|
|
|
1058
1058
|
n.push(e.readF64());
|
|
1059
1059
|
return n;
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function Ri(e, t, n) {
|
|
1062
1062
|
switch (t.kind) {
|
|
1063
1063
|
case "line":
|
|
1064
1064
|
e.writeU8(Gr), e.writeU32(n), e.writeF64(t.x0), e.writeF64(t.y0), e.writeF64(t.x1), e.writeF64(t.y1);
|
|
@@ -1087,7 +1087,7 @@ function Oi(e, t, n) {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function _i(e, t) {
|
|
1091
1091
|
const n = e.readU8(), r = e.readU32(), a = t[r];
|
|
1092
1092
|
if (a == null)
|
|
1093
1093
|
throw new Error(`Invalid osnap layer index: ${r}`);
|
|
@@ -1137,7 +1137,7 @@ function Ri(e, t) {
|
|
|
1137
1137
|
normalSign: Ct(e)
|
|
1138
1138
|
};
|
|
1139
1139
|
case qr: {
|
|
1140
|
-
const o =
|
|
1140
|
+
const o = He(e), i = e.readU32(), s = He(e), l = He(e), c = e.readU8() !== 0, d = He(e);
|
|
1141
1141
|
return {
|
|
1142
1142
|
kind: "spline",
|
|
1143
1143
|
layer: a,
|
|
@@ -1157,7 +1157,7 @@ function Ri(e, t) {
|
|
|
1157
1157
|
y: e.readF64()
|
|
1158
1158
|
};
|
|
1159
1159
|
case ea: {
|
|
1160
|
-
const o = e.readU8() !== 0, i =
|
|
1160
|
+
const o = e.readU8() !== 0, i = He(e);
|
|
1161
1161
|
return {
|
|
1162
1162
|
kind: "path",
|
|
1163
1163
|
layer: a,
|
|
@@ -1170,7 +1170,7 @@ function Ri(e, t) {
|
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
1172
|
const na = 1480934209;
|
|
1173
|
-
function
|
|
1173
|
+
function Oi(e) {
|
|
1174
1174
|
if (e.version !== D)
|
|
1175
1175
|
throw new Error(`Unsupported snapshot version: ${e.version}`);
|
|
1176
1176
|
const t = new ln();
|
|
@@ -1295,7 +1295,7 @@ const Ki = "application/vnd.mlightcad.acex-snapshot+binary";
|
|
|
1295
1295
|
function Wi(e) {
|
|
1296
1296
|
if (e.version !== D)
|
|
1297
1297
|
throw new Error(`Unsupported snapshot version: ${e.version}`);
|
|
1298
|
-
const t =
|
|
1298
|
+
const t = Oi(e), n = Ue(t);
|
|
1299
1299
|
return {
|
|
1300
1300
|
payload: Ne(n.bytes, "base85"),
|
|
1301
1301
|
compression: n.compression
|
|
@@ -1311,7 +1311,7 @@ function Ji(e) {
|
|
|
1311
1311
|
return Di(t);
|
|
1312
1312
|
}
|
|
1313
1313
|
function qi(e, t = "base85") {
|
|
1314
|
-
const n = t === "base64" || t === "base85" ? t :
|
|
1314
|
+
const n = t === "base64" || t === "base85" ? t : Or(t);
|
|
1315
1315
|
return lt(e, n);
|
|
1316
1316
|
}
|
|
1317
1317
|
function Qi() {
|
|
@@ -1376,7 +1376,7 @@ function Yn(e, t) {
|
|
|
1376
1376
|
const n = t * 3;
|
|
1377
1377
|
return Number.isFinite(e[n]) && Number.isFinite(e[n + 1]) && Number.isFinite(e[n + 2]);
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function ve(e, t) {
|
|
1380
1380
|
const n = e.positions, r = n.length / 3 | 0;
|
|
1381
1381
|
if (r === 0 || t <= 0)
|
|
1382
1382
|
return e;
|
|
@@ -1597,14 +1597,14 @@ function ds(e) {
|
|
|
1597
1597
|
e && (e.bytes = new Uint8Array(0));
|
|
1598
1598
|
}
|
|
1599
1599
|
const sa = { value: 1 };
|
|
1600
|
-
function
|
|
1600
|
+
function xn(e) {
|
|
1601
1601
|
const t = e;
|
|
1602
1602
|
if (t.isShaderMaterial === !0 || e.type === "ShaderMaterial")
|
|
1603
1603
|
return t;
|
|
1604
1604
|
}
|
|
1605
1605
|
function us(e) {
|
|
1606
1606
|
var o;
|
|
1607
|
-
const t =
|
|
1607
|
+
const t = xn(e);
|
|
1608
1608
|
if (!t)
|
|
1609
1609
|
return;
|
|
1610
1610
|
const n = t.uniforms.pattern, r = t.uniforms.patternLength;
|
|
@@ -1620,7 +1620,7 @@ function us(e) {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
function ms(e) {
|
|
1622
1622
|
var a;
|
|
1623
|
-
const t =
|
|
1623
|
+
const t = xn(e);
|
|
1624
1624
|
if (!t)
|
|
1625
1625
|
return;
|
|
1626
1626
|
const n = t.uniforms.u_patternLines;
|
|
@@ -1635,7 +1635,7 @@ function ms(e) {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
function ps(e) {
|
|
1637
1637
|
var o, i, s, l, c;
|
|
1638
|
-
const t =
|
|
1638
|
+
const t = xn(e);
|
|
1639
1639
|
if (!t || t.uniforms.u_patternLines)
|
|
1640
1640
|
return;
|
|
1641
1641
|
const n = (o = t.uniforms.u_startColor) == null ? void 0 : o.value, r = (i = t.uniforms.u_endColor) == null ? void 0 : i.value, a = t.uniforms.u_gradientType;
|
|
@@ -1666,7 +1666,7 @@ function hs(e) {
|
|
|
1666
1666
|
patternLength: e.patternLength
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function wn(e) {
|
|
1670
1670
|
const t = e.length / 3;
|
|
1671
1671
|
if (t < 2)
|
|
1672
1672
|
return new Float32Array(0);
|
|
@@ -1738,16 +1738,16 @@ function Zn(e, t) {
|
|
|
1738
1738
|
n * p + a * m,
|
|
1739
1739
|
r * p + o * m
|
|
1740
1740
|
], u = (p, m, f) => {
|
|
1741
|
-
const h = Math.cos(f),
|
|
1742
|
-
return [h * p -
|
|
1741
|
+
const h = Math.cos(f), x = Math.sin(f);
|
|
1742
|
+
return [h * p - x * m, x * p + h * m];
|
|
1743
1743
|
};
|
|
1744
1744
|
return {
|
|
1745
1745
|
patternAngle: e.patternAngle,
|
|
1746
1746
|
patternLines: e.patternLines.map((p) => {
|
|
1747
|
-
const m = p.angle + e.patternAngle, f = p.angle + l, h = f + e.patternAngle, [
|
|
1747
|
+
const m = p.angle + e.patternAngle, f = p.angle + l, h = f + e.patternAngle, [x, w] = d(
|
|
1748
1748
|
Math.cos(m),
|
|
1749
1749
|
Math.sin(m)
|
|
1750
|
-
), g = Math.hypot(
|
|
1750
|
+
), g = Math.hypot(x, w), [b, y] = u(
|
|
1751
1751
|
p.offset[0],
|
|
1752
1752
|
p.offset[1],
|
|
1753
1753
|
m
|
|
@@ -1762,7 +1762,7 @@ function Zn(e, t) {
|
|
|
1762
1762
|
})
|
|
1763
1763
|
};
|
|
1764
1764
|
}
|
|
1765
|
-
function
|
|
1765
|
+
function xs(e, t) {
|
|
1766
1766
|
return {
|
|
1767
1767
|
patternAngle: e.patternAngle,
|
|
1768
1768
|
patternLines: e.patternLines.map((n) => {
|
|
@@ -1862,7 +1862,7 @@ function qe(e) {
|
|
|
1862
1862
|
) };
|
|
1863
1863
|
}
|
|
1864
1864
|
function Qe(e) {
|
|
1865
|
-
return
|
|
1865
|
+
return wo(e.flags) && vo(e.flags);
|
|
1866
1866
|
}
|
|
1867
1867
|
function la(e) {
|
|
1868
1868
|
const { count: t } = e.mappingStats;
|
|
@@ -1881,7 +1881,7 @@ function la(e) {
|
|
|
1881
1881
|
function Jt(e) {
|
|
1882
1882
|
return yr(e).bboxIntersectionCheck === !0;
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function vn(e, t) {
|
|
1885
1885
|
const n = t.getAttribute("position");
|
|
1886
1886
|
if (!n)
|
|
1887
1887
|
return { positions: new Float32Array(0) };
|
|
@@ -1894,10 +1894,10 @@ function xn(e, t) {
|
|
|
1894
1894
|
), p = o.array;
|
|
1895
1895
|
let m = 0;
|
|
1896
1896
|
const f = [];
|
|
1897
|
-
for (let
|
|
1897
|
+
for (let w = 0; w < i; w++) {
|
|
1898
1898
|
let g;
|
|
1899
1899
|
try {
|
|
1900
|
-
g = e.getGeometryRangeAt(
|
|
1900
|
+
g = e.getGeometryRangeAt(w);
|
|
1901
1901
|
} catch {
|
|
1902
1902
|
continue;
|
|
1903
1903
|
}
|
|
@@ -1907,10 +1907,10 @@ function xn(e, t) {
|
|
|
1907
1907
|
if (m === 0)
|
|
1908
1908
|
return { positions: new Float32Array(0) };
|
|
1909
1909
|
const h = new Uint32Array(m);
|
|
1910
|
-
let
|
|
1911
|
-
for (const
|
|
1912
|
-
for (let g = 0; g <
|
|
1913
|
-
h[
|
|
1910
|
+
let x = 0;
|
|
1911
|
+
for (const w of f)
|
|
1912
|
+
for (let g = 0; g < w.count; g++)
|
|
1913
|
+
h[x++] = p[w.start + g];
|
|
1914
1914
|
return ra(u, h);
|
|
1915
1915
|
}
|
|
1916
1916
|
let s = 0;
|
|
@@ -1953,7 +1953,7 @@ function jn(e, t, n) {
|
|
|
1953
1953
|
t.getZ(n)
|
|
1954
1954
|
);
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function ws(e, t) {
|
|
1957
1957
|
const n = t.getAttribute("instanceStart"), r = t.getAttribute("instanceEnd");
|
|
1958
1958
|
if (!n || !r)
|
|
1959
1959
|
return { positions: new Float32Array(0) };
|
|
@@ -1973,7 +1973,7 @@ function vs(e, t) {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
return { positions: new Float32Array(o) };
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function vs(e, t) {
|
|
1977
1977
|
const r = e.instanceCount;
|
|
1978
1978
|
if (Number.isFinite(r) && r >= 0)
|
|
1979
1979
|
return Math.min(Math.floor(r), t);
|
|
@@ -1984,7 +1984,7 @@ function ys(e) {
|
|
|
1984
1984
|
const t = e.getAttribute("instanceStart"), n = e.getAttribute("instanceEnd");
|
|
1985
1985
|
if (!t || !n || t.count === 0)
|
|
1986
1986
|
return { positions: new Float32Array(0) };
|
|
1987
|
-
const r =
|
|
1987
|
+
const r = vs(
|
|
1988
1988
|
e,
|
|
1989
1989
|
t.count
|
|
1990
1990
|
);
|
|
@@ -2017,7 +2017,7 @@ function ca(e) {
|
|
|
2017
2017
|
if (e instanceof kr)
|
|
2018
2018
|
return e.linewidth;
|
|
2019
2019
|
}
|
|
2020
|
-
function
|
|
2020
|
+
function ze(e) {
|
|
2021
2021
|
if ("material" in e) {
|
|
2022
2022
|
const n = e.userData.originalMaterial ?? e.material;
|
|
2023
2023
|
return Array.isArray(n) ? n[0] : n;
|
|
@@ -2080,12 +2080,12 @@ function Ls(e) {
|
|
|
2080
2080
|
n[r] = r;
|
|
2081
2081
|
return { ...e, indices: n };
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Re(e, t, n, r, a, o = !1) {
|
|
2084
2084
|
o && (r = Ls(r));
|
|
2085
2085
|
const i = de(t), s = ks(
|
|
2086
2086
|
n,
|
|
2087
2087
|
i.hatchPattern
|
|
2088
|
-
), l = s ?
|
|
2088
|
+
), l = s ? xs(s, a) : void 0, c = i.gradientFill ? gs(e, "gradientPosition") : void 0, d = {
|
|
2089
2089
|
layer: i.layer,
|
|
2090
2090
|
color: i.color,
|
|
2091
2091
|
offset: a,
|
|
@@ -2104,7 +2104,7 @@ function Oe(e, t, n, r, a, o = !1) {
|
|
|
2104
2104
|
return ye(d, n, t), d;
|
|
2105
2105
|
}
|
|
2106
2106
|
function As(e) {
|
|
2107
|
-
const t =
|
|
2107
|
+
const t = ws(e, e.geometry);
|
|
2108
2108
|
if (t.positions.length === 0)
|
|
2109
2109
|
return;
|
|
2110
2110
|
const { color: n, layer: r } = de(e.material), a = ca(e.material), o = {
|
|
@@ -2117,12 +2117,12 @@ function As(e) {
|
|
|
2117
2117
|
return la(e) && (o.excludeFromOsnap = !0), ye(o, e, e.material), o;
|
|
2118
2118
|
}
|
|
2119
2119
|
function Cs(e) {
|
|
2120
|
-
const t =
|
|
2120
|
+
const t = vn(e, e.geometry);
|
|
2121
2121
|
if (t.positions.length === 0)
|
|
2122
2122
|
return;
|
|
2123
2123
|
const { color: n, layer: r, linePattern: a } = de(
|
|
2124
2124
|
e.material
|
|
2125
|
-
), o = a ?
|
|
2125
|
+
), o = a ? wn(t.positions) : void 0, i = {
|
|
2126
2126
|
layer: r,
|
|
2127
2127
|
color: n,
|
|
2128
2128
|
offset: ct(e),
|
|
@@ -2133,9 +2133,9 @@ function Cs(e) {
|
|
|
2133
2133
|
return la(e) && (i.excludeFromOsnap = !0), ye(i, e, e.material), i;
|
|
2134
2134
|
}
|
|
2135
2135
|
function Es(e) {
|
|
2136
|
-
const t =
|
|
2136
|
+
const t = vn(e, e.geometry);
|
|
2137
2137
|
if (t.positions.length !== 0)
|
|
2138
|
-
return
|
|
2138
|
+
return Re(
|
|
2139
2139
|
e.geometry,
|
|
2140
2140
|
e.material,
|
|
2141
2141
|
e,
|
|
@@ -2145,10 +2145,10 @@ function Es(e) {
|
|
|
2145
2145
|
);
|
|
2146
2146
|
}
|
|
2147
2147
|
function Ms(e) {
|
|
2148
|
-
const t =
|
|
2148
|
+
const t = vn(e, e.geometry);
|
|
2149
2149
|
if (t.positions.length === 0)
|
|
2150
2150
|
return;
|
|
2151
|
-
const n =
|
|
2151
|
+
const n = Re(
|
|
2152
2152
|
e.geometry,
|
|
2153
2153
|
e.material,
|
|
2154
2154
|
e,
|
|
@@ -2167,7 +2167,7 @@ function Ss(e) {
|
|
|
2167
2167
|
const t = e;
|
|
2168
2168
|
return t.isInstancedMesh === !0 && t.instanceMatrix != null && typeof t.count == "number" && t.geometry != null;
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function Hs(e) {
|
|
2171
2171
|
return e.renderOrder < 1e4 || e.isInstancedMesh === !0 ? !1 : yr(e).sharesTemplateGeometry === !0;
|
|
2172
2172
|
}
|
|
2173
2173
|
function qt(e) {
|
|
@@ -2179,7 +2179,7 @@ function qt(e) {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
function da(e, t) {
|
|
2181
2181
|
var p;
|
|
2182
|
-
const n =
|
|
2182
|
+
const n = ve(
|
|
2183
2183
|
qe(e.geometry),
|
|
2184
2184
|
t
|
|
2185
2185
|
), r = n.positions.length;
|
|
@@ -2198,13 +2198,13 @@ function da(e, t) {
|
|
|
2198
2198
|
const f = hn(n, et);
|
|
2199
2199
|
if (s.set(f.positions, d * r), l && f.indices) {
|
|
2200
2200
|
const h = d * c;
|
|
2201
|
-
for (let
|
|
2202
|
-
l[d * o +
|
|
2201
|
+
for (let x = 0; x < f.indices.length; x++)
|
|
2202
|
+
l[d * o + x] = f.indices[x] + h;
|
|
2203
2203
|
}
|
|
2204
2204
|
d++;
|
|
2205
2205
|
}
|
|
2206
2206
|
const u = gn(
|
|
2207
|
-
|
|
2207
|
+
ve(
|
|
2208
2208
|
{ positions: s, indices: l },
|
|
2209
2209
|
t
|
|
2210
2210
|
)
|
|
@@ -2216,16 +2216,16 @@ function Ps(e) {
|
|
|
2216
2216
|
const t = de(e), n = e;
|
|
2217
2217
|
return !!(t.hatchPattern || t.gradientFill || n.map);
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2219
|
+
function Is(e, t) {
|
|
2220
2220
|
e.updateMatrixWorld(!0);
|
|
2221
2221
|
const n = e.instanceMatrix.array;
|
|
2222
2222
|
for (let r = 0; r < e.count; r++)
|
|
2223
2223
|
ie.fromArray(n, r * 16), qt(ie) && (et.multiplyMatrices(e.matrixWorld, ie), t(et));
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function zs(e, t) {
|
|
2226
2226
|
const n = da(e, 2);
|
|
2227
2227
|
if (!n) return;
|
|
2228
|
-
const r =
|
|
2228
|
+
const r = ze(e), { color: a, layer: o, linePattern: i } = de(r), s = i ? wn(n.slice.positions) : void 0, l = {
|
|
2229
2229
|
layer: o,
|
|
2230
2230
|
color: a,
|
|
2231
2231
|
offset: n.offset,
|
|
@@ -2236,23 +2236,23 @@ function Bs(e, t) {
|
|
|
2236
2236
|
Jt(e) && (l.excludeFromOsnap = !0), ye(l, e, r), t.push(l);
|
|
2237
2237
|
}
|
|
2238
2238
|
function Gn(e, t, n) {
|
|
2239
|
-
const r =
|
|
2239
|
+
const r = ze(e);
|
|
2240
2240
|
if (!n && ia(r)) return;
|
|
2241
2241
|
if (!n && Ps(r)) {
|
|
2242
|
-
const i =
|
|
2242
|
+
const i = ve(
|
|
2243
2243
|
qe(e.geometry),
|
|
2244
2244
|
3
|
|
2245
2245
|
);
|
|
2246
2246
|
if (i.positions.length === 0) return;
|
|
2247
|
-
|
|
2248
|
-
const l =
|
|
2247
|
+
Is(e, (s) => {
|
|
2248
|
+
const l = ve(
|
|
2249
2249
|
hn(i, s),
|
|
2250
2250
|
3
|
|
2251
2251
|
);
|
|
2252
2252
|
if (l.positions.length === 0) return;
|
|
2253
2253
|
const c = gn(l);
|
|
2254
2254
|
Pe.matrix.copy(s), Pe.matrixWorld.copy(s), Pe.matrixWorldNeedsUpdate = !1;
|
|
2255
|
-
const d =
|
|
2255
|
+
const d = Re(
|
|
2256
2256
|
e.geometry,
|
|
2257
2257
|
r,
|
|
2258
2258
|
Pe,
|
|
@@ -2266,7 +2266,7 @@ function Gn(e, t, n) {
|
|
|
2266
2266
|
}
|
|
2267
2267
|
const a = da(e, n ? 1 : 3);
|
|
2268
2268
|
if (!a) return;
|
|
2269
|
-
const o =
|
|
2269
|
+
const o = Re(
|
|
2270
2270
|
e.geometry,
|
|
2271
2271
|
r,
|
|
2272
2272
|
e,
|
|
@@ -2288,16 +2288,16 @@ function Wn(e) {
|
|
|
2288
2288
|
const t = e;
|
|
2289
2289
|
return e instanceof L.Mesh || t.isMesh === !0 || t.isInstancedMesh === !0 || e.type === "Mesh";
|
|
2290
2290
|
}
|
|
2291
|
-
function
|
|
2291
|
+
function Bs(e) {
|
|
2292
2292
|
const t = [], n = [];
|
|
2293
2293
|
return e.traverse((r) => {
|
|
2294
|
-
if (!(fo(r) || ho(r) ||
|
|
2294
|
+
if (!(fo(r) || ho(r) || Hs(r))) {
|
|
2295
2295
|
if (Ss(r)) {
|
|
2296
2296
|
if (!je(r, e)) return;
|
|
2297
|
-
r.isPoints === !0 ? Gn(r, n, !0) : Kn(r) && !Ge(r) ?
|
|
2297
|
+
r.isPoints === !0 ? Gn(r, n, !0) : Kn(r) && !Ge(r) ? zs(r, t) : Wn(r) && !Ge(r) && Gn(r, n, !1);
|
|
2298
2298
|
return;
|
|
2299
2299
|
}
|
|
2300
|
-
if (r instanceof
|
|
2300
|
+
if (r instanceof Rn) {
|
|
2301
2301
|
const a = Cs(r);
|
|
2302
2302
|
a && t.push(a);
|
|
2303
2303
|
return;
|
|
@@ -2307,12 +2307,12 @@ function Ts(e) {
|
|
|
2307
2307
|
a && t.push(a);
|
|
2308
2308
|
return;
|
|
2309
2309
|
}
|
|
2310
|
-
if (r instanceof
|
|
2310
|
+
if (r instanceof _n) {
|
|
2311
2311
|
const a = Es(r);
|
|
2312
2312
|
a && n.push(a);
|
|
2313
2313
|
return;
|
|
2314
2314
|
}
|
|
2315
|
-
if (r instanceof
|
|
2315
|
+
if (r instanceof xo) {
|
|
2316
2316
|
const a = Ms(r);
|
|
2317
2317
|
a && n.push(a);
|
|
2318
2318
|
return;
|
|
@@ -2321,7 +2321,7 @@ function Ts(e) {
|
|
|
2321
2321
|
if (!je(r, e)) return;
|
|
2322
2322
|
const a = ys(r.geometry);
|
|
2323
2323
|
if (a.positions.length === 0) return;
|
|
2324
|
-
const o =
|
|
2324
|
+
const o = ze(r), { color: i, layer: s } = de(o), { offset: l, ...c } = Et(r, a), d = {
|
|
2325
2325
|
layer: s,
|
|
2326
2326
|
color: i,
|
|
2327
2327
|
offset: l,
|
|
@@ -2329,14 +2329,14 @@ function Ts(e) {
|
|
|
2329
2329
|
...c
|
|
2330
2330
|
};
|
|
2331
2331
|
Jt(r) && (d.excludeFromOsnap = !0), ye(d, r, o), t.push(d);
|
|
2332
|
-
} else if (Kn(r) && !(r instanceof
|
|
2332
|
+
} else if (Kn(r) && !(r instanceof Rn)) {
|
|
2333
2333
|
if (!je(r, e)) return;
|
|
2334
|
-
const a =
|
|
2334
|
+
const a = ve(
|
|
2335
2335
|
qe(r.geometry),
|
|
2336
2336
|
2
|
|
2337
2337
|
);
|
|
2338
2338
|
if (a.positions.length === 0) return;
|
|
2339
|
-
const o =
|
|
2339
|
+
const o = ze(r), { color: i, layer: s, linePattern: l } = de(o), { offset: c, ...d } = Et(r, a), u = l ? wn(d.positions) : void 0, p = {
|
|
2340
2340
|
layer: s,
|
|
2341
2341
|
color: i,
|
|
2342
2342
|
offset: c,
|
|
@@ -2345,16 +2345,16 @@ function Ts(e) {
|
|
|
2345
2345
|
...d
|
|
2346
2346
|
};
|
|
2347
2347
|
Jt(r) && (p.excludeFromOsnap = !0), ye(p, r, o), t.push(p);
|
|
2348
|
-
} else if (Wn(r) && !Ge(r) && !(r instanceof
|
|
2348
|
+
} else if (Wn(r) && !Ge(r) && !(r instanceof _n)) {
|
|
2349
2349
|
if (!je(r, e)) return;
|
|
2350
|
-
const a =
|
|
2350
|
+
const a = ze(r);
|
|
2351
2351
|
if (ia(a)) return;
|
|
2352
|
-
const o =
|
|
2352
|
+
const o = ve(
|
|
2353
2353
|
qe(r.geometry),
|
|
2354
2354
|
3
|
|
2355
2355
|
);
|
|
2356
2356
|
if (o.positions.length === 0) return;
|
|
2357
|
-
const { offset: i, ...s } = Et(r, o), l =
|
|
2357
|
+
const { offset: i, ...s } = Et(r, o), l = Re(
|
|
2358
2358
|
r.geometry,
|
|
2359
2359
|
a,
|
|
2360
2360
|
r,
|
|
@@ -2376,16 +2376,16 @@ function qn(e) {
|
|
|
2376
2376
|
const t = new Lo(Ao.ByACI, e);
|
|
2377
2377
|
return t.cssColor ?? `rgb(${t.red}, ${t.green}, ${t.blue})`;
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function Ts(e) {
|
|
2380
2380
|
try {
|
|
2381
2381
|
const t = ko.instance(), n = t.getVar(
|
|
2382
|
-
|
|
2382
|
+
vt.GRIPSIZE,
|
|
2383
2383
|
e
|
|
2384
2384
|
), r = t.getVar(
|
|
2385
|
-
|
|
2385
|
+
vt.GRIPCOLOR,
|
|
2386
2386
|
e
|
|
2387
2387
|
), a = t.getVar(
|
|
2388
|
-
|
|
2388
|
+
vt.GRIPHOT,
|
|
2389
2389
|
e
|
|
2390
2390
|
);
|
|
2391
2391
|
return !(n > 0) || !Number.isFinite(n) ? Jn : {
|
|
@@ -2398,7 +2398,7 @@ function Fs(e) {
|
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
2400
|
function ua(e, t) {
|
|
2401
|
-
const n = e.extmin, r = e.extmax, a =
|
|
2401
|
+
const n = e.extmin, r = e.extmax, a = Ts(e);
|
|
2402
2402
|
return {
|
|
2403
2403
|
title: t == null ? void 0 : t.title,
|
|
2404
2404
|
extents: {
|
|
@@ -2432,8 +2432,8 @@ const tu = [
|
|
|
2432
2432
|
];
|
|
2433
2433
|
function ma(e, t) {
|
|
2434
2434
|
let n = t - e;
|
|
2435
|
-
for (; n <= 0; ) n +=
|
|
2436
|
-
for (; n >
|
|
2435
|
+
for (; n <= 0; ) n += Ie;
|
|
2436
|
+
for (; n > Ie; ) n -= Ie;
|
|
2437
2437
|
return n;
|
|
2438
2438
|
}
|
|
2439
2439
|
function Qn(e, t, n, r, a) {
|
|
@@ -2446,7 +2446,7 @@ function Qn(e, t, n, r, a) {
|
|
|
2446
2446
|
function er(e, t, n, r, a) {
|
|
2447
2447
|
return Math.atan2(r - t, a * (n - e));
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function Fs(e) {
|
|
2450
2450
|
const t = Qn(
|
|
2451
2451
|
e.cx,
|
|
2452
2452
|
e.cy,
|
|
@@ -2460,7 +2460,7 @@ function _s(e) {
|
|
|
2460
2460
|
e.endAngle,
|
|
2461
2461
|
e.normalSign
|
|
2462
2462
|
), r = ma(e.startAngle, e.endAngle), a = e.normalSign * Math.tan(r / 4);
|
|
2463
|
-
return new
|
|
2463
|
+
return new Oe(t, n, a);
|
|
2464
2464
|
}
|
|
2465
2465
|
function Us(e) {
|
|
2466
2466
|
return ma(e.startAngle, e.endAngle);
|
|
@@ -2469,16 +2469,16 @@ function nu(e, t) {
|
|
|
2469
2469
|
const n = Us(e), r = e.startAngle + t * n, a = e.normalSign ?? 1, o = e.majorR * Math.cos(r), i = a * e.minorR * Math.sin(r), s = e.majorX, l = e.majorY;
|
|
2470
2470
|
return new nn(e.cx + o * s - i * l, e.cy + o * l + i * s);
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2473
|
-
return e.kind === "circle" ? new
|
|
2472
|
+
function Rs(e) {
|
|
2473
|
+
return e.kind === "circle" ? new Oe(
|
|
2474
2474
|
{ x: e.cx, y: e.cy },
|
|
2475
2475
|
e.r,
|
|
2476
2476
|
0,
|
|
2477
|
-
|
|
2477
|
+
Ie,
|
|
2478
2478
|
e.normalSign === -1
|
|
2479
|
-
) :
|
|
2479
|
+
) : Fs(e);
|
|
2480
2480
|
}
|
|
2481
|
-
function
|
|
2481
|
+
function _s(e) {
|
|
2482
2482
|
const t = Math.atan2(e.majorY, e.majorX);
|
|
2483
2483
|
return new Lr(
|
|
2484
2484
|
{ x: e.cx, y: e.cy, z: 0 },
|
|
@@ -2490,7 +2490,7 @@ function Rs(e) {
|
|
|
2490
2490
|
t
|
|
2491
2491
|
);
|
|
2492
2492
|
}
|
|
2493
|
-
function
|
|
2493
|
+
function Os(e) {
|
|
2494
2494
|
const t = [];
|
|
2495
2495
|
for (let n = 0; n + 1 < e.controlPoints.length; n += 2)
|
|
2496
2496
|
t.push({
|
|
@@ -2517,11 +2517,11 @@ function ru(e) {
|
|
|
2517
2517
|
};
|
|
2518
2518
|
case "circle":
|
|
2519
2519
|
case "arc":
|
|
2520
|
-
return { kind: "circArc", curve:
|
|
2520
|
+
return { kind: "circArc", curve: Rs(e) };
|
|
2521
2521
|
case "ellipse":
|
|
2522
|
-
return { kind: "ellipse", curve:
|
|
2522
|
+
return { kind: "ellipse", curve: _s(e) };
|
|
2523
2523
|
case "spline":
|
|
2524
|
-
return { kind: "spline", curve:
|
|
2524
|
+
return { kind: "spline", curve: Os(e) };
|
|
2525
2525
|
case "point":
|
|
2526
2526
|
return { kind: "point", point: new nn(e.x, e.y) };
|
|
2527
2527
|
case "path":
|
|
@@ -2557,7 +2557,7 @@ function pa(e, t, n) {
|
|
|
2557
2557
|
normalSign: r
|
|
2558
2558
|
});
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function T(e, t) {
|
|
2561
2561
|
const n = new L.Vector3(t.x, t.y, t.z ?? 0).applyMatrix4(e);
|
|
2562
2562
|
return { x: n.x, y: n.y };
|
|
2563
2563
|
}
|
|
@@ -2602,7 +2602,7 @@ function Qt(e) {
|
|
|
2602
2602
|
e.elements[5],
|
|
2603
2603
|
e.elements[6]
|
|
2604
2604
|
).length();
|
|
2605
|
-
return
|
|
2605
|
+
return xe.equal(t, n, Cr * Math.max(t, n, 1));
|
|
2606
2606
|
}
|
|
2607
2607
|
function Ns(e, t) {
|
|
2608
2608
|
const n = e.tables.blockTable.getIdAt(t);
|
|
@@ -2653,14 +2653,14 @@ function le(e, t, n, r, a) {
|
|
|
2653
2653
|
if (r.length < 2) return;
|
|
2654
2654
|
const o = Qt(n), s = n.elements[0] * n.elements[5] - n.elements[4] * n.elements[1] < 0 ? -1 : 1, l = [];
|
|
2655
2655
|
for (const c of r) {
|
|
2656
|
-
const d =
|
|
2656
|
+
const d = T(n, c);
|
|
2657
2657
|
let u = c.bulge ?? 0;
|
|
2658
|
-
|
|
2658
|
+
xe.isPositive(Math.abs(u)) && (u = o ? u * s : 0), l.push(d.x, d.y, u);
|
|
2659
2659
|
}
|
|
2660
2660
|
e.push({ kind: "path", layer: t, closed: a, vertices: l });
|
|
2661
2661
|
}
|
|
2662
|
-
function
|
|
2663
|
-
return
|
|
2662
|
+
function xa(e, t) {
|
|
2663
|
+
return xe.equal(e.x, t.x) && xe.equal(e.y, t.y);
|
|
2664
2664
|
}
|
|
2665
2665
|
function Gs(e) {
|
|
2666
2666
|
return (e.clockwise ? -1 : 1) * Math.tan(e.deltaAngle / 4);
|
|
@@ -2671,12 +2671,12 @@ function tr(e, t, n, r) {
|
|
|
2671
2671
|
return;
|
|
2672
2672
|
}
|
|
2673
2673
|
const a = e[e.length - 1];
|
|
2674
|
-
|
|
2674
|
+
xa(a, t) ? a.bulge = r : (a.bulge = 0, e.push({ x: t.x, y: t.y, z: t.z ?? 0, bulge: r })), e.push({ x: n.x, y: n.y, z: n.z ?? 0, bulge: 0 });
|
|
2675
2675
|
}
|
|
2676
2676
|
function nr(e) {
|
|
2677
|
-
return e.length >= 2 &&
|
|
2677
|
+
return e.length >= 2 && xa(e[0], e[e.length - 1]) && e.pop(), e;
|
|
2678
2678
|
}
|
|
2679
|
-
function
|
|
2679
|
+
function Be(e, t, n, r, a) {
|
|
2680
2680
|
if (r.length < 2) return;
|
|
2681
2681
|
const o = a ? r.length : r.length - 1;
|
|
2682
2682
|
for (let i = 0; i < o; i++)
|
|
@@ -2686,7 +2686,7 @@ function Ks(e, t, n, r) {
|
|
|
2686
2686
|
const a = [r.startPosition];
|
|
2687
2687
|
for (const o of r.segments)
|
|
2688
2688
|
a.push(o.position);
|
|
2689
|
-
|
|
2689
|
+
Be(e, t, n, a, r.closed);
|
|
2690
2690
|
}
|
|
2691
2691
|
function Ws(e, t, n) {
|
|
2692
2692
|
if (n.vertices.length >= 2)
|
|
@@ -2704,11 +2704,11 @@ function Js(e, t, n, r) {
|
|
|
2704
2704
|
for (const s of r.leaders)
|
|
2705
2705
|
for (const l of s.leaderLines) {
|
|
2706
2706
|
const c = Ws(r, s, l);
|
|
2707
|
-
|
|
2707
|
+
Be(e, t, n, c, !1);
|
|
2708
2708
|
}
|
|
2709
2709
|
const a = (s) => {
|
|
2710
2710
|
if (!s) return;
|
|
2711
|
-
const l =
|
|
2711
|
+
const l = T(n, s);
|
|
2712
2712
|
e.push({ kind: "point", layer: t, x: l.x, y: l.y });
|
|
2713
2713
|
};
|
|
2714
2714
|
a(r.contentBasePosition), a((o = r.mtextContent) == null ? void 0 : o.anchorPoint), a((i = r.blockContent) == null ? void 0 : i.position);
|
|
@@ -2719,14 +2719,14 @@ function qs(e, t, n, r) {
|
|
|
2719
2719
|
const o = r.elevation, i = r.closed ? a : a - 1;
|
|
2720
2720
|
for (let s = 0; s < i; s++) {
|
|
2721
2721
|
const l = r.getPointAt(s), c = r.getPointAt((s + 1) % a), d = r.getBulgeAt(s), u = { x: l.x, y: l.y, z: o }, p = { x: c.x, y: c.y, z: o };
|
|
2722
|
-
if (
|
|
2723
|
-
const m =
|
|
2724
|
-
pa(e, t, new
|
|
2722
|
+
if (xe.isPositive(Math.abs(d))) {
|
|
2723
|
+
const m = T(n, u), f = T(n, p);
|
|
2724
|
+
pa(e, t, new Oe(m, f, d));
|
|
2725
2725
|
}
|
|
2726
2726
|
}
|
|
2727
2727
|
}
|
|
2728
2728
|
function Qs(e, t, n, r, a, o) {
|
|
2729
|
-
const i =
|
|
2729
|
+
const i = T(n, r), s = new L.Vector3(
|
|
2730
2730
|
n.elements[0],
|
|
2731
2731
|
n.elements[1],
|
|
2732
2732
|
n.elements[2]
|
|
@@ -2741,7 +2741,7 @@ function Qs(e, t, n, r, a, o) {
|
|
|
2741
2741
|
e.push(l);
|
|
2742
2742
|
}
|
|
2743
2743
|
function el(e, t, n, r) {
|
|
2744
|
-
const a =
|
|
2744
|
+
const a = T(n, r.center), o = new L.Vector3(
|
|
2745
2745
|
n.elements[0],
|
|
2746
2746
|
n.elements[1],
|
|
2747
2747
|
n.elements[2]
|
|
@@ -2758,7 +2758,7 @@ function el(e, t, n, r) {
|
|
|
2758
2758
|
e.push(i);
|
|
2759
2759
|
}
|
|
2760
2760
|
function Mt(e, t, n, r) {
|
|
2761
|
-
const a =
|
|
2761
|
+
const a = T(n, r.center), o = r._geo, i = (o == null ? void 0 : o.majorAxis) ?? { x: 1, y: 0, z: 0 }, s = fa(n, i), l = Math.hypot(s.x, s.y) || 1, c = new L.Vector3(
|
|
2762
2762
|
n.elements[0],
|
|
2763
2763
|
n.elements[1],
|
|
2764
2764
|
n.elements[2]
|
|
@@ -2788,7 +2788,7 @@ function tl(e, t, n, r) {
|
|
|
2788
2788
|
if (!((s = a == null ? void 0 : a.controlPoints) != null && s.length)) return;
|
|
2789
2789
|
const o = [];
|
|
2790
2790
|
for (const c of a.controlPoints) {
|
|
2791
|
-
const d =
|
|
2791
|
+
const d = T(n, c);
|
|
2792
2792
|
o.push(d.x, d.y);
|
|
2793
2793
|
}
|
|
2794
2794
|
const i = {
|
|
@@ -2803,7 +2803,7 @@ function tl(e, t, n, r) {
|
|
|
2803
2803
|
if ((l = a.fitPoints) != null && l.length) {
|
|
2804
2804
|
i.fitPoints = [];
|
|
2805
2805
|
for (const c of a.fitPoints) {
|
|
2806
|
-
const d =
|
|
2806
|
+
const d = T(n, c);
|
|
2807
2807
|
i.fitPoints.push(d.x, d.y);
|
|
2808
2808
|
}
|
|
2809
2809
|
}
|
|
@@ -2841,14 +2841,14 @@ function al(e, t, n, r) {
|
|
|
2841
2841
|
const i = r.closed ? o : o - 1;
|
|
2842
2842
|
for (let s = 0; s < i; s++) {
|
|
2843
2843
|
const l = a[s], c = a[(s + 1) % o], d = l.bulge ?? 0;
|
|
2844
|
-
if (
|
|
2845
|
-
const u =
|
|
2846
|
-
pa(e, t, new
|
|
2844
|
+
if (xe.isPositive(Math.abs(d))) {
|
|
2845
|
+
const u = T(n, l), p = T(n, c);
|
|
2846
|
+
pa(e, t, new Oe(u, p, d));
|
|
2847
2847
|
}
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
2850
2850
|
function ol(e, t, n, r, a) {
|
|
2851
|
-
const o =
|
|
2851
|
+
const o = T(n, {
|
|
2852
2852
|
x: r.center.x,
|
|
2853
2853
|
y: r.center.y,
|
|
2854
2854
|
z: a
|
|
@@ -2922,7 +2922,7 @@ function sl(e, t, n, r, a) {
|
|
|
2922
2922
|
z: a
|
|
2923
2923
|
},
|
|
2924
2924
|
0
|
|
2925
|
-
) : c instanceof
|
|
2925
|
+
) : c instanceof Oe ? tr(
|
|
2926
2926
|
o,
|
|
2927
2927
|
{
|
|
2928
2928
|
x: c.startPoint.x,
|
|
@@ -2982,7 +2982,7 @@ function dl(e, t, n, r, a, o, i, s = !0) {
|
|
|
2982
2982
|
return;
|
|
2983
2983
|
}
|
|
2984
2984
|
cl(r, l, t, e);
|
|
2985
|
-
const d =
|
|
2985
|
+
const d = T(t, e.position);
|
|
2986
2986
|
r.push({ kind: "point", layer: l, x: d.x, y: d.y });
|
|
2987
2987
|
}
|
|
2988
2988
|
function ul(e, t, n, r) {
|
|
@@ -2992,7 +2992,7 @@ function ul(e, t, n, r) {
|
|
|
2992
2992
|
i.x === s.x && i.y === s.y && (i.z ?? 0) === (s.z ?? 0) && (a = a.slice(0, -1));
|
|
2993
2993
|
}
|
|
2994
2994
|
a.length >= 2 && le(e, t, n, a, !0);
|
|
2995
|
-
const o =
|
|
2995
|
+
const o = T(n, r.position);
|
|
2996
2996
|
e.push({ kind: "point", layer: t, x: o.x, y: o.y });
|
|
2997
2997
|
}
|
|
2998
2998
|
function ml(e, t, n, r) {
|
|
@@ -3004,7 +3004,7 @@ function ml(e, t, n, r) {
|
|
|
3004
3004
|
[a.upperLeft, a.upperRight, a.lowerRight, a.lowerLeft],
|
|
3005
3005
|
!0
|
|
3006
3006
|
);
|
|
3007
|
-
const o =
|
|
3007
|
+
const o = T(n, r.getLocation());
|
|
3008
3008
|
e.push({ kind: "point", layer: t, x: o.x, y: o.y });
|
|
3009
3009
|
}
|
|
3010
3010
|
function pl(e) {
|
|
@@ -3015,7 +3015,7 @@ function pl(e) {
|
|
|
3015
3015
|
function en(e, t) {
|
|
3016
3016
|
return e === "0" ? t : e;
|
|
3017
3017
|
}
|
|
3018
|
-
function
|
|
3018
|
+
function wa(e, t, n, r, a, o, i, s = !0) {
|
|
3019
3019
|
if (!e.visibility) return;
|
|
3020
3020
|
const l = en(e.layer, n);
|
|
3021
3021
|
if (!(i && !i(l))) {
|
|
@@ -3037,13 +3037,13 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3037
3037
|
if (!c || a.has(c.objectId)) return;
|
|
3038
3038
|
a.add(c.objectId);
|
|
3039
3039
|
const d = e.getFullInsertionTransform(), u = Math.max(1, e.columnCount ?? 1), p = Math.max(1, e.rowCount ?? 1), m = e.columnSpacing ?? 0, f = e.rowSpacing ?? 0, h = en(e.layer, n);
|
|
3040
|
-
for (let
|
|
3041
|
-
for (let
|
|
3040
|
+
for (let x = 0; x < p; x++)
|
|
3041
|
+
for (let w = 0; w < u; w++) {
|
|
3042
3042
|
const g = tt(t, d);
|
|
3043
|
-
(
|
|
3044
|
-
new L.Matrix4().makeTranslation(
|
|
3043
|
+
(w !== 0 || x !== 0) && g.multiply(
|
|
3044
|
+
new L.Matrix4().makeTranslation(w * m, x * f, 0)
|
|
3045
3045
|
);
|
|
3046
|
-
const b =
|
|
3046
|
+
const b = T(g, { x: 0, y: 0, z: 0 });
|
|
3047
3047
|
r.push({
|
|
3048
3048
|
kind: "point",
|
|
3049
3049
|
layer: h,
|
|
@@ -3060,9 +3060,9 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3060
3060
|
s
|
|
3061
3061
|
);
|
|
3062
3062
|
}
|
|
3063
|
-
for (const
|
|
3064
|
-
(
|
|
3065
|
-
|
|
3063
|
+
for (const x of pl(e))
|
|
3064
|
+
(x instanceof Mo ? x.isInvisible : x.isInvisible) || wa(
|
|
3065
|
+
x,
|
|
3066
3066
|
t,
|
|
3067
3067
|
h,
|
|
3068
3068
|
r,
|
|
@@ -3098,7 +3098,7 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3098
3098
|
Vs(r, l, t, e);
|
|
3099
3099
|
return;
|
|
3100
3100
|
}
|
|
3101
|
-
if (e instanceof
|
|
3101
|
+
if (e instanceof Ho) {
|
|
3102
3102
|
Qt(t) ? Qs(
|
|
3103
3103
|
r,
|
|
3104
3104
|
l,
|
|
@@ -3117,26 +3117,26 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3117
3117
|
Mt(r, l, t, e);
|
|
3118
3118
|
return;
|
|
3119
3119
|
}
|
|
3120
|
-
if (e instanceof
|
|
3120
|
+
if (e instanceof Io) {
|
|
3121
3121
|
tl(r, l, t, e);
|
|
3122
3122
|
return;
|
|
3123
3123
|
}
|
|
3124
|
-
if (e instanceof
|
|
3124
|
+
if (e instanceof zo) {
|
|
3125
3125
|
al(r, l, t, e);
|
|
3126
3126
|
return;
|
|
3127
3127
|
}
|
|
3128
|
-
if (e instanceof
|
|
3128
|
+
if (e instanceof Bo) {
|
|
3129
3129
|
qs(r, l, t, e);
|
|
3130
3130
|
return;
|
|
3131
3131
|
}
|
|
3132
|
-
if (e instanceof
|
|
3132
|
+
if (e instanceof To) {
|
|
3133
3133
|
const c = [];
|
|
3134
3134
|
for (let d = 0; d < e.numberOfVertices; d++)
|
|
3135
3135
|
c.push(e.getPointAt(d));
|
|
3136
|
-
|
|
3136
|
+
Be(r, l, t, c, e.closed);
|
|
3137
3137
|
return;
|
|
3138
3138
|
}
|
|
3139
|
-
if (e instanceof
|
|
3139
|
+
if (e instanceof Fo) {
|
|
3140
3140
|
s && ll(r, l, t, e);
|
|
3141
3141
|
return;
|
|
3142
3142
|
}
|
|
@@ -3144,11 +3144,11 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3144
3144
|
e.basePoint, e.unitDir;
|
|
3145
3145
|
return;
|
|
3146
3146
|
}
|
|
3147
|
-
if (e instanceof
|
|
3147
|
+
if (e instanceof Ro) {
|
|
3148
3148
|
e.basePoint, e.unitDir;
|
|
3149
3149
|
return;
|
|
3150
3150
|
}
|
|
3151
|
-
if (e instanceof
|
|
3151
|
+
if (e instanceof _o) {
|
|
3152
3152
|
le(
|
|
3153
3153
|
r,
|
|
3154
3154
|
l,
|
|
@@ -3163,7 +3163,7 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3163
3163
|
);
|
|
3164
3164
|
return;
|
|
3165
3165
|
}
|
|
3166
|
-
if (e instanceof
|
|
3166
|
+
if (e instanceof Oo) {
|
|
3167
3167
|
s && le(
|
|
3168
3168
|
r,
|
|
3169
3169
|
l,
|
|
@@ -3180,12 +3180,12 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3180
3180
|
}
|
|
3181
3181
|
if (e instanceof Do) {
|
|
3182
3182
|
const c = e.subGetGripPoints();
|
|
3183
|
-
c.length >= 2 &&
|
|
3183
|
+
c.length >= 2 && Be(r, l, t, c, c.length >= 3);
|
|
3184
3184
|
return;
|
|
3185
3185
|
}
|
|
3186
3186
|
if (e instanceof No) {
|
|
3187
3187
|
const c = e.vertices;
|
|
3188
|
-
c.length >= 2 &&
|
|
3188
|
+
c.length >= 2 && Be(r, l, t, c, !1);
|
|
3189
3189
|
return;
|
|
3190
3190
|
}
|
|
3191
3191
|
if (e instanceof $o) {
|
|
@@ -3197,12 +3197,12 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3197
3197
|
return;
|
|
3198
3198
|
}
|
|
3199
3199
|
if (e instanceof Xo) {
|
|
3200
|
-
const c =
|
|
3200
|
+
const c = T(t, e.position);
|
|
3201
3201
|
r.push({ kind: "point", layer: l, x: c.x, y: c.y });
|
|
3202
3202
|
return;
|
|
3203
3203
|
}
|
|
3204
3204
|
if (e instanceof Yo) {
|
|
3205
|
-
const c =
|
|
3205
|
+
const c = T(t, e.location);
|
|
3206
3206
|
r.push({ kind: "point", layer: l, x: c.x, y: c.y });
|
|
3207
3207
|
return;
|
|
3208
3208
|
}
|
|
@@ -3215,14 +3215,14 @@ function va(e, t, n, r, a, o, i, s = !0) {
|
|
|
3215
3215
|
return;
|
|
3216
3216
|
}
|
|
3217
3217
|
if (e instanceof Go) {
|
|
3218
|
-
const c =
|
|
3218
|
+
const c = T(t, e.position);
|
|
3219
3219
|
r.push({ kind: "point", layer: l, x: c.x, y: c.y });
|
|
3220
3220
|
}
|
|
3221
3221
|
}
|
|
3222
3222
|
}
|
|
3223
3223
|
function nt(e, t, n, r, a, o, i, s = !0) {
|
|
3224
3224
|
for (const l of e.newIterator())
|
|
3225
|
-
|
|
3225
|
+
wa(
|
|
3226
3226
|
l,
|
|
3227
3227
|
t,
|
|
3228
3228
|
n,
|
|
@@ -3241,7 +3241,7 @@ function fl(e) {
|
|
|
3241
3241
|
e.radius,
|
|
3242
3242
|
e.radius,
|
|
3243
3243
|
0,
|
|
3244
|
-
|
|
3244
|
+
Ie
|
|
3245
3245
|
);
|
|
3246
3246
|
}
|
|
3247
3247
|
function hl(e) {
|
|
@@ -3270,11 +3270,11 @@ function gl(e, t, n = {}) {
|
|
|
3270
3270
|
n.includeLayer
|
|
3271
3271
|
), {
|
|
3272
3272
|
primitives: a.filter(
|
|
3273
|
-
(i) => i.kind !== "line" &&
|
|
3273
|
+
(i) => i.kind !== "line" && xl(i)
|
|
3274
3274
|
)
|
|
3275
3275
|
};
|
|
3276
3276
|
}
|
|
3277
|
-
function
|
|
3277
|
+
function xl(e) {
|
|
3278
3278
|
switch (e.kind) {
|
|
3279
3279
|
case "line":
|
|
3280
3280
|
return Number.isFinite(e.x0) && Number.isFinite(e.y0) && Number.isFinite(e.x1) && Number.isFinite(e.y1);
|
|
@@ -3294,13 +3294,13 @@ function wl(e) {
|
|
|
3294
3294
|
return e;
|
|
3295
3295
|
}
|
|
3296
3296
|
}
|
|
3297
|
-
const ge = ["en", "zh", "cs", "tr", "ar"],
|
|
3297
|
+
const ge = ["en", "zh", "cs", "tr", "ar"], va = {
|
|
3298
3298
|
en: "EN",
|
|
3299
3299
|
zh: "中",
|
|
3300
3300
|
cs: "CS",
|
|
3301
3301
|
tr: "TR",
|
|
3302
3302
|
ar: "AR"
|
|
3303
|
-
}, ya = "mlcad-html-locale",
|
|
3303
|
+
}, ya = "mlcad-html-locale", wl = {
|
|
3304
3304
|
en: {
|
|
3305
3305
|
toolbar: {
|
|
3306
3306
|
viewerTools: "Viewer tools",
|
|
@@ -4290,7 +4290,7 @@ const ge = ["en", "zh", "cs", "tr", "ar"], xa = {
|
|
|
4290
4290
|
tooManyAttempts: "Çok fazla yanlış parola denemesi yapıldı. Tekrar denemek için sayfayı yenileyin."
|
|
4291
4291
|
}
|
|
4292
4292
|
}
|
|
4293
|
-
},
|
|
4293
|
+
}, vl = {
|
|
4294
4294
|
toolbar: {
|
|
4295
4295
|
viewerTools: "أدوات العارض",
|
|
4296
4296
|
select: "تحديد",
|
|
@@ -4527,8 +4527,8 @@ const ge = ["en", "zh", "cs", "tr", "ar"], xa = {
|
|
|
4527
4527
|
tooManyAttempts: "عدد محاولات إدخال كلمة المرور كبير جدًا. قم بتحديث الصفحة للمحاولة مرة أخرى."
|
|
4528
4528
|
}
|
|
4529
4529
|
}, ar = {
|
|
4530
|
-
...
|
|
4531
|
-
ar:
|
|
4530
|
+
...wl,
|
|
4531
|
+
ar: vl
|
|
4532
4532
|
};
|
|
4533
4533
|
function au(e) {
|
|
4534
4534
|
return ge.includes(e);
|
|
@@ -4579,7 +4579,7 @@ function kl(e, t) {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
class ou {
|
|
4581
4581
|
/**
|
|
4582
|
-
* @param initialLocale - Starting locale; defaults to {@link
|
|
4582
|
+
* @param initialLocale - Starting locale; defaults to {@link acexHtmlDetectLocale} when omitted.
|
|
4583
4583
|
*/
|
|
4584
4584
|
constructor(t) {
|
|
4585
4585
|
this._onChange = null, this._locale = t ?? bl();
|
|
@@ -4590,7 +4590,7 @@ class ou {
|
|
|
4590
4590
|
}
|
|
4591
4591
|
/** Short badge text shown on the language parent button and locale strip. */
|
|
4592
4592
|
get localeBadge() {
|
|
4593
|
-
return
|
|
4593
|
+
return va[this._locale];
|
|
4594
4594
|
}
|
|
4595
4595
|
/**
|
|
4596
4596
|
* Registers a callback invoked after {@link AcExHtmlI18n.setLocale} or
|
|
@@ -4706,14 +4706,14 @@ function Ll(e) {
|
|
|
4706
4706
|
return { uncompressed: t, compressed: n };
|
|
4707
4707
|
}
|
|
4708
4708
|
async function Al(e) {
|
|
4709
|
-
const t = dt(e), n = (await
|
|
4709
|
+
const t = dt(e), n = (await Rr(t)).bytes;
|
|
4710
4710
|
return { uncompressed: t, compressed: n };
|
|
4711
4711
|
}
|
|
4712
4712
|
function Cl(e) {
|
|
4713
4713
|
return ka(dn(e));
|
|
4714
4714
|
}
|
|
4715
4715
|
function La(e) {
|
|
4716
|
-
return
|
|
4716
|
+
return _r(e) ? Cl(e) : ka(e);
|
|
4717
4717
|
}
|
|
4718
4718
|
const Aa = 1, El = 2 * 1024 * 1024, ut = 2 * 1024 * 1024, iu = 512 * 1024, Ml = 8 * 1024 * 1024, sr = 12 * 1024 * 1024, Sl = 2 * 1024 * 1024, bn = 6;
|
|
4719
4719
|
function kn(e, t, n) {
|
|
@@ -4745,10 +4745,10 @@ function kn(e, t, n) {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
};
|
|
4747
4747
|
}
|
|
4748
|
-
const
|
|
4748
|
+
const Hl = /^(?:\.[/\\])?[A-Za-z0-9._-]+(?:[/\\][A-Za-z0-9._-]+)*$/;
|
|
4749
4749
|
function Pl(e) {
|
|
4750
4750
|
const t = e.trim();
|
|
4751
|
-
return !t || t !== e || t.startsWith("/") || t.startsWith("\\") || t.startsWith("//") || /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t) || t.includes("..") || t.includes("\\") ? !1 :
|
|
4751
|
+
return !t || t !== e || t.startsWith("/") || t.startsWith("\\") || t.startsWith("//") || /^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(t) || t.includes("..") || t.includes("\\") ? !1 : Hl.test(t);
|
|
4752
4752
|
}
|
|
4753
4753
|
function rt(e, t) {
|
|
4754
4754
|
if (!Pl(e))
|
|
@@ -4782,7 +4782,7 @@ function mt(e) {
|
|
|
4782
4782
|
}
|
|
4783
4783
|
return t;
|
|
4784
4784
|
}
|
|
4785
|
-
function
|
|
4785
|
+
function Il(e) {
|
|
4786
4786
|
return {
|
|
4787
4787
|
version: D,
|
|
4788
4788
|
meta: e.meta,
|
|
@@ -4817,7 +4817,7 @@ function Ln(e, t) {
|
|
|
4817
4817
|
throw new Error("Chunk URL escapes package directory");
|
|
4818
4818
|
return n.toString();
|
|
4819
4819
|
}
|
|
4820
|
-
function
|
|
4820
|
+
function zl(e, t) {
|
|
4821
4821
|
rt(e, "manifestUrl");
|
|
4822
4822
|
let n, r;
|
|
4823
4823
|
try {
|
|
@@ -4836,11 +4836,11 @@ async function An(e, t, n) {
|
|
|
4836
4836
|
const a = r.headers.get("content-length");
|
|
4837
4837
|
if (a != null) {
|
|
4838
4838
|
const i = Number(a);
|
|
4839
|
-
if (Number.isFinite(i) && i >
|
|
4839
|
+
if (Number.isFinite(i) && i > Ft)
|
|
4840
4840
|
throw new Error(`${n} exceeds size limit`);
|
|
4841
4841
|
}
|
|
4842
4842
|
const o = await r.arrayBuffer();
|
|
4843
|
-
if (o.byteLength >
|
|
4843
|
+
if (o.byteLength > Ft)
|
|
4844
4844
|
throw new Error(`${n} exceeds size limit`);
|
|
4845
4845
|
return new Uint8Array(o);
|
|
4846
4846
|
}
|
|
@@ -4851,7 +4851,7 @@ async function su(e) {
|
|
|
4851
4851
|
throw new Error(
|
|
4852
4852
|
`Failed to load package manifest (${a.status})`
|
|
4853
4853
|
);
|
|
4854
|
-
const o = mt(await a.json()), i =
|
|
4854
|
+
const o = mt(await a.json()), i = Il(o), s = new Map(
|
|
4855
4855
|
i.layouts.map((m) => [m.btrId, m])
|
|
4856
4856
|
), l = e.layoutFilter == null ? null : e.layoutFilter instanceof Set ? e.layoutFilter : new Set(e.layoutFilter), c = o.chunks.filter(
|
|
4857
4857
|
(m) => l == null || l.has(m.layoutBtrId)
|
|
@@ -4872,10 +4872,10 @@ async function su(e) {
|
|
|
4872
4872
|
const f = m.item, h = s.get(f.layoutBtrId);
|
|
4873
4873
|
if (!h)
|
|
4874
4874
|
throw new Error("Unknown layout for package chunk");
|
|
4875
|
-
const
|
|
4876
|
-
if (
|
|
4875
|
+
const x = La(m.bytes);
|
|
4876
|
+
if (x.layoutBtrId !== f.layoutBtrId)
|
|
4877
4877
|
throw new Error("Chunk layout mismatch");
|
|
4878
|
-
Ca(h,
|
|
4878
|
+
Ca(h, x.lineBatches, x.meshBatches), u += 1, await ((p = e.onChunk) == null ? void 0 : p.call(e, h, f, {
|
|
4879
4879
|
loadedChunks: u,
|
|
4880
4880
|
totalChunks: c.length,
|
|
4881
4881
|
layoutBtrId: f.layoutBtrId,
|
|
@@ -4887,7 +4887,7 @@ async function su(e) {
|
|
|
4887
4887
|
if (l != null && !l.has(m.btrId))
|
|
4888
4888
|
continue;
|
|
4889
4889
|
const f = s.get(m.btrId);
|
|
4890
|
-
f && await
|
|
4890
|
+
f && await Bl(
|
|
4891
4891
|
o,
|
|
4892
4892
|
e.manifestUrl,
|
|
4893
4893
|
m.btrId,
|
|
@@ -4925,8 +4925,8 @@ async function lu(e, t, n, r, a = {}) {
|
|
|
4925
4925
|
}));
|
|
4926
4926
|
}
|
|
4927
4927
|
}
|
|
4928
|
-
async function
|
|
4929
|
-
var
|
|
4928
|
+
async function Bl(e, t, n, r, a = {}) {
|
|
4929
|
+
var w;
|
|
4930
4930
|
if (r.osnap)
|
|
4931
4931
|
return;
|
|
4932
4932
|
const o = e.layouts.find((g) => g.btrId === n);
|
|
@@ -4953,7 +4953,7 @@ async function Tl(e, t, n, r, a = {}) {
|
|
|
4953
4953
|
"osnap chunk"
|
|
4954
4954
|
)
|
|
4955
4955
|
);
|
|
4956
|
-
let
|
|
4956
|
+
let x = 0;
|
|
4957
4957
|
for (; ; ) {
|
|
4958
4958
|
const g = await h.next();
|
|
4959
4959
|
if (!g)
|
|
@@ -4965,8 +4965,8 @@ async function Tl(e, t, n, r, a = {}) {
|
|
|
4965
4965
|
else
|
|
4966
4966
|
for (const A of E)
|
|
4967
4967
|
m.push(A);
|
|
4968
|
-
|
|
4969
|
-
loadedChunks:
|
|
4968
|
+
x += 1, await ((w = a.onChunk) == null ? void 0 : w.call(a, {
|
|
4969
|
+
loadedChunks: x,
|
|
4970
4970
|
totalChunks: l.length,
|
|
4971
4971
|
layoutBtrId: n,
|
|
4972
4972
|
chunkId: b.id
|
|
@@ -4977,7 +4977,7 @@ async function Tl(e, t, n, r, a = {}) {
|
|
|
4977
4977
|
function Ca(e, t, n) {
|
|
4978
4978
|
e.lineBatches.push(...t), e.meshBatches.push(...n);
|
|
4979
4979
|
}
|
|
4980
|
-
const re = "drawing.acex.json", Ea = `./${re}`,
|
|
4980
|
+
const re = "drawing.acex.json", Ea = `./${re}`, Tl = ["manifest", "acex"], at = "https://acex-package.invalid/", pt = (e, t) => globalThis.fetch(e, t);
|
|
4981
4981
|
function cu(e) {
|
|
4982
4982
|
return e.directoryPicker || e.webkitDirectory;
|
|
4983
4983
|
}
|
|
@@ -4995,7 +4995,7 @@ function du(e) {
|
|
|
4995
4995
|
webkitDirectory: r
|
|
4996
4996
|
};
|
|
4997
4997
|
}
|
|
4998
|
-
function
|
|
4998
|
+
function Fl(e) {
|
|
4999
4999
|
var r;
|
|
5000
5000
|
const t = e.startsWith("?") ? e.slice(1) : e;
|
|
5001
5001
|
if (!t) return null;
|
|
@@ -5005,7 +5005,7 @@ function _l(e) {
|
|
|
5005
5005
|
} catch {
|
|
5006
5006
|
return null;
|
|
5007
5007
|
}
|
|
5008
|
-
for (const a of
|
|
5008
|
+
for (const a of Tl) {
|
|
5009
5009
|
const o = (r = n.get(a)) == null ? void 0 : r.trim();
|
|
5010
5010
|
if (o) return o;
|
|
5011
5011
|
}
|
|
@@ -5013,7 +5013,7 @@ function _l(e) {
|
|
|
5013
5013
|
}
|
|
5014
5014
|
function uu(e) {
|
|
5015
5015
|
var r;
|
|
5016
|
-
const t =
|
|
5016
|
+
const t = Fl(e.search ?? "");
|
|
5017
5017
|
if (t)
|
|
5018
5018
|
return { href: t, fromQuery: !0 };
|
|
5019
5019
|
const n = (r = e.configManifestUrl) == null ? void 0 : r.trim();
|
|
@@ -5032,7 +5032,7 @@ function mu(e, t) {
|
|
|
5032
5032
|
} catch {
|
|
5033
5033
|
throw new Error("Invalid manifest URL");
|
|
5034
5034
|
}
|
|
5035
|
-
return
|
|
5035
|
+
return zl(n, t);
|
|
5036
5036
|
}
|
|
5037
5037
|
async function pu(e, t = pt) {
|
|
5038
5038
|
let n;
|
|
@@ -5081,7 +5081,7 @@ async function pu(e, t = pt) {
|
|
|
5081
5081
|
};
|
|
5082
5082
|
}
|
|
5083
5083
|
}
|
|
5084
|
-
function
|
|
5084
|
+
function Rl(e, t) {
|
|
5085
5085
|
let n = e.replace(/\\/g, "/").replace(/^\/+/, "");
|
|
5086
5086
|
if (t) {
|
|
5087
5087
|
const r = t.replace(/\\/g, "/").replace(/\/+$/, "");
|
|
@@ -5089,16 +5089,16 @@ function Ol(e, t) {
|
|
|
5089
5089
|
}
|
|
5090
5090
|
return n.replace(/^\.\//, "");
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function _l(e) {
|
|
5093
5093
|
const t = [...e].map((o) => o.replace(/\\/g, "/").replace(/^\/+/, "")).filter(Boolean);
|
|
5094
5094
|
if (t.length === 0) return null;
|
|
5095
5095
|
const n = t[0].split("/")[0];
|
|
5096
5096
|
return !n || n === re || !t.every((o) => o.split("/")[0] === n) ? null : t.some((o) => o.includes("/")) ? n : null;
|
|
5097
5097
|
}
|
|
5098
5098
|
function fu(e) {
|
|
5099
|
-
const t = [...e], n =
|
|
5099
|
+
const t = [...e], n = _l(t.map((a) => a.relativePath)), r = /* @__PURE__ */ new Map();
|
|
5100
5100
|
for (const a of t) {
|
|
5101
|
-
const o =
|
|
5101
|
+
const o = Rl(a.relativePath, n);
|
|
5102
5102
|
!o || o.endsWith("/") || r.set(o, a.bytes);
|
|
5103
5103
|
}
|
|
5104
5104
|
return r;
|
|
@@ -5135,7 +5135,7 @@ function gu(e) {
|
|
|
5135
5135
|
function Cn(...e) {
|
|
5136
5136
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 1024 1024">${e.map((n) => `<path fill="currentColor" d="${n}"/>`).join("")}</svg>`;
|
|
5137
5137
|
}
|
|
5138
|
-
const
|
|
5138
|
+
const Ol = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.4379 15.2979h.002l4.86-4.86-9.722-4.86 4.86 9.72Zm7.562-5.298-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2-3.434 3.434-7.6-15.6 15.6 7.6Z"/></svg>', Dl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.08 12.8537l.002-.002V5.5897c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.6381-.414-.6381 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.4437c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.2317c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388-.26-.446-.518-.892-.776-1.338-.338-.482-1.1-.15-.794.38.326.566.652 1.132.978 1.698.006.012.014.026.02.04.552.946 1.106 1.89 1.658 2.834.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.7921-.124 2.5601-.612.3-.19.572-.416.816-.68.326-.368.57-.776.734-1.204.176-.482.258-.97.258-1.494Zm-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894-.216.564-.53 1.114-.964 1.576-.318.34-.666.632-1.046.884-.978.612-2.1461.862-3.2601.774-1.128-.102-2.228-.564-3.098-1.352-.326-.292-.612-.646-.87-1.034-.558-.96-1.114-1.92-1.672-2.88l-.012-.028c-.326-.568-.652-1.138-.978-1.706-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096.04.074.082.146.122.218V4.2337c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.9721-.51 2.2221.102 2.2221 1.284v.06c.022-.014.046-.026.068-.04Z"/></svg>', Ma = '<path fill="currentColor" d="M9.3333 14.125 5.875 10.6667V14.125H9.3333Zm4.7917-3.4583-3.4583 3.4583H14.125V10.6667ZM10.6667 5.875 14.125 9.3333V5.875H10.6667ZM5.875 9.3333 9.3333 5.875H5.875V9.3333Zm9.2083 5.475c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917S.9417 7.275 4.1083 4.1083C7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Z"/>', Nl = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ma}</svg>`, Sa = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M15.0833 14.8083c1.2333-1.3 1.9083-3.0333 1.9083-4.825-.0083-3.325-2.35-6.1833-5.6083-6.8417C8.125 2.4833 4.85 4.2 3.55 7.2583c-1.3 3.0583-.275 6.6083 2.4583 8.5 2.725 1.8917 6.4167 1.6 8.8167-.6917.0917-.0833.175-.175.2583-.2583Zm1.2583.5917 2.575 2.575c-.3167.3167-.625.625-.9417.9417-.8583-.8583-1.7167-1.7167-2.575-2.575-3.4083 2.9-8.4917 2.5917-11.525-.6917C.8417 12.3667.9417 7.275 4.1083 4.1083 7.2667.9417 12.3667.8417 15.65 3.875s3.5917 8.1167.6917 11.525Zm-3.55-2.6083V7.2083H7.2083v5.5833h5.5833ZM5.875 5.875h8.25v8.25H5.875V5.875Z"/></svg>', $l = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m434.8 137.65l-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"/><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="32" d="m160 204.48l-82.8 37.16c-17.6 8-17.6 21.1 0 29.1l148 67.49c16.89 7.7 44.69 7.7 61.58 0l148-67.49c17.7-8 17.7-21.1.1-29.1L352 204.48"/></svg>', Vl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="2" y="2" width="8.2" height="5" rx="1.2" fill="currentColor"/><rect x="2" y="8.5" width="8.2" height="9.5" rx="1.2" fill="currentColor"/><rect x="11.7" y="2" width="6.3" height="10" rx="1.2" fill="currentColor"/><rect x="11.7" y="13.5" width="6.3" height="4.5" rx="1.2" fill="currentColor"/></svg>', Xl = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M1.5 7h17v6h-17ZM4.25 7h1v2.5h-1ZM7.5 7h.75v1.5H7.5ZM10.25 7h1v2.5h-1ZM13.5 7h.75v1.5H13.5ZM16.25 7h1v2.5h-1Z"/></svg>', Yl = '<path fill="currentColor" fill-rule="evenodd" d="M2.25 15h15.5v3.4H2.25Zm1.5 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Zm2.95 0h.7v1.45h-.7Z"/>', C = "var(--el-color-primary, var(--ml-ui-accent, #409eff))";
|
|
5139
5139
|
function ue(e) {
|
|
5140
5140
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${e}${Yl}</svg>`;
|
|
5141
5141
|
}
|
|
@@ -5153,7 +5153,7 @@ const Zl = ue(
|
|
|
5153
5153
|
`<circle fill="none" stroke="${C}" stroke-width="1.4" cx="9.1" cy="7.3" r="4.7"/><circle fill="${C}" cx="9.1" cy="7.3" r="1.05"/><path fill="none" stroke="${C}" stroke-width="1.35" stroke-linecap="round" d="M9.1 7.3 13.35 3.7"/><path fill="${C}" d="M13.35 3.7 11.15 4.2 12.55 5.7Z"/>`
|
|
5154
5154
|
), ql = ue(
|
|
5155
5155
|
`<g fill="none" stroke="${C}" stroke-linecap="round" stroke-linejoin="round"><path stroke-width="1.4" d="M4 4.8v7.4h7.6"/><path stroke-width="1.2" stroke-dasharray="1.7 1.2" d="M4 6.9h7M11 12.2V6.9"/></g><path fill="${C}" d="M4 2.5 2.45 4.8h3.1ZM13.8 12.2 11.5 10.7v3Z"/><circle fill="${C}" cx="11" cy="6.9" r="1.3"/>`
|
|
5156
|
-
),
|
|
5156
|
+
), Ha = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512" fill="currentColor" aria-hidden="true"><path d="M 459.5 0 L 475.5 0 L 476.5 1 L 479.5 1 L 485.5 3 Q 487.8 6.2 492.5 7 L 501 14.5 L 505 19.5 L 511 32.5 Q 510.2 35.8 512 36.5 L 512 52.5 L 511 53.5 L 511 56.5 L 509 62.5 L 506 68.5 L 493 89.5 L 483 108.5 L 478 115.5 L 472 127.5 L 467 134.5 L 457 153.5 L 452 160.5 L 442 179.5 L 437 186.5 L 431 198.5 L 440 213.5 L 440 215.5 L 443 220.5 L 447 232.5 L 448 240.5 L 449 241.5 L 449 245.5 L 450 246.5 L 450 254.5 L 451 255.5 L 451 274.5 L 450 275.5 L 450 283.5 L 449 284.5 L 449 289.5 L 448 290.5 L 448 294.5 L 447 295.5 L 446 302.5 L 442 314.5 L 438 322.5 L 438 324.5 L 428 345.5 L 428 347.5 L 425 352.5 L 422 361.5 L 418 368.5 L 418 370.5 L 415 375.5 L 412 384.5 L 408 391.5 L 408 393.5 L 405 398.5 L 402 407.5 L 398 414.5 L 395 423.5 L 391 430.5 L 391 432.5 L 381 453.5 L 381 455.5 L 378 460.5 L 375 469.5 L 371 476.5 L 368 485.5 L 361.5 497 L 353.5 501 L 348.5 501 L 347.5 500 L 344.5 500 L 329.5 495 L 326.5 493 L 321.5 492 L 318.5 490 L 303.5 485 L 289.5 478 L 287.5 478 L 282 473.5 L 279 467.5 L 279 459.5 L 280 458.5 L 280 455.5 L 281 454.5 L 281 451.5 L 282 450.5 L 283 442.5 L 284 441.5 L 286 431.5 L 285.5 431 L 281.5 435 L 259.5 455 L 255.5 457 L 246.5 457 L 223.5 444 L 189.5 421 L 155.5 394 L 133 373.5 L 130 367.5 L 130 359.5 L 134 352.5 L 223 233.5 L 242 206.5 L 254.5 192 L 271.5 177 L 285.5 168 L 299.5 161 L 314.5 156 L 317.5 156 L 318.5 155 L 330.5 154 L 331.5 153 L 352.5 153 L 354 151.5 L 356 146.5 L 372 120.5 L 374 115.5 L 387 94.5 L 397 75.5 L 402 68.5 L 408 56.5 L 413 49.5 L 423 30.5 L 431 17.5 L 439.5 9 L 449.5 3 L 455.5 1 L 458.5 1 L 459.5 0 Z M 466 30 L 459 33 L 454 39 L 448 51 L 443 58 L 433 77 L 428 84 L 414 110 L 409 117 L 407 122 L 405 124 L 403 129 L 401 131 L 399 136 L 384 161 L 386 162 L 388 162 L 396 166 L 409 175 L 422 153 L 424 148 L 429 141 L 431 136 L 433 134 L 435 129 L 437 127 L 439 122 L 444 115 L 454 96 L 459 89 L 469 70 L 474 63 L 482 47 L 482 43 L 480 38 L 475 32 L 469 30 L 466 30 Z M 333 183 L 332 184 L 328 184 L 327 185 L 324 185 L 323 186 L 320 186 L 314 188 L 300 195 L 286 205 L 271 220 L 267 225 L 266 228 L 410 310 L 412 307 L 412 305 L 416 296 L 418 285 L 419 284 L 419 279 L 420 278 L 420 252 L 419 251 L 419 246 L 417 241 L 417 238 L 411 224 L 402 211 L 389 198 L 371 188 L 362 185 L 352 184 L 351 183 L 333 183 Z M 248 252 L 195 322 L 193 326 L 172 353 L 167 361 L 194 384 L 228 409 L 249 422 L 256 417 L 303 372 L 310 368 L 318 368 L 322 370 L 328 378 Q 327 381 329 382 L 329 386 L 326 395 L 326 399 L 323 408 L 323 411 L 322 412 L 322 416 L 319 425 L 319 428 L 318 429 L 318 432 L 317 433 L 317 437 L 314 446 L 314 449 L 313 450 L 313 453 L 312 454 L 316 456 L 318 456 L 331 462 L 343 466 L 351 448 L 351 446 L 354 441 L 354 439 L 357 434 L 357 432 L 364 418 L 364 416 L 367 411 L 367 409 L 370 404 L 370 402 L 377 388 L 377 386 L 380 381 L 380 379 L 383 374 L 383 372 L 387 365 L 390 356 L 393 351 L 393 349 L 396 344 L 397 339 L 375 326 L 373 324 L 368 322 L 366 320 L 361 318 L 354 313 L 349 311 L 347 309 L 342 307 L 340 305 L 335 303 L 321 294 L 316 292 L 314 290 L 309 288 L 307 286 L 302 284 L 295 279 L 276 269 L 248 252 Z "/><path d="M 170.5 100 L 179.5 100 Q 185 102 188 106.5 L 190 110.5 L 190 134.5 L 184.5 142 L 177.5 145 L 171.5 145 L 166.5 143 L 162 138.5 L 159 129.5 L 159 115.5 L 160 114.5 Q 159.2 109.7 161 107.5 L 166.5 102 L 170.5 100 Z "/><path d="M 131.5 140 L 151.5 140 L 156.5 142 L 162 147.5 L 164 151.5 L 164 159.5 L 163 162.5 L 158.5 168 L 152.5 171 L 130.5 171 L 124.5 168 L 122 165.5 L 119 159.5 L 119 151.5 Q 121.3 145.3 126.5 142 L 131.5 140 Z "/><path d="M 197.5 140 L 218.5 140 L 223.5 142 L 228 146.5 L 231 152.5 L 231 158.5 L 229 163.5 L 223.5 169 L 218.5 171 L 197.5 171 L 192.5 169 L 188 164.5 L 186 160.5 L 185 153.5 L 188 146.5 L 191.5 143 L 197.5 140 Z "/><path d="M 171.5 166 L 177.5 166 L 180.5 167 L 187 171.5 L 190 176.5 L 190 200.5 Q 188 206 183.5 209 L 179.5 211 L 173.5 212 L 167.5 210 L 161 203.5 Q 159.2 201.3 160 196.5 L 159 195.5 L 159 181.5 L 162 172.5 L 165.5 169 L 171.5 166 Z "/><path d="M 50.5 223 L 60.5 223 L 68 228.5 L 71 234.5 L 71 256.5 Q 69.1 262.6 64.5 266 L 59.5 268 L 51.5 268 Q 45.3 265.7 42 260.5 L 40 255.5 L 40 235.5 L 42 230.5 L 48.5 224 L 50.5 223 Z "/><path d="M 13.5 263 L 30.5 263 Q 31.5 265 35.5 264 L 43 270.5 L 45 274.5 L 45 282.5 Q 43.1 288.6 38.5 292 L 33.5 294 L 10.5 294 Q 5 292 2 287.5 L 0 283.5 L 0 274.5 Q 2.3 268.3 7.5 265 L 13.5 263 Z "/><path d="M 80.5 263 L 97.5 263 L 103.5 265 L 108 268.5 L 111 273.5 L 112 279.5 L 109 287.5 L 104.5 292 L 100.5 294 L 77.5 294 Q 71.3 291.7 68 286.5 L 66 281.5 L 66 276.5 L 69 269.5 L 72.5 266 L 80.5 263 Z "/><path d="M 54.5 289 L 61.5 290 L 69 296.5 L 71 301.5 L 71 322.5 L 69 327.5 L 63.5 333 L 58.5 335 L 53.5 335 L 46.5 332 L 43 328.5 L 40 321.5 L 40 302.5 Q 41.8 301.8 41 298.5 L 46.5 292 L 54.5 289 Z "/><path d="M 98.5 400 L 107.5 402 L 113 407.5 L 115 411.5 L 115 434.5 Q 112.7 440.7 107.5 444 L 101.5 446 L 96.5 446 L 90.5 443 L 87 439.5 L 84 430.5 L 84 415.5 L 85 414.5 Q 84.3 410.3 86 408.5 L 92.5 402 L 98.5 400 Z "/><path d="M 55.5 441 L 77.5 441 L 80.5 442 L 86 446.5 L 89 451.5 L 89 460.5 Q 86.7 466.7 81.5 470 L 76.5 472 L 56.5 472 L 51.5 470 L 46 464.5 L 44 460.5 L 44 452.5 L 45 449.5 L 49.5 444 L 55.5 441 Z "/><path d="M 121.5 441 L 144.5 441 Q 150.7 443.3 154 448.5 L 156 453.5 L 156 458.5 L 154 464.5 L 148.5 470 L 146.5 470 L 143.5 472 L 122.5 472 L 116.5 469 L 113 465.5 L 111 461.5 L 110 455.5 Q 112 454.5 111 450.5 L 117.5 443 L 121.5 441 Z "/><path d="M 96.5 467 L 103.5 467 L 106.5 468 L 113 473.5 L 115 478.5 L 115 501.5 Q 113 507 108.5 510 L 104.5 512 L 95.5 512 Q 89.3 509.7 86 504.5 Q 84.3 502.7 85 498.5 L 84 497.5 L 84 482.5 L 87 473.5 L 91.5 469 L 96.5 467 Z "/></svg>', Ql = Ha, ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7" fill="currentColor"/><rect x="14" y="14" width="7" height="7" fill="none" stroke="currentColor" stroke-width="1"/><path d="M12 4a8 8 0 0 1 7.25 7.25" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M20.75 10 L17.25 10 L19 12.5 Z" fill="currentColor"/><path d="M12 20a8 8 0 0 1-8-8" fill="none" stroke="currentColor" stroke-width="1" stroke-linecap="round"/><path d="M6 14 L2.5 14 L4 11 Z" fill="currentColor"/></svg>', tc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" style="fill:none"><g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12.4 3.25H5.5A2.25 2.25 0 0 0 3.25 5.5v9A2.25 2.25 0 0 0 5.5 16.75h9A2.25 2.25 0 0 0 16.75 14.5V8.6"/><g transform="rotate(45 13.2 6.7)"><rect x="11.7" y="1.55" width="3" height="7.45" rx="1.45"/><path d="M11.7 3.2h3"/><path d="M11.7 9 13.2 12.15 14.7 9"/><rect x="12.8" y="7.05" width="0.8" height="1.2" rx="0.4"/></g></g></svg>', nc = '<path fill="none" stroke="currentColor" stroke-width="1.35" stroke-linecap="butt" stroke-linejoin="miter" d="M2.6 6.8v8.5h5.2l2.2 2.4 2.2-2.4h5.2"/>', Pa = '<g fill="none" stroke="currentColor" stroke-width="1.2" stroke-linejoin="round" transform="rotate(46 14.8 9)"><rect x="13.65" y="4.7" width="2.3" height="5.6" rx="1.05"/><path d="M13.65 10.3 14.8 12.9 15.95 10.3"/></g>';
|
|
5157
5157
|
function ke(e) {
|
|
5158
5158
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${nc}${e}</svg>`;
|
|
5159
5159
|
}
|
|
@@ -5171,14 +5171,14 @@ const rc = ke(
|
|
|
5171
5171
|
'<g transform="rotate(-40 10 7.6)" fill="currentColor"><path d="M3.5 6.75h9V5.15L16.7 7.6 12.5 10.05V8.45h-9Z"/></g>'
|
|
5172
5172
|
), cc = Cn(
|
|
5173
5173
|
"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"
|
|
5174
|
-
),
|
|
5174
|
+
), Ia = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><rect x="3.5" y="3" width="13" height="14" rx="1.5" fill="none" stroke="currentColor" stroke-width="1.5"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M3.5 6.5h13"/><path fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" d="M6.5 9.5h7M6.5 12h7M6.5 14.5h3.2"/><g fill="none" stroke="${C}" stroke-width="1.7" stroke-linecap="round"><circle cx="14.5" cy="14.7" r="4.2"/><path d="M17.5 17.7 19.5 19.7"/></g></svg>`, dc = Ia, uc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M4.5 2h6.4L15.5 6.6V16.5A1.5 1.5 0 0 1 14 18H4.5A1.5 1.5 0 0 1 3 16.5V3.5A1.5 1.5 0 0 1 4.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M10.9 2v4.6h4.6"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 5.8v6M7.2 9.6 10 12.5l2.8-2.9"/></svg>', mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M15.5 2H9.1L4.5 6.6V16.5A1.5 1.5 0 0 0 6 18h9.5A1.5 1.5 0 0 0 17 16.5V3.5A1.5 1.5 0 0 0 15.5 2z"/><path stroke="currentColor" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round" d="M9.1 2v4.6H4.5"/><path stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" d="M10 14.2V8M7.2 10.4 10 7.5l2.8 2.9"/></svg>', pc = Ha, fc = Cn(
|
|
5175
5175
|
"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
|
|
5176
5176
|
), hc = Cn(
|
|
5177
5177
|
"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176",
|
|
5178
5178
|
"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"
|
|
5179
|
-
), gc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725 16.676 16.676 0 0 1 3.524 17.273l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877 16.165 16.165 0 0 0 11.91 6.001L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>',
|
|
5179
|
+
), gc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="m18.5 10 4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301 14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725 16.676 16.676 0 0 1 3.524 17.273l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877 16.165 16.165 0 0 0 11.91 6.001L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"/></svg>', xc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><circle cx="10" cy="10" r="4" fill="currentColor"/><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2v2M10 16v2M2 10h2M16 10h2M4.2 4.2l1.4 1.4M14.4 14.4l1.4 1.4M4.2 15.8l1.4-1.4M14.4 5.6l1.4-1.4"/></svg>', wc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 3a7 7 0 1 0 0 14 9 9 0 0 1 0-14Z"/></svg>', vc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 6.5 5.5 11h9L10 6.5Z"/></svg>', yc = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" aria-hidden="true"><path fill="currentColor" d="M10 13.5 14.5 9h-9L10 13.5Z"/></svg>', lr = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10 2.6 18 9.8h-2.1V17h-4.4v-4.4H8.5V17H4.1V9.8H2L10 2.6Zm0 1.8L5.3 9.8V15.8h2V11.4h5.4v4.4h2V9.8L10 4.4Z"/></svg>', bc = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20">${Ma}<path fill="${C}" d="M14.85 0.85 15.95 4.05 19.15 5.15 15.95 6.25 14.85 9.45 13.75 6.25 10.55 5.15 13.75 4.05Z"/><path fill="${C}" d="M17.55 8.35 18.15 10.15 19.95 10.75 18.15 11.35 17.55 13.15 16.95 11.35 15.15 10.75 16.95 10.15Z"/></svg>`, kc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M8.08 2.1h3.84l.32 1.52a6.4 6.4 0 0 1 1.36.78l1.48-.64 1.92 1.92-.64 1.48c.3.42.54.88.78 1.36l1.52.32v3.84l-1.52.32a6.4 6.4 0 0 1-.78 1.36l.64 1.48-1.92 1.92-1.48-.64a6.4 6.4 0 0 1-1.36.78l-.32 1.52H8.08l-.32-1.52a6.4 6.4 0 0 1-1.36-.78l-1.48.64-1.92-1.92.64-1.48a6.4 6.4 0 0 1-.78-1.36L1.34 11.92V8.08l1.52-.32c.24-.48.48-.94.78-1.36l-.64-1.48 1.92-1.92 1.48.64c.42-.3.88-.54 1.36-.78L8.08 2.1ZM10 7.2A2.8 2.8 0 1 0 10 12.8 2.8 2.8 0 0 0 10 7.2Z"/></svg>', Lc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M10 2.5v6M7 5.5h6"/><circle cx="10" cy="14.5" r="3.2" fill="none" stroke="currentColor" stroke-width="1.5"/><circle cx="10" cy="14.5" r="1.1" fill="currentColor"/></svg>', Ac = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 3.53 16.09 6.97 10.09 10.29 4.18 7 10.09 3.56M10.09 2.4 2.17 7 3.31 7.65 10.09 11.45 17 7.62 18.17 7 10.08 2.37 10.09 2.4Z"/><path fill="currentColor" d="M10.25 14.83 18.17 10.22 17 9.57 10.22 13.57 3.32 9.59 2.17 10.22 10.25 14.83Z"/><path fill="currentColor" d="M10.25 17.63 18.17 13 17 12.37 10.22 16.37 3.32 12.38 2.17 13 10.25 17.63Z"/></svg>', Cc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M10.09 5.15 16.09 8.59 10.09 11.91 4.18 8.59 10.09 5.15ZM10.09 4 2.17 8.61 3.31 9.25 10.09 13.06 17 9.24 18.16 8.61 10.08 4 10.09 4Z"/><path fill="currentColor" d="M10.25 16.46 18.17 11.85 17 11.2 10.22 15.2 3.32 11.21 2.17 11.85 10.25 16.46Z"/><path fill="none" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" d="M3.5 3.5 16.5 16.5"/></svg>', Ec = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M2.25 2.25h4.878v4.878H2.25V2.25Zm.978.978v2.924h2.924V3.228H3.228Z"/><path fill="currentColor" d="M5.175 20.773V7.128H4.204V21.75H21.75V4.204H7.128v.971H20.773v15.598H5.175Z"/></svg>', Mc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M3 2H2v16h16v-1H8v-5H3V2zm0 11v4h4v-4H3z"/></svg>', Sc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M16.98 11L18.5 11L18.5 10L16.98 10C16.86 8.13 16.05 6.44 14.8 5.2L16.88 2.83L16.12 2.17L14.05 4.54C12.79 3.57 11.21 3 9.5 3C5.36 3 2 6.36 2 10.5C2 14.64 5.36 18 9.5 18C13.47 18 16.73 14.91 16.98 11ZM15.98 10C15.86 8.43 15.18 7.01 14.14 5.95L10.6 10L15.98 10ZM13.39 5.29L8.4 11L15.98 11C15.73 14.36 12.92 17 9.5 17C5.91 17 3 14.09 3 10.5C3 6.91 5.91 4 9.5 4C10.96 4 12.31 4.48 13.39 5.29Z"/></svg>', Hc = '<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="#e75958" d="M22 12H12l5 8.66A10 10 0 0 0 22 12Z"/><path fill="#814dff" d="M17 20.66 12 12 7 20.66A10 10 0 0 0 17 20.66Z"/><path fill="#13b0ce" d="M7 20.66 12 12H2A10 10 0 0 0 7 20.66Z"/><path fill="#4ecd83" d="M2 12H12L7 3.34A10 10 0 0 0 2 12Z"/><path fill="#ffc33f" d="M7 3.34 12 12l5-8.66A10 10 0 0 0 7 3.34Z"/><path fill="#ff9543" d="M17 3.34 12 12H22A10 10 0 0 0 17 3.34Z"/></svg>', Pc = Sa, Ic = ql, zc = rc, Bc = ac, Tc = oc, Fc = fc, cr = hc, _e = {
|
|
5180
5180
|
/** Select tool toolbar icon. */
|
|
5181
|
-
select:
|
|
5181
|
+
select: Ol,
|
|
5182
5182
|
/** Pan tool toolbar icon. */
|
|
5183
5183
|
pan: Dl,
|
|
5184
5184
|
/** Zoom-to-extents toolbar icon. */
|
|
@@ -5200,7 +5200,7 @@ const rc = ke(
|
|
|
5200
5200
|
/** Measure-area toolbar icon. */
|
|
5201
5201
|
measureArea: Kl,
|
|
5202
5202
|
/** Measure-coordinate toolbar icon. */
|
|
5203
|
-
measureCoordinate:
|
|
5203
|
+
measureCoordinate: Ic,
|
|
5204
5204
|
/** Clear-measurements toolbar icon. */
|
|
5205
5205
|
clearMeasurements: Ql,
|
|
5206
5206
|
/** Open layer drawer toolbar icon. */
|
|
@@ -5226,9 +5226,9 @@ const rc = ke(
|
|
|
5226
5226
|
/** Polar tracking toggle icon. */
|
|
5227
5227
|
polarTracking: Sc,
|
|
5228
5228
|
/** Measure color picker icon. */
|
|
5229
|
-
color:
|
|
5229
|
+
color: Hc,
|
|
5230
5230
|
/** Collapse toolbar (chevron up). */
|
|
5231
|
-
chevronUp:
|
|
5231
|
+
chevronUp: vc,
|
|
5232
5232
|
/** Expand toolbar (chevron down). */
|
|
5233
5233
|
chevronDown: yc,
|
|
5234
5234
|
/** Measure tools parent menu icon. */
|
|
@@ -5236,21 +5236,21 @@ const rc = ke(
|
|
|
5236
5236
|
/** Review / annotation tools parent menu icon. */
|
|
5237
5237
|
annotation: tc,
|
|
5238
5238
|
/** Markup revision cloud. */
|
|
5239
|
-
markupCloud:
|
|
5239
|
+
markupCloud: zc,
|
|
5240
5240
|
/** Markup callout. */
|
|
5241
5241
|
markupCallout: ic,
|
|
5242
5242
|
/** Markup text. */
|
|
5243
5243
|
markupText: sc,
|
|
5244
5244
|
/** Markup rectangle. */
|
|
5245
|
-
markupRect:
|
|
5245
|
+
markupRect: Bc,
|
|
5246
5246
|
/** Markup circle. */
|
|
5247
|
-
markupCircle:
|
|
5247
|
+
markupCircle: Tc,
|
|
5248
5248
|
/** Markup arrow. */
|
|
5249
5249
|
markupArrow: lc,
|
|
5250
5250
|
/** Markup stamp. */
|
|
5251
5251
|
markupStamp: cc,
|
|
5252
5252
|
/** Review list / markup panel. */
|
|
5253
|
-
markupPanel:
|
|
5253
|
+
markupPanel: Ia,
|
|
5254
5254
|
/** Measurement list panel. */
|
|
5255
5255
|
measurementPanel: dc,
|
|
5256
5256
|
/** Import markup sidecar JSON. */
|
|
@@ -5258,7 +5258,7 @@ const rc = ke(
|
|
|
5258
5258
|
/** Export markup sidecar JSON. */
|
|
5259
5259
|
markupExport: mc,
|
|
5260
5260
|
/** Show markups (open eye). */
|
|
5261
|
-
markupShow:
|
|
5261
|
+
markupShow: Fc,
|
|
5262
5262
|
/** Hide markups (slashed eye). */
|
|
5263
5263
|
markupHide: cr,
|
|
5264
5264
|
/** @deprecated Prefer {@link markupHide} / {@link markupShow}. */
|
|
@@ -5272,45 +5272,45 @@ const rc = ke(
|
|
|
5272
5272
|
/** Toggle drawing background between black and white. */
|
|
5273
5273
|
switchBg: ec,
|
|
5274
5274
|
/** Switch to light UI chrome. */
|
|
5275
|
-
themeLight:
|
|
5275
|
+
themeLight: xc,
|
|
5276
5276
|
/** Switch to dark UI chrome. */
|
|
5277
|
-
themeDark:
|
|
5277
|
+
themeDark: wc
|
|
5278
5278
|
};
|
|
5279
5279
|
function dr(e, t, n) {
|
|
5280
5280
|
const r = Object.entries(n).map(([i, s]) => `${i}="${te(s)}"`).join(" "), a = n["data-i18n-key"], o = a ? `<span class="mlcad-tool-btn-label" data-i18n-key="${te(a)}" data-i18n-text>${te(t)}</span>` : "";
|
|
5281
5281
|
return `<button type="button" class="mlcad-tool-btn" title="${te(t)}" aria-label="${te(t)}" ${r}><span class="mlcad-tool-btn-icon" aria-hidden="true">${e}</span>${o}</button>`;
|
|
5282
5282
|
}
|
|
5283
|
-
function
|
|
5283
|
+
function xu(e, t, n) {
|
|
5284
5284
|
const r = Object.entries(n).map(([i, s]) => `${i}="${te(s)}"`).join(" "), a = n["data-i18n-key"], o = a ? ` data-i18n-key="${te(a)}" data-i18n-text` : "";
|
|
5285
5285
|
return `<button type="button" class="mlcad-dropdown-item" role="menuitem" title="${te(t)}" ${r}><span class="mlcad-dropdown-icon" aria-hidden="true">${e}</span><span class="mlcad-dropdown-label"${o}>${te(t)}</span></button>`;
|
|
5286
5286
|
}
|
|
5287
5287
|
function te(e) {
|
|
5288
5288
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
|
5289
5289
|
}
|
|
5290
|
-
const Uc = [90, 45, 30, 23, 18, 10, 5],
|
|
5290
|
+
const Uc = [90, 45, 30, 23, 18, 10, 5], Rc = 90, wu = Rc, _c = {
|
|
5291
5291
|
en: "toolbar.localeEn",
|
|
5292
5292
|
zh: "toolbar.localeZh",
|
|
5293
5293
|
cs: "toolbar.localeCs",
|
|
5294
5294
|
tr: "toolbar.localeTr",
|
|
5295
5295
|
ar: "toolbar.localeAr"
|
|
5296
|
-
},
|
|
5296
|
+
}, Oc = {
|
|
5297
5297
|
en: "English",
|
|
5298
5298
|
zh: "中文",
|
|
5299
5299
|
cs: "Čeština",
|
|
5300
5300
|
tr: "Türkçe",
|
|
5301
5301
|
ar: "العربية"
|
|
5302
5302
|
};
|
|
5303
|
-
function
|
|
5303
|
+
function vu() {
|
|
5304
5304
|
return `<div id="mlcad-locale-strip-wrap" hidden>
|
|
5305
5305
|
<div id="mlcad-locale-strip" role="toolbar" data-i18n-attr="aria-label" data-i18n-key="toolbar.language" aria-label="Language">
|
|
5306
5306
|
${ge.map((t) => {
|
|
5307
|
-
const n =
|
|
5307
|
+
const n = Oc[t], r = _c[t], a = va[t];
|
|
5308
5308
|
return `<button type="button" class="mlcad-tool-btn mlcad-locale-option" data-locale="${t}" data-i18n-key="${r}" data-i18n-attr="title aria-label" title="${n}" aria-label="${n}"><span class="mlcad-tool-btn-icon" aria-hidden="true"><span class="mlcad-locale-option-badge">${a}</span></span><span class="mlcad-tool-btn-label" data-i18n-key="${r}" data-i18n-text>${n}</span></button>`;
|
|
5309
5309
|
}).join("")}
|
|
5310
5310
|
</div>
|
|
5311
5311
|
</div>`;
|
|
5312
5312
|
}
|
|
5313
|
-
function
|
|
5313
|
+
function za() {
|
|
5314
5314
|
return `<div id="mlcad-polar-angles" role="group" data-i18n-attr="aria-label" data-i18n-key="settings.polarAngles" aria-label="Polar tracking angles" hidden>
|
|
5315
5315
|
${Uc.map(
|
|
5316
5316
|
(t) => `<button type="button" class="mlcad-tool-btn mlcad-settings-option-btn mlcad-polar-angle-btn" data-polar-ang="${t}" title="${t}°" aria-label="${t}°"><span class="mlcad-settings-option-indicator" aria-hidden="true"></span><span class="mlcad-settings-option-text">${t}°</span></button>`
|
|
@@ -5320,20 +5320,20 @@ function Ba() {
|
|
|
5320
5320
|
function yu() {
|
|
5321
5321
|
return `<div id="mlcad-snap-strip-wrap" hidden>
|
|
5322
5322
|
<div id="mlcad-snap-strip" role="toolbar" data-i18n-attr="aria-label" data-i18n-key="toolbar.snap" aria-label="Object snap">
|
|
5323
|
-
${dr(
|
|
5323
|
+
${dr(_e.orthoMode, "Orthogonal mode", {
|
|
5324
5324
|
id: "mlcad-ortho-btn",
|
|
5325
5325
|
"data-toggle": "ortho",
|
|
5326
5326
|
"data-i18n-key": "settings.ortho",
|
|
5327
5327
|
"data-i18n-attr": "title aria-label"
|
|
5328
5328
|
})}
|
|
5329
|
-
${dr(
|
|
5329
|
+
${dr(_e.polarTracking, "Polar tracking", {
|
|
5330
5330
|
id: "mlcad-polar-btn",
|
|
5331
5331
|
"data-toggle": "polar",
|
|
5332
5332
|
"data-i18n-key": "settings.polar",
|
|
5333
5333
|
"data-i18n-attr": "title aria-label"
|
|
5334
5334
|
})}
|
|
5335
5335
|
</div>
|
|
5336
|
-
${
|
|
5336
|
+
${za()}
|
|
5337
5337
|
</div>`;
|
|
5338
5338
|
}
|
|
5339
5339
|
const Dc = 600, Nc = 960, $c = 1.231, bu = 13, En = `
|
|
@@ -6721,7 +6721,7 @@ const Dc = 600, Nc = 960, $c = 1.231, bu = 13, En = `
|
|
|
6721
6721
|
}
|
|
6722
6722
|
`;
|
|
6723
6723
|
function Mn(e, t = "measure", n = !0) {
|
|
6724
|
-
const r = t === "measure" ? `${
|
|
6724
|
+
const r = t === "measure" ? `${za()}${Xc()}${Vc()}` : "";
|
|
6725
6725
|
return `
|
|
6726
6726
|
<div id="mlcad-loading" aria-hidden="true" style="background:${e}">
|
|
6727
6727
|
<div class="mlcad-loading-spinner"></div>
|
|
@@ -6763,10 +6763,10 @@ function Mn(e, t = "measure", n = !0) {
|
|
|
6763
6763
|
</div>
|
|
6764
6764
|
<div class="mlcad-layer-actions">
|
|
6765
6765
|
<button type="button" class="mlcad-layer-action-btn" id="mlcad-layer-show-all">
|
|
6766
|
-
${
|
|
6766
|
+
${_e.layerOn}<span data-i18n-key="layers.showAll" data-i18n-text>Show all</span>
|
|
6767
6767
|
</button>
|
|
6768
6768
|
<button type="button" class="mlcad-layer-action-btn" id="mlcad-layer-hide-all">
|
|
6769
|
-
${
|
|
6769
|
+
${_e.layerOff}<span data-i18n-key="layers.hideAll" data-i18n-text>Hide all</span>
|
|
6770
6770
|
</button>
|
|
6771
6771
|
</div>
|
|
6772
6772
|
<div id="mlcad-layer-list"></div>
|
|
@@ -6778,7 +6778,7 @@ function Mn(e, t = "measure", n = !0) {
|
|
|
6778
6778
|
function Sn(e, t, n) {
|
|
6779
6779
|
return `<div class="mlcad-drawer-sheet-chrome">
|
|
6780
6780
|
<div class="mlcad-drawer-grabber" role="separator" aria-orientation="horizontal"></div>
|
|
6781
|
-
<button type="button" class="mlcad-drawer-sheet-close" id="${e}" data-i18n-key="${t}" data-i18n-attr="aria-label" aria-label="${n}">${
|
|
6781
|
+
<button type="button" class="mlcad-drawer-sheet-close" id="${e}" data-i18n-key="${t}" data-i18n-attr="aria-label" aria-label="${n}">${_e.chevronDown}</button>
|
|
6782
6782
|
</div>`;
|
|
6783
6783
|
}
|
|
6784
6784
|
function Vc() {
|
|
@@ -6876,17 +6876,17 @@ function ku(e, t) {
|
|
|
6876
6876
|
<meta charset="utf-8" />
|
|
6877
6877
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6878
6878
|
<meta name="generator" content="mlightcad-cad-html-plugin" />
|
|
6879
|
-
<title>${
|
|
6879
|
+
<title>${Ta(n)}</title>
|
|
6880
6880
|
<style>${En}</style>
|
|
6881
6881
|
</head>
|
|
6882
6882
|
<body>
|
|
6883
6883
|
${Mn(l, d, u)}
|
|
6884
6884
|
${p} <script id="mlcad-snapshot" type="${m}">${r.payload}<\/script>
|
|
6885
|
-
<script>${
|
|
6885
|
+
<script>${Fa(a)}<\/script>
|
|
6886
6886
|
</body>
|
|
6887
6887
|
</html>`;
|
|
6888
6888
|
}
|
|
6889
|
-
function
|
|
6889
|
+
function Ba(e, t) {
|
|
6890
6890
|
var d;
|
|
6891
6891
|
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = (d = t.manifestUrl) == null ? void 0 : d.trim(), c = JSON.stringify(
|
|
6892
6892
|
l && l !== Ea ? { manifestUrl: l } : {}
|
|
@@ -6897,7 +6897,7 @@ function Ta(e, t) {
|
|
|
6897
6897
|
<meta charset="utf-8" />
|
|
6898
6898
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6899
6899
|
<meta name="generator" content="mlightcad-cad-html-plugin" />
|
|
6900
|
-
<title>${
|
|
6900
|
+
<title>${Ta(n)}</title>
|
|
6901
6901
|
<style>${En}</style>
|
|
6902
6902
|
</head>
|
|
6903
6903
|
<body>
|
|
@@ -6905,20 +6905,20 @@ ${Mn(a, i, s)}
|
|
|
6905
6905
|
<script id="mlcad-package" type="application/json">${Ua(
|
|
6906
6906
|
c
|
|
6907
6907
|
)}<\/script>
|
|
6908
|
-
<script>${
|
|
6908
|
+
<script>${Fa(r)}<\/script>
|
|
6909
6909
|
</body>
|
|
6910
6910
|
</html>`;
|
|
6911
6911
|
}
|
|
6912
|
-
function
|
|
6912
|
+
function Ta(e) {
|
|
6913
6913
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """);
|
|
6914
6914
|
}
|
|
6915
|
-
function
|
|
6915
|
+
function Fa(e) {
|
|
6916
6916
|
return e.replace(/<\/script/gi, "<\\/script");
|
|
6917
6917
|
}
|
|
6918
6918
|
function Ua(e) {
|
|
6919
6919
|
return e.replace(/</g, "\\u003c");
|
|
6920
6920
|
}
|
|
6921
|
-
const
|
|
6921
|
+
const Ra = 1, Yc = 600 * 1e3, Zc = 1e5, jc = 16, tn = 12, Gc = {
|
|
6922
6922
|
en: "en",
|
|
6923
6923
|
zh: "zh-CN",
|
|
6924
6924
|
cs: "cs",
|
|
@@ -6928,7 +6928,7 @@ const Oa = 1, Yc = 600 * 1e3, Zc = 1e5, jc = 16, tn = 12, Gc = {
|
|
|
6928
6928
|
function Lu(e, t = Date.now(), n) {
|
|
6929
6929
|
return e === "never" ? null : e === "custom" ? n ?? null : t + e * 24 * 60 * 60 * 1e3;
|
|
6930
6930
|
}
|
|
6931
|
-
function
|
|
6931
|
+
function _a(e) {
|
|
6932
6932
|
var n;
|
|
6933
6933
|
const t = !!((n = e.password) != null && n.trim());
|
|
6934
6934
|
return e.expiresAt != null || t;
|
|
@@ -6966,26 +6966,26 @@ function Su(e) {
|
|
|
6966
6966
|
return null;
|
|
6967
6967
|
try {
|
|
6968
6968
|
const n = JSON.parse(t);
|
|
6969
|
-
return (n == null ? void 0 : n.v) !==
|
|
6969
|
+
return (n == null ? void 0 : n.v) !== Ra ? null : n;
|
|
6970
6970
|
} catch {
|
|
6971
6971
|
return null;
|
|
6972
6972
|
}
|
|
6973
6973
|
}
|
|
6974
6974
|
function ot(e) {
|
|
6975
6975
|
var n;
|
|
6976
|
-
if (!
|
|
6976
|
+
if (!_a(e))
|
|
6977
6977
|
return;
|
|
6978
6978
|
const t = !!((n = e.password) != null && n.trim());
|
|
6979
6979
|
return {
|
|
6980
|
-
v:
|
|
6980
|
+
v: Ra,
|
|
6981
6981
|
expiresAt: e.expiresAt,
|
|
6982
6982
|
encrypted: t,
|
|
6983
6983
|
...t && e.salt ? { salt: e.salt } : {}
|
|
6984
6984
|
};
|
|
6985
6985
|
}
|
|
6986
|
-
async function
|
|
6986
|
+
async function Hn(e, t) {
|
|
6987
6987
|
const n = t != null && t.trim() ? new Uint8Array(Da(t)) : crypto.getRandomValues(new Uint8Array(jc));
|
|
6988
|
-
return { key: await qc(e, n), salt:
|
|
6988
|
+
return { key: await qc(e, n), salt: Oa(n) };
|
|
6989
6989
|
}
|
|
6990
6990
|
async function Pn(e, t) {
|
|
6991
6991
|
const n = crypto.getRandomValues(new Uint8Array(tn)), r = new Uint8Array(t), a = new Uint8Array(
|
|
@@ -6993,35 +6993,35 @@ async function Pn(e, t) {
|
|
|
6993
6993
|
), o = new Uint8Array(n.length + a.length);
|
|
6994
6994
|
return o.set(n, 0), o.set(a, n.length), o;
|
|
6995
6995
|
}
|
|
6996
|
-
async function
|
|
6996
|
+
async function In(e, t) {
|
|
6997
6997
|
const n = new Uint8Array(t.subarray(0, tn)), r = new Uint8Array(t.subarray(tn));
|
|
6998
6998
|
return new Uint8Array(
|
|
6999
6999
|
await crypto.subtle.decrypt({ name: "AES-GCM", iv: n }, e, r)
|
|
7000
7000
|
);
|
|
7001
7001
|
}
|
|
7002
7002
|
async function Kc(e, t, n = "base85") {
|
|
7003
|
-
const { key: r, salt: a } = await
|
|
7003
|
+
const { key: r, salt: a } = await Hn(e), o = lt(t, n), i = await Pn(r, o);
|
|
7004
7004
|
return {
|
|
7005
7005
|
encryptedPayload: Ne(i, n),
|
|
7006
7006
|
salt: a
|
|
7007
7007
|
};
|
|
7008
7008
|
}
|
|
7009
|
-
async function
|
|
7010
|
-
const { key: a } = await
|
|
7009
|
+
async function Hu(e, t, n, r = "base85") {
|
|
7010
|
+
const { key: a } = await Hn(e, n), o = await In(
|
|
7011
7011
|
a,
|
|
7012
7012
|
lt(t, r)
|
|
7013
7013
|
);
|
|
7014
7014
|
return Ne(o, r);
|
|
7015
7015
|
}
|
|
7016
7016
|
function Wc(e) {
|
|
7017
|
-
return
|
|
7017
|
+
return Oa(e);
|
|
7018
7018
|
}
|
|
7019
7019
|
function Jc(e) {
|
|
7020
7020
|
return Da(e);
|
|
7021
7021
|
}
|
|
7022
7022
|
async function Pu(e, t) {
|
|
7023
7023
|
var r;
|
|
7024
|
-
if (!
|
|
7024
|
+
if (!_a(t))
|
|
7025
7025
|
return { encoded: e };
|
|
7026
7026
|
const n = (r = t.password) == null ? void 0 : r.trim();
|
|
7027
7027
|
if (n) {
|
|
@@ -7069,7 +7069,7 @@ async function qc(e, t) {
|
|
|
7069
7069
|
["encrypt", "decrypt"]
|
|
7070
7070
|
);
|
|
7071
7071
|
}
|
|
7072
|
-
function
|
|
7072
|
+
function Oa(e) {
|
|
7073
7073
|
let t = "";
|
|
7074
7074
|
for (let n = 0; n < e.length; n++)
|
|
7075
7075
|
t += String.fromCharCode(e[n]);
|
|
@@ -7091,7 +7091,7 @@ function td(e, t = ut) {
|
|
|
7091
7091
|
function Na(e) {
|
|
7092
7092
|
return e.linePattern ? 64 + e.linePattern.pattern.length * 8 : 0;
|
|
7093
7093
|
}
|
|
7094
|
-
function
|
|
7094
|
+
function zn(e) {
|
|
7095
7095
|
return (e.hatchPattern ? 128 : 0) + (e.gradientFill ? 64 : 0);
|
|
7096
7096
|
}
|
|
7097
7097
|
function Xe(e, t, n) {
|
|
@@ -7161,7 +7161,7 @@ function od(e, t) {
|
|
|
7161
7161
|
function id(e, t) {
|
|
7162
7162
|
const n = e.indices, r = 16 + (e.uvs ? 8 : 0) + (e.gradientPositions ? 8 : 0), a = Xe(
|
|
7163
7163
|
t,
|
|
7164
|
-
|
|
7164
|
+
zn(e),
|
|
7165
7165
|
r
|
|
7166
7166
|
), o = [];
|
|
7167
7167
|
for (let i = 0; i < n.length; ) {
|
|
@@ -7177,7 +7177,7 @@ function $a(e, t) {
|
|
|
7177
7177
|
return [e];
|
|
7178
7178
|
const r = 12 + (e.uvs ? 8 : 0) + (e.gradientPositions ? 8 : 0), a = Xe(
|
|
7179
7179
|
t,
|
|
7180
|
-
|
|
7180
|
+
zn(e),
|
|
7181
7181
|
r
|
|
7182
7182
|
), o = e.points ? 1 : 3, i = Math.max(o, a - a % o), s = [];
|
|
7183
7183
|
for (let l = 0; l < n; l += i) {
|
|
@@ -7190,7 +7190,7 @@ function $a(e, t) {
|
|
|
7190
7190
|
function sd(e, t) {
|
|
7191
7191
|
const n = e.indices, r = 48 + (e.uvs ? 24 : 0) + (e.gradientPositions ? 24 : 0), a = Xe(
|
|
7192
7192
|
t,
|
|
7193
|
-
|
|
7193
|
+
zn(e),
|
|
7194
7194
|
r
|
|
7195
7195
|
), o = [];
|
|
7196
7196
|
for (let i = 0; i + 2 < n.length; ) {
|
|
@@ -7246,8 +7246,8 @@ function Xa(e, t, n, r) {
|
|
|
7246
7246
|
);
|
|
7247
7247
|
for (let p = 0; p < n.length; p++) {
|
|
7248
7248
|
const m = r[p], f = n[p], h = c * m;
|
|
7249
|
-
for (let
|
|
7250
|
-
s[p].push(f[h +
|
|
7249
|
+
for (let x = 0; x < m; x++)
|
|
7250
|
+
s[p].push(f[h + x] ?? 0);
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
7253
7253
|
i[l] = d;
|
|
@@ -7298,10 +7298,10 @@ function ja(e, t) {
|
|
|
7298
7298
|
return c.forEach((m, f) => {
|
|
7299
7299
|
var b;
|
|
7300
7300
|
p.set(m.btrId, f);
|
|
7301
|
-
const h = cd(m, n, r),
|
|
7301
|
+
const h = cd(m, n, r), x = [];
|
|
7302
7302
|
h.forEach((y, E) => {
|
|
7303
7303
|
const A = `L${f}-${String(E).padStart(3, "0")}`, M = `chunks/${A}.${i}`;
|
|
7304
|
-
|
|
7304
|
+
x.push(A), d.push({
|
|
7305
7305
|
kind: "geometry",
|
|
7306
7306
|
id: A,
|
|
7307
7307
|
href: M,
|
|
@@ -7316,40 +7316,40 @@ function ja(e, t) {
|
|
|
7316
7316
|
}
|
|
7317
7317
|
});
|
|
7318
7318
|
});
|
|
7319
|
-
const
|
|
7319
|
+
const w = {
|
|
7320
7320
|
btrId: m.btrId,
|
|
7321
7321
|
name: m.name,
|
|
7322
7322
|
isModelSpace: m.isModelSpace,
|
|
7323
7323
|
viewports: m.viewports,
|
|
7324
7324
|
...m.savedView ? { savedView: m.savedView } : {},
|
|
7325
7325
|
...m.fitExtents ? { fitExtents: m.fitExtents } : {},
|
|
7326
|
-
chunkIds:
|
|
7326
|
+
chunkIds: x
|
|
7327
7327
|
}, g = (b = m.osnap) == null ? void 0 : b.primitives;
|
|
7328
7328
|
if (g && g.length > 0) {
|
|
7329
|
-
const y =
|
|
7329
|
+
const y = zi(
|
|
7330
7330
|
g,
|
|
7331
7331
|
a
|
|
7332
7332
|
), E = [];
|
|
7333
7333
|
y.forEach((A, M) => {
|
|
7334
|
-
const k = `L${f}-osnap-${String(M).padStart(3, "0")}`,
|
|
7334
|
+
const k = `L${f}-osnap-${String(M).padStart(3, "0")}`, v = `chunks/${k}.${s}`;
|
|
7335
7335
|
E.push(k), d.push({
|
|
7336
7336
|
kind: "osnap",
|
|
7337
7337
|
id: k,
|
|
7338
|
-
href:
|
|
7338
|
+
href: v,
|
|
7339
7339
|
layoutBtrId: m.btrId,
|
|
7340
7340
|
primitiveCount: A.length,
|
|
7341
7341
|
primitives: A
|
|
7342
7342
|
});
|
|
7343
|
-
}),
|
|
7343
|
+
}), w.osnapChunkIds = E;
|
|
7344
7344
|
}
|
|
7345
|
-
u.push(
|
|
7345
|
+
u.push(w);
|
|
7346
7346
|
}), { jobs: d, layoutRefs: u, layoutIndexByBtrId: p, manifestFileName: l, compressChunks: o };
|
|
7347
7347
|
}
|
|
7348
7348
|
function Ga(e, t, n, r, a) {
|
|
7349
|
-
var h,
|
|
7349
|
+
var h, x;
|
|
7350
7350
|
const o = [], i = [], s = [];
|
|
7351
|
-
for (const
|
|
7352
|
-
const { job: g, uncompressedByteLength: b, compressed: y } =
|
|
7351
|
+
for (const w of a) {
|
|
7352
|
+
const { job: g, uncompressedByteLength: b, compressed: y } = w;
|
|
7353
7353
|
s.push({ path: g.href, bytes: y }), g.kind === "geometry" ? o.push({
|
|
7354
7354
|
id: g.id,
|
|
7355
7355
|
href: g.href,
|
|
@@ -7367,19 +7367,19 @@ function Ga(e, t, n, r, a) {
|
|
|
7367
7367
|
primitiveCount: g.primitiveCount
|
|
7368
7368
|
});
|
|
7369
7369
|
}
|
|
7370
|
-
const l = e.layouts.map((
|
|
7371
|
-
const g = n.get(
|
|
7370
|
+
const l = e.layouts.map((w) => {
|
|
7371
|
+
const g = n.get(w.btrId);
|
|
7372
7372
|
return t[g];
|
|
7373
7373
|
}), c = new Set(
|
|
7374
|
-
((h = l.find((
|
|
7374
|
+
((h = l.find((w) => w.btrId === e.activeLayoutBtrId)) == null ? void 0 : h.chunkIds) ?? []
|
|
7375
7375
|
), d = [
|
|
7376
|
-
...o.filter((
|
|
7377
|
-
...o.filter((
|
|
7376
|
+
...o.filter((w) => c.has(w.id)),
|
|
7377
|
+
...o.filter((w) => !c.has(w.id))
|
|
7378
7378
|
], u = new Set(
|
|
7379
|
-
((
|
|
7379
|
+
((x = l.find((w) => w.btrId === e.activeLayoutBtrId)) == null ? void 0 : x.osnapChunkIds) ?? []
|
|
7380
7380
|
), p = [
|
|
7381
|
-
...i.filter((
|
|
7382
|
-
...i.filter((
|
|
7381
|
+
...i.filter((w) => u.has(w.id)),
|
|
7382
|
+
...i.filter((w) => !u.has(w.id))
|
|
7383
7383
|
], m = {
|
|
7384
7384
|
format: "acex-package",
|
|
7385
7385
|
packageVersion: Aa,
|
|
@@ -7394,7 +7394,7 @@ function Ga(e, t, n, r, a) {
|
|
|
7394
7394
|
`;
|
|
7395
7395
|
return s.unshift({
|
|
7396
7396
|
path: r,
|
|
7397
|
-
bytes:
|
|
7397
|
+
bytes: we(f)
|
|
7398
7398
|
}), {
|
|
7399
7399
|
manifest: m,
|
|
7400
7400
|
manifestFileName: r,
|
|
@@ -7428,7 +7428,7 @@ function dd(e, t) {
|
|
|
7428
7428
|
compressed: a
|
|
7429
7429
|
};
|
|
7430
7430
|
}
|
|
7431
|
-
const { uncompressed: n, compressed: r } =
|
|
7431
|
+
const { uncompressed: n, compressed: r } = Bi({
|
|
7432
7432
|
primitives: e.primitives
|
|
7433
7433
|
});
|
|
7434
7434
|
return {
|
|
@@ -7464,7 +7464,7 @@ async function ud(e, t) {
|
|
|
7464
7464
|
compressed: a
|
|
7465
7465
|
};
|
|
7466
7466
|
}
|
|
7467
|
-
const { uncompressed: n, compressed: r } = await
|
|
7467
|
+
const { uncompressed: n, compressed: r } = await Ti({
|
|
7468
7468
|
primitives: e.primitives
|
|
7469
7469
|
});
|
|
7470
7470
|
return {
|
|
@@ -7507,8 +7507,8 @@ async function Ka(e, t = {}) {
|
|
|
7507
7507
|
s
|
|
7508
7508
|
);
|
|
7509
7509
|
}
|
|
7510
|
-
function
|
|
7511
|
-
const n = md(e, t), r =
|
|
7510
|
+
function Iu(e, t) {
|
|
7511
|
+
const n = md(e, t), r = Ba(e, {
|
|
7512
7512
|
title: e.meta.title,
|
|
7513
7513
|
viewerRuntime: t.viewerRuntime,
|
|
7514
7514
|
...t.manifestUrl ? { manifestUrl: t.manifestUrl } : {}
|
|
@@ -7517,11 +7517,11 @@ function zu(e, t) {
|
|
|
7517
7517
|
html: r,
|
|
7518
7518
|
manifest: n.manifest,
|
|
7519
7519
|
manifestFileName: n.manifestFileName,
|
|
7520
|
-
files: [{ path: "viewer.html", bytes:
|
|
7520
|
+
files: [{ path: "viewer.html", bytes: we(r) }, ...n.files]
|
|
7521
7521
|
};
|
|
7522
7522
|
}
|
|
7523
|
-
async function
|
|
7524
|
-
const n = await Ka(e, t), r =
|
|
7523
|
+
async function zu(e, t) {
|
|
7524
|
+
const n = await Ka(e, t), r = Ba(e, {
|
|
7525
7525
|
title: e.meta.title,
|
|
7526
7526
|
viewerRuntime: t.viewerRuntime,
|
|
7527
7527
|
...t.manifestUrl ? { manifestUrl: t.manifestUrl } : {}
|
|
@@ -7530,14 +7530,14 @@ async function Bu(e, t) {
|
|
|
7530
7530
|
html: r,
|
|
7531
7531
|
manifest: n.manifest,
|
|
7532
7532
|
manifestFileName: n.manifestFileName,
|
|
7533
|
-
files: [{ path: "viewer.html", bytes:
|
|
7533
|
+
files: [{ path: "viewer.html", bytes: we(r) }, ...n.files]
|
|
7534
7534
|
};
|
|
7535
7535
|
}
|
|
7536
7536
|
function pd(e, t) {
|
|
7537
7537
|
const n = e.find((a) => a.btrId === t), r = e.filter((a) => a.btrId !== t);
|
|
7538
7538
|
return n ? [n, ...r] : [...e];
|
|
7539
7539
|
}
|
|
7540
|
-
const fd = "application/vnd.mlightcad.acex-chunk;base85",
|
|
7540
|
+
const fd = "application/vnd.mlightcad.acex-chunk;base85", Bu = "application/vnd.mlightcad.acex-chunk;base64", hd = "application/vnd.mlightcad.acex-chunk+aes-gcm;base85", Tu = "application/vnd.mlightcad.acex-chunk+aes-gcm;base64", ce = "data-acex-href";
|
|
7541
7541
|
function gd(e) {
|
|
7542
7542
|
var n;
|
|
7543
7543
|
let t = 0;
|
|
@@ -7553,19 +7553,19 @@ function gd(e) {
|
|
|
7553
7553
|
}
|
|
7554
7554
|
return t;
|
|
7555
7555
|
}
|
|
7556
|
-
function
|
|
7556
|
+
function Fu(e, t = Ml) {
|
|
7557
7557
|
return gd(e) >= t;
|
|
7558
7558
|
}
|
|
7559
7559
|
async function Uu(e, t) {
|
|
7560
|
-
var
|
|
7561
|
-
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = t.expiresAt ?? null, c = ((
|
|
7560
|
+
var x;
|
|
7561
|
+
const n = t.title ?? e.meta.title ?? "CAD Drawing", r = t.viewerRuntime, a = `#${e.meta.background.toString(16).padStart(6, "0")}`, o = Ve(e.meta.locale) ?? "en", i = e.meta.viewerMode ?? "measure", s = e.meta.exportLayouts !== !1, l = t.expiresAt ?? null, c = ((x = t.password) == null ? void 0 : x.trim()) || void 0, d = {
|
|
7562
7562
|
maxChunkBytes: t.maxChunkBytes ?? sr,
|
|
7563
7563
|
maxBatchBytes: t.maxBatchBytes ?? t.maxChunkBytes ?? sr,
|
|
7564
7564
|
maxOsnapChunkBytes: t.maxOsnapChunkBytes ?? Sl
|
|
7565
7565
|
}, u = await Ka(e, d);
|
|
7566
7566
|
let p, m, f;
|
|
7567
7567
|
if (c) {
|
|
7568
|
-
const { key:
|
|
7568
|
+
const { key: w, salt: g } = await Hn(c);
|
|
7569
7569
|
p = ot({
|
|
7570
7570
|
expiresAt: l,
|
|
7571
7571
|
password: c,
|
|
@@ -7574,17 +7574,17 @@ async function Uu(e, t) {
|
|
|
7574
7574
|
const b = new TextEncoder().encode(
|
|
7575
7575
|
`${JSON.stringify(u.manifest)}
|
|
7576
7576
|
`
|
|
7577
|
-
), y = await Pn(
|
|
7577
|
+
), y = await Pn(w, b);
|
|
7578
7578
|
m = {
|
|
7579
7579
|
mode: "embedded",
|
|
7580
7580
|
encrypted: !0,
|
|
7581
7581
|
encryptedManifest: Wc(y)
|
|
7582
|
-
}, f = await
|
|
7582
|
+
}, f = await wd(u.files, w);
|
|
7583
7583
|
} else
|
|
7584
7584
|
p = ot({ expiresAt: l }), m = {
|
|
7585
7585
|
mode: "embedded",
|
|
7586
7586
|
manifest: u.manifest
|
|
7587
|
-
}, f =
|
|
7587
|
+
}, f = xd(u.files);
|
|
7588
7588
|
const h = p ? ` <script id="mlcad-access" type="application/json">${ur(
|
|
7589
7589
|
JSON.stringify(p)
|
|
7590
7590
|
)}<\/script>
|
|
@@ -7607,7 +7607,7 @@ ${f} <script>${bd(r)}<\/script>
|
|
|
7607
7607
|
</body>
|
|
7608
7608
|
</html>`;
|
|
7609
7609
|
}
|
|
7610
|
-
function
|
|
7610
|
+
function xd(e) {
|
|
7611
7611
|
const t = [];
|
|
7612
7612
|
for (const n of e)
|
|
7613
7613
|
n.path !== re && t.push(
|
|
@@ -7618,7 +7618,7 @@ function wd(e) {
|
|
|
7618
7618
|
);
|
|
7619
7619
|
return t.join("");
|
|
7620
7620
|
}
|
|
7621
|
-
async function
|
|
7621
|
+
async function wd(e, t) {
|
|
7622
7622
|
const n = [];
|
|
7623
7623
|
for (const r of e) {
|
|
7624
7624
|
if (r.path === re) continue;
|
|
@@ -7632,17 +7632,17 @@ async function vd(e, t) {
|
|
|
7632
7632
|
}
|
|
7633
7633
|
return n.join("");
|
|
7634
7634
|
}
|
|
7635
|
-
function
|
|
7635
|
+
function Bn(e) {
|
|
7636
7636
|
const t = e.textContent ?? "";
|
|
7637
7637
|
if (t.length === 0) return;
|
|
7638
7638
|
const n = t.charCodeAt(0) <= 32 || t.charCodeAt(t.length - 1) <= 32 ? t.trim() : t;
|
|
7639
7639
|
if (n.length === 0) return;
|
|
7640
|
-
const r =
|
|
7640
|
+
const r = Or(
|
|
7641
7641
|
e.getAttribute("type")
|
|
7642
7642
|
);
|
|
7643
7643
|
return lt(n, r);
|
|
7644
7644
|
}
|
|
7645
|
-
function
|
|
7645
|
+
function Ru(e) {
|
|
7646
7646
|
const t = e == null ? void 0 : e.trim();
|
|
7647
7647
|
if (!t) return null;
|
|
7648
7648
|
try {
|
|
@@ -7657,7 +7657,7 @@ function Ou(e) {
|
|
|
7657
7657
|
return null;
|
|
7658
7658
|
}
|
|
7659
7659
|
}
|
|
7660
|
-
function
|
|
7660
|
+
function _u(e = document) {
|
|
7661
7661
|
const t = /* @__PURE__ */ new Map();
|
|
7662
7662
|
return e.querySelectorAll(
|
|
7663
7663
|
`script[${ce}]`
|
|
@@ -7665,11 +7665,11 @@ function Ru(e = document) {
|
|
|
7665
7665
|
var i;
|
|
7666
7666
|
const a = (i = r.getAttribute(ce)) == null ? void 0 : i.trim();
|
|
7667
7667
|
if (!a) return;
|
|
7668
|
-
const o =
|
|
7668
|
+
const o = Bn(r);
|
|
7669
7669
|
o && t.set(a, o);
|
|
7670
7670
|
}), t;
|
|
7671
7671
|
}
|
|
7672
|
-
function
|
|
7672
|
+
function Ou(e, t = document) {
|
|
7673
7673
|
var r;
|
|
7674
7674
|
const n = t.querySelectorAll(
|
|
7675
7675
|
`script[${ce}]`
|
|
@@ -7677,10 +7677,10 @@ function Hu(e, t = document) {
|
|
|
7677
7677
|
for (let a = 0; a < n.length; a++) {
|
|
7678
7678
|
const o = n[a];
|
|
7679
7679
|
if (((r = o.getAttribute(ce)) == null ? void 0 : r.trim()) === e)
|
|
7680
|
-
return
|
|
7680
|
+
return Bn(o);
|
|
7681
7681
|
}
|
|
7682
7682
|
}
|
|
7683
|
-
function
|
|
7683
|
+
function vd(e, t = document) {
|
|
7684
7684
|
var r;
|
|
7685
7685
|
const n = t.querySelectorAll(
|
|
7686
7686
|
`script[${ce}]`
|
|
@@ -7688,7 +7688,7 @@ function xd(e, t = document) {
|
|
|
7688
7688
|
for (let a = 0; a < n.length; a++) {
|
|
7689
7689
|
const o = n[a];
|
|
7690
7690
|
if (((r = o.getAttribute(ce)) == null ? void 0 : r.trim()) !== e) continue;
|
|
7691
|
-
const s =
|
|
7691
|
+
const s = Bn(o);
|
|
7692
7692
|
return s ? (o.remove(), s) : void 0;
|
|
7693
7693
|
}
|
|
7694
7694
|
}
|
|
@@ -7700,7 +7700,7 @@ function Du(e) {
|
|
|
7700
7700
|
getChunk: async (r) => {
|
|
7701
7701
|
const a = n.get(r);
|
|
7702
7702
|
if (a) return a;
|
|
7703
|
-
const o =
|
|
7703
|
+
const o = vd(r, t);
|
|
7704
7704
|
return o && n.set(r, o), o;
|
|
7705
7705
|
}
|
|
7706
7706
|
});
|
|
@@ -7724,12 +7724,12 @@ function yd(e) {
|
|
|
7724
7724
|
let m;
|
|
7725
7725
|
if (l ? m = await l(p) : s && (m = s.get(p)), !m)
|
|
7726
7726
|
return new Response(null, { status: 404 });
|
|
7727
|
-
const f = o ? await
|
|
7727
|
+
const f = o ? await In(o, m) : m;
|
|
7728
7728
|
return i && s && s.delete(p), new Response(f, { status: 200 });
|
|
7729
7729
|
} };
|
|
7730
7730
|
}
|
|
7731
7731
|
async function Nu(e, t) {
|
|
7732
|
-
const n = await
|
|
7732
|
+
const n = await In(
|
|
7733
7733
|
t,
|
|
7734
7734
|
Jc(e)
|
|
7735
7735
|
), r = new TextDecoder().decode(n);
|
|
@@ -7773,15 +7773,15 @@ function Vu(e) {
|
|
|
7773
7773
|
}
|
|
7774
7774
|
return n;
|
|
7775
7775
|
}
|
|
7776
|
-
const ft = 0,
|
|
7776
|
+
const ft = 0, Tn = 16777215;
|
|
7777
7777
|
function Ld(e) {
|
|
7778
7778
|
return e === "white" || e === "space" ? e : "black";
|
|
7779
7779
|
}
|
|
7780
7780
|
function Ad(e) {
|
|
7781
|
-
return e === "white" ?
|
|
7781
|
+
return e === "white" ? Tn : ft;
|
|
7782
7782
|
}
|
|
7783
7783
|
function mr(e, t, n) {
|
|
7784
|
-
return e === "space" ? t ? ft :
|
|
7784
|
+
return e === "space" ? t ? ft : Tn : n >>> 0;
|
|
7785
7785
|
}
|
|
7786
7786
|
function pr(e) {
|
|
7787
7787
|
const t = e >>> 0, n = t >> 16 & 255, r = t >> 8 & 255, a = t & 255;
|
|
@@ -7789,7 +7789,7 @@ function pr(e) {
|
|
|
7789
7789
|
}
|
|
7790
7790
|
function Cd(e) {
|
|
7791
7791
|
const t = e >>> 0, n = t >> 16 & 255, r = t >> 8 & 255, a = t & 255, o = Math.max(n, r, a), i = Math.min(n, r, a);
|
|
7792
|
-
return o - i > 16 ? null : o <= 40 ?
|
|
7792
|
+
return o - i > 16 ? null : o <= 40 ? Tn : i >= 215 ? ft : null;
|
|
7793
7793
|
}
|
|
7794
7794
|
function Ke(e) {
|
|
7795
7795
|
return Cd(e) ?? e;
|
|
@@ -7838,16 +7838,16 @@ function Xu(e, t, n) {
|
|
|
7838
7838
|
), e.meta.backgroundMode = r;
|
|
7839
7839
|
}
|
|
7840
7840
|
const Yu = "guide/magnifier.html", eo = "https://mlightcad.com/cad-viewer/docs/";
|
|
7841
|
-
let
|
|
7841
|
+
let Fn = to(eo);
|
|
7842
7842
|
function Md() {
|
|
7843
|
-
return
|
|
7843
|
+
return Fn;
|
|
7844
7844
|
}
|
|
7845
7845
|
function Zu(e) {
|
|
7846
|
-
|
|
7846
|
+
Fn = to(e);
|
|
7847
7847
|
}
|
|
7848
7848
|
function ju(e, t) {
|
|
7849
7849
|
const n = t.toLowerCase().split(/[-_]/)[0], r = !n || n === "en" ? "" : `/${n}`, a = e.replace(/^\/+/, "");
|
|
7850
|
-
return `${
|
|
7850
|
+
return `${Fn}${r}/${a}`;
|
|
7851
7851
|
}
|
|
7852
7852
|
function to(e) {
|
|
7853
7853
|
const t = e.trim();
|
|
@@ -7908,7 +7908,7 @@ function ht() {
|
|
|
7908
7908
|
valid: !1
|
|
7909
7909
|
};
|
|
7910
7910
|
}
|
|
7911
|
-
function
|
|
7911
|
+
function Hd(e, t, n) {
|
|
7912
7912
|
if (t.length < 3) return;
|
|
7913
7913
|
const r = n[0], a = n[1];
|
|
7914
7914
|
for (let o = 0; o + 2 < t.length; o += 3) {
|
|
@@ -7917,7 +7917,7 @@ function Id(e, t, n) {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
}
|
|
7919
7919
|
function be(e, t) {
|
|
7920
|
-
|
|
7920
|
+
Hd(e, t.positions, t.offset);
|
|
7921
7921
|
}
|
|
7922
7922
|
function gt(e) {
|
|
7923
7923
|
return e.valid ? {
|
|
@@ -7943,21 +7943,21 @@ function no(e, t) {
|
|
|
7943
7943
|
maxY: Math.max(e.maxY, t.maxY)
|
|
7944
7944
|
} : e : t ?? null;
|
|
7945
7945
|
}
|
|
7946
|
-
function
|
|
7946
|
+
function Id(e) {
|
|
7947
7947
|
if (!e || e.length === 0) return null;
|
|
7948
7948
|
let t = null;
|
|
7949
7949
|
for (const n of e)
|
|
7950
7950
|
t = no(t, n.paper);
|
|
7951
7951
|
return t;
|
|
7952
7952
|
}
|
|
7953
|
-
function
|
|
7953
|
+
function xt(e) {
|
|
7954
7954
|
return no(
|
|
7955
7955
|
Pd(e.lineBatches, e.meshBatches),
|
|
7956
|
-
|
|
7956
|
+
Id(e.viewports)
|
|
7957
7957
|
);
|
|
7958
7958
|
}
|
|
7959
7959
|
function Gu(e, t) {
|
|
7960
|
-
return e.fitExtents ??
|
|
7960
|
+
return e.fitExtents ?? xt(e) ?? t ?? {
|
|
7961
7961
|
minX: 0,
|
|
7962
7962
|
minY: 0,
|
|
7963
7963
|
maxX: 1,
|
|
@@ -7967,7 +7967,7 @@ function Gu(e, t) {
|
|
|
7967
7967
|
function Ku(e, t) {
|
|
7968
7968
|
return e.btrId === t.activeLayoutBtrId ? t.meta.viewExtents ?? e.savedView ?? t.meta.extents : e.savedView ?? t.meta.extents;
|
|
7969
7969
|
}
|
|
7970
|
-
function
|
|
7970
|
+
function zd(e) {
|
|
7971
7971
|
const t = [], n = (r) => {
|
|
7972
7972
|
if (r.positions.length < 3) return;
|
|
7973
7973
|
const a = ht();
|
|
@@ -7981,7 +7981,7 @@ function Bd(e) {
|
|
|
7981
7981
|
n(r);
|
|
7982
7982
|
return t;
|
|
7983
7983
|
}
|
|
7984
|
-
function
|
|
7984
|
+
function Bd(e, t) {
|
|
7985
7985
|
var d;
|
|
7986
7986
|
const n = t == null ? void 0 : t.isLayerVisible, r = e.filter(
|
|
7987
7987
|
(u) => !n || n(u.layer)
|
|
@@ -8023,10 +8023,10 @@ function Td(e, t) {
|
|
|
8023
8023
|
}
|
|
8024
8024
|
for (const u of (t == null ? void 0 : t.viewports) ?? [])
|
|
8025
8025
|
s.push(u.paper);
|
|
8026
|
-
const c =
|
|
8026
|
+
const c = Td(s);
|
|
8027
8027
|
return Sd(c.length > 0 ? c : s);
|
|
8028
8028
|
}
|
|
8029
|
-
function
|
|
8029
|
+
function Td(e) {
|
|
8030
8030
|
if (e.length < 2)
|
|
8031
8031
|
return e;
|
|
8032
8032
|
const t = e.map((d) => ({
|
|
@@ -8053,18 +8053,18 @@ function gr(e, t) {
|
|
|
8053
8053
|
}
|
|
8054
8054
|
}
|
|
8055
8055
|
function Wu(e, t) {
|
|
8056
|
-
const n =
|
|
8057
|
-
return
|
|
8056
|
+
const n = zd(e);
|
|
8057
|
+
return Bd(n, {
|
|
8058
8058
|
isLayerVisible: t,
|
|
8059
8059
|
viewports: e.viewports,
|
|
8060
8060
|
sampleFromLayout: e
|
|
8061
|
-
}) ??
|
|
8061
|
+
}) ?? xt(e);
|
|
8062
8062
|
}
|
|
8063
|
-
const
|
|
8063
|
+
const Fd = 256;
|
|
8064
8064
|
function Ud(e, t) {
|
|
8065
8065
|
const n = e.positions, r = e.offset, a = Math.floor(n.length / 3);
|
|
8066
8066
|
if (a <= 0) return;
|
|
8067
|
-
const o = Math.max(1, Math.ceil(a /
|
|
8067
|
+
const o = Math.max(1, Math.ceil(a / Fd));
|
|
8068
8068
|
for (let i = 0; i < a; i += o) {
|
|
8069
8069
|
const s = i * 3, l = Je(n[s], r[0]), c = Je(n[s + 1], r[1]);
|
|
8070
8070
|
!Number.isFinite(l) || !Number.isFinite(c) || t.push({ minX: l, minY: c, maxX: l, maxY: c });
|
|
@@ -8084,16 +8084,16 @@ function Ju(e, t) {
|
|
|
8084
8084
|
a.set(o, gt(i));
|
|
8085
8085
|
return a;
|
|
8086
8086
|
}
|
|
8087
|
-
function
|
|
8087
|
+
function Rd(e, t, n) {
|
|
8088
8088
|
if (n) return;
|
|
8089
|
-
const r =
|
|
8089
|
+
const r = Od(e, t);
|
|
8090
8090
|
if (!(r != null && r.newIterator)) return;
|
|
8091
8091
|
const a = [];
|
|
8092
8092
|
for (const o of r.newIterator()) {
|
|
8093
8093
|
if (!(o instanceof qo) || yo.isDefaultPaperSpaceViewport(o) || typeof o.toGiViewport != "function") continue;
|
|
8094
|
-
const i = o.toGiViewport(), s = i.box, l = i.viewBox, c =
|
|
8094
|
+
const i = o.toGiViewport(), s = i.box, l = i.viewBox, c = xr(s), d = xr(l);
|
|
8095
8095
|
if (!c || !d) continue;
|
|
8096
|
-
const u = Number.isFinite(i.viewTwistAngle) ? i.viewTwistAngle : o.viewTwistAngle, p =
|
|
8096
|
+
const u = Number.isFinite(i.viewTwistAngle) ? i.viewTwistAngle : o.viewTwistAngle, p = _d(
|
|
8097
8097
|
i,
|
|
8098
8098
|
o
|
|
8099
8099
|
), m = { paper: c, model: d };
|
|
@@ -8101,7 +8101,7 @@ function Od(e, t, n) {
|
|
|
8101
8101
|
}
|
|
8102
8102
|
return a.length > 0 ? a : void 0;
|
|
8103
8103
|
}
|
|
8104
|
-
function
|
|
8104
|
+
function _d(e, t) {
|
|
8105
8105
|
var i;
|
|
8106
8106
|
const n = e.frozenLayers;
|
|
8107
8107
|
if (n && n.length > 0)
|
|
@@ -8117,13 +8117,13 @@ function Rd(e, t) {
|
|
|
8117
8117
|
}
|
|
8118
8118
|
return o;
|
|
8119
8119
|
}
|
|
8120
|
-
function
|
|
8120
|
+
function xr(e) {
|
|
8121
8121
|
if (typeof e.isEmpty == "function" && e.isEmpty()) return;
|
|
8122
8122
|
const t = e.min.x, n = e.min.y, r = e.max.x, a = e.max.y;
|
|
8123
8123
|
if (!(!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(a) || r - t <= 0 || a - n <= 0))
|
|
8124
8124
|
return { minX: t, minY: n, maxX: r, maxY: a };
|
|
8125
8125
|
}
|
|
8126
|
-
function
|
|
8126
|
+
function Od(e, t) {
|
|
8127
8127
|
var o;
|
|
8128
8128
|
const n = (o = e.tables) == null ? void 0 : o.blockTable;
|
|
8129
8129
|
if (!n) return;
|
|
@@ -8138,22 +8138,22 @@ function Hd(e, t) {
|
|
|
8138
8138
|
if ((a == null ? void 0 : a.objectId) === t)
|
|
8139
8139
|
return a;
|
|
8140
8140
|
}
|
|
8141
|
-
const
|
|
8142
|
-
function Dd(e, t, n, r =
|
|
8141
|
+
const wr = 16 / 9;
|
|
8142
|
+
function Dd(e, t, n, r = wr) {
|
|
8143
8143
|
var i, s, l, c;
|
|
8144
|
-
const a = Number.isFinite(r) && r > 0 ? r :
|
|
8144
|
+
const a = Number.isFinite(r) && r > 0 ? r : wr;
|
|
8145
8145
|
if (n) {
|
|
8146
8146
|
const d = (l = (s = (i = e.tables) == null ? void 0 : i.viewportTable) == null ? void 0 : s.getActiveVportBox) == null ? void 0 : l.call(s, a);
|
|
8147
|
-
return
|
|
8147
|
+
return vr(d);
|
|
8148
8148
|
}
|
|
8149
8149
|
const o = (c = e.objects) == null ? void 0 : c.layout;
|
|
8150
8150
|
if (o != null && o.newIterator) {
|
|
8151
8151
|
for (const d of o.newIterator())
|
|
8152
8152
|
if (d.blockTableRecordId === t)
|
|
8153
|
-
return
|
|
8153
|
+
return vr(d.limits);
|
|
8154
8154
|
}
|
|
8155
8155
|
}
|
|
8156
|
-
function
|
|
8156
|
+
function vr(e) {
|
|
8157
8157
|
if (!e || typeof e.isEmpty == "function" && e.isEmpty()) return;
|
|
8158
8158
|
const t = e.min.x, n = e.min.y, r = e.max.x, a = e.max.y;
|
|
8159
8159
|
if (!(!Number.isFinite(t) || !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(a) || r - t <= 0 || a - n <= 0))
|
|
@@ -8252,7 +8252,7 @@ function ao(e, t) {
|
|
|
8252
8252
|
return n;
|
|
8253
8253
|
}
|
|
8254
8254
|
function oo(e, t, n, r) {
|
|
8255
|
-
const a = n.find((s) => s.btrId === r) ?? n[0], o = a ?
|
|
8255
|
+
const a = n.find((s) => s.btrId === r) ?? n[0], o = a ? xt(a) : null, i = t.initialView ?? "fit";
|
|
8256
8256
|
return {
|
|
8257
8257
|
title: e.title,
|
|
8258
8258
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -8311,7 +8311,7 @@ function lo(e, t, n, r, a, o) {
|
|
|
8311
8311
|
for (const m of n.layers) {
|
|
8312
8312
|
if (o && !o(m.name))
|
|
8313
8313
|
continue;
|
|
8314
|
-
const f =
|
|
8314
|
+
const f = Bs(m.root);
|
|
8315
8315
|
i.push(...f.lineBatches), s.push(...f.meshBatches);
|
|
8316
8316
|
}
|
|
8317
8317
|
const l = n.isModelSpace || n.btrId === t.modelSpaceBtrId, c = Dd(
|
|
@@ -8319,11 +8319,11 @@ function lo(e, t, n, r, a, o) {
|
|
|
8319
8319
|
n.btrId,
|
|
8320
8320
|
l,
|
|
8321
8321
|
a.canvasAspectRatio
|
|
8322
|
-
), d =
|
|
8322
|
+
), d = Rd(
|
|
8323
8323
|
e,
|
|
8324
8324
|
n.btrId,
|
|
8325
8325
|
l
|
|
8326
|
-
), u =
|
|
8326
|
+
), u = xt({
|
|
8327
8327
|
lineBatches: i,
|
|
8328
8328
|
meshBatches: s,
|
|
8329
8329
|
viewports: d
|
|
@@ -8369,45 +8369,45 @@ export {
|
|
|
8369
8369
|
Ea as ACEX_DEFAULT_MANIFEST_HREF,
|
|
8370
8370
|
iu as ACEX_DEFAULT_OSNAP_CHUNK_MAX_BYTES,
|
|
8371
8371
|
tu as ACEX_DEFAULT_OSNAP_MODES,
|
|
8372
|
-
|
|
8372
|
+
wu as ACEX_DEFAULT_POLAR_ANGLE,
|
|
8373
8373
|
Yu as ACEX_DOCS_PATH_MAGNIFIER,
|
|
8374
8374
|
hd as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME,
|
|
8375
|
-
|
|
8375
|
+
Tu as ACEX_EMBEDDED_CHUNK_ENCRYPTED_MIME_BASE64,
|
|
8376
8376
|
ce as ACEX_EMBEDDED_CHUNK_HREF_ATTR,
|
|
8377
8377
|
sr as ACEX_EMBEDDED_CHUNK_MAX_BYTES,
|
|
8378
8378
|
fd as ACEX_EMBEDDED_CHUNK_MIME,
|
|
8379
|
-
|
|
8379
|
+
Bu as ACEX_EMBEDDED_CHUNK_MIME_BASE64,
|
|
8380
8380
|
Ml as ACEX_EMBEDDED_CHUNK_THRESHOLD_BYTES,
|
|
8381
8381
|
Sl as ACEX_EMBEDDED_OSNAP_CHUNK_MAX_BYTES,
|
|
8382
8382
|
bn as ACEX_GEOMETRY_CHUNK_FETCH_CONCURRENCY,
|
|
8383
8383
|
ft as ACEX_HTML_BACKGROUND_BLACK,
|
|
8384
|
-
|
|
8384
|
+
Tn as ACEX_HTML_BACKGROUND_WHITE,
|
|
8385
8385
|
Yc as ACEX_HTML_EXPIRY_COUNTDOWN_MS,
|
|
8386
8386
|
ge as ACEX_HTML_LOCALES,
|
|
8387
|
-
|
|
8387
|
+
va as ACEX_HTML_LOCALE_BADGES,
|
|
8388
8388
|
ya as ACEX_HTML_LOCALE_STORAGE_KEY,
|
|
8389
8389
|
En as ACEX_HTML_SHELL_CSS,
|
|
8390
|
-
|
|
8390
|
+
Tl as ACEX_MANIFEST_QUERY_KEYS,
|
|
8391
8391
|
Xn as ACEX_MAX_BINARY_ARRAY_BYTES,
|
|
8392
8392
|
Ai as ACEX_MAX_BINARY_STRING_BYTES,
|
|
8393
|
-
|
|
8393
|
+
Ft as ACEX_MAX_COMPRESSED_BYTES,
|
|
8394
8394
|
Ci as ACEX_MAX_DECOMPRESSED_BYTES,
|
|
8395
8395
|
ut as ACEX_MAX_GEOMETRY_BATCH_BYTES,
|
|
8396
|
-
|
|
8396
|
+
Rc as ACEX_ORTHO_POLAR_ANGLE,
|
|
8397
8397
|
at as ACEX_PACKAGE_DIRECTORY_ORIGIN,
|
|
8398
8398
|
Aa as ACEX_PACKAGE_VERSION,
|
|
8399
8399
|
Uc as ACEX_POLAR_ANGLE_INCREMENTS,
|
|
8400
|
-
|
|
8400
|
+
Tt as ACEX_SNAPSHOT_COMPRESSION,
|
|
8401
8401
|
D as ACEX_SNAPSHOT_VERSION,
|
|
8402
|
-
cn as
|
|
8403
|
-
ln as
|
|
8404
|
-
sa as
|
|
8402
|
+
cn as AcExHtmlBinaryReader,
|
|
8403
|
+
ln as AcExHtmlBinaryWriter,
|
|
8404
|
+
sa as AcExHtmlCameraZoomUniform,
|
|
8405
8405
|
ou as AcExHtmlI18n,
|
|
8406
|
-
|
|
8407
|
-
|
|
8406
|
+
_e as AcExHtmlIcons,
|
|
8407
|
+
Ot as F_LINE_DISTANCES,
|
|
8408
8408
|
Dr as F_LINE_EXCLUDE_OSNAP,
|
|
8409
|
-
|
|
8410
|
-
|
|
8409
|
+
Rt as F_LINE_INDICES,
|
|
8410
|
+
_t as F_LINE_PATTERN,
|
|
8411
8411
|
Nt as F_LINE_RENDER_ORDER,
|
|
8412
8412
|
Dt as F_LINE_WIDTH,
|
|
8413
8413
|
Xt as F_MESH_GRADIENT_FILL,
|
|
@@ -8420,181 +8420,181 @@ export {
|
|
|
8420
8420
|
Gt as F_MESH_TEXTURE,
|
|
8421
8421
|
Nc as ML_UI_COMPACT_MAX_WIDTH,
|
|
8422
8422
|
Dc as ML_UI_MOBILE_MAX_WIDTH,
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8456
|
-
|
|
8457
|
-
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8462
|
-
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
|
|
8478
|
-
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8493
|
-
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
|
|
8497
|
-
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8513
|
-
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
|
|
8532
|
-
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8545
|
-
|
|
8546
|
-
|
|
8547
|
-
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8556
|
-
|
|
8557
|
-
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8570
|
-
|
|
8571
|
-
|
|
8572
|
-
Ve as
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
Zn as
|
|
8593
|
-
Sd as
|
|
8594
|
-
no as
|
|
8595
|
-
Vu as
|
|
8596
|
-
er as
|
|
8597
|
-
$r as
|
|
8598
|
-
Xr as
|
|
8599
|
-
$u as
|
|
8423
|
+
Xu as acexHtmlApplyBackground,
|
|
8424
|
+
Fs as acexHtmlArcToAcGe,
|
|
8425
|
+
Qn as acexHtmlArcWcsPoint,
|
|
8426
|
+
Ad as acexHtmlBackgroundRgb,
|
|
8427
|
+
hn as acexHtmlBakePlainDrawableSlice,
|
|
8428
|
+
Jc as acexHtmlBase64ToBytes,
|
|
8429
|
+
Mi as acexHtmlBase85ToBytes,
|
|
8430
|
+
ot as acexHtmlBuildAccessManifest,
|
|
8431
|
+
vu as acexHtmlBuildLocaleStrip,
|
|
8432
|
+
gl as acexHtmlBuildOsnapCatalog,
|
|
8433
|
+
Iu as acexHtmlBuildPackage,
|
|
8434
|
+
zu as acexHtmlBuildPackageAsync,
|
|
8435
|
+
md as acexHtmlBuildPackageData,
|
|
8436
|
+
Ka as acexHtmlBuildPackageDataAsync,
|
|
8437
|
+
fu as acexHtmlBuildPackageDirectoryFileMap,
|
|
8438
|
+
za as acexHtmlBuildPolarAnglesPanel,
|
|
8439
|
+
Mn as acexHtmlBuildShellBody,
|
|
8440
|
+
yu as acexHtmlBuildSnapStrip,
|
|
8441
|
+
qu as acexHtmlBuildSnapshotFromExportScene,
|
|
8442
|
+
Qu as acexHtmlBuildSnapshotFromExportSceneAsync,
|
|
8443
|
+
ua as acexHtmlBuildViewerMetadata,
|
|
8444
|
+
Wc as acexHtmlBytesToBase64,
|
|
8445
|
+
Ei as acexHtmlBytesToBase85,
|
|
8446
|
+
Ne as acexHtmlBytesToText,
|
|
8447
|
+
cu as acexHtmlCanOpenLocalPackageFolder,
|
|
8448
|
+
Dd as acexHtmlCaptureSavedViewExtents,
|
|
8449
|
+
uu as acexHtmlChooseInitialManifestHref,
|
|
8450
|
+
Rs as acexHtmlCircleOrArcToAcGe,
|
|
8451
|
+
Bs as acexHtmlCollectBatchesFromObject3D,
|
|
8452
|
+
_u as acexHtmlCollectEmbeddedChunkBytes,
|
|
8453
|
+
zd as acexHtmlCollectLayoutBatchExtentEntries,
|
|
8454
|
+
Rd as acexHtmlCollectLayoutViewports,
|
|
8455
|
+
ra as acexHtmlCompactIndexedSlice,
|
|
8456
|
+
Ue as acexHtmlCompressSnapshotBinary,
|
|
8457
|
+
Rr as acexHtmlCompressSnapshotBinaryAsync,
|
|
8458
|
+
Bd as acexHtmlComputeIntelligentExtentsFromBatchEntries,
|
|
8459
|
+
Wu as acexHtmlComputeIntelligentLayoutExtents,
|
|
8460
|
+
Ju as acexHtmlComputeLayerExtentsMap,
|
|
8461
|
+
Pd as acexHtmlComputeLayoutExtents,
|
|
8462
|
+
xt as acexHtmlComputeLayoutViewExtents,
|
|
8463
|
+
wn as acexHtmlComputeLineDistancesForSegments,
|
|
8464
|
+
Id as acexHtmlComputeViewportPaperExtents,
|
|
8465
|
+
vd as acexHtmlConsumeEmbeddedChunkFromDom,
|
|
8466
|
+
ne as acexHtmlCopyFloat32Range,
|
|
8467
|
+
es as acexHtmlCopyUint32Range,
|
|
8468
|
+
Hn as acexHtmlCreateAccessKey,
|
|
8469
|
+
Du as acexHtmlCreateDomEmbeddedPackageFetch,
|
|
8470
|
+
yd as acexHtmlCreateEmbeddedPackageFetch,
|
|
8471
|
+
ht as acexHtmlCreateEmptyExtents,
|
|
8472
|
+
kn as acexHtmlCreateOrderedBytePrefetcher,
|
|
8473
|
+
hu as acexHtmlCreatePackageDirectoryFetch,
|
|
8474
|
+
cs as acexHtmlCreateTextureFromExportedBytes,
|
|
8475
|
+
qd as acexHtmlCreateViewerLineMaterial,
|
|
8476
|
+
eu as acexHtmlCreateViewerMeshMaterial,
|
|
8477
|
+
Qd as acexHtmlCreateViewerPointsMaterial,
|
|
8478
|
+
ka as acexHtmlDecodeChunkBinary,
|
|
8479
|
+
Cl as acexHtmlDecodeChunkGzip,
|
|
8480
|
+
La as acexHtmlDecodeChunkPayload,
|
|
8481
|
+
fn as acexHtmlDecodeOsnapCatalogBinary,
|
|
8482
|
+
Fi as acexHtmlDecodeOsnapCatalogGzip,
|
|
8483
|
+
Ui as acexHtmlDecodeOsnapCatalogPayload,
|
|
8484
|
+
Kd as acexHtmlDecodeSnapshot,
|
|
8485
|
+
Di as acexHtmlDecodeSnapshotBinary,
|
|
8486
|
+
Ji as acexHtmlDecodeSnapshotFromCompressedBytes,
|
|
8487
|
+
dn as acexHtmlDecompressSnapshotBinary,
|
|
8488
|
+
In as acexHtmlDecryptBytes,
|
|
8489
|
+
Nu as acexHtmlDecryptEmbeddedManifest,
|
|
8490
|
+
Hu as acexHtmlDecryptSnapshotPayload,
|
|
8491
|
+
yl as acexHtmlDetectBrowserLocale,
|
|
8492
|
+
du as acexHtmlDetectLocalFolderOpenSupport,
|
|
8493
|
+
bl as acexHtmlDetectLocale,
|
|
8494
|
+
_l as acexHtmlDetectSharedDirectoryRoot,
|
|
8495
|
+
ju as acexHtmlDocsUrl,
|
|
8496
|
+
xu as acexHtmlDropdownItem,
|
|
8497
|
+
Us as acexHtmlEllipseArcDelta,
|
|
8498
|
+
nu as acexHtmlEllipsePointAtNormalized,
|
|
8499
|
+
_s as acexHtmlEllipseToAcGe,
|
|
8500
|
+
dt as acexHtmlEncodeChunkBinary,
|
|
8501
|
+
Ll as acexHtmlEncodeChunkGzip,
|
|
8502
|
+
$e as acexHtmlEncodeOsnapCatalogBinary,
|
|
8503
|
+
Bi as acexHtmlEncodeOsnapCatalogGzip,
|
|
8504
|
+
Wi as acexHtmlEncodeSnapshot,
|
|
8505
|
+
Oi as acexHtmlEncodeSnapshotBinary,
|
|
8506
|
+
rs as acexHtmlEncodeTextureForExport,
|
|
8507
|
+
Pn as acexHtmlEncryptBytes,
|
|
8508
|
+
Kc as acexHtmlEncryptSnapshotPayload,
|
|
8509
|
+
un as acexHtmlEstimateLineBatchBytes,
|
|
8510
|
+
mn as acexHtmlEstimateMeshBatchBytes,
|
|
8511
|
+
ta as acexHtmlEstimateOsnapPrimitiveBytes,
|
|
8512
|
+
gd as acexHtmlEstimateSnapshotGeometryBytes,
|
|
8513
|
+
be as acexHtmlExpandExtentsFromBatch,
|
|
8514
|
+
Hd as acexHtmlExpandExtentsFromPositions,
|
|
8515
|
+
ws as acexHtmlExportActiveBatchedLine2Slice,
|
|
8516
|
+
vn as acexHtmlExportActiveBatchedSlice,
|
|
8517
|
+
qe as acexHtmlExportBufferGeometrySlice,
|
|
8518
|
+
Jd as acexHtmlExportLineDistanceSlice,
|
|
8519
|
+
ns as acexHtmlExportPlainDrawableSlice,
|
|
8520
|
+
ls as acexHtmlExportUvsForPositionSlice,
|
|
8521
|
+
gs as acexHtmlExportVertexAttributeSlice,
|
|
8522
|
+
ps as acexHtmlExtractGradientFill,
|
|
8523
|
+
ms as acexHtmlExtractHatchPattern,
|
|
8524
|
+
us as acexHtmlExtractLinePattern,
|
|
8525
|
+
gu as acexHtmlFindDefaultManifestInDirectory,
|
|
8526
|
+
Mu as acexHtmlFormatCountdown,
|
|
8527
|
+
Eu as acexHtmlFormatExpiresAt,
|
|
8528
|
+
kl as acexHtmlFormatMessage,
|
|
8529
|
+
Md as acexHtmlGetDocsBaseUrl,
|
|
8530
|
+
pt as acexHtmlGlobalFetch,
|
|
8531
|
+
Ul as acexHtmlIsAbsoluteHttpUrl,
|
|
8532
|
+
Au as acexHtmlIsAccessExpired,
|
|
8533
|
+
Cu as acexHtmlIsExpiryCountdownActive,
|
|
8534
|
+
_r as acexHtmlIsGzipPayload,
|
|
8535
|
+
au as acexHtmlIsLocale,
|
|
8536
|
+
Pl as acexHtmlIsSafePackageHref,
|
|
8537
|
+
ia as acexHtmlIsTransparentImagePlaceholder,
|
|
8538
|
+
mr as acexHtmlLayoutBackground,
|
|
8539
|
+
ro as acexHtmlListDatabaseLayouts,
|
|
8540
|
+
su as acexHtmlLoadPackage,
|
|
8541
|
+
lu as acexHtmlLoadPackageLayout,
|
|
8542
|
+
Bl as acexHtmlLoadPackageLayoutOsnap,
|
|
8543
|
+
_a as acexHtmlNeedsAccessControl,
|
|
8544
|
+
ma as acexHtmlNormalizeArcDelta,
|
|
8545
|
+
to as acexHtmlNormalizeDocsBaseUrl,
|
|
8546
|
+
Rl as acexHtmlNormalizePackageDirectoryPath,
|
|
8547
|
+
ve as acexHtmlOmitNonFinitePrimitives,
|
|
8548
|
+
ku as acexHtmlPackHtml,
|
|
8549
|
+
Uu as acexHtmlPackHtmlEmbeddedPackage,
|
|
8550
|
+
Ba as acexHtmlPackHtmlPackage,
|
|
8551
|
+
Su as acexHtmlParseAccessManifest,
|
|
8552
|
+
Or as acexHtmlParseBinaryEncoding,
|
|
8553
|
+
Ru as acexHtmlParseEmbeddedPackageConfig,
|
|
8554
|
+
mt as acexHtmlParsePackageManifest,
|
|
8555
|
+
ru as acexHtmlPrimitiveToAcGeCurve,
|
|
8556
|
+
pu as acexHtmlProbePackageManifest,
|
|
8557
|
+
Pu as acexHtmlProtectEncodedSnapshot,
|
|
8558
|
+
ts as acexHtmlReadBatchWorldOffset,
|
|
8559
|
+
Ou as acexHtmlReadEmbeddedChunkFromDom,
|
|
8560
|
+
Vr as acexHtmlReadLineBatch,
|
|
8561
|
+
Fl as acexHtmlReadManifestUrlFromSearchParams,
|
|
8562
|
+
Yr as acexHtmlReadMeshBatch,
|
|
8563
|
+
xs as acexHtmlRebaseHatchPatternToLocalOffset,
|
|
8564
|
+
gn as acexHtmlRebasePlainDrawableSliceAroundCentroid,
|
|
8565
|
+
ds as acexHtmlReleaseExportedTextureBytes,
|
|
8566
|
+
Ed as acexHtmlRemapSnapshotForegroundForBackground,
|
|
8567
|
+
Ld as acexHtmlResolveBackground,
|
|
8568
|
+
Ln as acexHtmlResolveChunkUrl,
|
|
8569
|
+
Lu as acexHtmlResolveExpiresAt,
|
|
8570
|
+
Ku as acexHtmlResolveLayoutFallbackExtents,
|
|
8571
|
+
Gu as acexHtmlResolveLayoutViewExtents,
|
|
8572
|
+
Ve as acexHtmlResolveLocale,
|
|
8573
|
+
zl as acexHtmlResolvePackageManifestUrl,
|
|
8574
|
+
mu as acexHtmlResolveViewerManifestUrl,
|
|
8575
|
+
Zu as acexHtmlSetDocsBaseUrl,
|
|
8576
|
+
Wd as acexHtmlSetHeadlessPngEncoder,
|
|
8577
|
+
Gd as acexHtmlSetSnapshotCompressor,
|
|
8578
|
+
Fu as acexHtmlShouldEmbedChunks,
|
|
8579
|
+
Qi as acexHtmlSnapshotMimeType,
|
|
8580
|
+
qi as acexHtmlSnapshotPayloadToCompressedBytes,
|
|
8581
|
+
Il as acexHtmlSnapshotSkeletonFromManifest,
|
|
8582
|
+
Os as acexHtmlSplineToAcGe,
|
|
8583
|
+
fr as acexHtmlSplitDominantCluster,
|
|
8584
|
+
cd as acexHtmlSplitLayoutIntoSlices,
|
|
8585
|
+
ed as acexHtmlSplitLineBatch,
|
|
8586
|
+
td as acexHtmlSplitMeshBatch,
|
|
8587
|
+
zi as acexHtmlSplitOsnapPrimitives,
|
|
8588
|
+
lt as acexHtmlTextToBytes,
|
|
8589
|
+
gt as acexHtmlToExtents,
|
|
8590
|
+
Je as acexHtmlToWcsCoord,
|
|
8591
|
+
dr as acexHtmlToolbarButton,
|
|
8592
|
+
Zn as acexHtmlTransformHatchPatternToWorldSpace,
|
|
8593
|
+
Sd as acexHtmlUnionDominantCluster,
|
|
8594
|
+
no as acexHtmlUnionExtents,
|
|
8595
|
+
Vu as acexHtmlUnzipPackageFiles,
|
|
8596
|
+
er as acexHtmlWcsPointToOcsArcAngle,
|
|
8597
|
+
$r as acexHtmlWriteLineBatch,
|
|
8598
|
+
Xr as acexHtmlWriteMeshBatch,
|
|
8599
|
+
$u as acexHtmlZipPackageFiles
|
|
8600
8600
|
};
|