@antv/g-svg 1.3.1 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -871,7 +871,7 @@
871
871
  var addTouchEventListener = function addTouchEventListener($el) {
872
872
  $el.addEventListener('touchstart', onPointerDown, true);
873
873
  $el.addEventListener('touchend', onPointerUp, true);
874
- $el.addEventListener('touchmove', onPointerMove, true);
874
+ globalThis.document.addEventListener('touchmove', onPointerMove, true);
875
875
  $el.addEventListener('touchcancel', onPointerCancel, true);
876
876
  };
877
877
 
@@ -894,7 +894,8 @@
894
894
  var removeTouchEventListener = function removeTouchEventListener($el) {
895
895
  $el.removeEventListener('touchstart', onPointerDown, true);
896
896
  $el.removeEventListener('touchend', onPointerUp, true);
897
- $el.removeEventListener('touchmove', onPointerMove, true);
897
+ $el.removeEventListener('touchcancel', onPointerCancel, true);
898
+ globalThis.document.removeEventListener('touchmove', onPointerMove, true);
898
899
  };
899
900
 
900
901
  var removeMouseEventListener = function removeMouseEventListener($el) {
@@ -2079,7 +2080,7 @@
2079
2080
  };
2080
2081
 
2081
2082
  _proto.clearUnusedDefElement = function clearUnusedDefElement(cache, id, entity) {
2082
- if (cache[id].size === 1 && cache[id].has(entity)) {
2083
+ if (cache[id] && cache[id].size === 1 && cache[id].has(entity)) {
2083
2084
  var targetElement = this.$def.querySelector("#" + id);
2084
2085
 
2085
2086
  if (targetElement) {
@@ -2517,664 +2518,6 @@
2517
2518
  });
2518
2519
  };
2519
2520
  }
2520
- /**
2521
- * Common utilities
2522
- * @module glMatrix
2523
- */
2524
- // Configuration Constants
2525
-
2526
-
2527
- var EPSILON = 0.000001;
2528
- var ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;
2529
- if (!Math.hypot) Math.hypot = function () {
2530
- var y = 0,
2531
- i = arguments.length;
2532
-
2533
- while (i--) {
2534
- y += arguments[i] * arguments[i];
2535
- }
2536
-
2537
- return Math.sqrt(y);
2538
- };
2539
- /**
2540
- * 3x3 Matrix
2541
- * @module mat3
2542
- */
2543
-
2544
- /**
2545
- * Creates a new identity mat3
2546
- *
2547
- * @returns {mat3} a new 3x3 matrix
2548
- */
2549
-
2550
- function create() {
2551
- var out = new ARRAY_TYPE(9);
2552
-
2553
- if (ARRAY_TYPE != Float32Array) {
2554
- out[1] = 0;
2555
- out[2] = 0;
2556
- out[3] = 0;
2557
- out[5] = 0;
2558
- out[6] = 0;
2559
- out[7] = 0;
2560
- }
2561
-
2562
- out[0] = 1;
2563
- out[4] = 1;
2564
- out[8] = 1;
2565
- return out;
2566
- }
2567
- /**
2568
- * Returns the translation vector component of a transformation
2569
- * matrix. If a matrix is built with fromRotationTranslation,
2570
- * the returned vector will be the same as the translation vector
2571
- * originally supplied.
2572
- * @param {vec3} out Vector to receive translation component
2573
- * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
2574
- * @return {vec3} out
2575
- */
2576
-
2577
-
2578
- function getTranslation(out, mat) {
2579
- out[0] = mat[12];
2580
- out[1] = mat[13];
2581
- out[2] = mat[14];
2582
- return out;
2583
- }
2584
- /**
2585
- * Returns the scaling factor component of a transformation
2586
- * matrix. If a matrix is built with fromRotationTranslationScale
2587
- * with a normalized Quaternion paramter, the returned vector will be
2588
- * the same as the scaling vector
2589
- * originally supplied.
2590
- * @param {vec3} out Vector to receive scaling factor component
2591
- * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
2592
- * @return {vec3} out
2593
- */
2594
-
2595
-
2596
- function getScaling(out, mat) {
2597
- var m11 = mat[0];
2598
- var m12 = mat[1];
2599
- var m13 = mat[2];
2600
- var m21 = mat[4];
2601
- var m22 = mat[5];
2602
- var m23 = mat[6];
2603
- var m31 = mat[8];
2604
- var m32 = mat[9];
2605
- var m33 = mat[10];
2606
- out[0] = Math.hypot(m11, m12, m13);
2607
- out[1] = Math.hypot(m21, m22, m23);
2608
- out[2] = Math.hypot(m31, m32, m33);
2609
- return out;
2610
- }
2611
- /**
2612
- * Returns a quaternion representing the rotational component
2613
- * of a transformation matrix. If a matrix is built with
2614
- * fromRotationTranslation, the returned quaternion will be the
2615
- * same as the quaternion originally supplied.
2616
- * @param {quat} out Quaternion to receive the rotation component
2617
- * @param {ReadonlyMat4} mat Matrix to be decomposed (input)
2618
- * @return {quat} out
2619
- */
2620
-
2621
-
2622
- function getRotation(out, mat) {
2623
- var scaling = new ARRAY_TYPE(3);
2624
- getScaling(scaling, mat);
2625
- var is1 = 1 / scaling[0];
2626
- var is2 = 1 / scaling[1];
2627
- var is3 = 1 / scaling[2];
2628
- var sm11 = mat[0] * is1;
2629
- var sm12 = mat[1] * is2;
2630
- var sm13 = mat[2] * is3;
2631
- var sm21 = mat[4] * is1;
2632
- var sm22 = mat[5] * is2;
2633
- var sm23 = mat[6] * is3;
2634
- var sm31 = mat[8] * is1;
2635
- var sm32 = mat[9] * is2;
2636
- var sm33 = mat[10] * is3;
2637
- var trace = sm11 + sm22 + sm33;
2638
- var S = 0;
2639
-
2640
- if (trace > 0) {
2641
- S = Math.sqrt(trace + 1.0) * 2;
2642
- out[3] = 0.25 * S;
2643
- out[0] = (sm23 - sm32) / S;
2644
- out[1] = (sm31 - sm13) / S;
2645
- out[2] = (sm12 - sm21) / S;
2646
- } else if (sm11 > sm22 && sm11 > sm33) {
2647
- S = Math.sqrt(1.0 + sm11 - sm22 - sm33) * 2;
2648
- out[3] = (sm23 - sm32) / S;
2649
- out[0] = 0.25 * S;
2650
- out[1] = (sm12 + sm21) / S;
2651
- out[2] = (sm31 + sm13) / S;
2652
- } else if (sm22 > sm33) {
2653
- S = Math.sqrt(1.0 + sm22 - sm11 - sm33) * 2;
2654
- out[3] = (sm31 - sm13) / S;
2655
- out[0] = (sm12 + sm21) / S;
2656
- out[1] = 0.25 * S;
2657
- out[2] = (sm23 + sm32) / S;
2658
- } else {
2659
- S = Math.sqrt(1.0 + sm33 - sm11 - sm22) * 2;
2660
- out[3] = (sm12 - sm21) / S;
2661
- out[0] = (sm31 + sm13) / S;
2662
- out[1] = (sm23 + sm32) / S;
2663
- out[2] = 0.25 * S;
2664
- }
2665
-
2666
- return out;
2667
- }
2668
- /**
2669
- * 3 Dimensional Vector
2670
- * @module vec3
2671
- */
2672
-
2673
- /**
2674
- * Creates a new, empty vec3
2675
- *
2676
- * @returns {vec3} a new 3D vector
2677
- */
2678
-
2679
-
2680
- function create$1() {
2681
- var out = new ARRAY_TYPE(3);
2682
-
2683
- if (ARRAY_TYPE != Float32Array) {
2684
- out[0] = 0;
2685
- out[1] = 0;
2686
- out[2] = 0;
2687
- }
2688
-
2689
- return out;
2690
- }
2691
- /**
2692
- * Calculates the length of a vec3
2693
- *
2694
- * @param {ReadonlyVec3} a vector to calculate length of
2695
- * @returns {Number} length of a
2696
- */
2697
-
2698
-
2699
- function length(a) {
2700
- var x = a[0];
2701
- var y = a[1];
2702
- var z = a[2];
2703
- return Math.hypot(x, y, z);
2704
- }
2705
- /**
2706
- * Creates a new vec3 initialized with the given values
2707
- *
2708
- * @param {Number} x X component
2709
- * @param {Number} y Y component
2710
- * @param {Number} z Z component
2711
- * @returns {vec3} a new 3D vector
2712
- */
2713
-
2714
-
2715
- function fromValues(x, y, z) {
2716
- var out = new ARRAY_TYPE(3);
2717
- out[0] = x;
2718
- out[1] = y;
2719
- out[2] = z;
2720
- return out;
2721
- }
2722
- /**
2723
- * Normalize a vec3
2724
- *
2725
- * @param {vec3} out the receiving vector
2726
- * @param {ReadonlyVec3} a vector to normalize
2727
- * @returns {vec3} out
2728
- */
2729
-
2730
-
2731
- function normalize(out, a) {
2732
- var x = a[0];
2733
- var y = a[1];
2734
- var z = a[2];
2735
- var len = x * x + y * y + z * z;
2736
-
2737
- if (len > 0) {
2738
- //TODO: evaluate use of glm_invsqrt here?
2739
- len = 1 / Math.sqrt(len);
2740
- }
2741
-
2742
- out[0] = a[0] * len;
2743
- out[1] = a[1] * len;
2744
- out[2] = a[2] * len;
2745
- return out;
2746
- }
2747
- /**
2748
- * Calculates the dot product of two vec3's
2749
- *
2750
- * @param {ReadonlyVec3} a the first operand
2751
- * @param {ReadonlyVec3} b the second operand
2752
- * @returns {Number} dot product of a and b
2753
- */
2754
-
2755
-
2756
- function dot(a, b) {
2757
- return a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
2758
- }
2759
- /**
2760
- * Computes the cross product of two vec3's
2761
- *
2762
- * @param {vec3} out the receiving vector
2763
- * @param {ReadonlyVec3} a the first operand
2764
- * @param {ReadonlyVec3} b the second operand
2765
- * @returns {vec3} out
2766
- */
2767
-
2768
-
2769
- function cross(out, a, b) {
2770
- var ax = a[0],
2771
- ay = a[1],
2772
- az = a[2];
2773
- var bx = b[0],
2774
- by = b[1],
2775
- bz = b[2];
2776
- out[0] = ay * bz - az * by;
2777
- out[1] = az * bx - ax * bz;
2778
- out[2] = ax * by - ay * bx;
2779
- return out;
2780
- }
2781
- /**
2782
- * Alias for {@link vec3.length}
2783
- * @function
2784
- */
2785
-
2786
-
2787
- var len = length;
2788
- /**
2789
- * Perform some operation over an array of vec3s.
2790
- *
2791
- * @param {Array} a the array of vectors to iterate over
2792
- * @param {Number} stride Number of elements between the start of each vec3. If 0 assumes tightly packed
2793
- * @param {Number} offset Number of elements to skip at the beginning of the array
2794
- * @param {Number} count Number of vec3s to iterate over. If 0 iterates over entire array
2795
- * @param {Function} fn Function to call for each vector in the array
2796
- * @param {Object} [arg] additional argument to pass to fn
2797
- * @returns {Array} a
2798
- * @function
2799
- */
2800
-
2801
- var forEach = function () {
2802
- var vec = create$1();
2803
- return function (a, stride, offset, count, fn, arg) {
2804
- var i, l;
2805
-
2806
- if (!stride) {
2807
- stride = 3;
2808
- }
2809
-
2810
- if (!offset) {
2811
- offset = 0;
2812
- }
2813
-
2814
- if (count) {
2815
- l = Math.min(count * stride + offset, a.length);
2816
- } else {
2817
- l = a.length;
2818
- }
2819
-
2820
- for (i = offset; i < l; i += stride) {
2821
- vec[0] = a[i];
2822
- vec[1] = a[i + 1];
2823
- vec[2] = a[i + 2];
2824
- fn(vec, vec, arg);
2825
- a[i] = vec[0];
2826
- a[i + 1] = vec[1];
2827
- a[i + 2] = vec[2];
2828
- }
2829
-
2830
- return a;
2831
- };
2832
- }();
2833
- /**
2834
- * 4 Dimensional Vector
2835
- * @module vec4
2836
- */
2837
-
2838
- /**
2839
- * Creates a new, empty vec4
2840
- *
2841
- * @returns {vec4} a new 4D vector
2842
- */
2843
-
2844
-
2845
- function create$2() {
2846
- var out = new ARRAY_TYPE(4);
2847
-
2848
- if (ARRAY_TYPE != Float32Array) {
2849
- out[0] = 0;
2850
- out[1] = 0;
2851
- out[2] = 0;
2852
- out[3] = 0;
2853
- }
2854
-
2855
- return out;
2856
- }
2857
- /**
2858
- * Normalize a vec4
2859
- *
2860
- * @param {vec4} out the receiving vector
2861
- * @param {ReadonlyVec4} a vector to normalize
2862
- * @returns {vec4} out
2863
- */
2864
-
2865
-
2866
- function normalize$1(out, a) {
2867
- var x = a[0];
2868
- var y = a[1];
2869
- var z = a[2];
2870
- var w = a[3];
2871
- var len = x * x + y * y + z * z + w * w;
2872
-
2873
- if (len > 0) {
2874
- len = 1 / Math.sqrt(len);
2875
- }
2876
-
2877
- out[0] = x * len;
2878
- out[1] = y * len;
2879
- out[2] = z * len;
2880
- out[3] = w * len;
2881
- return out;
2882
- }
2883
- /**
2884
- * Perform some operation over an array of vec4s.
2885
- *
2886
- * @param {Array} a the array of vectors to iterate over
2887
- * @param {Number} stride Number of elements between the start of each vec4. If 0 assumes tightly packed
2888
- * @param {Number} offset Number of elements to skip at the beginning of the array
2889
- * @param {Number} count Number of vec4s to iterate over. If 0 iterates over entire array
2890
- * @param {Function} fn Function to call for each vector in the array
2891
- * @param {Object} [arg] additional argument to pass to fn
2892
- * @returns {Array} a
2893
- * @function
2894
- */
2895
-
2896
-
2897
- var forEach$1 = function () {
2898
- var vec = create$2();
2899
- return function (a, stride, offset, count, fn, arg) {
2900
- var i, l;
2901
-
2902
- if (!stride) {
2903
- stride = 4;
2904
- }
2905
-
2906
- if (!offset) {
2907
- offset = 0;
2908
- }
2909
-
2910
- if (count) {
2911
- l = Math.min(count * stride + offset, a.length);
2912
- } else {
2913
- l = a.length;
2914
- }
2915
-
2916
- for (i = offset; i < l; i += stride) {
2917
- vec[0] = a[i];
2918
- vec[1] = a[i + 1];
2919
- vec[2] = a[i + 2];
2920
- vec[3] = a[i + 3];
2921
- fn(vec, vec, arg);
2922
- a[i] = vec[0];
2923
- a[i + 1] = vec[1];
2924
- a[i + 2] = vec[2];
2925
- a[i + 3] = vec[3];
2926
- }
2927
-
2928
- return a;
2929
- };
2930
- }();
2931
- /**
2932
- * Quaternion
2933
- * @module quat
2934
- */
2935
-
2936
- /**
2937
- * Creates a new identity quat
2938
- *
2939
- * @returns {quat} a new quaternion
2940
- */
2941
-
2942
-
2943
- function create$3() {
2944
- var out = new ARRAY_TYPE(4);
2945
-
2946
- if (ARRAY_TYPE != Float32Array) {
2947
- out[0] = 0;
2948
- out[1] = 0;
2949
- out[2] = 0;
2950
- }
2951
-
2952
- out[3] = 1;
2953
- return out;
2954
- }
2955
- /**
2956
- * Sets a quat from the given angle and rotation axis,
2957
- * then returns it.
2958
- *
2959
- * @param {quat} out the receiving quaternion
2960
- * @param {ReadonlyVec3} axis the axis around which to rotate
2961
- * @param {Number} rad the angle in radians
2962
- * @returns {quat} out
2963
- **/
2964
-
2965
-
2966
- function setAxisAngle(out, axis, rad) {
2967
- rad = rad * 0.5;
2968
- var s = Math.sin(rad);
2969
- out[0] = s * axis[0];
2970
- out[1] = s * axis[1];
2971
- out[2] = s * axis[2];
2972
- out[3] = Math.cos(rad);
2973
- return out;
2974
- }
2975
- /**
2976
- * Performs a spherical linear interpolation between two quat
2977
- *
2978
- * @param {quat} out the receiving quaternion
2979
- * @param {ReadonlyQuat} a the first operand
2980
- * @param {ReadonlyQuat} b the second operand
2981
- * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
2982
- * @returns {quat} out
2983
- */
2984
-
2985
-
2986
- function slerp(out, a, b, t) {
2987
- // benchmarks:
2988
- // http://jsperf.com/quaternion-slerp-implementations
2989
- var ax = a[0],
2990
- ay = a[1],
2991
- az = a[2],
2992
- aw = a[3];
2993
- var bx = b[0],
2994
- by = b[1],
2995
- bz = b[2],
2996
- bw = b[3];
2997
- var omega, cosom, sinom, scale0, scale1; // calc cosine
2998
-
2999
- cosom = ax * bx + ay * by + az * bz + aw * bw; // adjust signs (if necessary)
3000
-
3001
- if (cosom < 0.0) {
3002
- cosom = -cosom;
3003
- bx = -bx;
3004
- by = -by;
3005
- bz = -bz;
3006
- bw = -bw;
3007
- } // calculate coefficients
3008
-
3009
-
3010
- if (1.0 - cosom > EPSILON) {
3011
- // standard case (slerp)
3012
- omega = Math.acos(cosom);
3013
- sinom = Math.sin(omega);
3014
- scale0 = Math.sin((1.0 - t) * omega) / sinom;
3015
- scale1 = Math.sin(t * omega) / sinom;
3016
- } else {
3017
- // "from" and "to" quaternions are very close
3018
- // ... so we can do a linear interpolation
3019
- scale0 = 1.0 - t;
3020
- scale1 = t;
3021
- } // calculate final values
3022
-
3023
-
3024
- out[0] = scale0 * ax + scale1 * bx;
3025
- out[1] = scale0 * ay + scale1 * by;
3026
- out[2] = scale0 * az + scale1 * bz;
3027
- out[3] = scale0 * aw + scale1 * bw;
3028
- return out;
3029
- }
3030
- /**
3031
- * Creates a quaternion from the given 3x3 rotation matrix.
3032
- *
3033
- * NOTE: The resultant quaternion is not normalized, so you should be sure
3034
- * to renormalize the quaternion yourself where necessary.
3035
- *
3036
- * @param {quat} out the receiving quaternion
3037
- * @param {ReadonlyMat3} m rotation matrix
3038
- * @returns {quat} out
3039
- * @function
3040
- */
3041
-
3042
-
3043
- function fromMat3(out, m) {
3044
- // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes
3045
- // article "Quaternion Calculus and Fast Animation".
3046
- var fTrace = m[0] + m[4] + m[8];
3047
- var fRoot;
3048
-
3049
- if (fTrace > 0.0) {
3050
- // |w| > 1/2, may as well choose w > 1/2
3051
- fRoot = Math.sqrt(fTrace + 1.0); // 2w
3052
-
3053
- out[3] = 0.5 * fRoot;
3054
- fRoot = 0.5 / fRoot; // 1/(4w)
3055
-
3056
- out[0] = (m[5] - m[7]) * fRoot;
3057
- out[1] = (m[6] - m[2]) * fRoot;
3058
- out[2] = (m[1] - m[3]) * fRoot;
3059
- } else {
3060
- // |w| <= 1/2
3061
- var i = 0;
3062
- if (m[4] > m[0]) i = 1;
3063
- if (m[8] > m[i * 3 + i]) i = 2;
3064
- var j = (i + 1) % 3;
3065
- var k = (i + 2) % 3;
3066
- fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1.0);
3067
- out[i] = 0.5 * fRoot;
3068
- fRoot = 0.5 / fRoot;
3069
- out[3] = (m[j * 3 + k] - m[k * 3 + j]) * fRoot;
3070
- out[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot;
3071
- out[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot;
3072
- }
3073
-
3074
- return out;
3075
- }
3076
- /**
3077
- * Normalize a quat
3078
- *
3079
- * @param {quat} out the receiving quaternion
3080
- * @param {ReadonlyQuat} a quaternion to normalize
3081
- * @returns {quat} out
3082
- * @function
3083
- */
3084
-
3085
-
3086
- var normalize$2 = normalize$1;
3087
- /**
3088
- * Sets a quaternion to represent the shortest rotation from one
3089
- * vector to another.
3090
- *
3091
- * Both vectors are assumed to be unit length.
3092
- *
3093
- * @param {quat} out the receiving quaternion.
3094
- * @param {ReadonlyVec3} a the initial vector
3095
- * @param {ReadonlyVec3} b the destination vector
3096
- * @returns {quat} out
3097
- */
3098
-
3099
- var rotationTo = function () {
3100
- var tmpvec3 = create$1();
3101
- var xUnitVec3 = fromValues(1, 0, 0);
3102
- var yUnitVec3 = fromValues(0, 1, 0);
3103
- return function (out, a, b) {
3104
- var dot$1 = dot(a, b);
3105
-
3106
- if (dot$1 < -0.999999) {
3107
- cross(tmpvec3, xUnitVec3, a);
3108
- if (len(tmpvec3) < 0.000001) cross(tmpvec3, yUnitVec3, a);
3109
- normalize(tmpvec3, tmpvec3);
3110
- setAxisAngle(out, tmpvec3, Math.PI);
3111
- return out;
3112
- } else if (dot$1 > 0.999999) {
3113
- out[0] = 0;
3114
- out[1] = 0;
3115
- out[2] = 0;
3116
- out[3] = 1;
3117
- return out;
3118
- } else {
3119
- cross(tmpvec3, a, b);
3120
- out[0] = tmpvec3[0];
3121
- out[1] = tmpvec3[1];
3122
- out[2] = tmpvec3[2];
3123
- out[3] = 1 + dot$1;
3124
- return normalize$2(out, out);
3125
- }
3126
- };
3127
- }();
3128
- /**
3129
- * Performs a spherical linear interpolation with two control points
3130
- *
3131
- * @param {quat} out the receiving quaternion
3132
- * @param {ReadonlyQuat} a the first operand
3133
- * @param {ReadonlyQuat} b the second operand
3134
- * @param {ReadonlyQuat} c the third operand
3135
- * @param {ReadonlyQuat} d the fourth operand
3136
- * @param {Number} t interpolation amount, in the range [0-1], between the two inputs
3137
- * @returns {quat} out
3138
- */
3139
-
3140
-
3141
- var sqlerp = function () {
3142
- var temp1 = create$3();
3143
- var temp2 = create$3();
3144
- return function (out, a, b, c, d, t) {
3145
- slerp(temp1, a, d, t);
3146
- slerp(temp2, b, c, t);
3147
- slerp(out, temp1, temp2, 2 * t * (1 - t));
3148
- return out;
3149
- };
3150
- }();
3151
- /**
3152
- * Sets the specified quaternion with values corresponding to the given
3153
- * axes. Each axis is a vec3 and is expected to be unit length and
3154
- * perpendicular to all other specified axes.
3155
- *
3156
- * @param {ReadonlyVec3} view the vector representing the viewing direction
3157
- * @param {ReadonlyVec3} right the vector representing the local "right" direction
3158
- * @param {ReadonlyVec3} up the vector representing the local "up" direction
3159
- * @returns {quat} out
3160
- */
3161
-
3162
-
3163
- var setAxes = function () {
3164
- var matr = create();
3165
- return function (out, view, right, up) {
3166
- matr[0] = right[0];
3167
- matr[3] = right[1];
3168
- matr[6] = right[2];
3169
- matr[1] = up[0];
3170
- matr[4] = up[1];
3171
- matr[7] = up[2];
3172
- matr[2] = -view[0];
3173
- matr[5] = -view[1];
3174
- matr[8] = -view[2];
3175
- return normalize$2(out, fromMat3(out, matr));
3176
- };
3177
- }();
3178
2521
 
3179
2522
  var _class$1;
3180
2523
 
@@ -3374,7 +2717,7 @@
3374
2717
 
3375
2718
  _this.renderingContext.root.addEventListener(g.ElementEvent.ATTR_MODIFIED, handleAttributeChanged);
3376
2719
 
3377
- _this.renderingContext.root.addEventListener(g.ElementEvent.GEOMETRY_BOUNDS_CHANGED, handleGeometryBoundsChanged);
2720
+ _this.renderingContext.root.addEventListener(g.ElementEvent.BOUNDS_CHANGED, handleGeometryBoundsChanged);
3378
2721
 
3379
2722
  case 13:
3380
2723
  case "end":
@@ -3390,7 +2733,7 @@
3390
2733
 
3391
2734
  _this.renderingContext.root.removeEventListener(g.ElementEvent.ATTR_MODIFIED, handleAttributeChanged);
3392
2735
 
3393
- _this.renderingContext.root.removeEventListener(g.ElementEvent.GEOMETRY_BOUNDS_CHANGED, handleGeometryBoundsChanged);
2736
+ _this.renderingContext.root.removeEventListener(g.ElementEvent.BOUNDS_CHANGED, handleGeometryBoundsChanged);
3394
2737
  });
