var aiDebugAlert=false;var aiDebugLog=false;var aiUnitTestLogFilePrefix=Folder.desktop+ "\x2F\x6C\x6F\x67\x2F\x41\x69\x5F";var aiUnitTestCurrentTest="\x5F\x70\x6C\x61\x63\x65\x68\x6F\x6C\x64\x65\x72\x5F";var aiUnitPointMillimeter=0.3527777777778;var aiUnitMillimeterPoint=2.8346456692913;var aiStrAuto=localize("\x24\x24\x24\x2F\x5F\x54\x65\x78\x74\x44\x6C\x67\x73\x2F\x4D\x6E\x75\x2F\x6C\x65\x61\x64\x69\x6E\x67\x53\x69\x7A\x65\x50\x74\x2F\x61\x75\x74\x6F\x3D\x41\x75\x74\x6F");var NotSupportedValue="\x6E\x75\x6C\x6C";function debugAlert(_0x15E2E){debugLog(_0x15E2E);if(aiDebugAlert){alert(_0x15E2E)}}function debugLog(_0x15E2E){if(aiDebugLog){$.writeln(_0x15E2E)}}function getCurrentTool(){var _0x1615C="";try{_0x1615C= aiGetSelectionType()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function aiGetSelectionType(){$.hiresTimer;$.gc();var _0x1615C="\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64";try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x163AE=_0x16340;if(_0x16340.length== 0){_0x1615C= "\x4E\x6F\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E"}else {_0x1615C= "\x54\x65\x78\x74\x52\x61\x6E\x67\x65"}}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){if(_0x15E44== 0){_0x1615C= _0x16340[_0x15E44].typename}else {if(_0x1615C!= _0x16340[_0x15E44].typename){_0x1615C= "\x4D\x69\x78\x65\x64";break}}}}else {_0x1615C= "\x4E\x6F\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E"}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C+ "\x20"+ $.hiresTimer+ "\x20\xB5\x73");return _0x1615C}function aiGlobalUndoRedo(_0x1619E){try{if(documents.length){if(_0x1619E> 0){app.redo();app.redraw()}else {if(_0x1619E< 0){app.undo();app.redraw()}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiUpdateDocumentZoom(_0x1619E){try{var _0x16592=1.0442737824274138403219664787399;var _0x165D4=aiGetDocumentZoom();var _0x165EA=_0x165D4* Math.pow(_0x16592,_0x1619E);if(_0x165EA< 0.0313){_0x165EA= 0.0313};if(_0x165EA> 640){_0x165EA= 640};aiSetDocumentZoom(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetDocumentZoom(){var _0x1615C=1.0;try{if(documents.length){var _0x16264=activeDocument.activeView;_0x1615C= _0x16264.zoom}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetDocumentZoom(_0x1619E){try{debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E);if(documents.length){var _0x16264=activeDocument.activeView;_0x16264.zoom= _0x1619E}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetDocumentArtboardsInfo(){var _0x1615C="\x31\x2C\x31";try{if(documents.length){var _0x161E0=activeDocument.artboards;var _0x161CA=_0x161E0.length;var _0x161B4=_0x161E0.getActiveArtboardIndex();_0x1615C= _0x161CA.toString()+ "\x2C"+ (_0x161B4+ 1).toString()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetDocumentArtboardsIndex(_0x1619E){try{if(documents.length){var _0x161E0=activeDocument.artboards;var _0x1645E=_0x161E0.length;_0x1619E--;if((0<= _0x1619E)&& (_0x1619E<= _0x1645E- 1)){_0x161E0.setActiveArtboardIndex(_0x1619E);app.executeMenuCommand("\x66\x69\x74\x69\x6E")}else {debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x6F\x75\x74\x20\x6F\x66\x20\x72\x61\x6E\x67\x65\x20\x61\x69\x53\x65\x74\x44\x6F\x63\x75\x6D\x65\x6E\x74\x41\x72\x74\x62\x6F\x61\x72\x64\x73\x49\x6E\x64\x65\x78\x28\x29\x20\x76\x61\x6C\x75\x65\x3D"+ _0x1619E)}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetSelectionTextSizeWithUnit(){var _0x1615C="\x31\x30\x2C\x32";try{if(documents.length){var _0x16398=app.preferences.getIntegerPreference("\x74\x65\x78\x74\x2F\x75\x6E\x69\x74\x73");var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x1615C= _0x16340.size+ '\x2C'+ _0x16398}else {if(0!= _0x16340.length){if("\x54\x65\x78\x74\x46\x72\x61\x6D\x65"== _0x16340[0].typename){_0x1615C= _0x16340[0].textSelection[0].size+ '\x2C'+ _0x16398}else {debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x65\x78\x70\x65\x63\x74\x65\x64\x20\x64\x61\x74\x61\x74\x79\x70\x65\x20\x3D\x20"+ _0x16340[0].typename)}}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionTextSize(_0x1619E){try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x16340.size= _0x1619E}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){_0x16340[_0x15E44].textSelection[0].size= _0x1619E}}else {}};app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetSelectionTextLeadingWithUnit(){var _0x1615C="\x31\x30\x2C\x32";try{var _0x16382=0;if(documents.length){var _0x16398=app.preferences.getIntegerPreference("\x73\x68\x6F\x77\x41\x73\x69\x61\x6E\x54\x65\x78\x74\x4F\x70\x74\x69\x6F\x6E\x73")?app.preferences.getIntegerPreference("\x74\x65\x78\x74\x2F\x61\x73\x69\x61\x6E\x75\x6E\x69\x74\x73"):app.preferences.getIntegerPreference("\x74\x65\x78\x74\x2F\x75\x6E\x69\x74\x73");var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x16382= _0x16340.autoLeading?(_0x16340.size* 1.2):_0x16340.leading}else {if(0!= _0x16340.length){if("\x54\x65\x78\x74\x46\x72\x61\x6D\x65"== _0x16340[0].typename){var _0x16172=_0x16340[0].textSelection[0];_0x16382= _0x16172.autoLeading?(_0x16172.size* 1.2):_0x16172.leading}else {debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x65\x78\x70\x65\x63\x74\x65\x64\x20\x64\x61\x74\x61\x74\x79\x70\x65\x20\x3D\x20"+ _0x16340[0].typename)}}else {}};_0x1615C= _0x16382+ '\x2C'+ _0x16398}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionTextLeading(_0x1619E){var _0x1615C=_0x1619E;try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;aiSetTextLeadingTarget(_0x16172,_0x1619E)}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x16172=_0x16340[_0x15E44].textSelection[0];aiSetTextLeadingTarget(_0x16172,_0x1619E)}}else {}};app.redraw();if(_0x1619E== 0){_0x1615C= aiStrAuto}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function aiSetTextLeadingTarget(_0x16172,_0x1619E){try{if(_0x1619E== 0){_0x16172.autoLeading= true}else {if(_0x16172.autoLeading){_0x16172.autoLeading= false};_0x16172.leading= _0x1619E};app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function aiGetSelectionTextTracking(){var _0x1615C=0;try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x1615C= _0x16340.tracking}else {if(0!= _0x16340.length){if("\x54\x65\x78\x74\x46\x72\x61\x6D\x65"== _0x16340[0].typename){_0x1615C= _0x16340[0].textSelection[0].tracking}else {debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20\x75\x6E\x65\x78\x70\x65\x63\x74\x65\x64\x20\x64\x61\x74\x61\x74\x79\x70\x65\x3D"+ sel[0].typename)}}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionTextTracking(_0x1619E){try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;_0x16172.tracking= _0x1619E}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x16172=_0x16340[_0x15E44].textSelection[0];_0x16172.tracking= _0x1619E}}else {}};app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetSelectionStrokeWeight(){var _0x1615C=1;try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x1615C= _0x16340.strokeWidth}else {if(0!= _0x16340.length){_0x1615C= _0x16340[0].strokeWidth}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiGetSelectionStrokeWeightWithUnit(){var _0x1615C="\x31\x2C\x32";try{if(documents.length){var _0x16188=app.preferences.getIntegerPreference("\x73\x74\x72\x6F\x6B\x65\x55\x6E\x69\x74\x73");var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x1615C= _0x16340.strokeWidth+ '\x2C'+ _0x16188}else {if(0!= _0x16340.length){_0x1615C= _0x16340[0].strokeWidth+ '\x2C'+ _0x16188}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiGetDefaultStrokeWeight(){var _0x1615C=1;try{_0x1615C= parseInt(aiGetDefaultStrokeWeightWithUnit().split('\x2C')[0],10)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiGetDefaultStrokeWeightWithUnit(){var _0x1615C="\x31\x2C\x32";try{if(documents.length){if(app.activeDocument.defaultStrokeColor&& app.activeDocument.defaultStrokeColor.typename== "\x4E\x6F\x43\x6F\x6C\x6F\x72"){_0x1615C= NotSupportedValue}else {var _0x16188=app.preferences.getIntegerPreference("\x73\x74\x72\x6F\x6B\x65\x55\x6E\x69\x74\x73");var _0x1619E=app.activeDocument.defaultStrokeWidth;if(99999< _0x1619E){_0x1619E= 0};if(_0x1619E< 0){_0x1619E= 0};if(1000< _0x1619E){_0x1619E= 1000};_0x1615C= _0x1619E+ '\x2C'+ _0x16188}}else {_0x1615C= NotSupportedValue}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionStrokeWeight(_0x1619E){try{debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E);if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;if(!_0x16172.stroked){_0x16172.stroked= true;var _0x163DA= new RGBColor();_0x163DA.red= 0;_0x163DA.green= 0;_0x163DA.blue= 0;activeDocument.defaultStrokeColor= _0x163DA};_0x16172.strokeWidth= _0x1619E;app.redraw()}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x16172=_0x16340[_0x15E44];if(!_0x16172.stroked){_0x16172.stroked= true;var _0x163DA= new RGBColor();_0x163DA.red= 0;_0x163DA.green= 0;_0x163DA.blue= 0;activeDocument.defaultStrokeColor= _0x163DA};_0x16172.strokeWidth= _0x1619E;app.redraw()}}else {}};app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiSetDefaultStrokeWeight(_0x1619E){try{debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E);if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;if(!_0x16172.stroked){_0x16172.stroked= true}}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x16172=_0x16340[_0x15E44];if(!_0x16172.stroked){_0x16172.stroked= true}}}else {}};if(99999< app.activeDocument.defaultStrokeWidth){debugLog("\x61\x69\x53\x65\x74\x44\x65\x66\x61\x75\x6C\x74\x53\x74\x72\x6F\x6B\x65\x57\x65\x69\x67\x68\x74\x28\x29\x3A\x20\x53\x65\x74\x74\x69\x6E\x67\x20\x64\x65\x66\x61\x75\x6C\x74\x53\x74\x72\x6F\x6B\x65\x43\x6F\x6C\x6F\x72");var _0x163DA= new RGBColor();_0x163DA.red= 0;_0x163DA.green= 0;_0x163DA.blue= 0;activeDocument.defaultStrokeColor= _0x163DA};_0x1619E= Math.round(_0x1619E* 4)/ 4;app.activeDocument.defaultStrokeWidth= _0x1619E;app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiUpdateSelectionOpacity(_0x1619E){var _0x165EA=100;try{var _0x16600=aiGetSelectionOpacity();_0x165EA= Math.round(_0x16600+ _0x1619E);if(_0x165EA< 0){_0x165EA= 0};if(_0x165EA> 100){_0x165EA= 100};aiSetSelectionOpacity(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x165EA}function aiGetSelectionOpacity(){var _0x1615C=100;try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x1615C= _0x16340.opacity}else {if(0!= _0x16340.length){_0x1615C= _0x16340[0].opacity}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionOpacity(_0x1619E){try{debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E);if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){_0x16340.opacity= _0x1619E}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){_0x16340[_0x15E44].opacity= _0x1619E}}else {}};app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetDocumentSwatchInfo(){var _0x1615C="\x30\x2C\x30\x2C\x30\x2C\x30";try{if(documents.length){var _0x161F6=app.activeDocument;var _0x1624E=_0x161F6.swatches;var _0x16238=_0x161F6.swatches.getSelected();var _0x1620C=app.filled_CrownIndex;var _0x16222=app.stroked_CrownIndex;if(_0x1620C=== undefined){_0x1620C= 0};if(_0x16222=== undefined){_0x16222= 0};_0x1615C= _0x1624E.length.toString()+ "\x2C"+ _0x16238.length.toString()+ "\x2C"+ _0x1620C.toString()+ "\x2C"+ _0x16222.toString()}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiGetSelectionSwatchIndex(){var _0x1615C=0;try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;_0x1615C= aiGetColorFillSwatchIndexByTarget(_0x16172)}else {if(0!= _0x16340.length){if("\x54\x65\x78\x74\x46\x72\x61\x6D\x65"== _0x16340[0].typename){var _0x16172=_0x16340[0].textSelection[0];_0x1615C= aiGetColorFillSwatchIndexByTarget(_0x16172)}else {var _0x16172=_0x16340[0];debugLog("\x49\x4E\x46\x4F\x3A\x20\x64\x61\x74\x61\x74\x79\x70\x65\x3D",_0x16340[0].typename);_0x1615C= aiGetColorFillSwatchIndexByTarget(_0x16172)}}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionColorFill(_0x1619E){try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;aiSetColorFillTargetWithSwatchIndex(_0x16172,_0x1619E)}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){if("\x54\x65\x78\x74\x46\x72\x61\x6D\x65"== _0x16340[0].typename){var _0x16172=_0x16340[_0x15E44].textSelection[0];aiSetColorFillTargetWithSwatchIndex(_0x16172,_0x1619E)}else {var _0x16172=_0x16340[_0x15E44];debugLog("\x49\x4E\x46\x4F\x3A\x20\x64\x61\x74\x61\x74\x79\x70\x65\x3D",_0x16340[0].typename);aiSetColorFillTargetWithSwatchIndex(_0x16172,_0x1619E)}}}else {}};app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiSetDefaultColorFill(_0x1619E){try{if(documents.length){aiSetColorFillDefaultWithSwatchIndex(_0x1619E)}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiSetSelectionColorStroke(_0x1619E){try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){var _0x16172=_0x16340;aiSetColorStrokeTargetWithSwatchIndex(_0x16172,_0x1619E)}else {if(0!= _0x16340.length){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){if("\x54\x65\x78\x74\x46\x72\x61\x6D\x65"== _0x16340[0].typename){var _0x16172=_0x16340[_0x15E44].textSelection[0];aiSetColorStrokeTargetWithSwatchIndex(_0x16172,_0x1619E)}else {var _0x16172=_0x16340[_0x15E44];debugLog("\x49\x4E\x46\x4F\x3A\x20\x64\x61\x74\x61\x74\x79\x70\x65\x3D",_0x16340[0].typename);aiSetColorStrokeTargetWithSwatchIndex(_0x16172,_0x1619E)}}}else {}};app.redraw()}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiSetDefaultColorStroke(_0x1619E){try{if(documents.length){aiSetColorStrokeDefaultWithSwatchIndex(_0x1619E)}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetColorFillSwatchIndexByTarget(_0x16172){var _0x1615C=0;try{if(_0x16172.filled){_0x1615C= app.filled_CrownIndex}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function aiGetSwatchIndexByColor(_0x163DA){return 0}function aiSetColorFillTargetWithSwatchIndex(_0x16172,_0x163C4){try{if(!_0x16172.filled){_0x16172.filled= true};var _0x16448=aiGetSwatchByIndex(_0x163C4);_0x16172.fillColor= _0x16448.color;app.filled_CrownIndex= _0x163C4;app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function aiSetColorFillDefaultWithSwatchIndex(_0x163C4){try{var _0x16448=aiGetSwatchByIndex(_0x163C4);app.activeDocument.defaultFillColor= _0x16448.color;app.filled_CrownIndex= _0x163C4;app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function aiSetColorStrokeTargetWithSwatchIndex(_0x16172,_0x163C4){try{if(!_0x16172.stroked){_0x16172.stroked= true};var _0x16448=aiGetSwatchByIndex(_0x163C4);_0x16172.strokeColor= _0x16448.color;app.stroked_CrownIndex= _0x163C4;app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function aiSetColorStrokeDefaultWithSwatchIndex(_0x163C4){try{var _0x16448=aiGetSwatchByIndex(_0x163C4);app.activeDocument.defaultStrokeColor= _0x16448.color;app.stroked_CrownIndex= _0x163C4;app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)}}function aiGetSwatchByIndex(_0x163C4){var _0x1615C=0;try{var _0x161F6=app.activeDocument;var _0x1624E=_0x161F6.swatches;var _0x16238=_0x161F6.swatches.getSelected();if(1< _0x16238.length){_0x1624E= _0x16238};if(_0x163C4< 0){_0x163C4= _0x1624E.length- 1};if(_0x1624E.length- 1< _0x163C4){_0x163C4= 0};_0x1615C= _0x1624E[_0x163C4]}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function aiUpdateSelectionResize(_0x1619E){try{var _0x165EA=100+ _0x1619E;if(_0x165EA< 1){_0x165EA= 1};aiSetSelectionResize(_0x165EA)}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiSetSelectionResize(_0x1619E){try{debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E);if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){}else {if(0!= _0x16340.length){var _0x165BE=true;for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x1636C=_0x16340[_0x15E44];var _0x165A8=calcDiagonal(_0x1636C.width,_0x1636C.height)* _0x1619E/ 100;if(_0x165A8< 10){_0x165BE= false;break}};if(_0x165BE){for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x1636C=_0x16340[_0x15E44];_0x1636C.resize(_0x1619E,_0x1619E)}}}else {}}}else {};app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiUpdateSelectionDiagonal(_0x1619E){try{var _0x16600=aiGetSelectionDiagonal();if(_0x16600<= 0){debugAlert("\x45\x52\x52\x4F\x52\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x63\x75\x72\x72\x65\x6E\x74\x20\x3D\x20"+ _0x16600)}else {var _0x165EA=_0x16600+ _0x1619E;if(_0x165EA< 10){_0x165EA= 10};if(_0x165EA> 100000){_0x165EA= 100000};aiSetSelectionDiagonal(_0x165EA)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function aiGetSelectionDiagonal(){var _0x1615C=0;try{if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){}else {if(0!= _0x16340.length){var _0x16314=Number.MAX_VALUE;var _0x162D2=-Number.MAX_VALUE;var _0x162E8=-Number.MAX_VALUE;var _0x162FE=Number.MAX_VALUE;for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x1636C=_0x16340[_0x15E44];if(_0x1636C.left< _0x16314){_0x16314= _0x1636C.left};var _0x1632A=(_0x1636C.left+ _0x1636C.width);if(_0x162D2< _0x1632A){_0x162D2= _0x1632A};if(_0x162E8< _0x1636C.top){_0x162E8= _0x1636C.top};var _0x1627A=(_0x1636C.top- _0x1636C.height);if(_0x1627A< _0x162FE){_0x162FE= _0x1627A}};var _0x16290=(_0x16314+ _0x162D2)/ 2;var _0x162A6=(_0x162E8+ _0x162FE)/ 2;var _0x16356=_0x162D2- _0x16314;var _0x162BC=_0x162E8- _0x162FE;_0x1615C= calcDiagonal(_0x16356,_0x162BC)}else {}}}else {}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiSetSelectionDiagonal(_0x1619E){try{debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x76\x61\x6C\x75\x65\x20\x3D\x20"+ _0x1619E);if(documents.length){var _0x16340=activeDocument.selection;if("\x54\x65\x78\x74\x52\x61\x6E\x67\x65"== _0x16340.typename){}else {if(0!= _0x16340.length){var _0x16314=Number.MAX_VALUE;var _0x162D2=-Number.MAX_VALUE;var _0x162E8=-Number.MAX_VALUE;var _0x162FE=Number.MAX_VALUE;var _0x1657C=[];for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x1636C=_0x16340[_0x15E44];_0x1657C.push([_0x1636C.left,_0x1636C.width,_0x1636C.top,_0x1636C.height]);debugLog("\x4F\x72\x67\x53\x69\x7A\x65\x3A\x20\x6C\x65\x66\x74\x3D"+ _0x1636C.left+ "\x2C\x20\x77\x69\x64\x74\x68\x3D"+ _0x1636C.width+ "\x2C\x20\x74\x6F\x70\x3D"+ _0x1636C.top+ "\x2C\x20\x68\x65\x69\x67\x68\x74\x3D"+ _0x1636C.height);if(_0x1636C.left< _0x16314){_0x16314= _0x1636C.left};var _0x1632A=(_0x1636C.left+ _0x1636C.width);if(_0x162D2< _0x1632A){_0x162D2= _0x1632A};if(_0x162E8< _0x1636C.top){_0x162E8= _0x1636C.top};var _0x1627A=(_0x1636C.top- _0x1636C.height);if(_0x1627A< _0x162FE){_0x162FE= _0x1627A}};var _0x16290=(_0x16314+ _0x162D2)/ 2;var _0x162A6=(_0x162E8+ _0x162FE)/ 2;var _0x16356=_0x162D2- _0x16314;var _0x162BC=_0x162E8- _0x162FE;var _0x164F8=calcDiagonal(_0x16356,_0x162BC);if(_0x164F8<= 0){debugAlert("\x45\x52\x52\x4F\x52\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x64\x69\x61\x67\x6F\x6E\x61\x6C\x20\x3D\x20"+ _0x164F8)}else {var _0x164A0=_0x1619E- _0x164F8;var _0x16592=_0x164A0/ _0x164F8;var _0x164CC=1.0+ _0x16592;var _0x1650E=false;try{for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){var _0x163AE=_0x16340[_0x15E44];var _0x16474=_0x163AE.left+ _0x163AE.width/ 2;var _0x1648A=_0x163AE.top- _0x163AE.height/ 2;var _0x164E2=_0x163AE.width* _0x16592;var _0x16566=_0x163AE.width+ _0x164E2;_0x163AE.width= _0x16566;_0x1650E=  !verifySetter(_0x163AE.width,_0x16566);if(_0x1650E){break};var _0x1653A=_0x16474+ _0x164CC* (_0x163AE.left- _0x16474);_0x163AE.left= _0x1653A;_0x1650E=  !verifySetter(_0x163AE.left,_0x1653A);if(_0x1650E){break};var _0x164B6=_0x163AE.height* _0x16592;var _0x16524=_0x163AE.height+ _0x164B6;_0x163AE.height= _0x16524;_0x1650E=  !verifySetter(_0x163AE.height,_0x16524);if(_0x1650E){break};var _0x16550=_0x1648A+ _0x164CC* (_0x163AE.top- _0x1648A);_0x163AE.top= _0x16550;_0x1650E=  !verifySetter(_0x163AE.top,_0x16550);if(_0x1650E){break}}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20\x53\x65\x74\x74\x69\x6E\x67\x20\x4C\x6F\x6F\x70\x3A\x20"+ e);_0x1650E= true};if(_0x1650E){debugAlert(arguments.callee.name+ "\x28\x29\x3A\x20\x52\x65\x76\x65\x72\x74\x69\x6E\x67\x20\x73\x69\x7A\x65\x2F\x70\x6F\x73\x69\x74\x69\x6F\x6E");for(var _0x15E44=0;_0x15E44< _0x16340.length;_0x15E44++){_0x16340[_0x15E44].left= _0x1657C[_0x15E44][0];_0x16340[_0x15E44].width= _0x1657C[_0x15E44][1];_0x16340[_0x15E44].top= _0x1657C[_0x15E44][2];_0x16340[_0x15E44].height= _0x1657C[_0x15E44][3];if(!verifySetter(_0x16340[_0x15E44].left,_0x1657C[_0x15E44][0])){debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ "\x4C\x65\x66\x74")};if(!verifySetter(_0x16340[_0x15E44].width,_0x1657C[_0x15E44][1])){debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ "\x57\x69\x64\x74\x68")};if(!verifySetter(_0x16340[_0x15E44].top,_0x1657C[_0x15E44][2])){debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ "\x54\x6F\x70")};if(!verifySetter(_0x16340[_0x15E44].height,_0x1657C[_0x15E44][3])){debugAlert("\x41\x53\x53\x45\x52\x54\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ "\x48\x65\x69\x67\x68\x74")}}}}}else {}}}else {};app.redraw()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function calcDiagonal(_0x1662C,_0x16616){var _0x1615C=0;try{_0x1615C= Math.sqrt(Math.pow(_0x1662C,2)+ Math.pow(_0x16616,2))}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return _0x1615C}function verifySetter(_0x18532,_0x1851C){var _0x1615C=false;try{_0x1615C= (Math.round(_0x18532)== Math.round(_0x1851C));if(!_0x1615C){debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x4E\x4F\x54\x20\x4D\x41\x54\x43\x48\x3A\x20\x6F\x72\x67\x20\x3D\x20"+ _0x18532+ "\x2C\x20\x6E\x65\x77\x20\x3D\x20"+ _0x1851C)}}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiPreferencesGetUnits(){var _0x1615C="\x32\x2C\x32\x2C\x32\x2C\x32";try{var _0x1641C=app.preferences;var _0x16406=_0x1641C.getIntegerPreference("\x72\x75\x6C\x65\x72\x54\x79\x70\x65");var _0x16188=_0x1641C.getIntegerPreference("\x73\x74\x72\x6F\x6B\x65\x55\x6E\x69\x74\x73");var _0x16432=_0x1641C.getIntegerPreference("\x74\x65\x78\x74\x2F\x75\x6E\x69\x74\x73");var _0x163F0=_0x1641C.getIntegerPreference("\x74\x65\x78\x74\x2F\x61\x73\x69\x61\x6E\x75\x6E\x69\x74\x73");_0x1615C= _0x16406.toString()+ "\x2C"+ _0x16188.toString()+ "\x2C"+ _0x16432.toString()+ "\x2C"+ _0x163F0.toString()}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};debugLog(arguments.callee.name+ "\x28\x29\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C);return _0x1615C}function aiDeselect(){try{app.executeMenuCommand("\x64\x65\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C")}catch(e){debugAlert("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ arguments.callee.name+ "\x28\x29\x3A\x20"+ e)};return}function closeAllDocsWithoutSaving(){var _0x1615C=0;try{while(app.documents.length> 0){app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);_0x1615C= app.documents.length}}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return _0x1615C}function resetWorkspaceToDefault(){try{unitTestLog("\x54\x65\x73\x74\x20\x4E\x6F\x74\x65\x3A\x20\x54\x68\x69\x73\x20\x69\x73\x20\x6E\x6F\x74\x20\x69\x6D\x70\x6C\x65\x6D\x65\x6E\x74\x65\x64\x3A\x20"+ arguments.callee.name)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function unitTestSetUpDocByToolId(_0x17C16){try{var _0x181AC="\x43\x3A\x5C\x77\x6F\x72\x6B\x5F\x6E\x68\x61\x64\x61\x5C\x70\x6C\x75\x67\x69\x6E\x73\x5F\x74\x65\x73\x74\x5F\x72\x75\x6E\x6E\x65\x72\x5C\x6D\x69\x73\x63\x5C";unitTestLog(arguments.callee.name+ "\x28\x29\x3A\x20\x74\x6F\x6F\x6C\x49\x64\x20\x3D\x20"+ _0x17C16);closeAllDocsWithoutSaving();switch(_0x17C16){case "\x4E\x6F\x53\x65\x6C\x65\x63\x74\x69\x6F\x6E":openNewDoc();break;case "\x43\x6F\x6D\x70\x6F\x75\x6E\x64\x50\x61\x74\x68\x49\x74\x65\x6D":openNewDoc();addEllipse();addRectangle();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');app.executeMenuCommand('\x63\x6F\x6D\x70\x6F\x75\x6E\x64\x50\x61\x74\x68');break;case "\x47\x72\x61\x70\x68\x49\x74\x65\x6D":openUnitTestSample(_0x181AC+ "\x41\x69\x5F\x55\x6E\x69\x74\x54\x65\x73\x74\x5F\x47\x72\x61\x70\x68\x49\x74\x65\x6D\x2E\x61\x69");app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x47\x72\x6F\x75\x70\x49\x74\x65\x6D":openNewDoc();addEllipse();addTextFrame();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');app.executeMenuCommand('\x67\x72\x6F\x75\x70');app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x4D\x69\x78\x65\x64":openNewDoc();addEllipse();addTextFrame();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x4D\x65\x73\x68\x49\x74\x65\x6D":openUnitTestSample(_0x181AC+ "\x41\x69\x5F\x55\x6E\x69\x74\x54\x65\x73\x74\x5F\x4D\x65\x73\x68\x49\x74\x65\x6D\x2E\x61\x69");app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x50\x61\x74\x68\x49\x74\x65\x6D":openNewDoc();addEllipse();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x50\x6C\x61\x63\x65\x64\x49\x74\x65\x6D":openNewDoc();addJpeg();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x50\x6C\x75\x67\x69\x6E\x49\x74\x65\x6D":openUnitTestSample(_0x181AC+ "\x41\x69\x5F\x55\x6E\x69\x74\x54\x65\x73\x74\x5F\x50\x6C\x75\x67\x69\x6E\x49\x74\x65\x6D\x2E\x61\x69");app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x52\x61\x73\x74\x65\x72\x49\x74\x65\x6D":openUnitTestSample(_0x181AC+ "\x41\x69\x5F\x55\x6E\x69\x74\x54\x65\x73\x74\x5F\x52\x61\x73\x74\x65\x72\x49\x74\x65\x6D\x2E\x61\x69");app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x54\x65\x78\x74\x46\x72\x61\x6D\x65":openNewDoc();addTextFrame();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;case "\x53\x79\x6D\x62\x6F\x6C\x49\x74\x65\x6D":openNewDoc();addSymbol();app.executeMenuCommand('\x73\x65\x6C\x65\x63\x74\x61\x6C\x6C');break;default:throw "\x55\x6E\x73\x75\x70\x70\x6F\x72\x74\x65\x64\x20\x74\x6F\x6F\x6C\x49\x64\x20\x3D\x20"+ _0x17C16;break}}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function openNewDoc(){try{var _0x17536= new DocumentPreset();_0x17536.colorMode= DocumentColorSpace.RGB;_0x17536.width= 1024;_0x17536.height= 768;_0x17536.title= "\x55\x6E\x69\x74\x20\x54\x65\x73\x74\x20\x53\x61\x6D\x70\x6C\x65\x20\x46\x69\x6C\x65";app.documents.addDocument("\x54\x65\x73\x74",_0x17536)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function addEllipse(){try{var _0x15EF4=activeDocument.pathItems.ellipse(100,100,200,200,false,true);_0x15EF4.fillColor= newRGBColor(255,0,0);_0x15EF4.stroked= true;_0x15EF4.strokeWidth= 10;_0x15EF4.strokeColor= newRGBColor(0,255,0)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function addRectangle(){try{var _0x16080=activeDocument.pathItems.rectangle(100,100,200,200);_0x16080.fillColor= newRGBColor(0,255,0);_0x16080.stroked= true;_0x16080.strokeWidth= 10;_0x16080.strokeColor= newRGBColor(0,255,255)}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function addTextFrame(){try{var _0x160EE=activeDocument.textFrames.add();_0x160EE.left= 10;_0x160EE.top= 10;_0x160EE.contents= "\x55\x6E\x69\x74\x20\x54\x65\x73\x74\x20\x54\x65\x78\x74";_0x160EE.paragraphs[0].size= 100}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function addSymbol(){try{var _0x160C2=activeDocument.symbols[0];var _0x160D8=activeDocument.symbolItems.add(_0x160C2);_0x160D8.top=  -50;_0x160D8.left= 50;_0x160D8.width= 200;_0x160D8.height= 200}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function addJpeg(){try{var _0x1606A= new File("\x43\x3A\x5C\x77\x6F\x72\x6B\x5F\x6E\x68\x61\x64\x61\x5C\x70\x6C\x75\x67\x69\x6E\x73\x5F\x74\x65\x73\x74\x5F\x72\x75\x6E\x6E\x65\x72\x5C\x6D\x69\x73\x63\x5C\x32\x30\x31\x34\x30\x37\x30\x35\x5F\x6E\x68\x61\x64\x61\x5F\x66\x69\x72\x65\x77\x6F\x72\x6B\x73\x2E\x6A\x70\x67");if(_0x1606A){var _0x16054=activeDocument.placedItems.add();_0x16054.file= _0x1606A}else {throw "\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x72\x6F\x6E\x67"}}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function openUnitTestSample(_0x1754C){try{unitTestLog("\x66\x69\x6C\x65\x50\x61\x74\x68\x20\x3D\x20"+ _0x1754C,arguments.callee.name);var _0x1606A= new File(_0x1754C);if(_0x1606A){app.open(_0x1606A)}else {throw "\x53\x6F\x6D\x65\x74\x68\x69\x6E\x67\x20\x77\x72\x6F\x6E\x67"}}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return}function newRGBColor(_0x1750A,_0x174F4,_0x174DE){var _0x16CF6= new RGBColor();try{_0x16CF6.red= _0x1750A;_0x16CF6.green= _0x174F4;_0x16CF6.blue= _0x174DE}catch(e){unitTestLog("\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e,arguments.callee.name)};return _0x16CF6}function unitTestSetupBasic(_0x171F2){resetWorkspaceToDefault();closeAllDocsWithoutSaving();unitTestSetUpDocByToolId(_0x171F2);const _0x18020=getCurrentTool();if(_0x18020!= _0x171F2){throw "\x45\x52\x52\x4F\x52\x3A\x20\x75\x6E\x69\x74\x54\x65\x73\x74\x53\x65\x74\x55\x70\x44\x6F\x63\x42\x79\x54\x6F\x6F\x6C\x49\x64\x28\x29\x20\x69\x73\x20\x6E\x6F\x74\x20\x77\x6F\x72\x6B\x69\x6E\x67\x20\x61\x73\x20\x65\x78\x70\x65\x63\x74\x65\x64\x3A\x20\x74\x69\x64\x3D"+ _0x171F2+ "\x2C\x20\x74\x65\x73\x74\x54\x6F\x6F\x6C\x3D"+ _0x18020};return}function unitTestTearDown(){resetWorkspaceToDefault();closeAllDocsWithoutSaving();return}function unitTestTearDownException(){closeAllDocsWithoutSaving();return}function unitTest(_0x1816A,_0x1784E,_0x17208){var _0x1615C="\x46\x61\x69\x6C\x3A\x20\x55\x6E\x6B\x6E\x6F\x77\x6E";try{aiUnitTestCurrentTest= _0x1784E+ "\x5F"+ _0x17208+ "\x5F"+ _0x1816A;unitTestLog("\x74\x6F\x6F\x6C\x20\x3D\x20"+ _0x1784E+ "\x2C\x20\x74\x6F\x6F\x6C\x5F\x6F\x70\x74\x69\x6F\x6E\x20\x3D\x20"+ _0x17208+ "\x2C\x20\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A,arguments.callee.name);unitTestLog("\x61\x69\x55\x6E\x69\x74\x54\x65\x73\x74\x43\x75\x72\x72\x65\x6E\x74\x54\x65\x73\x74\x20\x3D\x20"+ aiUnitTestCurrentTest,arguments.callee.name);const _0x18154="\x74\x65\x73\x74\x5F"+ _0x1784E+ "\x5F"+ _0x17208+ "\x28\x27"+ _0x1784E+ "\x27\x29\x3B";unitTestLog("\x66\x75\x6E\x63\x53\x74\x72\x20\x3D\x20"+ _0x18154,arguments.callee.name);_0x1615C= eval(_0x18154)}catch(e){if(e.toString().startsWith("\x52\x65\x66\x65\x72\x65\x6E\x63\x65\x45\x72\x72\x6F\x72\x3A")){_0x1615C= "\x53\x6B\x69\x70\x3A\x20\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ _0x18154+ "\x3A\x20"+ e}else {_0x1615C= "\x46\x61\x69\x6C\x3A\x20\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ _0x18154+ "\x3A\x20"+ e}};unitTestLog(_0x1615C,arguments.callee.name);return _0x1615C}function unitTestEnd(_0x1816A){var _0x1615C="\x41\x43\x4B\x3A\x20\x28\x6E\x6F\x74\x20\x67\x75\x61\x72\x61\x6E\x74\x65\x65\x64\x20\x74\x6F\x20\x62\x65\x20\x63\x6C\x6F\x73\x65\x64\x20\x61\x70\x70\x29\x20"+ arguments.callee.name+ "\x28\x29\x20\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A;try{aiUnitTestCurrentTest= arguments.callee.name+ "\x5F"+ _0x1816A;unitTestLog("\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A,arguments.callee.name)}catch(e){_0x1615C= "\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e};unitTestLog(_0x1615C,arguments.callee.name);return _0x1615C}function unitTestEndQuit(_0x1816A){var _0x1615C="\x41\x43\x4B\x3A\x20\x28\x6E\x6F\x74\x20\x67\x75\x61\x72\x61\x6E\x74\x65\x65\x64\x20\x74\x6F\x20\x62\x65\x20\x63\x6C\x6F\x73\x65\x64\x20\x61\x70\x70\x29\x20"+ arguments.callee.name+ "\x28\x29\x20\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A;try{aiUnitTestCurrentTest= arguments.callee.name+ "\x5F"+ _0x1816A;unitTestLog("\x74\x65\x73\x74\x5F\x69\x64\x20\x3D\x20"+ _0x1816A,arguments.callee.name);unitTestApplicationQuit()}catch(e){_0x1615C= "\x45\x58\x43\x45\x50\x54\x49\x4F\x4E\x3A\x20"+ e};unitTestLog(_0x1615C,arguments.callee.name);return _0x1615C}function unitTestApplicationQuit(){app.userInteractionLevel= UserInteractionLevel.DONTDISPLAYALERTS;closeAllDocsWithoutSaving();app.quit()}function unitTestLog(_0x15E2E,_0x17FF4){if(true){var _0x1666E= new File(aiUnitTestLogFilePrefix+ aiUnitTestCurrentTest+ "\x2E\x6C\x6F\x67");const _0x18180=currentTime()+ "\x20"+ _0x17FF4+ "\x28\x29\x3A\x20"+ _0x15E2E;debugLog(_0x18180);if(_0x1666E.open('\x61')){_0x1666E.writeln(_0x18180);_0x1666E.close()}}}function test_NoSelection_zoom(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetDocumentZoom(1);if(1!= aiGetDocumentZoom()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30\x25"};aiSetDocumentZoom(0.5);if(0.5!= aiGetDocumentZoom()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30\x25"};aiSetDocumentZoom(1.5);if(1.5!= aiGetDocumentZoom()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x35\x30\x25"};aiSetDocumentZoom(1);aiUpdateDocumentZoom(-1000);if(0.0313!= aiGetDocumentZoom()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x35\x30\x25"};aiSetDocumentZoom(1);aiUpdateDocumentZoom(1000);if(640!= aiGetDocumentZoom()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x35\x30\x25"};aiSetDocumentZoom(1);unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}function test_PathItem_strokeWeight(_0x171F2){return test_js_generalStrokeWeight(_0x171F2,arguments.callee.name)}function test_js_generalStrokeWeight(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionStrokeWeight(0);if(0!= aiGetSelectionStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30"};aiSetSelectionStrokeWeight(1000);if(1000!= aiGetSelectionStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30\x30"};aiSetSelectionStrokeWeight(10);if(10!= aiGetSelectionStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};aiSetSelectionStrokeWeight(100);if(100!= aiGetSelectionStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};aiSetSelectionStrokeWeight(1);unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}function test_GraphItem_strokeWeight(_0x171F2){return test_js_defaultStrokeWeight(_0x171F2,arguments.callee.name)}function test_js_defaultStrokeWeight(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetDefaultStrokeWeight(0);if(0!= aiGetDefaultStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30"};aiSetDefaultStrokeWeight(1000);if(1000!= aiGetDefaultStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30\x30"};aiSetDefaultStrokeWeight(10);if(10!= aiGetDefaultStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};aiSetDefaultStrokeWeight(100);if(100!= aiGetDefaultStrokeWeight()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};aiSetDefaultStrokeWeight(1);unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}function test_CompoundPathItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_GraphItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_GroupItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_MeshItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_PathItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_PlacedItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_PluginItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_RasterItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_SymbolItem_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_Mixed_opacity(_0x171F2){return test_js_opacity(_0x171F2,arguments.callee.name)}function test_js_opacity(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionOpacity(0);if(0!= aiGetSelectionOpacity()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30"};aiSetSelectionOpacity(100);if(100!= aiGetSelectionOpacity()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};aiSetSelectionOpacity(50);if(50!= aiGetSelectionOpacity()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x35\x30"};aiSetSelectionOpacity(50);aiUpdateSelectionOpacity(-100);if(0!= aiGetSelectionOpacity(0)){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x75\x6E\x64\x65\x72\x66\x6C\x6F\x77\x20\x6D\x69\x6E\x20\x30"};aiSetSelectionOpacity(50);aiUpdateSelectionOpacity(100);if(100!= aiGetSelectionOpacity()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x6F\x76\x65\x72\x66\x6C\x6F\x77\x20\x6D\x61\x78\x20\x31\x30\x30"};aiSetSelectionOpacity(100);unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_CompoundPathItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_GraphItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_GroupItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_MeshItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_PathItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_PlacedItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_PluginItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_RasterItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_SymbolItem_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_Mixed_scale(_0x171F2){return test_js_scale(_0x171F2,arguments.callee.name)}function test_js_scale(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiUpdateSelectionResize(0);aiUpdateSelectionResize(10);aiUpdateSelectionResize(-20);aiUpdateSelectionResize(30);aiUpdateSelectionResize(-40);aiUpdateSelectionResize(50);aiUpdateSelectionResize(-60);aiUpdateSelectionResize(70);aiUpdateSelectionResize(-80);aiUpdateSelectionResize(90);unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_CompoundPathItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_GraphItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_GroupItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_LegacyTextItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_MeshItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_NonNativeItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_PathItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_PlacedItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_PluginItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_RasterItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_SymbolItem_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_TextFrame_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_Mixed_colorFill(_0x171F2){return test_js_colorFill(_0x171F2,arguments.callee.name)}function test_js_colorFill(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionColorFill(0);var _0x1808E=aiGetDocumentSwatchInfo();var _0x18036=_0x1808E.split('\x2C');var _0x1645E=parseInt(_0x18036[0],10);aiSetSelectionColorFill(1);var _0x180A4=aiGetDocumentSwatchInfo();var _0x1804C=_0x180A4.split('\x2C');aiSetSelectionColorFill(_0x1645E- 1);var _0x180BA=aiGetDocumentSwatchInfo();var _0x18062=_0x180BA.split('\x2C');aiSetSelectionColorFill(0);var _0x180D0=aiGetDocumentSwatchInfo();var _0x18078=_0x180D0.split('\x2C');unitTestLog("\x64\x61\x74\x61\x30\x20\x3D\x20"+ _0x1808E,_0x1800A);unitTestLog("\x64\x61\x74\x61\x31\x20\x3D\x20"+ _0x180A4,_0x1800A);unitTestLog("\x64\x61\x74\x61\x32\x20\x3D\x20"+ _0x180BA,_0x1800A);unitTestLog("\x64\x61\x74\x61\x33\x20\x3D\x20"+ _0x180D0,_0x1800A);if((_0x18036[0]!= _0x1804C[0])|| (_0x18036[0]!= _0x18062[0])){throw "\x61\x30\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};if((_0x18036[1]!= _0x1804C[1])|| (_0x18036[1]!= _0x18062[1])){throw "\x61\x31\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};if((_0x18036[2]== _0x1804C[2])|| (_0x18036[2]== _0x18062[2])){throw "\x61\x32\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};if((_0x18036[3]!= _0x1804C[3])|| (_0x18036[3]!= _0x18062[3])){throw "\x61\x33\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_CompoundPathItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_GraphItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_GroupItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_LegacyTextItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_MeshItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_NonNativeItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_PathItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_PlacedItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_PluginItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_RasterItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_SymbolItem_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_TextFrame_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_Mixed_colorStroke(_0x171F2){return test_js_colorStroke(_0x171F2,arguments.callee.name)}function test_js_colorStroke(_0x171F2,_0x17FF4){var _0x1615C=unitTestResultDefault();const _0x1800A=_0x17FF4+ "\x28\x29\x3A"+ arguments.callee.name;try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionColorStroke(0);var _0x1808E=aiGetDocumentSwatchInfo();var _0x18036=_0x1808E.split('\x2C');var _0x1645E=parseInt(_0x18036[0],10);aiSetSelectionColorStroke(1);var _0x180A4=aiGetDocumentSwatchInfo();var _0x1804C=_0x180A4.split('\x2C');aiSetSelectionColorStroke(_0x1645E- 1);var _0x180BA=aiGetDocumentSwatchInfo();var _0x18062=_0x180BA.split('\x2C');aiSetSelectionColorStroke(0);var _0x180D0=aiGetDocumentSwatchInfo();var _0x18078=_0x180D0.split('\x2C');unitTestLog("\x64\x61\x74\x61\x30\x20\x3D\x20"+ _0x1808E,_0x1800A);unitTestLog("\x64\x61\x74\x61\x31\x20\x3D\x20"+ _0x180A4,_0x1800A);unitTestLog("\x64\x61\x74\x61\x32\x20\x3D\x20"+ _0x180BA,_0x1800A);unitTestLog("\x64\x61\x74\x61\x33\x20\x3D\x20"+ _0x180D0,_0x1800A);if((_0x18036[0]!= _0x1804C[0])|| (_0x18036[0]!= _0x18062[0])){throw "\x61\x30\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};if((_0x18036[1]!= _0x1804C[1])|| (_0x18036[1]!= _0x18062[1])){throw "\x61\x31\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};if((_0x18036[2]!= _0x1804C[2])|| (_0x18036[2]!= _0x18062[2])){throw "\x61\x32\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};if((_0x18036[3]== _0x1804C[3])|| (_0x18036[3]== _0x18062[3])){throw "\x61\x33\x20\x69\x73\x20\x6E\x6F\x74\x20\x65\x78\x70\x65\x63\x74\x65\x64"};unitTestTearDown();_0x1615C= unitTestResultPass(_0x1800A)}catch(e){_0x1615C= unitTestResultException(_0x1800A,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,_0x1800A);return _0x1615C}function test_TextFrame_leading(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionTextLeading(0.1);if(0.1!= aiGetSelectionTextLeadingForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30\x2E\x31"};aiSetSelectionTextLeading(1296);if(1296!= aiGetSelectionTextLeadingForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x32\x39\x36"};aiSetSelectionTextLeading(10);if(10!= aiGetSelectionTextLeadingForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};aiSetSelectionTextLeading(100);if(100!= aiGetSelectionTextLeadingForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};aiSetSelectionTextLeading(10);unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}function aiGetSelectionTextLeadingForUnitTest(){var _0x1615C=0;try{_0x1615C= parseInt(10.0* aiGetSelectionTextLeadingWithUnit().split('\x2C')[0])/ 10}catch(e){unitTestLog("\x45\x78\x63\x65\x70\x74\x69\x6F\x6E\x20\x3D\x20"+ e+ "\x20"+ arguments.callee.name+ "\x28\x29")};return _0x1615C}function test_TextFrame_textSize(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionTextSize(0.1);if(0.1!= aiGetSelectionTextSizeForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30\x2E\x31"};aiSetSelectionTextSize(1296);if(1296!= aiGetSelectionTextSizeForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x32\x39\x36"};aiSetSelectionTextSize(10);if(10!= aiGetSelectionTextSizeForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30"};aiSetSelectionTextSize(100);if(100!= aiGetSelectionTextSizeForUnitTest()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};aiSetSelectionTextSize(10);unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}function aiGetSelectionTextSizeForUnitTest(){var _0x1615C=0;try{_0x1615C= parseInt(10.0* aiGetSelectionTextSizeWithUnit().split('\x2C')[0])/ 10}catch(e){unitTestLog("\x45\x78\x63\x65\x70\x74\x69\x6F\x6E\x20\x3D\x20"+ e+ "\x20"+ arguments.callee.name+ "\x28\x29")};return _0x1615C}function test_TextFrame_tracking(_0x171F2){var _0x1615C=unitTestResultDefault();try{unitTestLogTestStart(arguments.callee.name);unitTestSetupBasic(_0x171F2);aiSetSelectionTextTracking(-1000);if(-1000!= aiGetSelectionTextTracking()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x2D\x31\x30\x30\x30"};aiSetSelectionTextTracking(10000);if(10000!= aiGetSelectionTextTracking()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30\x30\x30"};aiSetSelectionTextTracking(0);if(0!= aiGetSelectionTextTracking()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x30"};aiSetSelectionTextTracking(100);if(100!= aiGetSelectionTextTracking()){throw "\x46\x41\x49\x4C\x45\x44\x3A\x20\x31\x30\x30"};aiSetSelectionTextTracking(0);unitTestTearDown();_0x1615C= unitTestResultPass(arguments.callee.name)}catch(e){_0x1615C= unitTestResultException(arguments.callee.name,e);unitTestTearDownException()};unitTestLog("\x54\x65\x73\x74\x20\x65\x6E\x64\x3A\x20\x72\x65\x73\x75\x6C\x74\x20\x3D\x20"+ _0x1615C,arguments.callee.name);return _0x1615C}