3395
2738
  renderingService.hooks.render.tap(SVGRendererPlugin_1.tag, function (object) {
3396
2739
  // if (!object.isCulled()) {
@@ -3466,25 +2809,10 @@
3466
2809
  }
3467
2810
  };
3468
2811
 
3469
- _proto.applyTransform = function applyTransform($el, transform) {
3470
- var translation = getTranslation(create$1(), transform);
3471
- var scaling = getScaling(create$1(), transform);
3472
- var rotation = getRotation(create$3(), transform);
3473
- var x = translation[0],
3474
- y = translation[1];
3475
- var scaleX = scaling[0],
3476
- scaleY = scaling[1]; // eslint-disable-next-line @typescript-eslint/no-unused-vars
3477
-
3478
- var _getEuler = g.getEuler(create$1(), rotation),
3479
- ex = _getEuler[0],
3480
- ey = _getEuler[1],
3481
- ez = _getEuler[2]; // gimbal lock at 90 degrees
3482
-
3483
-
3484
- var rts = g.fromRotationTranslationScale(ex || ez, x, y, scaleX, scaleY); // use proper precision avoiding too long string in `transform`
2812
+ _proto.applyTransform = function applyTransform($el, rts) {
2813
+ // use proper precision avoiding too long string in `transform`
3485
2814
  // @see https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Transformations
3486
-
3487
- $el.setAttribute('transform', "matrix(" + numberToLongString(rts[0]) + "," + numberToLongString(rts[1]) + "," + numberToLongString(rts[3]) + "," + numberToLongString(rts[4]) + "," + numberToLongString(rts[6]) + "," + numberToLongString(rts[7]) + ")");
2815
+ $el.setAttribute('transform', "matrix(" + numberToLongString(rts[0]) + "," + numberToLongString(rts[1]) + "," + numberToLongString(rts[4]) + "," + numberToLongString(rts[5]) + "," + numberToLongString(rts[12]) + "," + numberToLongString(rts[13]) + ")");
3488
2816
  };
3489
2817
 
3490
2818
  _proto.applyAttributes = function applyAttributes(object) {
@@ -1,9 +1,9 @@
1
1
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@antv/g")):"function"==typeof define&&define.amd?define(["exports","@antv/g"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).G=t.G||{},t.G.SVG={}),t.window.G)}(this,(function(t,e){"use strict";function r(){
2
2
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
3
- r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof f?e:f).prototype),o=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function f(){}function d(){}function p(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(L([])));y&&y!==e&&n.call(y,o)&&(v=y);var m=p.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=l(t[i],t,o);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,c(m,"constructor",p),c(p,"constructor",d),d.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),c(m,u,"Generator"),c(m,o,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(this.prev>=o.tryLoc){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return r(o.catchLoc,!0);if(o.finallyLoc>this.prev)return r(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(this.prev>=i.tryLoc&&n.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function u(t){n(a,i,o,u,c,"next",t)}function c(t){n(a,i,o,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e,r,n){var i,o=arguments.length,a=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(3>o?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(){
3
+ r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof d?e:d).prototype),o=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function d(){}function f(){}function p(){}var v={};c(v,o,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&n.call(m,o)&&(v=m);var y=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,u){var c=l(t[i],t,o);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=p,c(y,"constructor",p),c(p,"constructor",f),f.displayName=c(p,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,u,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),c(y,u,"Generator"),c(y,o,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(this.prev>=o.tryLoc){var u=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return r(o.catchLoc,!0);if(o.finallyLoc>this.prev)return r(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(this.prev>=i.tryLoc&&n.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function n(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function u(t){n(a,i,o,u,c,"next",t)}function c(t){n(a,i,o,u,c,"throw",t)}u(void 0)}))}}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t,e,r,n){var i,o=arguments.length,a=3>o?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,n);else for(var u=t.length-1;u>=0;u--)(i=t[u])&&(a=(3>o?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(){
4
4
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
5
- c=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof f?e:f).prototype),o=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function f(){}function d(){}function p(){}var v={};u(v,i,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(L([])));y&&y!==e&&r.call(y,i)&&(v=y);var m=p.prototype=f.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(i,o,a,u){var c=l(t[i],t,o);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return d.prototype=p,u(m,"constructor",p),u(p,"constructor",d),d.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),u(m,a,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function s(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}var h,f,d=(h=function(){function t(){this.contextService=void 0,this.renderingContext=void 0}return t.prototype.apply=function(t){var e=this,r=this.renderingContext.root.ownerDocument.defaultView,n=function(e){t.hooks.pointerMove.call(e)},i=function(e){t.hooks.pointerUp.call(e)},o=function(e){t.hooks.pointerDown.call(e)},a=function(e){t.hooks.pointerOver.call(e)},u=function(e){t.hooks.pointerOut.call(e)},s=function(e){t.hooks.pointerCancel.call(e)},h=function(e){t.hooks.pointerWheel.call(e)},d=function(t){globalThis.document.addEventListener("pointermove",n,!0),t.addEventListener("pointerdown",o,!0),t.addEventListener("pointerleave",u,!0),t.addEventListener("pointerover",a,!0),globalThis.addEventListener("pointerup",i,!0)},p=function(t){t.addEventListener("touchstart",o,!0),t.addEventListener("touchend",i,!0),t.addEventListener("touchmove",n,!0),t.addEventListener("touchcancel",s,!0)},v=function(t){globalThis.document.addEventListener("mousemove",n,!0),t.addEventListener("mousedown",o,!0),t.addEventListener("mouseout",u,!0),t.addEventListener("mouseover",a,!0),globalThis.addEventListener("mouseup",i,!0)};t.hooks.init.tapPromise(f.tag,l(c().mark((function t(){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="none",n.style.msTouchAction="none"):r.supportsPointerEvents&&(n.style.touchAction="none"),r.supportsPointerEvents?d(n):v(n),r.supportsTouchEvents&&p(n),n.addEventListener("wheel",h,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(f.tag,(function(){var t=e.contextService.getDomElement();r.supportsPointerEvents?function(t){globalThis.document.removeEventListener("pointermove",n,!0),t.removeEventListener("pointerdown",o,!0),t.removeEventListener("pointerleave",u,!0),t.removeEventListener("pointerover",a,!0),globalThis.removeEventListener("pointerup",i,!0)}(t):function(t){globalThis.document.removeEventListener("mousemove",n,!0),t.removeEventListener("mousedown",o,!0),t.removeEventListener("mouseout",u,!0),t.removeEventListener("mouseover",a,!0),globalThis.removeEventListener("mouseup",i,!0)}(t),r.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",o,!0),t.removeEventListener("touchend",i,!0),t.removeEventListener("touchmove",n,!0)}(t),t.removeEventListener("wheel",h,!0)}))},t}(),h.tag="DOMInteraction",f=h);a([e.inject(e.ContextService),u("design:type",Object)],d.prototype,"contextService",void 0),a([e.inject(e.RenderingContext),u("design:type",Object)],d.prototype,"renderingContext",void 0),d=f=a([e.singleton({contrib:e.RenderingPluginContribution})],d);var p=e.Module((function(t){t(d)})),v=function(){function t(){this.name="dom-interaction"}var e=t.prototype;return e.init=function(t){t.load(p,!0)},e.destroy=function(t){t.unload(p)},t}(),g=Object.freeze({__proto__:null,Plugin:v}),y=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;o>i;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},m=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},b=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},w=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},E=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},x=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},S=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,A=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],L=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function C(t){return t?O(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new x:"undefined"!=typeof navigator?O(navigator.userAgent):"undefined"!=typeof process&&process.version?new b(process.version.slice(1)):null}function O(t){var e=function(t){return""!==t&&A.reduce((function(e,r){var n=r[0];if(e)return e;var i=r[1].exec(t);return!!i&&[n,i]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new E;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?3>i.length&&(i=y(y([],i,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,r=L.length;r>e;e++){var n=L[e],i=n[0];if(n[1].exec(t))return i}return null}(t),u=S.exec(t);return u&&u[1]?new w(r,o,a,u[1]):new m(r,o,a)}var T=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function G(t,r){var n=r.img,i=void 0===n?"":n,o=r.width,a=r.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),e.isString(i))t.setAttribute("href",i);else if(i instanceof Image)o||t.setAttribute("width",""+i.width),a||t.setAttribute("height",""+i.height),t.setAttribute("href",i.src);else if(i instanceof HTMLElement&&e.isString(i.nodeName)&&"CANVAS"===i.nodeName.toUpperCase())t.setAttribute("href",i.toDataURL());else if(i instanceof ImageData){var u=document.createElement("canvas");u.setAttribute("width",""+i.width),u.setAttribute("height",""+i.height);var c=u.getContext("2d");c&&(c.putImageData(i,0,0),o||t.setAttribute("width",""+i.width),a||t.setAttribute("height",""+i.height),t.setAttribute("href",u.toDataURL()))}}function k(t,e){var r=e.y1,n=e.x2,i=e.y2,o=e.defX,a=void 0===o?0:o,u=e.defY,c=void 0===u?0:u;t.setAttribute("x1",""+(e.x1.value-a)),t.setAttribute("y1",""+(r.value-c)),t.setAttribute("x2",""+(n.value-a)),t.setAttribute("y2",""+(i.value-c))}function _(t,r){var n=r.defX,i=r.defY;t.setAttribute("d",e.translatePathToString(r.path.absolutePath,void 0===n?0:n,void 0===i?0:i))}function P(t,e){var r=e.points,n=e.defX,i=void 0===n?0:n,o=e.defY,a=void 0===o?0:o;r&&r.points&&r.points.length>=2&&t.setAttribute("points",r.points.map((function(t){return t[0]-i+","+(t[1]-a)})).join(" "))}function M(t,r){var n=r.radius,i=r.width,o=r.height;if(isFinite(i.value)&&isFinite(o.value)){var a="";if(n&&n.some((function(t){return 0!==t.value}))){var u=n.map((function(t){return e.clamp(t.value,0,Math.min(Math.abs(i.value)/2,Math.abs(o.value)/2))})),c=u[0],s=u[1],l=u[2],h=u[3],f=i.value>0?1:-1,d=o.value>0?1:-1,p=f+d!==0?1:0;a=[["M "+f*c+",0"],["l "+(i.value-f*(c+s))+",0"],["a "+s+","+s+",0,0,"+p+","+f*s+","+d*s],["l 0,"+(o.value-d*(s+l))],["a "+l+","+l+",0,0,"+p+","+-f*l+","+d*l],["l "+(f*(l+h)-i.value)+",0"],["a "+h+","+h+",0,0,"+p+","+-f*h+","+-d*h],["l 0,"+(d*(h+c)-o.value)],["a "+c+","+c+",0,0,"+p+","+f*c+","+-d*c],["z"]].join(" ")}else a="M 0,0 l "+i.value+",0 l 0,"+o.value+" l"+-i.value+" 0 z";t.setAttribute("d",a)}}function j(t){return t.toFixed(6).replace(".000000","")}function N(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&amp;":"<"===t?"&lt;":">"===t?"&gt;":'"'===t?"&quot;":"&apos;"}))}T.tag="c-svg-element";var $={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},R={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function D(t,e){var r=e.textBaseline,n=e.lineWidth,i=e.metrics,o=e.dx,a=e.dy,u=C();u&&"firefox"===u.name?t.setAttribute("dominant-baseline",R[r.value]||"alphabetic"):(t.setAttribute("dominant-baseline",R[r.value]),t.setAttribute("alignment-baseline",$[r.value])),t.setAttribute("paint-order","stroke");var c=i.lines,s=i.lineHeight,l=i.height,h=c.length;t.setAttribute("style","transform:translate("+o.toString()+", "+a.toString()+");"),1===h?(t.innerHTML=N(c[0]),t.setAttribute("dx",""+n.value/2)):t.innerHTML=c.map((function(t,e){var i=0;return 0===e?"middle"===r.value?i=s/2-l/2:"top"===r.value||"hanging"===r.value?i=0:"bottom"!==r.value&&"alphabetic"!==r.value&&"ideographic"!==r.value||(i=-s*(h-1)):i=s,'<tspan x="0" dx="'+n.value/2+'" dy="'+i+'">'+N(t)+"</tspan>"})).join("")}var I,W,U=e.Syringe.defineToken("CreateElementContribution",{multiple:!1});function F(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}var V=((I={})[e.Shape.RECT]="path",I[e.Shape.CIRCLE]="circle",I[e.Shape.ELLIPSE]="ellipse",I[e.Shape.IMAGE]="image",I[e.Shape.GROUP]="g",I[e.Shape.LINE]="line",I[e.Shape.POLYLINE]="polyline",I[e.Shape.POLYGON]="polygon",I[e.Shape.TEXT]="text",I[e.Shape.PATH]="path",I[e.Shape.HTML]="foreignObject",I),B=((W={})[e.Shape.CIRCLE]=["r"],W[e.Shape.ELLIPSE]=["rx","ry"],W[e.Shape.RECT]=["width","height","radius"],W[e.Shape.IMAGE]=["img","width","height"],W[e.Shape.LINE]=["x1","y1","x2","y2"],W[e.Shape.POLYLINE]=["points"],W[e.Shape.POLYGON]=["points"],W[e.Shape.PATH]=["path"],W[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","leading","textBaseline","textAlign","textTransform","whiteSpace","dx","dy"],W),H=function(){function t(){this.canvasConfig=void 0}var r=t.prototype;return r.createElement=function(t){return F(V[t.nodeName]||"g",this.canvasConfig.document||document)},r.shouldUpdateElementAttribute=function(t,e){return(B[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:G(r,n);break;case e.Shape.RECT:M(r,n);break;case e.Shape.LINE:k(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:P(r,n);break;case e.Shape.PATH:_(r,n);break;case e.Shape.TEXT:D(r,n)}},t}();a([e.inject(e.CanvasConfig),u("design:type",Object)],H.prototype,"canvasConfig",void 0),H=a([e.singleton({token:U})],H);var Y="g-filter-";function X(t,r,n,i,o){var a=Y+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===o.length)null==i||i.removeAttribute("filter");else{var c=o.map((function(n,i){var o=n.name,u=n.params,c=F("filter",t);return c.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=F("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,c,u):"brightness"===o?function(t,e,r){var n=z(r[0]);q(t,e,{type:"linear",slope:n,intercept:0})}(t,c,u):"drop-shadow"===o?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=F("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var c=F("feOffset",t);c.setAttribute("dx",""+n),c.setAttribute("dy",""+i),c.setAttribute("result","offsetblur"),e.appendChild(c);var s=F("feFlood",t);s.setAttribute("flood-color",a),e.appendChild(s);var l=F("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var h=F("feMerge",t);e.appendChild(h);var f=F("feMergeNode",t),d=F("feMergeNode",t);d.setAttribute("in","SourceGraphic"),h.appendChild(f),h.appendChild(d)}(t,c,u):"contrast"===o?function(t,e,r){var n=z(r[0]);q(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,c,u):"grayscale"===o?function(t,e,r){var n=z(r[0]);Q(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,c,u):"sepia"===o?function(t,e,r){var n=z(r[0]);Q(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,c,u):"saturate"===o?function(t,e,r){var n=z(r[0]),i=F("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,c,u):"hue-rotate"===o?function(t,r,n){var i=F("feColorMatrix",t);i.setAttribute("type","hueRotate"),i.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(i)}(t,c,u):"invert"===o&&function(t,e,r){var n=z(r[0]);q(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,c,u),c.id=a+"-"+i,c.setAttribute("name",a),r.appendChild(c),c.id}));null==i||i.setAttribute("filter",c.map((function(t){return"url(#"+t+")"})).join(" "))}}function z(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function q(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=F("feComponentTransfer",t);[F("feFuncR",t),F("feFuncG",t),F("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+i),t.setAttribute("intercept",""+o)),u.appendChild(t)})),e.appendChild(u)}function Q(t,e,r){var n=F("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var K={},J=0;function Z(t,r,n,i,o,a,u){if(!o)return"";if(!(o instanceof e.CSSRGB)){if(e.isPattern(o)){var c=function(t,r,n,i,o){var a=tt(i);if(!r.querySelector("#"+a)){var u=i.image,c=i.repetition,s="";if(e.isString(u)?s=u:e.isBrowser&&(u instanceof HTMLImageElement?s=u.src:u instanceof HTMLCanvasElement&&(s=u.toDataURL())),s){var l=F("pattern",t);l.setAttribute("patternUnits","userSpaceOnUse");var h,f=F("image",t);l.appendChild(f),l.id=a,r.appendChild(l),f.setAttribute("href",s),o?h=o(s):e.isBrowser&&(h=new window.Image),s.match(/^data:/i)||(h.crossOrigin="Anonymous",f.setAttribute("crossorigin","anonymous")),h.src=s;var d=function(){l.setAttribute("x","0"),l.setAttribute("y","0");var t=n.getGeometryBounds().halfExtents,e=h.width,r=h.height;"repeat-x"===c?r=2*t[1]:"repeat-y"===c?e=2*t[0]:"no-repeat"===c&&(e=2*t[0],r=2*t[1]),l.setAttribute("width",""+e),l.setAttribute("height",""+r),f.setAttribute("x","0"),f.setAttribute("y","0"),f.setAttribute("width",""+h.width),f.setAttribute("height",""+h.height)};h.complete?d():(h.onload=d,h.src=h.src)}}return a}(t,r,n,o,u);return i.style[a]="url(#"+c+")",c}if(1===o.length){var s=et(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+s+")"),s}var l=function(t,e,r,n,i){var o=Y+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=F("filter",t)).setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.id=o,r.appendChild(a));var u=0;i.forEach((function(i,c){var s=et(t,e,r,n,i),l=s+"_rect",h=F("rect",t);h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("fill","url(#"+s+")"),h.id=l,r.appendChild(h);var f=F("feImage",t);if(f.setAttribute("href","#"+l),f.setAttribute("result",o+"-"+c),a.appendChild(f),c>0){var d=F("feBlend",t);d.setAttribute("in",1===c?o+"-"+(c-1):o+"-blended-"+(u-1)),d.setAttribute("in2",o+"-"+c),d.setAttribute("result",o+"-blended-"+u++),d.setAttribute("mode","multiply"),a.appendChild(d)}}));var c=F("feComposite",t);return c.setAttribute("in",o+"-blended-"+u),c.setAttribute("in2","SourceGraphic"),c.setAttribute("operator","in"),a.appendChild(c),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+l+")"),null==i||i.setAttribute("fill","black"),l}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":o.toString()),""}function tt(t){var r="";if(t instanceof e.CSSGradientValue){var n=t.type,i=t.value;if(n===e.GradientType.LinearGradient||n===e.GradientType.RadialGradient)r=""+i.type+i.width+i.height+(i.angle||0)+(i.cx||0)+(i.cy||0)+i.steps.map((function(t){return t.join("")})).join("")}else e.isPattern(t)&&(r=e.isString(t.image)?"pattern-"+t.image+"-"+t.repetition:"pattern-"+J);return r&&(K[r]||(K[r]="g-pattern-"+J++)),K[r]}function et(t,r,n,i,o){var a=tt(o),u=n.querySelector("#"+a);if(!u){(u=F(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var c="";o.value.steps.forEach((function(t){c+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),u.innerHTML=c,u.id=a,n.appendChild(u)}var s=r.getGeometryBounds(),l=s&&2*s.halfExtents[0]||0,h=s&&2*s.halfExtents[1]||0;if(o.type===e.GradientType.LinearGradient){var f=e.computeLinearGradient(l,h,o.value.angle),d=f.y1,p=f.x2,v=f.y2;u.setAttribute("x1",""+f.x1),u.setAttribute("y1",""+d),u.setAttribute("x2",""+p),u.setAttribute("y2",""+v)}else{var g=o.value,y=e.computeRadialGradient(l,h,g.cx,g.cy),m=y.y,b=y.r;u.setAttribute("cx",""+y.x),u.setAttribute("cy",""+m),u.setAttribute("r",""+b)}return a}var rt=/url\(#(.*)\)/,nt=function(){function t(){this.canvasConfig=void 0,this.contextService=void 0,this.$def=void 0,this.gradientCache={}}var r=t.prototype;return r.getDefElement=function(){return this.$def},r.init=function(){var t=this.canvasConfig.document,e=this.contextService.getContext();this.$def=F("defs",t),e.appendChild(this.$def)},r.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},r.clearUnusedDefElement=function(t,e,r){if(1===t[e].size&&t[e].has(r)){var n=this.$def.querySelector("#"+e);n&&this.$def.removeChild(n)}},r.createOrUpdateGradientAndPattern=function(t,e,r,n){var i=this.canvasConfig,o=i.document,a=i.createImage;if(e){var u,c=null===(u=e.getAttribute(n))||void 0===u?void 0:u.match(rt);c&&c.length>1&&this.clearUnusedDefElement(this.gradientCache,c[1],t.entity);var s=Z(o||document,this.$def,t,e,r,n,a);this.gradientCache[s]||(this.gradientCache[s]=new Set),this.gradientCache[s].add(t.entity)}},r.createOrUpdateShadow=function(t,r,n){!function(t,r,n,i,o){var a,u="g-filter-dropshadow-"+n.entity,c=r.querySelector("#"+u);if(!c){c=F("filter",t);var s=F("feDropShadow",t);s.setAttribute("dx","0"),s.setAttribute("dy","0"),c.appendChild(s),c.id=u,c.setAttribute("filterUnits","userSpaceOnUse"),r.appendChild(c)}var l=c.children[0];if("shadowColor"===o)l.setAttribute("flood-color",n.parsedStyle[o].toString());else if("shadowBlur"===o){var h=n.parsedStyle[o];l.setAttribute("stdDeviation",""+((null==h?void 0:h.value)||0)/4)}else if("shadowOffsetX"===o){var f=n.parsedStyle[o];l.setAttribute("dx",""+((null==f?void 0:f.value)||0)/2)}else if("shadowOffsetY"===o){var d=n.parsedStyle[o];l.setAttribute("dy",""+((null==d?void 0:d.value)||0)/2)}!e.isNil(n.parsedStyle.shadowColor)&&(null===(a=n.parsedStyle.shadowBlur)||void 0===a?void 0:a.value)>0?null==i||i.setAttribute("filter","url(#"+u+")"):null==i||i.removeAttribute("filter")}(this.canvasConfig.document||document,this.$def,t,r,n)},r.createOrUpdateFilter=function(t,e,r){X(this.canvasConfig.document||document,this.$def,t,e,r)},t}();function it(){
5
+ c=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=Object.create((e&&e.prototype instanceof d?e:d).prototype),o=new A(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return C()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=E(a,r);if(u){if(u===h)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=l(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function d(){}function f(){}function p(){}var v={};u(v,i,(function(){return this}));var g=Object.getPrototypeOf,m=g&&g(g(L([])));m&&m!==e&&r.call(m,i)&&(v=m);var y=p.prototype=d.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function n(i,o,a,u){var c=l(t[i],t,o);if("throw"!==c.type){var s=c.arg,h=s.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){s.value=t,a(s)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,E(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var n=l(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,h;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=p,u(y,"constructor",p),u(p,"constructor",f),f.displayName=u(p,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(w.prototype),u(w.prototype,o,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new w(s(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(y),u(y,a,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=L,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}function s(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function l(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){s(o,n,i,a,u,"next",t)}function u(t){s(o,n,i,a,u,"throw",t)}a(void 0)}))}}var h,d,f=(h=function(){function t(){this.contextService=void 0,this.renderingContext=void 0}return t.prototype.apply=function(t){var e=this,r=this.renderingContext.root.ownerDocument.defaultView,n=function(e){t.hooks.pointerMove.call(e)},i=function(e){t.hooks.pointerUp.call(e)},o=function(e){t.hooks.pointerDown.call(e)},a=function(e){t.hooks.pointerOver.call(e)},u=function(e){t.hooks.pointerOut.call(e)},s=function(e){t.hooks.pointerCancel.call(e)},h=function(e){t.hooks.pointerWheel.call(e)},f=function(t){globalThis.document.addEventListener("pointermove",n,!0),t.addEventListener("pointerdown",o,!0),t.addEventListener("pointerleave",u,!0),t.addEventListener("pointerover",a,!0),globalThis.addEventListener("pointerup",i,!0)},p=function(t){t.addEventListener("touchstart",o,!0),t.addEventListener("touchend",i,!0),globalThis.document.addEventListener("touchmove",n,!0),t.addEventListener("touchcancel",s,!0)},v=function(t){globalThis.document.addEventListener("mousemove",n,!0),t.addEventListener("mousedown",o,!0),t.addEventListener("mouseout",u,!0),t.addEventListener("mouseover",a,!0),globalThis.addEventListener("mouseup",i,!0)};t.hooks.init.tapPromise(d.tag,l(c().mark((function t(){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="none",n.style.msTouchAction="none"):r.supportsPointerEvents&&(n.style.touchAction="none"),r.supportsPointerEvents?f(n):v(n),r.supportsTouchEvents&&p(n),n.addEventListener("wheel",h,{passive:!0,capture:!0});case 5:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(d.tag,(function(){var t=e.contextService.getDomElement();r.supportsPointerEvents?function(t){globalThis.document.removeEventListener("pointermove",n,!0),t.removeEventListener("pointerdown",o,!0),t.removeEventListener("pointerleave",u,!0),t.removeEventListener("pointerover",a,!0),globalThis.removeEventListener("pointerup",i,!0)}(t):function(t){globalThis.document.removeEventListener("mousemove",n,!0),t.removeEventListener("mousedown",o,!0),t.removeEventListener("mouseout",u,!0),t.removeEventListener("mouseover",a,!0),globalThis.removeEventListener("mouseup",i,!0)}(t),r.supportsTouchEvents&&function(t){t.removeEventListener("touchstart",o,!0),t.removeEventListener("touchend",i,!0),t.removeEventListener("touchcancel",s,!0),globalThis.document.removeEventListener("touchmove",n,!0)}(t),t.removeEventListener("wheel",h,!0)}))},t}(),h.tag="DOMInteraction",d=h);a([e.inject(e.ContextService),u("design:type",Object)],f.prototype,"contextService",void 0),a([e.inject(e.RenderingContext),u("design:type",Object)],f.prototype,"renderingContext",void 0),f=d=a([e.singleton({contrib:e.RenderingPluginContribution})],f);var p=e.Module((function(t){t(f)})),v=function(){function t(){this.name="dom-interaction"}var e=t.prototype;return e.init=function(t){t.load(p,!0)},e.destroy=function(t){t.unload(p)},t}(),g=Object.freeze({__proto__:null,Plugin:v}),m=function(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;o>i;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))},y=function(t,e,r){this.name=t,this.version=e,this.os=r,this.type="browser"},b=function(t){this.version=t,this.type="node",this.name="node",this.os=process.platform},w=function(t,e,r,n){this.name=t,this.version=e,this.os=r,this.bot=n,this.type="bot-device"},E=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},x=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},S=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,A=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],L=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function C(t){return t?O(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new x:"undefined"!=typeof navigator?O(navigator.userAgent):"undefined"!=typeof process&&process.version?new b(process.version.slice(1)):null}function O(t){var e=function(t){return""!==t&&A.reduce((function(e,r){var n=r[0];if(e)return e;var i=r[1].exec(t);return!!i&&[n,i]}),!1)}(t);if(!e)return null;var r=e[0],n=e[1];if("searchbot"===r)return new E;var i=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);i?3>i.length&&(i=m(m([],i,!0),function(t){for(var e=[],r=0;t>r;r++)e.push("0");return e}(3-i.length),!0)):i=[];var o=i.join("."),a=function(t){for(var e=0,r=L.length;r>e;e++){var n=L[e],i=n[0];if(n[1].exec(t))return i}return null}(t),u=S.exec(t);return u&&u[1]?new w(r,o,a,u[1]):new y(r,o,a)}var T=function(){this.$el=void 0,this.$groupEl=void 0,this.$hitTestingEl=void 0};function k(t,r){var n=r.img,i=void 0===n?"":n,o=r.width,a=r.height;if(t.setAttribute("x","0"),t.setAttribute("y","0"),e.isString(i))t.setAttribute("href",i);else if(i instanceof Image)o||t.setAttribute("width",""+i.width),a||t.setAttribute("height",""+i.height),t.setAttribute("href",i.src);else if(i instanceof HTMLElement&&e.isString(i.nodeName)&&"CANVAS"===i.nodeName.toUpperCase())t.setAttribute("href",i.toDataURL());else if(i instanceof ImageData){var u=document.createElement("canvas");u.setAttribute("width",""+i.width),u.setAttribute("height",""+i.height);var c=u.getContext("2d");c&&(c.putImageData(i,0,0),o||t.setAttribute("width",""+i.width),a||t.setAttribute("height",""+i.height),t.setAttribute("href",u.toDataURL()))}}function G(t,e){var r=e.y1,n=e.x2,i=e.y2,o=e.defX,a=void 0===o?0:o,u=e.defY,c=void 0===u?0:u;t.setAttribute("x1",""+(e.x1.value-a)),t.setAttribute("y1",""+(r.value-c)),t.setAttribute("x2",""+(n.value-a)),t.setAttribute("y2",""+(i.value-c))}function _(t,r){var n=r.defX,i=r.defY;t.setAttribute("d",e.translatePathToString(r.path.absolutePath,void 0===n?0:n,void 0===i?0:i))}function P(t,e){var r=e.points,n=e.defX,i=void 0===n?0:n,o=e.defY,a=void 0===o?0:o;r&&r.points&&r.points.length>=2&&t.setAttribute("points",r.points.map((function(t){return t[0]-i+","+(t[1]-a)})).join(" "))}function j(t,r){var n=r.radius,i=r.width,o=r.height;if(isFinite(i.value)&&isFinite(o.value)){var a="";if(n&&n.some((function(t){return 0!==t.value}))){var u=n.map((function(t){return e.clamp(t.value,0,Math.min(Math.abs(i.value)/2,Math.abs(o.value)/2))})),c=u[0],s=u[1],l=u[2],h=u[3],d=i.value>0?1:-1,f=o.value>0?1:-1,p=d+f!==0?1:0;a=[["M "+d*c+",0"],["l "+(i.value-d*(c+s))+",0"],["a "+s+","+s+",0,0,"+p+","+d*s+","+f*s],["l 0,"+(o.value-f*(s+l))],["a "+l+","+l+",0,0,"+p+","+-d*l+","+f*l],["l "+(d*(l+h)-i.value)+",0"],["a "+h+","+h+",0,0,"+p+","+-d*h+","+-f*h],["l 0,"+(f*(h+c)-o.value)],["a "+c+","+c+",0,0,"+p+","+d*c+","+-f*c],["z"]].join(" ")}else a="M 0,0 l "+i.value+",0 l 0,"+o.value+" l"+-i.value+" 0 z";t.setAttribute("d",a)}}function N(t){return t.toFixed(6).replace(".000000","")}function M(t){return t.replace(/[&|<|>|"|']/g,(function(t){return"&"===t?"&amp;":"<"===t?"&lt;":">"===t?"&gt;":'"'===t?"&quot;":"&apos;"}))}T.tag="c-svg-element";var $={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"},D={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",ideographic:"ideographic",hanging:"hanging"};function I(t,e){var r=e.textBaseline,n=e.lineWidth,i=e.metrics,o=e.dx,a=e.dy,u=C();u&&"firefox"===u.name?t.setAttribute("dominant-baseline",D[r.value]||"alphabetic"):(t.setAttribute("dominant-baseline",D[r.value]),t.setAttribute("alignment-baseline",$[r.value])),t.setAttribute("paint-order","stroke");var c=i.lines,s=i.lineHeight,l=i.height,h=c.length;t.setAttribute("style","transform:translate("+o.toString()+", "+a.toString()+");"),1===h?(t.innerHTML=M(c[0]),t.setAttribute("dx",""+n.value/2)):t.innerHTML=c.map((function(t,e){var i=0;return 0===e?"middle"===r.value?i=s/2-l/2:"top"===r.value||"hanging"===r.value?i=0:"bottom"!==r.value&&"alphabetic"!==r.value&&"ideographic"!==r.value||(i=-s*(h-1)):i=s,'<tspan x="0" dx="'+n.value/2+'" dy="'+i+'">'+M(t)+"</tspan>"})).join("")}var R,W,U=e.Syringe.defineToken("CreateElementContribution",{multiple:!1});function V(t,e){return(e||document).createElementNS("http://www.w3.org/2000/svg",t)}var F=((R={})[e.Shape.RECT]="path",R[e.Shape.CIRCLE]="circle",R[e.Shape.ELLIPSE]="ellipse",R[e.Shape.IMAGE]="image",R[e.Shape.GROUP]="g",R[e.Shape.LINE]="line",R[e.Shape.POLYLINE]="polyline",R[e.Shape.POLYGON]="polygon",R[e.Shape.TEXT]="text",R[e.Shape.PATH]="path",R[e.Shape.HTML]="foreignObject",R),B=((W={})[e.Shape.CIRCLE]=["r"],W[e.Shape.ELLIPSE]=["rx","ry"],W[e.Shape.RECT]=["width","height","radius"],W[e.Shape.IMAGE]=["img","width","height"],W[e.Shape.LINE]=["x1","y1","x2","y2"],W[e.Shape.POLYLINE]=["points"],W[e.Shape.POLYGON]=["points"],W[e.Shape.PATH]=["path"],W[e.Shape.TEXT]=["text","font","fontSize","fontFamily","fontStyle","fontWeight","fontVariant","lineHeight","letterSpacing","wordWrap","wordWrapWidth","leading","textBaseline","textAlign","textTransform","whiteSpace","dx","dy"],W),H=function(){function t(){this.canvasConfig=void 0}var r=t.prototype;return r.createElement=function(t){return V(F[t.nodeName]||"g",this.canvasConfig.document||document)},r.shouldUpdateElementAttribute=function(t,e){return(B[t.nodeName]||[]).indexOf(e)>-1},r.updateElementAttribute=function(t){var r=t.elementSVG.$el,n=t.parsedStyle;switch(t.nodeName){case e.Shape.IMAGE:k(r,n);break;case e.Shape.RECT:j(r,n);break;case e.Shape.LINE:G(r,n);break;case e.Shape.POLYGON:case e.Shape.POLYLINE:P(r,n);break;case e.Shape.PATH:_(r,n);break;case e.Shape.TEXT:I(r,n)}},t}();a([e.inject(e.CanvasConfig),u("design:type",Object)],H.prototype,"canvasConfig",void 0),H=a([e.singleton({token:U})],H);var Y="g-filter-";function X(t,r,n,i,o){var a=Y+n.entity,u=r.querySelectorAll("[name="+a+"]");if(u.length&&u.forEach((function(t){r.removeChild(t)})),0===o.length)null==i||i.removeAttribute("filter");else{var c=o.map((function(n,i){var o=n.name,u=n.params,c=V("filter",t);return c.setAttribute("filterUnits","userSpaceOnUse"),"blur"===o?function(t,e,r){var n=V("feGaussianBlur",t);n.setAttribute("in","SourceGraphic"),n.setAttribute("stdDeviation",""+r[0].value),e.appendChild(n)}(t,c,u):"brightness"===o?function(t,e,r){var n=z(r[0]);Q(t,e,{type:"linear",slope:n,intercept:0})}(t,c,u):"drop-shadow"===o?function(t,e,r){var n=r[0].value,i=r[1].value,o=r[2].value,a=r[3].formatted,u=V("feGaussianBlur",t);u.setAttribute("in","SourceAlpha"),u.setAttribute("stdDeviation",""+o),e.appendChild(u);var c=V("feOffset",t);c.setAttribute("dx",""+n),c.setAttribute("dy",""+i),c.setAttribute("result","offsetblur"),e.appendChild(c);var s=V("feFlood",t);s.setAttribute("flood-color",a),e.appendChild(s);var l=V("feComposite",t);l.setAttribute("in2","offsetblur"),l.setAttribute("operator","in"),e.appendChild(l);var h=V("feMerge",t);e.appendChild(h);var d=V("feMergeNode",t),f=V("feMergeNode",t);f.setAttribute("in","SourceGraphic"),h.appendChild(d),h.appendChild(f)}(t,c,u):"contrast"===o?function(t,e,r){var n=z(r[0]);Q(t,e,{type:"linear",slope:n,intercept:-.5*n+.5})}(t,c,u):"grayscale"===o?function(t,e,r){var n=z(r[0]);q(t,e,[.2126+.7874*(1-n),.7152-.7152*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152+.2848*(1-n),.0722-.0722*(1-n),0,0,.2126-.2126*(1-n),.7152-.7152*(1-n),.0722+.9278*(1-n),0,0,0,0,0,1,0])}(t,c,u):"sepia"===o?function(t,e,r){var n=z(r[0]);q(t,e,[.393+.607*(1-n),.769-.769*(1-n),.189-.189*(1-n),0,0,.349-.349*(1-n),.686+.314*(1-n),.168-.168*(1-n),0,0,.272-.272*(1-n),.534-.534*(1-n),.131+.869*(1-n),0,0,0,0,0,1,0])}(t,c,u):"saturate"===o?function(t,e,r){var n=z(r[0]),i=V("feColorMatrix",t);i.setAttribute("type","saturate"),i.setAttribute("values",""+n),e.appendChild(i)}(t,c,u):"hue-rotate"===o?function(t,r,n){var i=V("feColorMatrix",t);i.setAttribute("type","hueRotate"),i.setAttribute("values",""+n[0].to(e.UnitType.kDegrees).value),r.appendChild(i)}(t,c,u):"invert"===o&&function(t,e,r){var n=z(r[0]);Q(t,e,{type:"table",tableValues:n+" "+(1-n)})}(t,c,u),c.id=a+"-"+i,c.setAttribute("name",a),r.appendChild(c),c.id}));null==i||i.setAttribute("filter",c.map((function(t){return"url(#"+t+")"})).join(" "))}}function z(t){return t.unit===e.UnitType.kPercentage?t.value/100:t.value}function Q(t,e,r){var n=r.type,i=r.slope,o=r.intercept,a=r.tableValues,u=V("feComponentTransfer",t);[V("feFuncR",t),V("feFuncG",t),V("feFuncB",t)].forEach((function(t){t.setAttribute("type",n),"table"===n?t.setAttribute("tableValues",""+a):(t.setAttribute("slope",""+i),t.setAttribute("intercept",""+o)),u.appendChild(t)})),e.appendChild(u)}function q(t,e,r){var n=V("feColorMatrix",t);n.setAttribute("type","matrix"),n.setAttribute("values",r.join(" ")),e.appendChild(n)}var K={},J=0;function Z(t,r,n,i,o,a,u){if(!o)return"";if(!(o instanceof e.CSSRGB)){if(e.isPattern(o)){var c=function(t,r,n,i,o){var a=tt(i);if(!r.querySelector("#"+a)){var u=i.image,c=i.repetition,s="";if(e.isString(u)?s=u:e.isBrowser&&(u instanceof HTMLImageElement?s=u.src:u instanceof HTMLCanvasElement&&(s=u.toDataURL())),s){var l=V("pattern",t);l.setAttribute("patternUnits","userSpaceOnUse");var h,d=V("image",t);l.appendChild(d),l.id=a,r.appendChild(l),d.setAttribute("href",s),o?h=o(s):e.isBrowser&&(h=new window.Image),s.match(/^data:/i)||(h.crossOrigin="Anonymous",d.setAttribute("crossorigin","anonymous")),h.src=s;var f=function(){l.setAttribute("x","0"),l.setAttribute("y","0");var t=n.getGeometryBounds().halfExtents,e=h.width,r=h.height;"repeat-x"===c?r=2*t[1]:"repeat-y"===c?e=2*t[0]:"no-repeat"===c&&(e=2*t[0],r=2*t[1]),l.setAttribute("width",""+e),l.setAttribute("height",""+r),d.setAttribute("x","0"),d.setAttribute("y","0"),d.setAttribute("width",""+h.width),d.setAttribute("height",""+h.height)};h.complete?f():(h.onload=f,h.src=h.src)}}return a}(t,r,n,o,u);return i.style[a]="url(#"+c+")",c}if(1===o.length){var s=et(t,n,r,i,o[0]);return null==i||i.setAttribute(a,"url(#"+s+")"),s}var l=function(t,e,r,n,i){var o=Y+e.entity+"-gradient",a=r.querySelector("#"+o);a||((a=V("filter",t)).setAttribute("filterUnits","userSpaceOnUse"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.id=o,r.appendChild(a));var u=0;i.forEach((function(i,c){var s=et(t,e,r,n,i),l=s+"_rect",h=V("rect",t);h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("width","100%"),h.setAttribute("height","100%"),h.setAttribute("fill","url(#"+s+")"),h.id=l,r.appendChild(h);var d=V("feImage",t);if(d.setAttribute("href","#"+l),d.setAttribute("result",o+"-"+c),a.appendChild(d),c>0){var f=V("feBlend",t);f.setAttribute("in",1===c?o+"-"+(c-1):o+"-blended-"+(u-1)),f.setAttribute("in2",o+"-"+c),f.setAttribute("result",o+"-blended-"+u++),f.setAttribute("mode","multiply"),a.appendChild(f)}}));var c=V("feComposite",t);return c.setAttribute("in",o+"-blended-"+u),c.setAttribute("in2","SourceGraphic"),c.setAttribute("operator","in"),a.appendChild(c),o}(t,n,r,i,o);return null==i||i.setAttribute("filter","url(#"+l+")"),null==i||i.setAttribute("fill","black"),l}return"currentColor"===n.style[a]?null==i||i.setAttribute(a,"currentColor"):null==i||i.setAttribute(a,o.isNone?"none":o.toString()),""}function tt(t){var r="";if(t instanceof e.CSSGradientValue){var n=t.type,i=t.value;if(n===e.GradientType.LinearGradient||n===e.GradientType.RadialGradient)r=""+i.type+i.width+i.height+(i.angle||0)+(i.cx||0)+(i.cy||0)+i.steps.map((function(t){return t.join("")})).join("")}else e.isPattern(t)&&(r=e.isString(t.image)?"pattern-"+t.image+"-"+t.repetition:"pattern-"+J);return r&&(K[r]||(K[r]="g-pattern-"+J++)),K[r]}function et(t,r,n,i,o){var a=tt(o),u=n.querySelector("#"+a);if(!u){(u=V(o.type===e.GradientType.LinearGradient?"linearGradient":"radialGradient",t)).setAttribute("gradientUnits","userSpaceOnUse");var c="";o.value.steps.forEach((function(t){c+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),u.innerHTML=c,u.id=a,n.appendChild(u)}var s=r.getGeometryBounds(),l=s&&2*s.halfExtents[0]||0,h=s&&2*s.halfExtents[1]||0;if(o.type===e.GradientType.LinearGradient){var d=e.computeLinearGradient(l,h,o.value.angle),f=d.y1,p=d.x2,v=d.y2;u.setAttribute("x1",""+d.x1),u.setAttribute("y1",""+f),u.setAttribute("x2",""+p),u.setAttribute("y2",""+v)}else{var g=o.value,m=e.computeRadialGradient(l,h,g.cx,g.cy),y=m.y,b=m.r;u.setAttribute("cx",""+m.x),u.setAttribute("cy",""+y),u.setAttribute("r",""+b)}return a}var rt,nt,it=/url\(#(.*)\)/,ot=function(){function t(){this.canvasConfig=void 0,this.contextService=void 0,this.$def=void 0,this.gradientCache={}}var r=t.prototype;return r.getDefElement=function(){return this.$def},r.init=function(){var t=this.canvasConfig.document,e=this.contextService.getContext();this.$def=V("defs",t),e.appendChild(this.$def)},r.clear=function(t){var e=this;Object.keys(this.gradientCache).forEach((function(r){e.clearUnusedDefElement(e.gradientCache,r,t)}))},r.clearUnusedDefElement=function(t,e,r){if(t[e]&&1===t[e].size&&t[e].has(r)){var n=this.$def.querySelector("#"+e);n&&this.$def.removeChild(n)}},r.createOrUpdateGradientAndPattern=function(t,e,r,n){var i=this.canvasConfig,o=i.document,a=i.createImage;if(e){var u,c=null===(u=e.getAttribute(n))||void 0===u?void 0:u.match(it);c&&c.length>1&&this.clearUnusedDefElement(this.gradientCache,c[1],t.entity);var s=Z(o||document,this.$def,t,e,r,n,a);this.gradientCache[s]||(this.gradientCache[s]=new Set),this.gradientCache[s].add(t.entity)}},r.createOrUpdateShadow=function(t,r,n){!function(t,r,n,i,o){var a,u="g-filter-dropshadow-"+n.entity,c=r.querySelector("#"+u);if(!c){c=V("filter",t);var s=V("feDropShadow",t);s.setAttribute("dx","0"),s.setAttribute("dy","0"),c.appendChild(s),c.id=u,c.setAttribute("filterUnits","userSpaceOnUse"),r.appendChild(c)}var l=c.children[0];if("shadowColor"===o)l.setAttribute("flood-color",n.parsedStyle[o].toString());else if("shadowBlur"===o){var h=n.parsedStyle[o];l.setAttribute("stdDeviation",""+((null==h?void 0:h.value)||0)/4)}else if("shadowOffsetX"===o){var d=n.parsedStyle[o];l.setAttribute("dx",""+((null==d?void 0:d.value)||0)/2)}else if("shadowOffsetY"===o){var f=n.parsedStyle[o];l.setAttribute("dy",""+((null==f?void 0:f.value)||0)/2)}!e.isNil(n.parsedStyle.shadowColor)&&(null===(a=n.parsedStyle.shadowBlur)||void 0===a?void 0:a.value)>0?null==i||i.setAttribute("filter","url(#"+u+")"):null==i||i.removeAttribute("filter")}(this.canvasConfig.document||document,this.$def,t,r,n)},r.createOrUpdateFilter=function(t,e,r){X(this.canvasConfig.document||document,this.$def,t,e,r)},t}();function at(){
6
6
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
7
- it=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=Object.create((e&&e.prototype instanceof h?e:h).prototype),o=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function f(){}function d(){}var p={};u(p,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(A([])));g&&g!==e&&r.call(g,i)&&(p=g);var y=d.prototype=h.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,o,a,u){var c=s(t[i],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=d,u(y,"constructor",d),u(d,"constructor",f),f.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),u(y,a,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function ot(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function at(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ot(o,n,i,a,u,"next",t)}function u(t){ot(o,n,i,a,u,"throw",t)}a(void 0)}))}}a([e.inject(e.CanvasConfig),u("design:type",Object)],nt.prototype,"canvasConfig",void 0),a([e.inject(e.ContextService),u("design:type",Object)],nt.prototype,"contextService",void 0),nt=a([e.singleton()],nt);var ut="undefined"!=typeof Float32Array?Float32Array:Array;function ct(t,e){var r=e[4],n=e[5],i=e[6],o=e[8],a=e[9],u=e[10];return t[0]=Math.hypot(e[0],e[1],e[2]),t[1]=Math.hypot(r,n,i),t[2]=Math.hypot(o,a,u),t}function st(){var t=new ut(3);return ut!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function lt(t,e,r){var n=new ut(3);return n[0]=t,n[1]=e,n[2]=r,n}function ht(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[0],u=r[1],c=r[2];return t[0]=i*c-o*u,t[1]=o*a-n*c,t[2]=n*u-i*a,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var ft,dt=function(t){return Math.hypot(t[0],t[1],t[2])};ft=st();!function(){var t,e=(t=new ut(4),ut!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t)}();function pt(){var t=new ut(4);return ut!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function vt(t,e,r,n){var i,o,a,u,c,s=e[0],l=e[1],h=e[2],f=e[3],d=r[0],p=r[1],v=r[2],g=r[3];return 0>(o=s*d+l*p+h*v+f*g)&&(o=-o,d=-d,p=-p,v=-v,g=-g),1-o>1e-6?(i=Math.acos(o),a=Math.sin(i),u=Math.sin((1-n)*i)/a,c=Math.sin(n*i)/a):(u=1-n,c=n),t[0]=u*s+c*d,t[1]=u*l+c*p,t[2]=u*h+c*v,t[3]=u*f+c*g,t}var gt,yt,mt,bt,wt,Et,xt,St,At,Lt=function(t,e){var r=e[0],n=e[1],i=e[2],o=e[3],a=r*r+n*n+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=r*a,t[1]=n*a,t[2]=i*a,t[3]=o*a,t},Ct=(gt=st(),yt=lt(1,0,0),mt=lt(0,1,0),bt=pt(),wt=pt(),Et=new ut(9),ut!=Float32Array&&(Et[1]=0,Et[2]=0,Et[3]=0,Et[5]=0,Et[6]=0,Et[7]=0),Et[0]=1,Et[4]=1,Et[8]=1,xt=Et,{opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor"}),Ot={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},Tt={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit"},Gt="g_svg",kt=(St=function(){function t(){this.canvasConfig=void 0,this.camera=void 0,this.contextService=void 0,this.renderingContext=void 0,this.createElementContribution=void 0,this.defElementManager=void 0,this.$camera=void 0,this.renderQueue=[],this.pendingReorderQueue=new Set}var r=t.prototype;return r.apply=function(t){var r=this,n=this.canvasConfig.document,i=function(t){r.createSVGDom(n,t.target,r.$camera)},o=function(t){var e=t.target;r.defElementManager.clear(e.entity),r.removeSVGDom(e)},a=function(t){var e=t.target;if(e.elementSVG){var i=t.attrName;if("zIndex"===i){var o,a,u=e.parentNode,c=null===(o=e.parentNode)||void 0===o||null===(a=o.elementSVG)||void 0===a?void 0:a.$groupEl,s=((null==u?void 0:u.children)||[]).slice();c&&r.reorderChildren(n,c,s)}else if("increasedLineWidthForHitTesting"===i){var l=e.elementSVG;r.createOrUpdateHitArea(e,l.$el,l.$groupEl)}r.updateAttribute(e,[i])}},u=function(t){var n,i=t.target,o=null===(n=i.elementSVG)||void 0===n?void 0:n.$el,a=i.parsedStyle,u=a.fill,c=a.stroke;!u||u instanceof e.CSSRGB||r.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill"),!c||c instanceof e.CSSRGB||r.defElementManager.createOrUpdateGradientAndPattern(i,o,c,"stroke")};t.hooks.init.tapPromise(At.tag,at(it().mark((function t(){var n,c,s,l;return it().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:c=(n=r.canvasConfig).background,s=n.document,r.defElementManager.init(),l=r.contextService.getContext(),c&&(l.style.background=c),l.setAttribute("color-interpolation-filters","sRGB"),r.$camera=F("g",s),r.$camera.id="g_svg_camera",r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),l.appendChild(r.$camera),r.renderingContext.root.addEventListener(e.ElementEvent.MOUNTED,i),r.renderingContext.root.addEventListener(e.ElementEvent.UNMOUNTED,o),r.renderingContext.root.addEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.addEventListener(e.ElementEvent.GEOMETRY_BOUNDS_CHANGED,u);case 13:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(At.tag,(function(){r.renderingContext.root.removeEventListener(e.ElementEvent.MOUNTED,i),r.renderingContext.root.removeEventListener(e.ElementEvent.UNMOUNTED,o),r.renderingContext.root.removeEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.removeEventListener(e.ElementEvent.GEOMETRY_BOUNDS_CHANGED,u)})),t.hooks.render.tap(At.tag,(function(t){r.renderQueue.push(t)})),t.hooks.beginFrame.tap(At.tag,(function(){var t=r.canvasConfig.document;r.pendingReorderQueue.size&&(r.pendingReorderQueue.forEach((function(e){var i,o=((null==e?void 0:e.children)||[]).slice(),a=null==e||null===(i=e.elementSVG)||void 0===i?void 0:i.$groupEl;a&&r.reorderChildren(t||n,a,o||[])})),r.pendingReorderQueue.clear())})),t.hooks.endFrame.tap(At.tag,(function(){r.renderingContext.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),r.renderQueue.forEach((function(t){var e,n,i=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,o=null===(n=t.elementSVG)||void 0===n?void 0:n.$groupEl;i&&o&&(r.applyTransform(o,t.getLocalTransform()),t.renderable.dirty=!1)})),r.renderQueue=[]}))},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,r){var n=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}(st(),r),i=ct(st(),r),o=function(t,e){var r=new ut(3);ct(r,e);var n=1/r[0],i=1/r[1],o=1/r[2],a=e[0]*n,u=e[1]*i,c=e[2]*o,s=e[4]*n,l=e[5]*i,h=e[6]*o,f=e[8]*n,d=e[9]*i,p=e[10]*o,v=a+l+p,g=0;return v>0?(g=2*Math.sqrt(v+1),t[3]=.25*g,t[0]=(h-d)/g,t[1]=(f-c)/g,t[2]=(u-s)/g):a>l&&a>p?(g=2*Math.sqrt(1+a-l-p),t[3]=(h-d)/g,t[0]=.25*g,t[1]=(u+s)/g,t[2]=(f+c)/g):l>p?(g=2*Math.sqrt(1+l-a-p),t[3]=(f-c)/g,t[0]=(u+s)/g,t[1]=.25*g,t[2]=(h+d)/g):(g=2*Math.sqrt(1+p-a-l),t[3]=(u-s)/g,t[0]=(f+c)/g,t[1]=(h+d)/g,t[2]=.25*g),t}(pt(),r),a=n[0],u=n[1],c=i[0],s=i[1],l=e.getEuler(st(),o),h=e.fromRotationTranslationScale(l[0]||l[2],a,u,c,s);t.setAttribute("transform","matrix("+j(h[0])+","+j(h[1])+","+j(h[3])+","+j(h[4])+","+j(h[6])+","+j(h[7])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var i=t.nodeName,o=t.attributes;n.setAttribute("fill","none"),i===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(o))}},r.updateAttribute=function(t,r){var n=this,i=this.canvasConfig.document,o=t.elementSVG,a=o.$el,u=o.$groupEl,c=o.$hitTestingEl,s=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.createElementContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,c].forEach((function(r){r&&(n.createElementContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o=Ct[r],h=l[r],f=s[r];if(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(f.value||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r)t.nodeName===e.Shape.HTML?a.style.background=f.toString():n.defElementManager.createOrUpdateGradientAndPattern(t,a,f,o);else if("stroke"===r)t.nodeName===e.Shape.HTML?(a.style["border-color"]=f.toString(),a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,f,o);else if("visibility"===r&&"unset"!==h.value)null==u||u.setAttribute(o,""+h.value);else if("clipPath"===r)n.createOrUpdateClipPath(i,f,u);else if("shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r)n.defElementManager.createOrUpdateShadow(t,a,r);else if("filter"===r)n.defElementManager.createOrUpdateFilter(t,a,f);else if("innerHTML"===r)n.createOrUpdateInnerHTML(i,a,f);else if("anchor"===r)t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t);else if(h){var d=h.toString();[a,c].forEach((function(t){if(t&&o)if("unset"!==d&&d!==Tt[r]){var e,n=(null===(e=Ot[r])||void 0===e?void 0:e[d])||d;t.setAttribute(o,n)}else t.removeAttribute(o)}))}}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new T;var o=r.elementSVG,a=this.createElementContribution.createElement(r);if(a){var u,c;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),a.id="g_svg_"+r.nodeName+"_"+r.entity,!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||i?c=a:(c=F("g",t)).appendChild(a),o.$el=a,o.$groupEl=c,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,c);var s=r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl)||n;s&&(s.appendChild(c),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&r.parentNode.removeChild(r)},r.createOrUpdateHitArea=function(t,e,r){var n,i=t.elementSVG,o=i.$hitTestingEl,a=null===(n=t.parsedStyle.increasedLineWidthForHitTesting)||void 0===n?void 0:n.value;if(a){var u;if(!o){(o=e.cloneNode()).id="g_svg_"+t.nodeName+"_hittesting_"+t.entity,["filter"].forEach((function(t){o.removeAttribute(t)}));var c="none"!==e.getAttribute("fill");o.setAttribute("fill",c?"transparent":"none"),o.setAttribute("stroke","transparent"),r.appendChild(o),i.$hitTestingEl=o}o.setAttribute("stroke-width",""+(a+(null===(u=t.parsedStyle.lineWidth)||void 0===u?void 0:u.value)))}else o&&(r.removeChild(o),i.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipPath=function(t,e,r){if(e){var n,i="clip-path-"+e.entity,o=this.defElementManager.getDefElement();if(!o.querySelector("#"+i)){var a=F("clipPath",t);a.id=i,o.appendChild(a),this.createSVGDom(t,e,a,!0),e.elementSVG.$groupEl=a}var u=null===(n=e.elementSVG)||void 0===n?void 0:n.$groupEl;u&&this.applyTransform(u,e.getLocalTransform()),this.applyAttributes(e),r.setAttribute("clip-path","url(#"+i+")")}else r.removeAttribute("clip-path")},r.updateAnchorWithTransform=function(t){var r,n,i=t.getGeometryBounds(),o=i&&2*i.halfExtents[0]||0,a=i&&2*i.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){if(r){var n=-u[0].value*o,i=-u[1].value*a;0===n&&0===i||r.setAttribute("transform","translate("+n+","+i+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+o/2),r.setAttribute("cy",""+a/2))}}))},t}(),St.tag="SVGRenderer",At=St);a([e.inject(e.CanvasConfig),u("design:type",Object)],kt.prototype,"canvasConfig",void 0),a([e.inject(e.DefaultCamera),u("design:type",e.Camera)],kt.prototype,"camera",void 0),a([e.inject(e.ContextService),u("design:type",Object)],kt.prototype,"contextService",void 0),a([e.inject(e.RenderingContext),u("design:type",Object)],kt.prototype,"renderingContext",void 0),a([e.inject(U),u("design:type",Object)],kt.prototype,"createElementContribution",void 0),a([e.inject(nt),u("design:type",nt)],kt.prototype,"defElementManager",void 0),kt=At=a([e.singleton({contrib:e.RenderingPluginContribution})],kt);var _t,Pt,Mt=e.Module((function(t){t(nt),t(H),t(kt)})),jt=function(){function t(){this.name="svg-renderer"}var e=t.prototype;return e.init=function(t){t.load(Mt,!0)},e.destroy=function(t){t.unload(Mt)},t}(),Nt=Object.freeze({__proto__:null,CreateElementContribution:U,DEFAULT_VALUE_MAP:Tt,get DefaultCreateElementContribution(){return H},ElementSVG:T,G_SVG_PREFIX:Gt,Plugin:jt,SHAPE2TAGS:V,SHAPE_UPDATE_DEPS:B,get SVGRendererPlugin(){return kt},SVG_ATTR_MAP:Ct,containerModule:Mt,createSVGElement:F,updateImageElementAttribute:G,updateLineElementAttribute:k,updatePathElementAttribute:_,updatePolylineElementAttribute:P,updateRectElementAttribute:M,updateTextElementAttribute:D});function $t(){
7
+ at=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=Object.create((e&&e.prototype instanceof h?e:h).prototype),o=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function d(){}function f(){}var p={};u(p,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(A([])));g&&g!==e&&r.call(g,i)&&(p=g);var m=f.prototype=h.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,o,a,u){var c=s(t[i],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=f,u(m,"constructor",f),u(f,"constructor",d),d.displayName=u(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(b.prototype),u(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(m),u(m,a,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function ut(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function ct(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){ut(o,n,i,a,u,"next",t)}function u(t){ut(o,n,i,a,u,"throw",t)}a(void 0)}))}}a([e.inject(e.CanvasConfig),u("design:type",Object)],ot.prototype,"canvasConfig",void 0),a([e.inject(e.ContextService),u("design:type",Object)],ot.prototype,"contextService",void 0),ot=a([e.singleton()],ot);var st={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",clipPath:"clip-path",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",letterSpacing:"letter-spacing",startArrow:"marker-start",endArrow:"marker-end",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio",visibility:"visibility",anchor:"anchor",shadowColor:"flood-color",shadowBlur:"stdDeviation",shadowOffsetX:"dx",shadowOffsetY:"dy",filter:"filter",innerHTML:"innerHTML",textAlign:"text-anchor"},lt={textAlign:{inherit:"inherit",left:"left",start:"left",center:"middle",right:"end",end:"end"}},ht={textAlign:"inherit",lineCap:"butt",lineJoin:"miter",lineWidth:"1px",opacity:"1",fillOpacity:"1",strokeOpacity:"1",strokeWidth:"0",strokeMiterLimit:"4",letterSpacing:"0",fontSize:"inherit",fontFamily:"inherit"},dt="g_svg",ft=(rt=function(){function t(){this.canvasConfig=void 0,this.camera=void 0,this.contextService=void 0,this.renderingContext=void 0,this.createElementContribution=void 0,this.defElementManager=void 0,this.$camera=void 0,this.renderQueue=[],this.pendingReorderQueue=new Set}var r=t.prototype;return r.apply=function(t){var r=this,n=this.canvasConfig.document,i=function(t){r.createSVGDom(n,t.target,r.$camera)},o=function(t){var e=t.target;r.defElementManager.clear(e.entity),r.removeSVGDom(e)},a=function(t){var e=t.target;if(e.elementSVG){var i=t.attrName;if("zIndex"===i){var o,a,u=e.parentNode,c=null===(o=e.parentNode)||void 0===o||null===(a=o.elementSVG)||void 0===a?void 0:a.$groupEl,s=((null==u?void 0:u.children)||[]).slice();c&&r.reorderChildren(n,c,s)}else if("increasedLineWidthForHitTesting"===i){var l=e.elementSVG;r.createOrUpdateHitArea(e,l.$el,l.$groupEl)}r.updateAttribute(e,[i])}},u=function(t){var n,i=t.target,o=null===(n=i.elementSVG)||void 0===n?void 0:n.$el,a=i.parsedStyle,u=a.fill,c=a.stroke;!u||u instanceof e.CSSRGB||r.defElementManager.createOrUpdateGradientAndPattern(i,o,u,"fill"),!c||c instanceof e.CSSRGB||r.defElementManager.createOrUpdateGradientAndPattern(i,o,c,"stroke")};t.hooks.init.tapPromise(nt.tag,ct(at().mark((function t(){var n,c,s,l;return at().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:c=(n=r.canvasConfig).background,s=n.document,r.defElementManager.init(),l=r.contextService.getContext(),c&&(l.style.background=c),l.setAttribute("color-interpolation-filters","sRGB"),r.$camera=V("g",s),r.$camera.id="g_svg_camera",r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),l.appendChild(r.$camera),r.renderingContext.root.addEventListener(e.ElementEvent.MOUNTED,i),r.renderingContext.root.addEventListener(e.ElementEvent.UNMOUNTED,o),r.renderingContext.root.addEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.addEventListener(e.ElementEvent.BOUNDS_CHANGED,u);case 13:case"end":return t.stop()}}),t)})))),t.hooks.destroy.tap(nt.tag,(function(){r.renderingContext.root.removeEventListener(e.ElementEvent.MOUNTED,i),r.renderingContext.root.removeEventListener(e.ElementEvent.UNMOUNTED,o),r.renderingContext.root.removeEventListener(e.ElementEvent.ATTR_MODIFIED,a),r.renderingContext.root.removeEventListener(e.ElementEvent.BOUNDS_CHANGED,u)})),t.hooks.render.tap(nt.tag,(function(t){r.renderQueue.push(t)})),t.hooks.beginFrame.tap(nt.tag,(function(){var t=r.canvasConfig.document;r.pendingReorderQueue.size&&(r.pendingReorderQueue.forEach((function(e){var i,o=((null==e?void 0:e.children)||[]).slice(),a=null==e||null===(i=e.elementSVG)||void 0===i?void 0:i.$groupEl;a&&r.reorderChildren(t||n,a,o||[])})),r.pendingReorderQueue.clear())})),t.hooks.endFrame.tap(nt.tag,(function(){r.renderingContext.renderReasons.has(e.RenderReason.CAMERA_CHANGED)&&r.applyTransform(r.$camera,r.camera.getOrthoMatrix()),r.renderQueue.forEach((function(t){var e,n,i=null===(e=t.elementSVG)||void 0===e?void 0:e.$el,o=null===(n=t.elementSVG)||void 0===n?void 0:n.$groupEl;i&&o&&(r.applyTransform(o,t.getLocalTransform()),t.renderable.dirty=!1)})),r.renderQueue=[]}))},r.reorderChildren=function(t,e,r){if(r.sort((function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder})),r.length){var n=(t||document).createDocumentFragment();r.forEach((function(t){if(t.isConnected){var e=t.elementSVG.$groupEl;e&&n.appendChild(e)}})),e.appendChild(n)}},r.applyTransform=function(t,e){t.setAttribute("transform","matrix("+N(e[0])+","+N(e[1])+","+N(e[4])+","+N(e[5])+","+N(e[12])+","+N(e[13])+")")},r.applyAttributes=function(t){var r=t.elementSVG,n=null==r?void 0:r.$el;if(n&&(null==r?void 0:r.$groupEl)){var i=t.nodeName,o=t.attributes;n.setAttribute("fill","none"),i===e.Shape.IMAGE&&n.setAttribute("preserveAspectRatio","none"),this.updateAttribute(t,Object.keys(o))}},r.updateAttribute=function(t,r){var n=this,i=this.canvasConfig.document,o=t.elementSVG,a=o.$el,u=o.$groupEl,c=o.$hitTestingEl,s=t.parsedStyle,l=t.computedStyle;r.some((function(e){return n.createElementContribution.shouldUpdateElementAttribute(t,e)}))&&a&&[a,c].forEach((function(r){r&&(n.createElementContribution.updateElementAttribute(t,r),t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t))})),r.forEach((function(r){var o=st[r],h=l[r],d=s[r];if(t.nodeName===e.Shape.HTML&&("lineWidth"===r?a.style["border-width"]=(d.value||0)+"px":"lineDash"===r&&(a.style["border-style"]="dashed")),"fill"===r)t.nodeName===e.Shape.HTML?a.style.background=d.toString():n.defElementManager.createOrUpdateGradientAndPattern(t,a,d,o);else if("stroke"===r)t.nodeName===e.Shape.HTML?(a.style["border-color"]=d.toString(),a.style["border-style"]="solid"):n.defElementManager.createOrUpdateGradientAndPattern(t,a,d,o);else if("visibility"===r&&"unset"!==h.value)null==u||u.setAttribute(o,""+h.value);else if("clipPath"===r)n.createOrUpdateClipPath(i,d,u);else if("shadowColor"===r||"shadowBlur"===r||"shadowOffsetX"===r||"shadowOffsetY"===r)n.defElementManager.createOrUpdateShadow(t,a,r);else if("filter"===r)n.defElementManager.createOrUpdateFilter(t,a,d);else if("innerHTML"===r)n.createOrUpdateInnerHTML(i,a,d);else if("anchor"===r)t.nodeName!==e.Shape.TEXT&&n.updateAnchorWithTransform(t);else if(h){var f=h.toString();[a,c].forEach((function(t){if(t&&o)if("unset"!==f&&f!==ht[r]){var e,n=(null===(e=lt[r])||void 0===e?void 0:e[f])||f;t.setAttribute(o,n)}else t.removeAttribute(o)}))}}))},r.createSVGDom=function(t,r,n,i){void 0===i&&(i=!1),r.elementSVG=new T;var o=r.elementSVG,a=this.createElementContribution.createElement(r);if(a){var u,c;r.nodeName===e.Shape.HTML&&(r.parsedStyle.$el=a),a.id="g_svg_"+r.nodeName+"_"+r.entity,!a.hasAttribute("data-wrapgroup")&&"g"===a.nodeName||i?c=a:(c=V("g",t)).appendChild(a),o.$el=a,o.$groupEl=c,this.applyAttributes(r),this.createOrUpdateHitArea(r,a,c);var s=r.parentNode&&(null===(u=r.parentNode.elementSVG)||void 0===u?void 0:u.$groupEl)||n;s&&(s.appendChild(c),this.pendingReorderQueue.add(r.parentNode))}},r.removeSVGDom=function(t){var e,r=null===(e=t.elementSVG)||void 0===e?void 0:e.$groupEl;r&&r.parentNode&&r.parentNode.removeChild(r)},r.createOrUpdateHitArea=function(t,e,r){var n,i=t.elementSVG,o=i.$hitTestingEl,a=null===(n=t.parsedStyle.increasedLineWidthForHitTesting)||void 0===n?void 0:n.value;if(a){var u;if(!o){(o=e.cloneNode()).id="g_svg_"+t.nodeName+"_hittesting_"+t.entity,["filter"].forEach((function(t){o.removeAttribute(t)}));var c="none"!==e.getAttribute("fill");o.setAttribute("fill",c?"transparent":"none"),o.setAttribute("stroke","transparent"),r.appendChild(o),i.$hitTestingEl=o}o.setAttribute("stroke-width",""+(a+(null===(u=t.parsedStyle.lineWidth)||void 0===u?void 0:u.value)))}else o&&(r.removeChild(o),i.$hitTestingEl=null)},r.createOrUpdateInnerHTML=function(t,e,r){var n=(t||document).createElement("div");"string"==typeof r?n.innerHTML=r:n.appendChild(r),e.innerHTML="",e.appendChild(n)},r.createOrUpdateClipPath=function(t,e,r){if(e){var n,i="clip-path-"+e.entity,o=this.defElementManager.getDefElement();if(!o.querySelector("#"+i)){var a=V("clipPath",t);a.id=i,o.appendChild(a),this.createSVGDom(t,e,a,!0),e.elementSVG.$groupEl=a}var u=null===(n=e.elementSVG)||void 0===n?void 0:n.$groupEl;u&&this.applyTransform(u,e.getLocalTransform()),this.applyAttributes(e),r.setAttribute("clip-path","url(#"+i+")")}else r.removeAttribute("clip-path")},r.updateAnchorWithTransform=function(t){var r,n,i=t.getGeometryBounds(),o=i&&2*i.halfExtents[0]||0,a=i&&2*i.halfExtents[1]||0,u=(t.parsedStyle||{}).anchor;[null===(r=t.elementSVG)||void 0===r?void 0:r.$el,null===(n=t.elementSVG)||void 0===n?void 0:n.$hitTestingEl].forEach((function(r){if(r){var n=-u[0].value*o,i=-u[1].value*a;0===n&&0===i||r.setAttribute("transform","translate("+n+","+i+")"),t.nodeName!==e.Shape.CIRCLE&&t.nodeName!==e.Shape.ELLIPSE||(r.setAttribute("cx",""+o/2),r.setAttribute("cy",""+a/2))}}))},t}(),rt.tag="SVGRenderer",nt=rt);a([e.inject(e.CanvasConfig),u("design:type",Object)],ft.prototype,"canvasConfig",void 0),a([e.inject(e.DefaultCamera),u("design:type",e.Camera)],ft.prototype,"camera",void 0),a([e.inject(e.ContextService),u("design:type",Object)],ft.prototype,"contextService",void 0),a([e.inject(e.RenderingContext),u("design:type",Object)],ft.prototype,"renderingContext",void 0),a([e.inject(U),u("design:type",Object)],ft.prototype,"createElementContribution",void 0),a([e.inject(ot),u("design:type",ot)],ft.prototype,"defElementManager",void 0),ft=nt=a([e.singleton({contrib:e.RenderingPluginContribution})],ft);var pt,vt,gt=e.Module((function(t){t(ot),t(H),t(ft)})),mt=function(){function t(){this.name="svg-renderer"}var e=t.prototype;return e.init=function(t){t.load(gt,!0)},e.destroy=function(t){t.unload(gt)},t}(),yt=Object.freeze({__proto__:null,CreateElementContribution:U,DEFAULT_VALUE_MAP:ht,get DefaultCreateElementContribution(){return H},ElementSVG:T,G_SVG_PREFIX:dt,Plugin:mt,SHAPE2TAGS:F,SHAPE_UPDATE_DEPS:B,get SVGRendererPlugin(){return ft},SVG_ATTR_MAP:st,containerModule:gt,createSVGElement:V,updateImageElementAttribute:k,updateLineElementAttribute:G,updatePathElementAttribute:_,updatePolylineElementAttribute:P,updateRectElementAttribute:j,updateTextElementAttribute:I});function bt(){
8
8
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
9
- $t=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=Object.create((e&&e.prototype instanceof h?e:h).prototype),o=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function f(){}function d(){}var p={};u(p,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(A([])));g&&g!==e&&r.call(g,i)&&(p=g);var y=d.prototype=h.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,o,a,u){var c=s(t[i],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return f.prototype=d,u(y,"constructor",d),u(d,"constructor",f),f.displayName=u(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,u(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(b.prototype),u(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),u(y,a,"Generator"),u(y,i,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function Rt(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function Dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);e>r;r++)n[r]=t[r];return n}function It(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dt(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Wt=(_t=function(){function t(){this.canvasConfig=void 0,this.displayObjectPool=void 0}return t.prototype.apply=function(t){var e=this,r=this.canvasConfig.document;t.hooks.pick.tapPromise(Pt.tag,function(){var t,n=(t=$t().mark((function t(n){var i,o,a,u,c,s,l,h,f,d,p;return $t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=n.topmost,a=(o=n.position).clientX,u=o.clientY,t.prev=1,c=[],s=It((r||document).elementsFromPoint(a,u));case 4:if((l=s()).done){t.next=17;break}if(!(f=(h=l.value)&&h.getAttribute("id"))||!f.startsWith(Gt)){t.next=15;break}if(d=f.lastIndexOf("_"),!(p=e.displayObjectPool.getByEntity(Number(f.substring(d+1))))||!p.isInteractive()){t.next=15;break}if(c.push(p),!i){t.next=15;break}return n.picked=c,t.abrupt("return",n);case 15:t.next=4;break;case 17:n.picked=c,t.next=23;break;case 20:t.prev=20,t.t0=t.catch(1),n.picked=[];case 23:return t.abrupt("return",n);case 24:case"end":return t.stop()}}),t,null,[[1,20]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){Rt(o,n,i,a,u,"next",t)}function u(t){Rt(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}())},t}(),_t.tag="SVGPicker",Pt=_t);a([e.inject(e.CanvasConfig),u("design:type",Object)],Wt.prototype,"canvasConfig",void 0),a([e.inject(e.DisplayObjectPool),u("design:type",e.DisplayObjectPool)],Wt.prototype,"displayObjectPool",void 0),Wt=Pt=a([e.singleton({contrib:e.RenderingPluginContribution})],Wt);var Ut=e.Module((function(t){t(Wt)})),Ft=function(){function t(){this.name="svg-picker"}var e=t.prototype;return e.init=function(t){t.load(Ut,!0)},e.destroy=function(t){t.unload(Ut)},t}(),Vt=Object.freeze({__proto__:null,Plugin:Ft}),Bt=function(){function t(){this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0}var n=t.prototype;return n.init=function(){var t=i(r().mark((function t(){var n,i,o,a,u;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,this.$container=e.isString(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(a=F("svg",o)).setAttribute("width",""+this.canvasConfig.width),a.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(a),this.$namespace=a),u=1>(u=window.devicePixelRatio||1)?1:Math.ceil(u),this.dpr=u;case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),n.getDomElement=function(){return this.$namespace},n.getContext=function(){return this.$namespace},n.getDPR=function(){return this.dpr},n.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},n.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},n.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},n.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},n.toDataURL=function(){var t=i(r().mark((function t(e){var n,i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.$namespace.cloneNode(!0),i=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",i)).replaceChild(n,o.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(o)));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}();a([e.inject(e.CanvasConfig),u("design:type",Object)],Bt.prototype,"canvasConfig",void 0),Bt=a([e.singleton({token:e.ContextService})],Bt);var Ht=e.Module((function(t){t(Bt)})),Yt=function(){function t(){this.name="svg-context-register"}var e=t.prototype;return e.init=function(t){t.load(Ht,!0)},e.destroy=function(t){t.unload(Ht)},t}(),Xt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).registerPlugin(new Yt),r.registerPlugin(new jt),r.registerPlugin(new v),r.registerPlugin(new Ft),r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,o(e,r),n}(e.AbstractRenderer);t.DomInteraction=g,t.Renderer=Xt,t.SVGPicker=Vt,t.SVGRenderer=Nt,Object.defineProperty(t,"__esModule",{value:!0})}));
9
+ bt=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var i=Object.create((e&&e.prototype instanceof h?e:h).prototype),o=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return L()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=w(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=s(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,o),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function h(){}function d(){}function f(){}var p={};u(p,i,(function(){return this}));var v=Object.getPrototypeOf,g=v&&v(v(A([])));g&&g!==e&&r.call(g,i)&&(p=g);var m=f.prototype=h.prototype=Object.create(p);function y(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function n(i,o,a,u){var c=s(t[i],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,u)}),(function(t){n("throw",t,a,u)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,u)}))}u(c.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function w(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=s(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function A(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return d.prototype=f,u(m,"constructor",f),u(f,"constructor",d),d.displayName=u(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,u(t,a,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},y(b.prototype),u(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new b(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(m),u(m,a,"Generator"),u(m,i,(function(){return this})),u(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=A,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(this.prev>=o.tryLoc){var u=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(u&&c){if(o.catchLoc>this.prev)return n(o.catchLoc,!0);if(o.finallyLoc>this.prev)return n(o.finallyLoc)}else if(u){if(o.catchLoc>this.prev)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(o.finallyLoc>this.prev)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(this.prev>=i.tryLoc&&r.call(i,"finallyLoc")&&i.finallyLoc>this.prev){var o=i;break}}o&&("break"===t||"continue"===t)&&e>=o.tryLoc&&o.finallyLoc>=e&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;x(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function wt(t,e,r,n,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,i)}function Et(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);e>r;r++)n[r]=t[r];return n}function xt(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return Et(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Et(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0;return function(){return t.length>n?{done:!1,value:t[n++]}:{done:!0}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var St=(pt=function(){function t(){this.canvasConfig=void 0,this.displayObjectPool=void 0}return t.prototype.apply=function(t){var e=this,r=this.canvasConfig.document;t.hooks.pick.tapPromise(vt.tag,function(){var t,n=(t=bt().mark((function t(n){var i,o,a,u,c,s,l,h,d,f,p;return bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=n.topmost,a=(o=n.position).clientX,u=o.clientY,t.prev=1,c=[],s=xt((r||document).elementsFromPoint(a,u));case 4:if((l=s()).done){t.next=17;break}if(!(d=(h=l.value)&&h.getAttribute("id"))||!d.startsWith(dt)){t.next=15;break}if(f=d.lastIndexOf("_"),!(p=e.displayObjectPool.getByEntity(Number(d.substring(f+1))))||!p.isInteractive()){t.next=15;break}if(c.push(p),!i){t.next=15;break}return n.picked=c,t.abrupt("return",n);case 15:t.next=4;break;case 17:n.picked=c,t.next=23;break;case 20:t.prev=20,t.t0=t.catch(1),n.picked=[];case 23:return t.abrupt("return",n);case 24:case"end":return t.stop()}}),t,null,[[1,20]])})),function(){var e=this,r=arguments;return new Promise((function(n,i){var o=t.apply(e,r);function a(t){wt(o,n,i,a,u,"next",t)}function u(t){wt(o,n,i,a,u,"throw",t)}a(void 0)}))});return function(t){return n.apply(this,arguments)}}())},t}(),pt.tag="SVGPicker",vt=pt);a([e.inject(e.CanvasConfig),u("design:type",Object)],St.prototype,"canvasConfig",void 0),a([e.inject(e.DisplayObjectPool),u("design:type",e.DisplayObjectPool)],St.prototype,"displayObjectPool",void 0),St=vt=a([e.singleton({contrib:e.RenderingPluginContribution})],St);var At=e.Module((function(t){t(St)})),Lt=function(){function t(){this.name="svg-picker"}var e=t.prototype;return e.init=function(t){t.load(At,!0)},e.destroy=function(t){t.unload(At)},t}(),Ct=Object.freeze({__proto__:null,Plugin:Lt}),Ot=function(){function t(){this.$container=void 0,this.$namespace=void 0,this.dpr=void 0,this.canvasConfig=void 0}var n=t.prototype;return n.init=function(){var t=i(r().mark((function t(){var n,i,o,a,u;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=(n=this.canvasConfig).document,this.$container=e.isString(i=n.container)?(o||document).getElementById(i):i,this.$container&&(this.$container.style.position||(this.$container.style.position="relative"),(a=V("svg",o)).setAttribute("width",""+this.canvasConfig.width),a.setAttribute("height",""+this.canvasConfig.height),this.$container.appendChild(a),this.$namespace=a),u=1>(u=window.devicePixelRatio||1)?1:Math.ceil(u),this.dpr=u;case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),n.getDomElement=function(){return this.$namespace},n.getContext=function(){return this.$namespace},n.getDPR=function(){return this.dpr},n.getBoundingClientRect=function(){var t;return null===(t=this.$namespace)||void 0===t?void 0:t.getBoundingClientRect()},n.destroy=function(){this.$container&&this.$namespace&&this.$namespace.parentNode&&this.$container.removeChild(this.$namespace)},n.resize=function(t,e){this.$namespace&&(this.$namespace.setAttribute("width",""+t),this.$namespace.setAttribute("height",""+e))},n.applyCursorStyle=function(t){this.$container&&(this.$container.style.cursor=t)},n.toDataURL=function(){var t=i(r().mark((function t(e){var n,i,o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.$namespace.cloneNode(!0),i=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),(o=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",i)).replaceChild(n,o.documentElement),t.abrupt("return","data:image/svg+xml;charset=utf8,"+encodeURIComponent((new XMLSerializer).serializeToString(o)));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}(),t}();a([e.inject(e.CanvasConfig),u("design:type",Object)],Ot.prototype,"canvasConfig",void 0),Ot=a([e.singleton({token:e.ContextService})],Ot);var Tt=e.Module((function(t){t(Ot)})),kt=function(){function t(){this.name="svg-context-register"}var e=t.prototype;return e.init=function(t){t.load(Tt,!0)},e.destroy=function(t){t.unload(Tt)},t}(),Gt=function(t){var e,r;function n(e){var r;return(r=t.call(this,e)||this).registerPlugin(new kt),r.registerPlugin(new mt),r.registerPlugin(new v),r.registerPlugin(new Lt),r}return r=t,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,o(e,r),n}(e.AbstractRenderer);t.DomInteraction=g,t.Renderer=Gt,t.SVGPicker=Ct,t.SVGRenderer=yt,Object.defineProperty(t,"__esModule",{value:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-svg",
3
- "version": "1.3.1",
3
+ "version": "1.5.1",
4
4
  "description": "A renderer implemented by SVG",
5
5
  "keywords": [
6
6
  "antv",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "license": "MIT",
18
18
  "author": "https://github.com/orgs/antvis/people",
19
- "sideEffects": true,
19
+ "sideEffects": false,
20
20
  "main": "dist/index.js",
21
21
  "unpkg": "dist/index.umd.min.js",
22
22
  "module": "dist/index.esm.js",
@@ -28,9 +28,9 @@
28
28
  "README.md"
29
29
  ],
30
30
  "dependencies": {
31
- "@antv/g-plugin-dom-interaction": "^1.3.1",
32
- "@antv/g-plugin-svg-picker": "^1.3.1",
33
- "@antv/g-plugin-svg-renderer": "^1.3.1",
31
+ "@antv/g-plugin-dom-interaction": "^1.5.1",
32
+ "@antv/g-plugin-svg-picker": "^1.5.1",
33
+ "@antv/g-plugin-svg-renderer": "^1.5.1",
34
34
  "tslib": "^2.3.1"
35
35
  },
36
36
  "devDependencies": {
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "f001a43754b62b6bff7eb2d1573d1a08349ce5c2"
46
+ "gitHead": "3d97367b6346b35d7780f2a3989a3beb70b87ff1"
47
47
  }