bpmn-viewer.min.js 609 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842
  1. /*! bpmn-js - bpmn-viewer v0.17.0 | (c) 2014, 2015 camunda Services GmbH | bpmn.io/license */
  2. !
  3. function(e) {
  4. if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
  5. else if ("function" == typeof define && define.amd) define([], e);
  6. else {
  7. var t;
  8. t = "undefined" != typeof window ? window: "undefined" != typeof global ? global: "undefined" != typeof self ? self: this,
  9. t.BpmnJS = e()
  10. }
  11. } (function() {
  12. var e;
  13. return function e(t, n, r) {
  14. function i(a, s) {
  15. if (!n[a]) {
  16. if (!t[a]) {
  17. var c = "function" == typeof require && require;
  18. if (!s && c) return c(a, !0);
  19. if (o) return o(a, !0);
  20. var l = new Error("Cannot find module '" + a + "'");
  21. throw l.code = "MODULE_NOT_FOUND",
  22. l
  23. }
  24. var u = n[a] = {
  25. exports: {}
  26. };
  27. t[a][0].call(u.exports,
  28. function(e) {
  29. var n = t[a][1][e];
  30. return i(n ? n: e)
  31. },
  32. u, u.exports, e, t, n, r)
  33. }
  34. return n[a].exports
  35. }
  36. for (var o = "function" == typeof require && require,
  37. a = 0; a < r.length; a++) i(r[a]);
  38. return i
  39. } ({
  40. 1 : [function(e, t, n) {
  41. "use strict";
  42. function r(e) {
  43. var t = /unparsable content <([^>]+)> detected([\s\S]*)$/,
  44. n = t.exec(e.message);
  45. return n && (e.message = "unparsable content <" + n[1] + "> detected; this may indicate an invalid BPMN 2.0 diagram file" + n[2]),
  46. e
  47. }
  48. function i(e) {
  49. return e + (u(e) ? "px": "")
  50. }
  51. function o(e) {
  52. e = s({},
  53. v, e),
  54. this.moddle = this._createModdle(e),
  55. this.container = this._createContainer(e),
  56. a(this.container),
  57. this._init(this.container, this.moddle, e)
  58. }
  59. function a(e) {
  60. var t = x.BPMNIO_LOGO,
  61. n = '<a href="http://bpmn.io" target="_blank" class="bjs-powered-by" title="Powered by bpmn.io" style="position: absolute; bottom: 15px; right: 15px; z-index: 100"></a>',
  62. r = p(n);
  63. e.appendChild(r),
  64. b.bind(r, "click",
  65. function(e) {
  66. x.open(),
  67. e.preventDefault()
  68. })
  69. }
  70. var s = e(197),
  71. c = e(201),
  72. l = e(194),
  73. u = e(191),
  74. p = e(212),
  75. f = e(214),
  76. h = e(215),
  77. d = e(36),
  78. m = e(15),
  79. y = e(77),
  80. g = e(8),
  81. v = {
  82. width: "100%",
  83. height: "100%",
  84. position: "relative",
  85. container: "body"
  86. };
  87. y(o, d),
  88. t.exports = o,
  89. o.prototype.importXML = function(e, t) {
  90. t = t ||
  91. function() {};
  92. var n = this;
  93. e = this._emit("import.parse.start", {
  94. xml: e
  95. }) || e,
  96. this.moddle.fromXML(e, "bpmn:Definitions",
  97. function(e, i, o) {
  98. if (i = n._emit("import.parse.complete", {
  99. error: e,
  100. definitions: i,
  101. context: o
  102. }) || i, e) return e = r(e),
  103. n._emit("import.done", {
  104. error: e
  105. }),
  106. t(e);
  107. var a = o.warnings;
  108. n.importDefinitions(i,
  109. function(e, r) {
  110. var i = [].concat(a, r || []);
  111. n._emit("import.done", {
  112. error: e,
  113. warnings: i
  114. }),
  115. t(e, i)
  116. })
  117. })
  118. },
  119. o.prototype.saveXML = function(e, t) {
  120. t || (t = e, e = {});
  121. var n = this.definitions;
  122. return n ? void this.moddle.toXML(n, e, t) : t(new Error("no definitions loaded"))
  123. },
  124. o.prototype.saveSVG = function(e, t) {
  125. t || (t = e, e = {});
  126. var n = this.get("canvas"),
  127. r = n.getDefaultLayer(),
  128. i = n._svg.select("defs"),
  129. o = r.innerSVG(),
  130. a = i && i.outerSVG() || "",
  131. s = r.getBBox(),
  132. c = '<?xml version="1.0" encoding="utf-8"?>\n<!-- created with bpmn-js / http://bpmn.io -->\n<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">\n<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="' + s.width + '" height="' + s.height + '" viewBox="' + s.x + " " + s.y + " " + s.width + " " + s.height + '" version="1.1">' + a + o + "</svg>";
  133. t(null, c)
  134. },
  135. o.prototype.importDefinitions = function(e, t) {
  136. try {
  137. this.definitions && this.clear(),
  138. this.definitions = e,
  139. g.importBpmnDiagram(this, e, t)
  140. } catch(e) {
  141. t(e)
  142. }
  143. },
  144. o.prototype.getModules = function() {
  145. return this._modules
  146. },
  147. o.prototype.destroy = function() {
  148. d.prototype.destroy.call(this),
  149. h(this.container)
  150. },
  151. o.prototype.on = function(e, t, n, r) {
  152. return this.get("eventBus").on(e, t, n, r)
  153. },
  154. o.prototype.off = function(e, t) {
  155. this.get("eventBus").off(e, t)
  156. },
  157. o.prototype._init = function(e, t, n) {
  158. var r = n.modules || this.getModules(),
  159. i = n.additionalModules || [],
  160. o = [{
  161. bpmnjs: ["value", this],
  162. moddle: ["value", t]
  163. }],
  164. a = [].concat(o, r, i),
  165. l = s(c(n, "additionalModules"), {
  166. canvas: s({},
  167. n.canvas, {
  168. container: e
  169. }),
  170. modules: a
  171. });
  172. d.call(this, l)
  173. },
  174. o.prototype._emit = function(e, t) {
  175. return this.get("eventBus").fire(e, t)
  176. },
  177. o.prototype._createContainer = function(e) {
  178. var t, n = e.container;
  179. return n.get && (n = n.get(0)),
  180. l(n) && (n = f(n)),
  181. t = p('<div class="bjs-container"></div>'),
  182. s(t.style, {
  183. width: i(e.width),
  184. height: i(e.height),
  185. position: e.position
  186. }),
  187. n.appendChild(t),
  188. t
  189. },
  190. o.prototype._createModdle = function(e) {
  191. var t = s({},
  192. this._moddleExtensions, e.moddleExtensions);
  193. return new m(t)
  194. },
  195. o.prototype._modules = [e(2), e(58), e(57), e(53)],
  196. o.prototype._moddleExtensions = {};
  197. var x = e(14),
  198. b = e(213)
  199. },
  200. {
  201. 14 : 14,
  202. 15 : 15,
  203. 191 : 191,
  204. 194 : 194,
  205. 197 : 197,
  206. 2 : 2,
  207. 201 : 201,
  208. 212 : 212,
  209. 213 : 213,
  210. 214 : 214,
  211. 215 : 215,
  212. 36 : 36,
  213. 53 : 53,
  214. 57 : 57,
  215. 58 : 58,
  216. 77 : 77,
  217. 8 : 8
  218. }],
  219. 2 : [function(e, t, n) {
  220. t.exports = {
  221. __depends__: [e(5), e(10)]
  222. }
  223. },
  224. {
  225. 10 : 10,
  226. 5 : 5
  227. }],
  228. 3 : [function(e, t, n) {
  229. "use strict";
  230. function r(e, t, n, r) {
  231. function l(e, t) {
  232. V[e] = t
  233. }
  234. function u(e) {
  235. return V[e]
  236. }
  237. function p(e) {
  238. function t(e, t) {
  239. var n = m({
  240. fill: "black",
  241. strokeWidth: 1,
  242. strokeLinecap: "round",
  243. strokeDasharray: "none"
  244. },
  245. t.attrs),
  246. r = t.ref || {
  247. x: 0,
  248. y: 0
  249. },
  250. i = t.scale || 1;
  251. "none" === n.strokeDasharray && (n.strokeDasharray = [1e4, 1]);
  252. var o = t.element.attr(n).marker(0, 0, 20, 20, r.x, r.y).attr({
  253. markerWidth: 20 * i,
  254. markerHeight: 20 * i
  255. });
  256. return l(e, o)
  257. }
  258. t("sequenceflow-end", {
  259. element: e.path("M 1 5 L 11 10 L 1 15 Z"),
  260. ref: {
  261. x: 11,
  262. y: 10
  263. },
  264. scale: .5
  265. }),
  266. t("messageflow-start", {
  267. element: e.circle(6, 6, 3.5),
  268. attrs: {
  269. fill: "white",
  270. stroke: "black"
  271. },
  272. ref: {
  273. x: 6,
  274. y: 6
  275. }
  276. }),
  277. t("messageflow-end", {
  278. element: e.path("m 1 5 l 0 -3 l 7 3 l -7 3 z"),
  279. attrs: {
  280. fill: "white",
  281. stroke: "black",
  282. strokeLinecap: "butt"
  283. },
  284. ref: {
  285. x: 8.5,
  286. y: 5
  287. }
  288. }),
  289. t("association-start", {
  290. element: e.path("M 11 5 L 1 10 L 11 15"),
  291. attrs: {
  292. fill: "none",
  293. stroke: "black",
  294. strokeWidth: 1.5
  295. },
  296. ref: {
  297. x: 1,
  298. y: 10
  299. },
  300. scale: .5
  301. }),
  302. t("association-end", {
  303. element: e.path("M 1 5 L 11 10 L 1 15"),
  304. attrs: {
  305. fill: "none",
  306. stroke: "black",
  307. strokeWidth: 1.5
  308. },
  309. ref: {
  310. x: 12,
  311. y: 10
  312. },
  313. scale: .5
  314. }),
  315. t("conditional-flow-marker", {
  316. element: e.path("M 0 10 L 8 6 L 16 10 L 8 14 Z"),
  317. attrs: {
  318. fill: "white",
  319. stroke: "black"
  320. },
  321. ref: {
  322. x: -1,
  323. y: 10
  324. },
  325. scale: .5
  326. }),
  327. t("conditional-default-flow-marker", {
  328. element: e.path("M 1 4 L 5 16"),
  329. attrs: {
  330. stroke: "black"
  331. },
  332. ref: {
  333. x: -5,
  334. y: 10
  335. },
  336. scale: .5
  337. })
  338. }
  339. function f(e, t, n, r, i) {
  340. d(r) && (i = r, r = 0),
  341. r = r || 0,
  342. i = G(i, {
  343. stroke: "black",
  344. strokeWidth: 2,
  345. fill: "white"
  346. });
  347. var o = t / 2,
  348. a = n / 2;
  349. return e.circle(o, a, Math.round((t + n) / 4 - r)).attr(i)
  350. }
  351. function h(e, t, n, r, i, o) {
  352. return d(i) && (o = i, i = 0),
  353. i = i || 0,
  354. o = G(o, {
  355. stroke: "black",
  356. strokeWidth: 2,
  357. fill: "white"
  358. }),
  359. e.rect(i, i, t - 2 * i, n - 2 * i, r).attr(o)
  360. }
  361. function g(e, t, n, r) {
  362. var i = t / 2,
  363. o = n / 2,
  364. a = [i, 0, t, o, i, n, 0, o];
  365. return r = G(r, {
  366. stroke: "black",
  367. strokeWidth: 2,
  368. fill: "white"
  369. }),
  370. e.polygon(a).attr(r)
  371. }
  372. function x(e, t, n) {
  373. return n = G(n, ["no-fill"], {
  374. stroke: "black",
  375. strokeWidth: 2,
  376. fill: "none"
  377. }),
  378. T(t, n).appendTo(e)
  379. }
  380. function A(e, t, n) {
  381. return n = G(n, ["no-fill"], {
  382. strokeWidth: 2,
  383. stroke: "black"
  384. }),
  385. e.path(t).attr(n)
  386. }
  387. function _(e, t, n, r) {
  388. return A(t, n, m({
  389. "data-marker": e
  390. },
  391. r))
  392. }
  393. function S(e) {
  394. return function(t, n) {
  395. return U[e](t, n)
  396. }
  397. }
  398. function M(e) {
  399. return U[e]
  400. }
  401. function P(e, t) {
  402. var n = c(e),
  403. r = o(n);
  404. return i(n, "bpmn:MessageEventDefinition") ? M("bpmn:MessageEventDefinition")(t, e, r) : i(n, "bpmn:TimerEventDefinition") ? M("bpmn:TimerEventDefinition")(t, e, r) : i(n, "bpmn:ConditionalEventDefinition") ? M("bpmn:ConditionalEventDefinition")(t, e) : i(n, "bpmn:SignalEventDefinition") ? M("bpmn:SignalEventDefinition")(t, e, r) : i(n, "bpmn:CancelEventDefinition") && i(n, "bpmn:TerminateEventDefinition", {
  405. parallelMultiple: !1
  406. }) ? M("bpmn:MultipleEventDefinition")(t, e, r) : i(n, "bpmn:CancelEventDefinition") && i(n, "bpmn:TerminateEventDefinition", {
  407. parallelMultiple: !0
  408. }) ? M("bpmn:ParallelMultipleEventDefinition")(t, e, r) : i(n, "bpmn:EscalationEventDefinition") ? M("bpmn:EscalationEventDefinition")(t, e, r) : i(n, "bpmn:LinkEventDefinition") ? M("bpmn:LinkEventDefinition")(t, e, r) : i(n, "bpmn:ErrorEventDefinition") ? M("bpmn:ErrorEventDefinition")(t, e, r) : i(n, "bpmn:CancelEventDefinition") ? M("bpmn:CancelEventDefinition")(t, e, r) : i(n, "bpmn:CompensateEventDefinition") ? M("bpmn:CompensateEventDefinition")(t, e, r) : i(n, "bpmn:TerminateEventDefinition") ? M("bpmn:TerminateEventDefinition")(t, e, r) : null
  409. }
  410. function D(e, t, n) {
  411. return j.createText(e, t || "", n).addClass("djs-label")
  412. }
  413. function k(e, t, n) {
  414. var r = c(t);
  415. return D(e, r.name, {
  416. box: t,
  417. align: n,
  418. padding: 5
  419. })
  420. }
  421. function O(e, t) {
  422. var n = c(t),
  423. r = {
  424. width: 90,
  425. height: 30,
  426. x: t.width / 2 + t.x,
  427. y: t.height / 2 + t.y
  428. };
  429. return D(e, n.name, {
  430. box: r,
  431. style: {
  432. fontSize: "11px"
  433. }
  434. })
  435. }
  436. function B(e, t, n) {
  437. var r = D(e, t, {
  438. box: {
  439. height: 30,
  440. width: n.height
  441. },
  442. align: "center-middle"
  443. }),
  444. i = -1 * n.height;
  445. r.transform("rotate(270) translate(" + i + ",0)")
  446. }
  447. function I(e) {
  448. for (var t = e.waypoints,
  449. n = "m " + t[0].x + "," + t[0].y, r = 1; r < t.length; r++) n += "L" + t[r].x + "," + t[r].y + " ";
  450. return n
  451. }
  452. function L(e, t, n) {
  453. var r, i = c(t),
  454. o = v(n, "SubProcessMarker");
  455. r = o ? {
  456. seq: -21,
  457. parallel: -22,
  458. compensation: -42,
  459. loop: -18,
  460. adhoc: 10
  461. }: {
  462. seq: -3,
  463. parallel: -6,
  464. compensation: -27,
  465. loop: 0,
  466. adhoc: 10
  467. },
  468. y(n,
  469. function(n) {
  470. M(n)(e, t, r)
  471. }),
  472. i.isForCompensation && M("CompensationMarker")(e, t, r),
  473. "bpmn:AdHocSubProcess" === i.$type && M("AdhocMarker")(e, t, r);
  474. var a = i.loopCharacteristics,
  475. s = a && a.isSequential;
  476. a && (void 0 === s && M("LoopMarker")(e, t, r), s === !1 && M("ParallelMarker")(e, t, r), s === !0 && M("SequentialMarker")(e, t, r))
  477. }
  478. function F(e, t) {
  479. var r = (t.height - 16) / t.height,
  480. i = n.getScaledPath("DATA_OBJECT_COLLECTION_PATH", {
  481. xScaleFactor: 1,
  482. yScaleFactor: 1,
  483. containerWidth: t.width,
  484. containerHeight: t.height,
  485. position: {
  486. mx: .451,
  487. my: r
  488. }
  489. });
  490. A(e, i, {
  491. strokeWidth: 2
  492. })
  493. }
  494. b.call(this, e, r);
  495. var j = new E({
  496. style: N,
  497. size: {
  498. width: 100
  499. }
  500. }),
  501. V = {},
  502. G = t.computeStyle,
  503. U = this.handlers = {
  504. "bpmn:Event": function(e, t, n) {
  505. return f(e, t.width, t.height, n)
  506. },
  507. "bpmn:StartEvent": function(e, t) {
  508. var n = {},
  509. r = c(t);
  510. r.isInterrupting || (n = {
  511. strokeDasharray: "6",
  512. strokeLinecap: "round"
  513. });
  514. var i = M("bpmn:Event")(e, t, n);
  515. return P(t, e),
  516. i
  517. },
  518. "bpmn:MessageEventDefinition": function(e, t, r) {
  519. var i = n.getScaledPath("EVENT_MESSAGE", {
  520. xScaleFactor: .9,
  521. yScaleFactor: .9,
  522. containerWidth: t.width,
  523. containerHeight: t.height,
  524. position: {
  525. mx: .235,
  526. my: .315
  527. }
  528. }),
  529. o = r ? "black": "white",
  530. a = r ? "white": "black",
  531. s = A(e, i, {
  532. strokeWidth: 1,
  533. fill: o,
  534. stroke: a
  535. });
  536. return s
  537. },
  538. "bpmn:TimerEventDefinition": function(e, t) {
  539. var r = f(e, t.width, t.height, .2 * t.height, {
  540. strokeWidth: 2
  541. }),
  542. i = n.getScaledPath("EVENT_TIMER_WH", {
  543. xScaleFactor: .75,
  544. yScaleFactor: .75,
  545. containerWidth: t.width,
  546. containerHeight: t.height,
  547. position: {
  548. mx: .5,
  549. my: .5
  550. }
  551. });
  552. A(e, i, {
  553. strokeWidth: 2,
  554. strokeLinecap: "square"
  555. });
  556. for (var o = 0; o < 12; o++) {
  557. var a = n.getScaledPath("EVENT_TIMER_LINE", {
  558. xScaleFactor: .75,
  559. yScaleFactor: .75,
  560. containerWidth: t.width,
  561. containerHeight: t.height,
  562. position: {
  563. mx: .5,
  564. my: .5
  565. }
  566. }),
  567. s = t.width / 2,
  568. c = t.height / 2;
  569. A(e, a, {
  570. strokeWidth: 1,
  571. strokeLinecap: "square",
  572. transform: "rotate(" + 30 * o + "," + c + "," + s + ")"
  573. })
  574. }
  575. return r
  576. },
  577. "bpmn:EscalationEventDefinition": function(e, t, r) {
  578. var i = n.getScaledPath("EVENT_ESCALATION", {
  579. xScaleFactor: 1,
  580. yScaleFactor: 1,
  581. containerWidth: t.width,
  582. containerHeight: t.height,
  583. position: {
  584. mx: .5,
  585. my: .2
  586. }
  587. }),
  588. o = r ? "black": "none";
  589. return A(e, i, {
  590. strokeWidth: 1,
  591. fill: o
  592. })
  593. },
  594. "bpmn:ConditionalEventDefinition": function(e, t) {
  595. var r = n.getScaledPath("EVENT_CONDITIONAL", {
  596. xScaleFactor: 1,
  597. yScaleFactor: 1,
  598. containerWidth: t.width,
  599. containerHeight: t.height,
  600. position: {
  601. mx: .5,
  602. my: .222
  603. }
  604. });
  605. return A(e, r, {
  606. strokeWidth: 1
  607. })
  608. },
  609. "bpmn:LinkEventDefinition": function(e, t, r) {
  610. var i = n.getScaledPath("EVENT_LINK", {
  611. xScaleFactor: 1,
  612. yScaleFactor: 1,
  613. containerWidth: t.width,
  614. containerHeight: t.height,
  615. position: {
  616. mx: .57,
  617. my: .263
  618. }
  619. }),
  620. o = r ? "black": "none";
  621. return A(e, i, {
  622. strokeWidth: 1,
  623. fill: o
  624. })
  625. },
  626. "bpmn:ErrorEventDefinition": function(e, t, r) {
  627. var i = n.getScaledPath("EVENT_ERROR", {
  628. xScaleFactor: 1.1,
  629. yScaleFactor: 1.1,
  630. containerWidth: t.width,
  631. containerHeight: t.height,
  632. position: {
  633. mx: .2,
  634. my: .722
  635. }
  636. }),
  637. o = r ? "black": "none";
  638. return A(e, i, {
  639. strokeWidth: 1,
  640. fill: o
  641. })
  642. },
  643. "bpmn:CancelEventDefinition": function(e, t, r) {
  644. var i = n.getScaledPath("EVENT_CANCEL_45", {
  645. xScaleFactor: 1,
  646. yScaleFactor: 1,
  647. containerWidth: t.width,
  648. containerHeight: t.height,
  649. position: {
  650. mx: .638,
  651. my: -.055
  652. }
  653. }),
  654. o = r ? "black": "none";
  655. return A(e, i, {
  656. strokeWidth: 1,
  657. fill: o
  658. }).transform("rotate(45)")
  659. },
  660. "bpmn:CompensateEventDefinition": function(e, t, r) {
  661. var i = n.getScaledPath("EVENT_COMPENSATION", {
  662. xScaleFactor: 1,
  663. yScaleFactor: 1,
  664. containerWidth: t.width,
  665. containerHeight: t.height,
  666. position: {
  667. mx: .22,
  668. my: .5
  669. }
  670. }),
  671. o = r ? "black": "none";
  672. return A(e, i, {
  673. strokeWidth: 1,
  674. fill: o
  675. })
  676. },
  677. "bpmn:SignalEventDefinition": function(e, t, r) {
  678. var i = n.getScaledPath("EVENT_SIGNAL", {
  679. xScaleFactor: .9,
  680. yScaleFactor: .9,
  681. containerWidth: t.width,
  682. containerHeight: t.height,
  683. position: {
  684. mx: .5,
  685. my: .2
  686. }
  687. }),
  688. o = r ? "black": "none";
  689. return A(e, i, {
  690. strokeWidth: 1,
  691. fill: o
  692. })
  693. },
  694. "bpmn:MultipleEventDefinition": function(e, t, r) {
  695. var i = n.getScaledPath("EVENT_MULTIPLE", {
  696. xScaleFactor: 1.1,
  697. yScaleFactor: 1.1,
  698. containerWidth: t.width,
  699. containerHeight: t.height,
  700. position: {
  701. mx: .222,
  702. my: .36
  703. }
  704. }),
  705. o = r ? "black": "none";
  706. return A(e, i, {
  707. strokeWidth: 1,
  708. fill: o
  709. })
  710. },
  711. "bpmn:ParallelMultipleEventDefinition": function(e, t) {
  712. var r = n.getScaledPath("EVENT_PARALLEL_MULTIPLE", {
  713. xScaleFactor: 1.2,
  714. yScaleFactor: 1.2,
  715. containerWidth: t.width,
  716. containerHeight: t.height,
  717. position: {
  718. mx: .458,
  719. my: .194
  720. }
  721. });
  722. return A(e, r, {
  723. strokeWidth: 1
  724. })
  725. },
  726. "bpmn:EndEvent": function(e, t) {
  727. var n = M("bpmn:Event")(e, t, {
  728. strokeWidth: 4
  729. });
  730. return P(t, e, !0),
  731. n
  732. },
  733. "bpmn:TerminateEventDefinition": function(e, t) {
  734. var n = f(e, t.width, t.height, 8, {
  735. strokeWidth: 4,
  736. fill: "black"
  737. });
  738. return n
  739. },
  740. "bpmn:IntermediateEvent": function(e, t) {
  741. var n = M("bpmn:Event")(e, t, {
  742. strokeWidth: 1
  743. });
  744. return f(e, t.width, t.height, R, {
  745. strokeWidth: 1,
  746. fill: "none"
  747. }),
  748. P(t, e),
  749. n
  750. },
  751. "bpmn:IntermediateCatchEvent": S("bpmn:IntermediateEvent"),
  752. "bpmn:IntermediateThrowEvent": S("bpmn:IntermediateEvent"),
  753. "bpmn:Activity": function(e, t, n) {
  754. return h(e, t.width, t.height, C, n)
  755. },
  756. "bpmn:Task": function(e, t, n) {
  757. var r = M("bpmn:Activity")(e, t, n);
  758. return k(e, t, "center-middle"),
  759. L(e, t),
  760. r
  761. },
  762. "bpmn:ServiceTask": function(e, t) {
  763. var r = M("bpmn:Task")(e, t),
  764. i = n.getScaledPath("TASK_TYPE_SERVICE", {
  765. abspos: {
  766. x: 12,
  767. y: 18
  768. }
  769. });
  770. A(e, i, {
  771. strokeWidth: 1,
  772. fill: "none"
  773. });
  774. var o = n.getScaledPath("TASK_TYPE_SERVICE_FILL", {
  775. abspos: {
  776. x: 17.2,
  777. y: 18
  778. }
  779. });
  780. A(e, o, {
  781. strokeWidth: 0,
  782. stroke: "none",
  783. fill: "white"
  784. });
  785. var a = n.getScaledPath("TASK_TYPE_SERVICE", {
  786. abspos: {
  787. x: 17,
  788. y: 22
  789. }
  790. });
  791. return A(e, a, {
  792. strokeWidth: 1,
  793. fill: "white"
  794. }),
  795. r
  796. },
  797. "bpmn:UserTask": function(e, t) {
  798. var r = M("bpmn:Task")(e, t),
  799. i = 15,
  800. o = 12,
  801. a = n.getScaledPath("TASK_TYPE_USER_1", {
  802. abspos: {
  803. x: i,
  804. y: o
  805. }
  806. });
  807. A(e, a, {
  808. strokeWidth: .5,
  809. fill: "none"
  810. });
  811. var s = n.getScaledPath("TASK_TYPE_USER_2", {
  812. abspos: {
  813. x: i,
  814. y: o
  815. }
  816. });
  817. A(e, s, {
  818. strokeWidth: .5,
  819. fill: "none"
  820. });
  821. var c = n.getScaledPath("TASK_TYPE_USER_3", {
  822. abspos: {
  823. x: i,
  824. y: o
  825. }
  826. });
  827. return A(e, c, {
  828. strokeWidth: .5,
  829. fill: "black"
  830. }),
  831. r
  832. },
  833. "bpmn:ManualTask": function(e, t) {
  834. var r = M("bpmn:Task")(e, t),
  835. i = n.getScaledPath("TASK_TYPE_MANUAL", {
  836. abspos: {
  837. x: 17,
  838. y: 15
  839. }
  840. });
  841. return A(e, i, {
  842. strokeWidth: .25,
  843. fill: "white",
  844. stroke: "black"
  845. }),
  846. r
  847. },
  848. "bpmn:SendTask": function(e, t) {
  849. var r = M("bpmn:Task")(e, t),
  850. i = n.getScaledPath("TASK_TYPE_SEND", {
  851. xScaleFactor: 1,
  852. yScaleFactor: 1,
  853. containerWidth: 21,
  854. containerHeight: 14,
  855. position: {
  856. mx: .285,
  857. my: .357
  858. }
  859. });
  860. return A(e, i, {
  861. strokeWidth: 1,
  862. fill: "black",
  863. stroke: "white"
  864. }),
  865. r
  866. },
  867. "bpmn:ReceiveTask": function(e, t) {
  868. var r, i = c(t),
  869. o = M("bpmn:Task")(e, t);
  870. return i.instantiate ? (f(e, 28, 28, 4.4, {
  871. strokeWidth: 1
  872. }), r = n.getScaledPath("TASK_TYPE_INSTANTIATING_SEND", {
  873. abspos: {
  874. x: 7.77,
  875. y: 9.52
  876. }
  877. })) : r = n.getScaledPath("TASK_TYPE_SEND", {
  878. xScaleFactor: .9,
  879. yScaleFactor: .9,
  880. containerWidth: 21,
  881. containerHeight: 14,
  882. position: {
  883. mx: .3,
  884. my: .4
  885. }
  886. }),
  887. A(e, r, {
  888. strokeWidth: 1
  889. }),
  890. o
  891. },
  892. "bpmn:ScriptTask": function(e, t) {
  893. var r = M("bpmn:Task")(e, t),
  894. i = n.getScaledPath("TASK_TYPE_SCRIPT", {
  895. abspos: {
  896. x: 15,
  897. y: 20
  898. }
  899. });
  900. return A(e, i, {
  901. strokeWidth: 1
  902. }),
  903. r
  904. },
  905. "bpmn:BusinessRuleTask": function(e, t) {
  906. var r = M("bpmn:Task")(e, t),
  907. i = n.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER", {
  908. abspos: {
  909. x: 8,
  910. y: 8
  911. }
  912. }),
  913. o = A(e, i);
  914. o.attr({
  915. strokeWidth: 1,
  916. fill: "AAA"
  917. });
  918. var a = n.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN", {
  919. abspos: {
  920. x: 8,
  921. y: 8
  922. }
  923. }),
  924. s = A(e, a);
  925. return s.attr({
  926. strokeWidth: 1
  927. }),
  928. r
  929. },
  930. "bpmn:SubProcess": function(e, t, n) {
  931. n = m({
  932. fillOpacity: .95
  933. },
  934. n);
  935. var r = M("bpmn:Activity")(e, t, n),
  936. i = w.isExpanded(t),
  937. o = w.isEventSubProcess(t);
  938. return o && r.attr({
  939. strokeDasharray: "1,2"
  940. }),
  941. k(e, t, i ? "center-top": "center-middle"),
  942. i ? L(e, t) : L(e, t, ["SubProcessMarker"]),
  943. r
  944. },
  945. "bpmn:AdHocSubProcess": function(e, t) {
  946. return M("bpmn:SubProcess")(e, t)
  947. },
  948. "bpmn:Transaction": function(e, n) {
  949. var r = M("bpmn:SubProcess")(e, n),
  950. i = t.style(["no-fill", "no-events"]);
  951. return h(e, n.width, n.height, C - 2, R, i),
  952. r
  953. },
  954. "bpmn:CallActivity": function(e, t) {
  955. return M("bpmn:SubProcess")(e, t, {
  956. strokeWidth: 5
  957. })
  958. },
  959. "bpmn:Participant": function(e, t) {
  960. var n = M("bpmn:Lane")(e, t, {
  961. fillOpacity: .95,
  962. fill: "White"
  963. }),
  964. r = w.isExpanded(t);
  965. if (r) {
  966. x(e, [{
  967. x: 30,
  968. y: 0
  969. },
  970. {
  971. x: 30,
  972. y: t.height
  973. }]);
  974. var i = c(t).name;
  975. B(e, i, t)
  976. } else {
  977. var o = c(t).name;
  978. D(e, o, {
  979. box: t,
  980. align: "center-middle"
  981. })
  982. }
  983. var a = !!c(t).participantMultiplicity;
  984. return a && M("ParticipantMultiplicityMarker")(e, t),
  985. n
  986. },
  987. "bpmn:Lane": function(e, t, n) {
  988. var r = h(e, t.width, t.height, 0, n || {
  989. fill: "none"
  990. }),
  991. i = c(t);
  992. if ("bpmn:Lane" === i.$type) {
  993. var o = i.name;
  994. B(e, o, t)
  995. }
  996. return r
  997. },
  998. "bpmn:InclusiveGateway": function(e, t) {
  999. var n = g(e, t.width, t.height);
  1000. return f(e, t.width, t.height, .24 * t.height, {
  1001. strokeWidth: 2.5,
  1002. fill: "none"
  1003. }),
  1004. n
  1005. },
  1006. "bpmn:ExclusiveGateway": function(e, t) {
  1007. var r = g(e, t.width, t.height),
  1008. i = n.getScaledPath("GATEWAY_EXCLUSIVE", {
  1009. xScaleFactor: .4,
  1010. yScaleFactor: .4,
  1011. containerWidth: t.width,
  1012. containerHeight: t.height,
  1013. position: {
  1014. mx: .32,
  1015. my: .3
  1016. }
  1017. });
  1018. return s(t).isMarkerVisible && A(e, i, {
  1019. strokeWidth: 1,
  1020. fill: "black"
  1021. }),
  1022. r
  1023. },
  1024. "bpmn:ComplexGateway": function(e, t) {
  1025. var r = g(e, t.width, t.height),
  1026. i = n.getScaledPath("GATEWAY_COMPLEX", {
  1027. xScaleFactor: .5,
  1028. yScaleFactor: .5,
  1029. containerWidth: t.width,
  1030. containerHeight: t.height,
  1031. position: {
  1032. mx: .46,
  1033. my: .26
  1034. }
  1035. });
  1036. return A(e, i, {
  1037. strokeWidth: 1,
  1038. fill: "black"
  1039. }),
  1040. r
  1041. },
  1042. "bpmn:ParallelGateway": function(e, t) {
  1043. var r = g(e, t.width, t.height),
  1044. i = n.getScaledPath("GATEWAY_PARALLEL", {
  1045. xScaleFactor: .6,
  1046. yScaleFactor: .6,
  1047. containerWidth: t.width,
  1048. containerHeight: t.height,
  1049. position: {
  1050. mx: .46,
  1051. my: .2
  1052. }
  1053. });
  1054. return A(e, i, {
  1055. strokeWidth: 1,
  1056. fill: "black"
  1057. }),
  1058. r
  1059. },
  1060. "bpmn:EventBasedGateway": function(e, t) {
  1061. function r() {
  1062. var r = n.getScaledPath("GATEWAY_EVENT_BASED", {
  1063. xScaleFactor: .18,
  1064. yScaleFactor: .18,
  1065. containerWidth: t.width,
  1066. containerHeight: t.height,
  1067. position: {
  1068. mx: .36,
  1069. my: .44
  1070. }
  1071. });
  1072. A(e, r, {
  1073. strokeWidth: 2,
  1074. fill: "none"
  1075. })
  1076. }
  1077. var i = c(t),
  1078. o = g(e, t.width, t.height);
  1079. f(e, t.width, t.height, .2 * t.height, {
  1080. strokeWidth: 1,
  1081. fill: "none"
  1082. });
  1083. var a = i.eventGatewayType,
  1084. s = !!i.instantiate;
  1085. if ("Parallel" === a) {
  1086. var l = n.getScaledPath("GATEWAY_PARALLEL", {
  1087. xScaleFactor: .4,
  1088. yScaleFactor: .4,
  1089. containerWidth: t.width,
  1090. containerHeight: t.height,
  1091. position: {
  1092. mx: .474,
  1093. my: .296
  1094. }
  1095. }),
  1096. u = A(e, l);
  1097. u.attr({
  1098. strokeWidth: 1,
  1099. fill: "none"
  1100. })
  1101. } else if ("Exclusive" === a) {
  1102. if (!s) {
  1103. var p = f(e, t.width, t.height, .26 * t.height);
  1104. p.attr({
  1105. strokeWidth: 1,
  1106. fill: "none"
  1107. })
  1108. }
  1109. r()
  1110. }
  1111. return o
  1112. },
  1113. "bpmn:Gateway": function(e, t) {
  1114. return g(e, t.width, t.height)
  1115. },
  1116. "bpmn:SequenceFlow": function(e, t) {
  1117. var n = I(t),
  1118. r = A(e, n, {
  1119. strokeLinejoin: "round",
  1120. markerEnd: u("sequenceflow-end")
  1121. }),
  1122. i = c(t),
  1123. o = t.source.businessObject;
  1124. return i.conditionExpression && o.$instanceOf("bpmn:Activity") && r.attr({
  1125. markerStart: u("conditional-flow-marker")
  1126. }),
  1127. o.
  1128. default && (o.$instanceOf("bpmn:Gateway") || o.$instanceOf("bpmn:Activity")) && o.
  1129. default === i && r.attr({
  1130. markerStart: u("conditional-default-flow-marker")
  1131. }),
  1132. r
  1133. },
  1134. "bpmn:Association": function(e, t, n) {
  1135. var r = c(t);
  1136. return n = m({
  1137. strokeDasharray: "0.5, 5",
  1138. strokeLinecap: "round",
  1139. strokeLinejoin: "round"
  1140. },
  1141. n || {}),
  1142. "One" !== r.associationDirection && "Both" !== r.associationDirection || (n.markerEnd = u("association-end")),
  1143. "Both" === r.associationDirection && (n.markerStart = u("association-start")),
  1144. x(e, t.waypoints, n)
  1145. },
  1146. "bpmn:DataInputAssociation": function(e, t) {
  1147. return M("bpmn:Association")(e, t, {
  1148. markerEnd: u("association-end")
  1149. })
  1150. },
  1151. "bpmn:DataOutputAssociation": function(e, t) {
  1152. return M("bpmn:Association")(e, t, {
  1153. markerEnd: u("association-end")
  1154. })
  1155. },
  1156. "bpmn:MessageFlow": function(e, t) {
  1157. var r = c(t),
  1158. i = s(t),
  1159. o = I(t),
  1160. a = A(e, o, {
  1161. markerEnd: u("messageflow-end"),
  1162. markerStart: u("messageflow-start"),
  1163. strokeDasharray: "10, 12",
  1164. strokeLinecap: "round",
  1165. strokeLinejoin: "round",
  1166. strokeWidth: "1.5px"
  1167. });
  1168. if (r.messageRef) {
  1169. var l = a.getPointAtLength(a.getTotalLength() / 2),
  1170. p = n.getScaledPath("MESSAGE_FLOW_MARKER", {
  1171. abspos: {
  1172. x: l.x,
  1173. y: l.y
  1174. }
  1175. }),
  1176. f = {
  1177. strokeWidth: 1
  1178. };
  1179. "initiating" === i.messageVisibleKind ? (f.fill = "white", f.stroke = "black") : (f.fill = "#888", f.stroke = "white"),
  1180. A(e, p, f)
  1181. }
  1182. return a
  1183. },
  1184. "bpmn:DataObject": function(e, t) {
  1185. var r = n.getScaledPath("DATA_OBJECT_PATH", {
  1186. xScaleFactor: 1,
  1187. yScaleFactor: 1,
  1188. containerWidth: t.width,
  1189. containerHeight: t.height,
  1190. position: {
  1191. mx: .474,
  1192. my: .296
  1193. }
  1194. }),
  1195. i = A(e, r, {
  1196. fill: "white"
  1197. }),
  1198. o = c(t);
  1199. return a(o) && F(e, t),
  1200. i
  1201. },
  1202. "bpmn:DataObjectReference": S("bpmn:DataObject"),
  1203. "bpmn:DataInput": function(e, t) {
  1204. var r = n.getRawPath("DATA_ARROW"),
  1205. i = M("bpmn:DataObject")(e, t);
  1206. return A(e, r, {
  1207. strokeWidth: 1
  1208. }),
  1209. i
  1210. },
  1211. "bpmn:DataOutput": function(e, t) {
  1212. var r = n.getRawPath("DATA_ARROW"),
  1213. i = M("bpmn:DataObject")(e, t);
  1214. return A(e, r, {
  1215. strokeWidth: 1,
  1216. fill: "black"
  1217. }),
  1218. i
  1219. },
  1220. "bpmn:DataStoreReference": function(e, t) {
  1221. var r = n.getScaledPath("DATA_STORE", {
  1222. xScaleFactor: 1,
  1223. yScaleFactor: 1,
  1224. containerWidth: t.width,
  1225. containerHeight: t.height,
  1226. position: {
  1227. mx: 0,
  1228. my: .133
  1229. }
  1230. }),
  1231. i = A(e, r, {
  1232. strokeWidth: 2,
  1233. fill: "white"
  1234. });
  1235. return i
  1236. },
  1237. "bpmn:BoundaryEvent": function(e, t) {
  1238. var n = c(t),
  1239. r = n.cancelActivity,
  1240. i = {
  1241. strokeWidth: 1
  1242. };
  1243. r || (i.strokeDasharray = "6", i.strokeLinecap = "round");
  1244. var o = M("bpmn:Event")(e, t, i);
  1245. return f(e, t.width, t.height, R, m(i, {
  1246. fill: "none"
  1247. })),
  1248. P(t, e),
  1249. o
  1250. },
  1251. "bpmn:Group": function(e, t) {
  1252. return h(e, t.width, t.height, C, {
  1253. strokeWidth: 1,
  1254. strokeDasharray: "8,3,1,3",
  1255. fill: "none",
  1256. pointerEvents: "none"
  1257. })
  1258. },
  1259. label: function(e, t) {
  1260. var n = O(e, t),
  1261. r = n.getBBox();
  1262. return t.x = Math.round(t.x + t.width / 2) - Math.round(r.width / 2),
  1263. t.width = Math.ceil(r.width),
  1264. t.height = Math.ceil(r.height),
  1265. n.attr({
  1266. transform: "translate(" + -1 * r.x + ",0)"
  1267. }),
  1268. n
  1269. },
  1270. "bpmn:TextAnnotation": function(e, t) {
  1271. var r = {
  1272. fill: "none",
  1273. stroke: "none"
  1274. },
  1275. i = h(e, t.width, t.height, 0, 0, r),
  1276. o = n.getScaledPath("TEXT_ANNOTATION", {
  1277. xScaleFactor: 1,
  1278. yScaleFactor: 1,
  1279. containerWidth: t.width,
  1280. containerHeight: t.height,
  1281. position: {
  1282. mx: 0,
  1283. my: 0
  1284. }
  1285. });
  1286. A(e, o);
  1287. var a = c(t).text || "";
  1288. return D(e, a, {
  1289. box: t,
  1290. align: "left-middle",
  1291. padding: 5
  1292. }),
  1293. i
  1294. },
  1295. ParticipantMultiplicityMarker: function(e, t) {
  1296. var r = n.getScaledPath("MARKER_PARALLEL", {
  1297. xScaleFactor: 1,
  1298. yScaleFactor: 1,
  1299. containerWidth: t.width,
  1300. containerHeight: t.height,
  1301. position: {
  1302. mx: t.width / 2 / t.width,
  1303. my: (t.height - 15) / t.height
  1304. }
  1305. });
  1306. _("participant-multiplicity", e, r)
  1307. },
  1308. SubProcessMarker: function(e, t) {
  1309. var r = h(e, 14, 14, 0, {
  1310. strokeWidth: 1
  1311. });
  1312. r.transform("translate(" + (t.width / 2 - 7.5) + "," + (t.height - 20) + ")");
  1313. var i = n.getScaledPath("MARKER_SUB_PROCESS", {
  1314. xScaleFactor: 1.5,
  1315. yScaleFactor: 1.5,
  1316. containerWidth: t.width,
  1317. containerHeight: t.height,
  1318. position: {
  1319. mx: (t.width / 2 - 7.5) / t.width,
  1320. my: (t.height - 20) / t.height
  1321. }
  1322. });
  1323. _("sub-process", e, i)
  1324. },
  1325. ParallelMarker: function(e, t, r) {
  1326. var i = n.getScaledPath("MARKER_PARALLEL", {
  1327. xScaleFactor: 1,
  1328. yScaleFactor: 1,
  1329. containerWidth: t.width,
  1330. containerHeight: t.height,
  1331. position: {
  1332. mx: (t.width / 2 + r.parallel) / t.width,
  1333. my: (t.height - 20) / t.height
  1334. }
  1335. });
  1336. _("parallel", e, i)
  1337. },
  1338. SequentialMarker: function(e, t, r) {
  1339. var i = n.getScaledPath("MARKER_SEQUENTIAL", {
  1340. xScaleFactor: 1,
  1341. yScaleFactor: 1,
  1342. containerWidth: t.width,
  1343. containerHeight: t.height,
  1344. position: {
  1345. mx: (t.width / 2 + r.seq) / t.width,
  1346. my: (t.height - 19) / t.height
  1347. }
  1348. });
  1349. _("sequential", e, i)
  1350. },
  1351. CompensationMarker: function(e, t, r) {
  1352. var i = n.getScaledPath("MARKER_COMPENSATION", {
  1353. xScaleFactor: 1,
  1354. yScaleFactor: 1,
  1355. containerWidth: t.width,
  1356. containerHeight: t.height,
  1357. position: {
  1358. mx: (t.width / 2 + r.compensation) / t.width,
  1359. my: (t.height - 13) / t.height
  1360. }
  1361. });
  1362. _("compensation", e, i, {
  1363. strokeWidth: 1
  1364. })
  1365. },
  1366. LoopMarker: function(e, t, r) {
  1367. var i = n.getScaledPath("MARKER_LOOP", {
  1368. xScaleFactor: 1,
  1369. yScaleFactor: 1,
  1370. containerWidth: t.width,
  1371. containerHeight: t.height,
  1372. position: {
  1373. mx: (t.width / 2 + r.loop) / t.width,
  1374. my: (t.height - 7) / t.height
  1375. }
  1376. });
  1377. _("loop", e, i, {
  1378. strokeWidth: 1,
  1379. fill: "none",
  1380. strokeLinecap: "round",
  1381. strokeMiterlimit: .5
  1382. })
  1383. },
  1384. AdhocMarker: function(e, t, r) {
  1385. var i = n.getScaledPath("MARKER_ADHOC", {
  1386. xScaleFactor: 1,
  1387. yScaleFactor: 1,
  1388. containerWidth: t.width,
  1389. containerHeight: t.height,
  1390. position: {
  1391. mx: (t.width / 2 + r.adhoc) / t.width,
  1392. my: (t.height - 15) / t.height
  1393. }
  1394. });
  1395. _("adhoc", e, i, {
  1396. strokeWidth: 1,
  1397. fill: "black"
  1398. })
  1399. }
  1400. };
  1401. e.on("canvas.init",
  1402. function(e) {
  1403. p(e.svg)
  1404. })
  1405. }
  1406. function i(e, t, n) {
  1407. function r(e, t) {
  1408. return g(t,
  1409. function(t, n) {
  1410. return e[n] == t
  1411. })
  1412. }
  1413. return x(e.eventDefinitions,
  1414. function(i) {
  1415. return i.$type === t && r(e, n)
  1416. })
  1417. }
  1418. function o(e) {
  1419. return "bpmn:IntermediateThrowEvent" === e.$type || "bpmn:EndEvent" === e.$type
  1420. }
  1421. function a(e) {
  1422. return e.isCollection || e.elementObjectRef && e.elementObjectRef.isCollection
  1423. }
  1424. function s(e) {
  1425. return e.businessObject.di
  1426. }
  1427. function c(e) {
  1428. return e.businessObject
  1429. }
  1430. function l(e) {
  1431. var t = e.x + e.width / 2,
  1432. n = e.y + e.height / 2,
  1433. r = e.width / 2,
  1434. i = [["M", t, n], ["m", 0, -r], ["a", r, r, 0, 1, 1, 0, 2 * r], ["a", r, r, 0, 1, 1, 0, -2 * r], ["z"]];
  1435. return S(i)
  1436. }
  1437. function u(e, t) {
  1438. var n = e.x,
  1439. r = e.y,
  1440. i = e.width,
  1441. o = e.height,
  1442. a = [["M", n + t, r], ["l", i - 2 * t, 0], ["a", t, t, 0, 0, 1, t, t], ["l", 0, o - 2 * t], ["a", t, t, 0, 0, 1, -t, t], ["l", 2 * t - i, 0], ["a", t, t, 0, 0, 1, -t, -t], ["l", 0, 2 * t - o], ["a", t, t, 0, 0, 1, t, -t], ["z"]];
  1443. return S(a)
  1444. }
  1445. function p(e) {
  1446. var t = e.width,
  1447. n = e.height,
  1448. r = e.x,
  1449. i = e.y,
  1450. o = t / 2,
  1451. a = n / 2,
  1452. s = [["M", r + o, i], ["l", o, a], ["l", -o, a], ["l", -o, -a], ["z"]];
  1453. return S(s)
  1454. }
  1455. function f(e) {
  1456. var t = e.x,
  1457. n = e.y,
  1458. r = e.width,
  1459. i = e.height,
  1460. o = [["M", t, n], ["l", r, 0], ["l", 0, i], ["l", -r, 0], ["z"]];
  1461. return S(o)
  1462. }
  1463. var h = e(77),
  1464. d = e(192),
  1465. m = e(197),
  1466. y = e(83),
  1467. g = e(80),
  1468. v = e(85),
  1469. x = e(88),
  1470. b = e(44),
  1471. E = e(69),
  1472. w = e(11),
  1473. A = e(13).is,
  1474. _ = e(68),
  1475. S = _.componentsToPath,
  1476. T = _.createLine,
  1477. C = 10,
  1478. R = 3,
  1479. N = {
  1480. fontFamily: "Arial, sans-serif",
  1481. fontSize: "12px"
  1482. };
  1483. h(r, b),
  1484. r.$inject = ["eventBus", "styles", "pathMap"],
  1485. t.exports = r,
  1486. r.prototype.canRender = function(e) {
  1487. return A(e, "bpmn:BaseElement")
  1488. },
  1489. r.prototype.drawShape = function(e, t) {
  1490. var n = t.type,
  1491. r = this.handlers[n];
  1492. return r(e, t)
  1493. },
  1494. r.prototype.drawConnection = function(e, t) {
  1495. var n = t.type,
  1496. r = this.handlers[n];
  1497. return r(e, t)
  1498. },
  1499. r.prototype.getShapePath = function(e) {
  1500. return A(e, "bpmn:Event") ? l(e) : A(e, "bpmn:Activity") ? u(e, C) : A(e, "bpmn:Gateway") ? p(e) : f(e)
  1501. }
  1502. },
  1503. {
  1504. 11 : 11,
  1505. 13 : 13,
  1506. 192 : 192,
  1507. 197 : 197,
  1508. 44 : 44,
  1509. 68 : 68,
  1510. 69 : 69,
  1511. 77 : 77,
  1512. 80 : 80,
  1513. 83 : 83,
  1514. 85 : 85,
  1515. 88 : 88
  1516. }],
  1517. 4 : [function(e, t, n) {
  1518. "use strict";
  1519. function r() {
  1520. this.pathMap = {
  1521. EVENT_MESSAGE: {
  1522. d: "m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",
  1523. height: 36,
  1524. width: 36,
  1525. heightElements: [6, 14],
  1526. widthElements: [10.5, 21]
  1527. },
  1528. EVENT_SIGNAL: {
  1529. d: "M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",
  1530. height: 36,
  1531. width: 36,
  1532. heightElements: [18],
  1533. widthElements: [10, 20]
  1534. },
  1535. EVENT_ESCALATION: {
  1536. d: "M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",
  1537. height: 36,
  1538. width: 36,
  1539. heightElements: [20, 7],
  1540. widthElements: [8]
  1541. },
  1542. EVENT_CONDITIONAL: {
  1543. d: "M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",
  1544. height: 36,
  1545. width: 36,
  1546. heightElements: [8.5, 14.5, 18, 11.5, 14.5, 17.5, 20.5, 23.5, 26.5],
  1547. widthElements: [10.5, 14.5, 12.5]
  1548. },
  1549. EVENT_LINK: {
  1550. d: "m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",
  1551. height: 36,
  1552. width: 36,
  1553. heightElements: [4.4375, 6.75, 7.8125],
  1554. widthElements: [9.84375, 13.5]
  1555. },
  1556. EVENT_ERROR: {
  1557. d: "m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",
  1558. height: 36,
  1559. width: 36,
  1560. heightElements: [.023, 8.737, 8.151, 16.564, 10.591, 8.714],
  1561. widthElements: [.085, 6.672, 6.97, 4.273, 5.337, 6.636]
  1562. },
  1563. EVENT_CANCEL_45: {
  1564. d: "m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",
  1565. height: 36,
  1566. width: 36,
  1567. heightElements: [4.75, 8.5],
  1568. widthElements: [4.75, 8.5]
  1569. },
  1570. EVENT_COMPENSATION: {
  1571. d: "m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",
  1572. height: 36,
  1573. width: 36,
  1574. heightElements: [6.5, 13, .4, 6.1],
  1575. widthElements: [9, 9.3, 8.7]
  1576. },
  1577. EVENT_TIMER_WH: {
  1578. d: "M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",
  1579. height: 36,
  1580. width: 36,
  1581. heightElements: [10, 2],
  1582. widthElements: [3, 7]
  1583. },
  1584. EVENT_TIMER_LINE: {
  1585. d: "M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",
  1586. height: 36,
  1587. width: 36,
  1588. heightElements: [10, 3],
  1589. widthElements: [0, 0]
  1590. },
  1591. EVENT_MULTIPLE: {
  1592. d: "m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",
  1593. height: 36,
  1594. width: 36,
  1595. heightElements: [6.28099, 12.56199],
  1596. widthElements: [3.1405, 9.42149, 12.56198]
  1597. },
  1598. EVENT_PARALLEL_MULTIPLE: {
  1599. d: "m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",
  1600. height: 36,
  1601. width: 36,
  1602. heightElements: [2.56228, 7.68683],
  1603. widthElements: [2.56228, 7.68683]
  1604. },
  1605. GATEWAY_EXCLUSIVE: {
  1606. d: "m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",
  1607. height: 17.5,
  1608. width: 17.5,
  1609. heightElements: [8.5, 6.5312, -6.5312, -8.5],
  1610. widthElements: [6.5, -6.5, 3, -3, 5, -5]
  1611. },
  1612. GATEWAY_PARALLEL: {
  1613. d: "m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",
  1614. height: 30,
  1615. width: 30,
  1616. heightElements: [5, 12.5],
  1617. widthElements: [5, 12.5]
  1618. },
  1619. GATEWAY_EVENT_BASED: {
  1620. d: "m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",
  1621. height: 11,
  1622. width: 11,
  1623. heightElements: [ - 6, 6, 12, -12],
  1624. widthElements: [9, -3, -12]
  1625. },
  1626. GATEWAY_COMPLEX: {
  1627. d: "m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",
  1628. height: 17.125,
  1629. width: 17.125,
  1630. heightElements: [4.875, 3.4375, 2.125, 3],
  1631. widthElements: [3.4375, 2.125, 4.875, 3]
  1632. },
  1633. DATA_OBJECT_PATH: {
  1634. d: "m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",
  1635. height: 61,
  1636. width: 51,
  1637. heightElements: [10, 50, 60],
  1638. widthElements: [10, 40, 50, 60]
  1639. },
  1640. DATA_OBJECT_COLLECTION_PATH: {
  1641. d: "m {mx}, {my} m 0 15 l 0 -15 m 4 15 l 0 -15 m 4 15 l 0 -15 ",
  1642. height: 61,
  1643. width: 51,
  1644. heightElements: [12],
  1645. widthElements: [1, 6, 12, 15]
  1646. },
  1647. DATA_ARROW: {
  1648. d: "m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",
  1649. height: 61,
  1650. width: 51,
  1651. heightElements: [],
  1652. widthElements: []
  1653. },
  1654. DATA_STORE: {
  1655. d: "m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",
  1656. height: 61,
  1657. width: 61,
  1658. heightElements: [7, 10, 45],
  1659. widthElements: [2, 58, 60]
  1660. },
  1661. TEXT_ANNOTATION: {
  1662. d: "m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",
  1663. height: 30,
  1664. width: 10,
  1665. heightElements: [30],
  1666. widthElements: [10]
  1667. },
  1668. MARKER_SUB_PROCESS: {
  1669. d: "m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",
  1670. height: 10,
  1671. width: 10,
  1672. heightElements: [],
  1673. widthElements: []
  1674. },
  1675. MARKER_PARALLEL: {
  1676. d: "m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",
  1677. height: 10,
  1678. width: 10,
  1679. heightElements: [],
  1680. widthElements: []
  1681. },
  1682. MARKER_SEQUENTIAL: {
  1683. d: "m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",
  1684. height: 10,
  1685. width: 10,
  1686. heightElements: [],
  1687. widthElements: []
  1688. },
  1689. MARKER_COMPENSATION: {
  1690. d: "m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",
  1691. height: 10,
  1692. width: 21,
  1693. heightElements: [],
  1694. widthElements: []
  1695. },
  1696. MARKER_LOOP: {
  1697. d: "m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",
  1698. height: 13.9,
  1699. width: 13.7,
  1700. heightElements: [],
  1701. widthElements: []
  1702. },
  1703. MARKER_ADHOC: {
  1704. d: "m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",
  1705. height: 4,
  1706. width: 15,
  1707. heightElements: [],
  1708. widthElements: []
  1709. },
  1710. TASK_TYPE_SEND: {
  1711. d: "m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",
  1712. height: 14,
  1713. width: 21,
  1714. heightElements: [6, 14],
  1715. widthElements: [10.5, 21]
  1716. },
  1717. TASK_TYPE_SCRIPT: {
  1718. d: "m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",
  1719. height: 15,
  1720. width: 12.6,
  1721. heightElements: [6, 14],
  1722. widthElements: [10.5, 21]
  1723. },
  1724. TASK_TYPE_USER_1: {
  1725. d: "m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"
  1726. },
  1727. TASK_TYPE_USER_2: {
  1728. d: "m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "
  1729. },
  1730. TASK_TYPE_USER_3: {
  1731. d: "m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"
  1732. },
  1733. TASK_TYPE_MANUAL: {
  1734. d: "m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"
  1735. },
  1736. TASK_TYPE_INSTANTIATING_SEND: {
  1737. d: "m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"
  1738. },
  1739. TASK_TYPE_SERVICE: {
  1740. d: "m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"
  1741. },
  1742. TASK_TYPE_SERVICE_FILL: {
  1743. d: "m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"
  1744. },
  1745. TASK_TYPE_BUSINESS_RULE_HEADER: {
  1746. d: "m {mx},{my} 0,4 20,0 0,-4 z"
  1747. },
  1748. TASK_TYPE_BUSINESS_RULE_MAIN: {
  1749. d: "m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"
  1750. },
  1751. MESSAGE_FLOW_MARKER: {
  1752. d: "m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"
  1753. }
  1754. },
  1755. this.getRawPath = function(e) {
  1756. return this.pathMap[e].d
  1757. },
  1758. this.getScaledPath = function(e, t) {
  1759. var n, r, o = this.pathMap[e];
  1760. t.abspos ? (n = t.abspos.x, r = t.abspos.y) : (n = t.containerWidth * t.position.mx, r = t.containerHeight * t.position.my);
  1761. var a = {};
  1762. if (t.position) {
  1763. for (var s = t.containerHeight / o.height * t.yScaleFactor,
  1764. c = t.containerWidth / o.width * t.xScaleFactor,
  1765. l = 0; l < o.heightElements.length; l++) a["y" + l] = o.heightElements[l] * s;
  1766. for (var u = 0; u < o.widthElements.length; u++) a["x" + u] = o.widthElements[u] * c
  1767. }
  1768. var p = i.format(o.d, {
  1769. mx: n,
  1770. my: r,
  1771. e: a
  1772. });
  1773. return p
  1774. }
  1775. }
  1776. var i = e(76);
  1777. t.exports = r
  1778. },
  1779. {
  1780. 76 : 76
  1781. }],
  1782. 5 : [function(e, t, n) {
  1783. t.exports = {
  1784. __init__: ["bpmnRenderer"],
  1785. bpmnRenderer: ["type", e(3)],
  1786. pathMap: ["type", e(4)]
  1787. }
  1788. },
  1789. {
  1790. 3 : 3,
  1791. 4 : 4
  1792. }],
  1793. 6 : [function(e, t, n) {
  1794. "use strict";
  1795. function r(e, t) {
  1796. return s({
  1797. id: e.id,
  1798. type: e.$type,
  1799. businessObject: e
  1800. },
  1801. t)
  1802. }
  1803. function i(e) {
  1804. return c(e,
  1805. function(e) {
  1806. return {
  1807. x: e.x,
  1808. y: e.y
  1809. }
  1810. })
  1811. }
  1812. function o(e, t, n, r) {
  1813. return new Error(e("element {element} referenced by {referenced}#{property} not yet drawn", {
  1814. element: d(n),
  1815. referenced: d(t),
  1816. property: r
  1817. }))
  1818. }
  1819. function a(e, t, n, r, i) {
  1820. this._eventBus = e,
  1821. this._canvas = t,
  1822. this._elementFactory = n,
  1823. this._elementRegistry = r,
  1824. this._translate = i
  1825. }
  1826. var s = e(197),
  1827. c = e(86),
  1828. l = e(12),
  1829. u = e(13).is,
  1830. p = l.hasExternalLabel,
  1831. f = l.getExternalLabelBounds,
  1832. h = e(11).isExpanded,
  1833. d = e(9).elementToString;
  1834. a.$inject = ["eventBus", "canvas", "elementFactory", "elementRegistry", "translate"],
  1835. t.exports = a,
  1836. a.prototype.add = function(e, t) {
  1837. var n, o, a = e.di,
  1838. s = this._translate;
  1839. if (u(a, "bpmndi:BPMNPlane")) n = this._elementFactory.createRoot(r(e)),
  1840. this._canvas.setRootElement(n);
  1841. else if (u(a, "bpmndi:BPMNShape")) {
  1842. var c = !h(e);
  1843. o = t && (t.hidden || t.collapsed);
  1844. var l = e.di.bounds;
  1845. n = this._elementFactory.createShape(r(e, {
  1846. collapsed: c,
  1847. hidden: o,
  1848. x: Math.round(l.x),
  1849. y: Math.round(l.y),
  1850. width: Math.round(l.width),
  1851. height: Math.round(l.height)
  1852. })),
  1853. u(e, "bpmn:BoundaryEvent") && this._attachBoundary(e, n),
  1854. this._canvas.addShape(n, t)
  1855. } else {
  1856. if (!u(a, "bpmndi:BPMNEdge")) throw new Error(s("unknown di {di} for element {semantic}", {
  1857. di: d(a),
  1858. semantic: d(e)
  1859. }));
  1860. var f = this._getSource(e),
  1861. m = this._getTarget(e);
  1862. o = t && (t.hidden || t.collapsed),
  1863. n = this._elementFactory.createConnection(r(e, {
  1864. hidden: o,
  1865. source: f,
  1866. target: m,
  1867. waypoints: i(e.di.waypoint)
  1868. })),
  1869. (u(e, "bpmn:DataInputAssociation") || u(e, "bpmn:DataOutputAssociation")) && (t = null),
  1870. this._canvas.addConnection(n, t)
  1871. }
  1872. return p(e) && this.addLabel(e, n),
  1873. this._eventBus.fire("bpmnElement.added", {
  1874. element: n
  1875. }),
  1876. n
  1877. },
  1878. a.prototype._attachBoundary = function(e, t) {
  1879. var n = this._translate,
  1880. r = e.attachedToRef;
  1881. if (!r) throw new Error(n("missing {semantic}#attachedToRef", {
  1882. semantic: d(e)
  1883. }));
  1884. var i = this._elementRegistry.get(r.id),
  1885. a = i && i.attachers;
  1886. if (!i) throw o(n, e, r, "attachedToRef");
  1887. t.host = i,
  1888. a || (i.attachers = a = []),
  1889. a.indexOf(t) === -1 && a.push(t)
  1890. },
  1891. a.prototype.addLabel = function(e, t) {
  1892. var n = f(e, t),
  1893. i = this._elementFactory.createLabel(r(e, {
  1894. id: e.id + "_label",
  1895. labelTarget: t,
  1896. type: "label",
  1897. hidden: t.hidden || !e.name,
  1898. x: Math.round(n.x),
  1899. y: Math.round(n.y),
  1900. width: Math.round(n.width),
  1901. height: Math.round(n.height)
  1902. }));
  1903. return this._canvas.addShape(i, t.parent)
  1904. },
  1905. a.prototype._getEnd = function(e, t) {
  1906. var n, r, i = e.$type,
  1907. a = this._translate;
  1908. if (r = e[t + "Ref"], "source" === t && "bpmn:DataInputAssociation" === i && (r = r && r[0]), ("source" === t && "bpmn:DataOutputAssociation" === i || "target" === t && "bpmn:DataInputAssociation" === i) && (r = e.$parent), n = r && this._getElement(r)) return n;
  1909. throw r ? o(a, e, r, t + "Ref") : new Error(a("{semantic}#{side} Ref not specified", {
  1910. semantic: d(e),
  1911. side: t
  1912. }))
  1913. },
  1914. a.prototype._getSource = function(e) {
  1915. return this._getEnd(e, "source")
  1916. },
  1917. a.prototype._getTarget = function(e) {
  1918. return this._getEnd(e, "target")
  1919. },
  1920. a.prototype._getElement = function(e) {
  1921. return this._elementRegistry.get(e.id)
  1922. }
  1923. },
  1924. {
  1925. 11 : 11,
  1926. 12 : 12,
  1927. 13 : 13,
  1928. 197 : 197,
  1929. 86 : 86,
  1930. 9 : 9
  1931. }],
  1932. 7 : [function(e, t, n) {
  1933. "use strict";
  1934. function r(e, t) {
  1935. return e.$instanceOf(t)
  1936. }
  1937. function i(e) {
  1938. return s(e.rootElements,
  1939. function(e) {
  1940. return r(e, "bpmn:Process") || r(e, "bpmn:Collaboration")
  1941. })
  1942. }
  1943. function o(e, t) {
  1944. function n(e, t) {
  1945. return function(n) {
  1946. e(n, t)
  1947. }
  1948. }
  1949. function o(e) {
  1950. z[e.id] = e
  1951. }
  1952. function s(e) {
  1953. return z[e.id]
  1954. }
  1955. function l(n, r) {
  1956. var i = n.gfx;
  1957. if (i) throw new Error(t("already rendered {element}", {
  1958. element: u(n)
  1959. }));
  1960. return e.element(n, r)
  1961. }
  1962. function f(t, n) {
  1963. return e.root(t, n)
  1964. }
  1965. function h(e, n) {
  1966. try {
  1967. var r = e.di && l(e, n);
  1968. return o(e),
  1969. r
  1970. } catch(n) {
  1971. d(n.message, {
  1972. element: e,
  1973. error: n
  1974. }),
  1975. console.error(t("failed to import {element}", {
  1976. element: u(e)
  1977. })),
  1978. console.error(n)
  1979. }
  1980. }
  1981. function d(t, n) {
  1982. e.error(t, n)
  1983. }
  1984. function m(e) {
  1985. var n = e.bpmnElement;
  1986. n ? n.di ? d(t("multiple DI elements defined for {element}", {
  1987. element: u(n)
  1988. }), {
  1989. element: n
  1990. }) : (p.bind(n, "di"), n.di = e) : d(t("no bpmnElement referenced in {element}", {
  1991. element: u(e)
  1992. }), {
  1993. element: e
  1994. })
  1995. }
  1996. function y(e) {
  1997. g(e.plane)
  1998. }
  1999. function g(e) {
  2000. m(e),
  2001. c(e.planeElement, v)
  2002. }
  2003. function v(e) {
  2004. m(e)
  2005. }
  2006. function x(e, n) {
  2007. var o = e.diagrams;
  2008. if (n && o.indexOf(n) === -1) throw new Error(t("diagram not part of bpmn:Definitions"));
  2009. if (!n && o && o.length && (n = o[0]), !n) throw new Error(t("no diagram to display"));
  2010. y(n);
  2011. var a = n.plane;
  2012. if (!a) throw new Error(t("no plane for {element}", {
  2013. element: u(n)
  2014. }));
  2015. var s = a.bpmnElement;
  2016. if (!s) {
  2017. if (s = i(e), !s) throw new Error(t("no process or collaboration to display"));
  2018. d(t("correcting missing bpmnElement on {plane} to {rootElement}", {
  2019. plane: u(a),
  2020. rootElement: u(s)
  2021. })),
  2022. a.bpmnElement = s,
  2023. m(a)
  2024. }
  2025. var c = f(s, a);
  2026. if (r(s, "bpmn:Process")) E(s, c);
  2027. else {
  2028. if (!r(s, "bpmn:Collaboration")) throw new Error(t("unsupported bpmnElement for {plane}: {rootElement}", {
  2029. plane: u(a),
  2030. rootElement: u(s)
  2031. }));
  2032. U(s, c),
  2033. w(e.rootElements, c)
  2034. }
  2035. b(q)
  2036. }
  2037. function b(e) {
  2038. c(e,
  2039. function(e) {
  2040. e()
  2041. })
  2042. }
  2043. function E(e, t) {
  2044. j(e, t),
  2045. M(e.ioSpecification, t),
  2046. N(e.artifacts, t),
  2047. o(e)
  2048. }
  2049. function w(e) {
  2050. var t = a(e,
  2051. function(e) {
  2052. return ! s(e) && r(e, "bpmn:Process") && e.laneSets
  2053. });
  2054. t.forEach(n(E))
  2055. }
  2056. function A(e, t) {
  2057. h(e, t)
  2058. }
  2059. function _(e, t) {
  2060. c(e, n(A, t))
  2061. }
  2062. function S(e, t) {
  2063. h(e, t)
  2064. }
  2065. function T(e, t) {
  2066. h(e, t)
  2067. }
  2068. function C(e, t) {
  2069. h(e, t)
  2070. }
  2071. function R(e, t) {
  2072. h(e, t)
  2073. }
  2074. function N(e, t) {
  2075. c(e,
  2076. function(e) {
  2077. r(e, "bpmn:Association") ? q.push(function() {
  2078. R(e, t)
  2079. }) : R(e, t)
  2080. })
  2081. }
  2082. function M(e, t) {
  2083. e && (c(e.dataInputs, n(T, t)), c(e.dataOutputs, n(C, t)))
  2084. }
  2085. function P(e, t) {
  2086. j(e, t),
  2087. N(e.artifacts, t)
  2088. }
  2089. function D(e, t) {
  2090. var i = h(e, t);
  2091. r(e, "bpmn:SubProcess") && P(e, i || t),
  2092. r(e, "bpmn:Activity") && M(e.ioSpecification, t),
  2093. q.push(function() {
  2094. c(e.dataInputAssociations, n(S, t)),
  2095. c(e.dataOutputAssociations, n(S, t))
  2096. })
  2097. }
  2098. function k(e, t) {
  2099. h(e, t)
  2100. }
  2101. function O(e, t) {
  2102. h(e, t)
  2103. }
  2104. function B(e, t) {
  2105. h(e, t)
  2106. }
  2107. function I(e, t) {
  2108. var n = h(e, t);
  2109. e.childLaneSet && L(e.childLaneSet, n || t),
  2110. W(e)
  2111. }
  2112. function L(e, t) {
  2113. c(e.lanes, n(I, t))
  2114. }
  2115. function F(e, t) {
  2116. c(e, n(L, t))
  2117. }
  2118. function j(e, t) {
  2119. e.laneSets && F(e.laneSets, t),
  2120. V(e.flowElements, t)
  2121. }
  2122. function V(e, n) {
  2123. c(e,
  2124. function(e) {
  2125. r(e, "bpmn:SequenceFlow") ? q.push(function() {
  2126. k(e, n)
  2127. }) : r(e, "bpmn:BoundaryEvent") ? q.unshift(function() {
  2128. B(e, n)
  2129. }) : r(e, "bpmn:FlowNode") ? D(e, n) : r(e, "bpmn:DataObject") || (r(e, "bpmn:DataStoreReference") ? O(e, n) : r(e, "bpmn:DataObjectReference") ? O(e, n) : d(t("unrecognized flowElement {element} in context {context}", {
  2130. element: u(e),
  2131. context: n ? u(n.businessObject) : "null"
  2132. }), {
  2133. element: e,
  2134. context: n
  2135. }))
  2136. })
  2137. }
  2138. function G(e, t) {
  2139. var n = h(e, t),
  2140. r = e.processRef;
  2141. r && E(r, n || t)
  2142. }
  2143. function U(e) {
  2144. c(e.participants, n(G)),
  2145. N(e.artifacts),
  2146. q.push(function() {
  2147. _(e.messageFlows)
  2148. })
  2149. }
  2150. function W(e) {
  2151. c(e.flowNodeRef,
  2152. function(t) {
  2153. var n = t.get("lanes");
  2154. n && n.push(e)
  2155. })
  2156. }
  2157. var z = {},
  2158. q = [];
  2159. return {
  2160. handleDefinitions: x
  2161. }
  2162. }
  2163. var a = e(81),
  2164. s = e(82),
  2165. c = e(83),
  2166. l = e(224),
  2167. u = e(9).elementToString,
  2168. p = new l({
  2169. name: "bpmnElement",
  2170. enumerable: !0
  2171. },
  2172. {
  2173. name: "di"
  2174. });
  2175. t.exports = o
  2176. },
  2177. {
  2178. 224 : 224,
  2179. 81 : 81,
  2180. 82 : 82,
  2181. 83 : 83,
  2182. 9 : 9
  2183. }],
  2184. 8 : [function(e, t, n) {
  2185. "use strict";
  2186. function r(e, t, n) {
  2187. function r(e) {
  2188. var t = {
  2189. root: function(e) {
  2190. return a.add(e)
  2191. },
  2192. element: function(e, t) {
  2193. return a.add(e, t)
  2194. },
  2195. error: function(e, t) {
  2196. l.push({
  2197. message: e,
  2198. context: t
  2199. })
  2200. }
  2201. },
  2202. n = new i(t, c);
  2203. n.handleDefinitions(e)
  2204. }
  2205. var o, a = e.get("bpmnImporter"),
  2206. s = e.get("eventBus"),
  2207. c = e.get("translate"),
  2208. l = [];
  2209. s.fire("import.render.start", {
  2210. definitions: t
  2211. });
  2212. try {
  2213. r(t)
  2214. } catch(e) {
  2215. o = e
  2216. }
  2217. s.fire("import.render.complete", {
  2218. error: o,
  2219. warnings: l
  2220. }),
  2221. n(o, l)
  2222. }
  2223. var i = e(7);
  2224. t.exports.importBpmnDiagram = r
  2225. },
  2226. {
  2227. 7 : 7
  2228. }],
  2229. 9 : [function(e, t, n) {
  2230. "use strict";
  2231. t.exports.elementToString = function(e) {
  2232. return e ? "<" + e.$type + (e.id ? ' id="' + e.id: "") + '" />': "<null>"
  2233. }
  2234. },
  2235. {}],
  2236. 10 : [function(e, t, n) {
  2237. t.exports = {
  2238. __depends__: [e(58)],
  2239. bpmnImporter: ["type", e(6)]
  2240. }
  2241. },
  2242. {
  2243. 58 : 58,
  2244. 6 : 6
  2245. }],
  2246. 11 : [function(e, t, n) {
  2247. "use strict";
  2248. var r = e(13).is,
  2249. i = e(13).getBusinessObject;
  2250. t.exports.isExpanded = function(e) {
  2251. return ! r(e, "bpmn:CallActivity") && (r(e, "bpmn:SubProcess") ? !!i(e).di.isExpanded: !r(e, "bpmn:Participant") || !!i(e).processRef)
  2252. },
  2253. t.exports.isInterrupting = function(e) {
  2254. return e && i(e).isInterrupting !== !1
  2255. },
  2256. t.exports.isEventSubProcess = function(e) {
  2257. return e && !!i(e).triggeredByEvent
  2258. }
  2259. },
  2260. {
  2261. 13 : 13
  2262. }],
  2263. 12 : [function(e, t, n) {
  2264. "use strict";
  2265. function r(e) {
  2266. var t = e.length / 2 - 1,
  2267. n = e[Math.floor(t)],
  2268. r = e[Math.ceil(t + .01)],
  2269. o = i(e),
  2270. a = Math.atan((r.y - n.y) / (r.x - n.x)),
  2271. s = o.x,
  2272. c = o.y;
  2273. return Math.abs(a) < Math.PI / 2 ? c -= l: s += l,
  2274. {
  2275. x: s,
  2276. y: c
  2277. }
  2278. }
  2279. function i(e) {
  2280. var t = e.length / 2 - 1,
  2281. n = e[Math.floor(t)],
  2282. r = e[Math.ceil(t + .01)];
  2283. return {
  2284. x: n.x + (r.x - n.x) / 2,
  2285. y: n.y + (r.y - n.y) / 2
  2286. }
  2287. }
  2288. function o(e) {
  2289. return e.waypoints ? r(e.waypoints) : {
  2290. x: e.x + e.width / 2,
  2291. y: e.y + e.height + c.height / 2
  2292. }
  2293. }
  2294. var a = e(197),
  2295. s = e(13).is,
  2296. c = t.exports.DEFAULT_LABEL_SIZE = {
  2297. width: 90,
  2298. height: 20
  2299. },
  2300. l = t.exports.FLOW_LABEL_INDENT = 15;
  2301. t.exports.hasExternalLabel = function(e) {
  2302. return s(e, "bpmn:Event") || s(e, "bpmn:Gateway") || s(e, "bpmn:DataStoreReference") || s(e, "bpmn:DataObjectReference") || s(e, "bpmn:SequenceFlow") || s(e, "bpmn:MessageFlow")
  2303. },
  2304. t.exports.getFlowLabelPosition = r,
  2305. t.exports.getWaypointsMid = i,
  2306. t.exports.getExternalLabelMid = o,
  2307. t.exports.getExternalLabelBounds = function(e, t) {
  2308. var n, r, i, s = e.di,
  2309. l = s.label;
  2310. return l && l.bounds ? (i = l.bounds, r = {
  2311. width: Math.max(c.width, i.width),
  2312. height: i.height
  2313. },
  2314. n = {
  2315. x: i.x + i.width / 2,
  2316. y: i.y + i.height / 2
  2317. }) : (n = o(t), r = c),
  2318. a({
  2319. x: n.x - r.width / 2,
  2320. y: n.y - r.height / 2
  2321. },
  2322. r)
  2323. }
  2324. },
  2325. {
  2326. 13 : 13,
  2327. 197 : 197
  2328. }],
  2329. 13 : [function(e, t, n) {
  2330. "use strict";
  2331. function r(e, t) {
  2332. var n = i(e);
  2333. return n && "function" == typeof n.$instanceOf && n.$instanceOf(t)
  2334. }
  2335. function i(e) {
  2336. return e && e.businessObject || e
  2337. }
  2338. t.exports.is = r,
  2339. t.exports.getBusinessObject = i
  2340. },
  2341. {}],
  2342. 14 : [function(e, t, n) {
  2343. "use strict";
  2344. function r(e) {
  2345. return e.join(";")
  2346. }
  2347. function i() {
  2348. o || (o = a(f), s.bind(o, ".backdrop", "click",
  2349. function(e) {
  2350. document.body.removeChild(o)
  2351. })),
  2352. document.body.appendChild(o)
  2353. }
  2354. var o, a = e(212),
  2355. s = e(211),
  2356. c = t.exports.BPMNIO_LOGO = "iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAMAAADypuvZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRFiMte9PrwldFwfcZPqtqN0+zEyOe1XLgjvuKncsJAZ70y6fXh3vDT////UrQV////G2zN+AAAABB0Uk5T////////////////////AOAjXRkAAAHDSURBVHjavJZJkoUgDEBJmAX8979tM8u3E6x20VlYJfFFMoL4vBDxATxZcakIOJTWSmxvKWVIkJ8jHvlRv1F2LFrVISCZI+tCtQx+XfewgVTfyY3plPiQEAzI3zWy+kR6NBhFBYeBuscJLOUuA2WVLpCjVIaFzrNQZArxAZKUQm6gsj37L9Cb7dnIBUKxENaaMJQqMpDXvSL+ktxdGRm2IsKgJGGPg7atwUG5CcFUEuSv+CwQqizTrvDTNXdMU2bMiDWZd8d7QIySWVRsb2vBBioxOFt4OinPBapL+neAb5KL5IJ8szOza2/DYoipUCx+CjO0Bpsv0V6mktNZ+k8rlABlWG0FrOpKYVo8DT3dBeLEjUBAj7moDogVii7nSS9QzZnFcOVBp1g2PyBQ3Vr5aIapN91VJy33HTJLC1iX2FY6F8gRdaAeIEfVONgtFCzZTmoLEdOjBDfsIOA6128gw3eu1shAajdZNAORxuQDJN5A5PbEG6gNIu24QJD5iNyRMZIr6bsHbCtCU/OaOaSvgkUyDMdDa1BXGf5HJ1To+/Ym6mCKT02Y+/Sa126ZKyd3jxhzpc1r8zVL6YM1Qy/kR4ABAFJ6iQUnivhAAAAAAElFTkSuQmCC",
  2357. l = r(["z-index: 1001", "position: fixed", "top: 0", "left: 0", "right: 0", "bottom: 0"]),
  2358. u = r(["width: 100%", "height: 100%", "background: rgba(0,0,0,0.2)"]),
  2359. p = r(["position: absolute", "left: 50%", "top: 40%", "margin: 0 -130px", "width: 260px", "padding: 10px", "background: white", "border: solid 1px #AAA", "border-radius: 3px", "font-family: Helvetica, Arial, sans-serif", "font-size: 14px", "line-height: 1.2em"]),
  2360. f = '<div class="bjs-powered-by-lightbox" style="' + l + '"><div class="backdrop" style="' + u + '"></div><div class="notice" style="' + p + '"><a href="http://bpmn.io" target="_blank" style="float: left; margin-right: 10px"><img src="data:image/png;base64,' + c + '"></a>Web-based tooling for BPMN, DMN and CMMN diagrams powered by <a href="http://bpmn.io" target="_blank">bpmn.io</a>.</div></div>';
  2361. t.exports.open = i
  2362. },
  2363. {
  2364. 211 : 211,
  2365. 212 : 212
  2366. }],
  2367. 15 : [function(e, t, n) {
  2368. t.exports = e(17)
  2369. },
  2370. {
  2371. 17 : 17
  2372. }],
  2373. 16 : [function(e, t, n) {
  2374. "use strict";
  2375. function r(e, t) {
  2376. s.call(this, e, t)
  2377. }
  2378. var i = e(194),
  2379. o = e(189),
  2380. a = e(197),
  2381. s = e(23),
  2382. c = e(19),
  2383. l = e(20);
  2384. r.prototype = Object.create(s.prototype),
  2385. t.exports = r,
  2386. r.prototype.fromXML = function(e, t, n, r) {
  2387. i(t) || (r = n, n = t, t = "bpmn:Definitions"),
  2388. o(n) && (r = n, n = {});
  2389. var s = new c(a({
  2390. model: this,
  2391. lax: !0
  2392. },
  2393. n)),
  2394. l = s.handler(t);
  2395. s.fromXML(e, l, r)
  2396. },
  2397. r.prototype.toXML = function(e, t, n) {
  2398. o(t) && (n = t, t = {});
  2399. var r = new l(t);
  2400. try {
  2401. var i = r.toXML(e);
  2402. n(null, i)
  2403. } catch(e) {
  2404. n(e)
  2405. }
  2406. }
  2407. },
  2408. {
  2409. 189 : 189,
  2410. 19 : 19,
  2411. 194 : 194,
  2412. 197 : 197,
  2413. 20 : 20,
  2414. 23 : 23
  2415. }],
  2416. 17 : [function(e, t, n) {
  2417. "use strict";
  2418. var r = e(197),
  2419. i = e(16),
  2420. o = {
  2421. bpmn: e(32),
  2422. bpmndi: e(33),
  2423. dc: e(34),
  2424. di: e(35)
  2425. };
  2426. t.exports = function(e, t) {
  2427. return new i(r({},
  2428. o, e), t)
  2429. }
  2430. },
  2431. {
  2432. 16 : 16,
  2433. 197 : 197,
  2434. 32 : 32,
  2435. 33 : 33,
  2436. 34 : 34,
  2437. 35 : 35
  2438. }],
  2439. 18 : [function(e, t, n) {
  2440. "use strict";
  2441. function r(e) {
  2442. return e.charAt(0).toUpperCase() + e.slice(1)
  2443. }
  2444. function i(e) {
  2445. return e.charAt(0).toLowerCase() + e.slice(1)
  2446. }
  2447. function o(e) {
  2448. return e.xml && "lowerCase" === e.xml.tagAlias
  2449. }
  2450. function a(e) {
  2451. return e.xml && e.xml.serialize
  2452. }
  2453. t.exports.aliasToName = function(e, t) {
  2454. return o(t) ? r(e) : e
  2455. },
  2456. t.exports.nameToAlias = function(e, t) {
  2457. return o(t) ? i(e) : e
  2458. },
  2459. t.exports.DEFAULT_NS_MAP = {
  2460. xsi: "http://www.w3.org/2001/XMLSchema-instance"
  2461. };
  2462. var s = t.exports.XSI_TYPE = "xsi:type";
  2463. t.exports.serializeAsType = function(e) {
  2464. return a(e) === s
  2465. },
  2466. t.exports.serializeAsProperty = function(e) {
  2467. return "property" === a(e)
  2468. }
  2469. },
  2470. {}],
  2471. 19 : [function(e, t, n) {
  2472. "use strict";
  2473. function r(e) {
  2474. var t = e.attributes;
  2475. return v(t,
  2476. function(e, t, n) {
  2477. var r, i;
  2478. return t.local ? (i = T(t.name, t.prefix), r = i.name) : r = t.prefix,
  2479. e[r] = t.value,
  2480. e
  2481. },
  2482. {})
  2483. }
  2484. function i(e, t, n) {
  2485. var r, i = T(t.value),
  2486. o = e.ns[i.prefix || ""],
  2487. a = i.localName,
  2488. s = o && n.getPackage(o);
  2489. s && (r = s.xml && s.xml.typePrefix, r && 0 === a.indexOf(r) && (a = a.slice(r.length)), t.value = s.prefix + ":" + a)
  2490. }
  2491. function o(e, t, n) {
  2492. var r, a;
  2493. if (r = e.uri || n) {
  2494. var s = t.getPackage(r);
  2495. a = s ? s.prefix: e.prefix,
  2496. e.prefix = a,
  2497. e.uri = r
  2498. }
  2499. x(e.attributes,
  2500. function(n) {
  2501. n.uri === D && "type" === n.local && i(e, n, t),
  2502. o(n, t, null)
  2503. })
  2504. }
  2505. function a(e) {
  2506. return new Error(e)
  2507. }
  2508. function s(e) {
  2509. return e.$descriptor
  2510. }
  2511. function c(e) {
  2512. E(this, e),
  2513. this.elementsById = {},
  2514. this.references = [],
  2515. this.warnings = [],
  2516. this.addReference = function(e) {
  2517. this.references.push(e)
  2518. },
  2519. this.addElement = function(e) {
  2520. if (!e) throw a("expected element");
  2521. var t, n = this.elementsById,
  2522. r = s(e),
  2523. i = r.idProperty;
  2524. if (i && (t = e.get(i.name))) {
  2525. if (n[t]) throw a("duplicate ID <" + t + ">");
  2526. n[t] = e
  2527. }
  2528. },
  2529. this.addWarning = function(e) {
  2530. this.warnings.push(e)
  2531. }
  2532. }
  2533. function l() {}
  2534. function u() {}
  2535. function p() {}
  2536. function f(e, t) {
  2537. this.property = e,
  2538. this.context = t
  2539. }
  2540. function h(e, t) {
  2541. this.element = t,
  2542. this.propertyDesc = e
  2543. }
  2544. function d() {}
  2545. function m(e, t, n) {
  2546. this.model = e,
  2547. this.type = e.getType(t),
  2548. this.context = n
  2549. }
  2550. function y(e, t, n) {
  2551. this.model = e,
  2552. this.context = n
  2553. }
  2554. function g(e) {
  2555. e instanceof S && (e = {
  2556. model: e
  2557. }),
  2558. E(this, {
  2559. lax: !1
  2560. },
  2561. e)
  2562. }
  2563. var v = e(87),
  2564. x = e(83),
  2565. b = e(82),
  2566. E = e(197),
  2567. w = e(92),
  2568. A = e(22),
  2569. _ = e(21).parser,
  2570. S = e(23),
  2571. T = e(28).parseName,
  2572. C = e(31),
  2573. R = C.coerceType,
  2574. N = C.isSimple,
  2575. M = e(18),
  2576. P = M.XSI_TYPE,
  2577. D = M.DEFAULT_NS_MAP.xsi,
  2578. k = M.serializeAsType,
  2579. O = M.aliasToName;
  2580. l.prototype.handleEnd = function() {},
  2581. l.prototype.handleText = function() {},
  2582. l.prototype.handleNode = function() {},
  2583. u.prototype = new l,
  2584. u.prototype.handleNode = function() {
  2585. return this
  2586. },
  2587. p.prototype = new l,
  2588. p.prototype.handleText = function(e) {
  2589. this.body = (this.body || "") + e
  2590. },
  2591. f.prototype = new p,
  2592. f.prototype.handleNode = function(e) {
  2593. if (this.element) throw a("expected no sub nodes");
  2594. return this.element = this.createReference(e),
  2595. this
  2596. },
  2597. f.prototype.handleEnd = function() {
  2598. this.element.id = this.body
  2599. },
  2600. f.prototype.createReference = function(e) {
  2601. return {
  2602. property: this.property.ns.name,
  2603. id: ""
  2604. }
  2605. },
  2606. h.prototype = new p,
  2607. h.prototype.handleEnd = function() {
  2608. var e = this.body,
  2609. t = this.element,
  2610. n = this.propertyDesc;
  2611. e = R(n.type, e),
  2612. n.isMany ? t.get(n.name).push(e) : t.set(n.name, e)
  2613. },
  2614. d.prototype = Object.create(p.prototype),
  2615. d.prototype.handleNode = function(e) {
  2616. var t = this,
  2617. n = this.element;
  2618. return n ? t = this.handleChild(e) : (n = this.element = this.createElement(e), this.context.addElement(n)),
  2619. t
  2620. },
  2621. m.prototype = new d,
  2622. m.prototype.addReference = function(e) {
  2623. this.context.addReference(e)
  2624. },
  2625. m.prototype.handleEnd = function() {
  2626. var e = this.body,
  2627. t = this.element,
  2628. n = s(t),
  2629. r = n.bodyProperty;
  2630. r && void 0 !== e && (e = R(r.type, e), t.set(r.name, e))
  2631. },
  2632. m.prototype.createElement = function(e) {
  2633. var t = r(e),
  2634. n = this.type,
  2635. i = s(n),
  2636. o = this.context,
  2637. a = new n({});
  2638. return x(t,
  2639. function(e, t) {
  2640. var n, r = i.propertiesByName[t];
  2641. r && r.isReference ? r.isMany ? (n = e.split(" "), x(n,
  2642. function(e) {
  2643. o.addReference({
  2644. element: a,
  2645. property: r.ns.name,
  2646. id: e
  2647. })
  2648. })) : o.addReference({
  2649. element: a,
  2650. property: r.ns.name,
  2651. id: e
  2652. }) : (r && (e = R(r.type, e)), a.set(t, e))
  2653. }),
  2654. a
  2655. },
  2656. m.prototype.getPropertyForNode = function(e) {
  2657. var t, n, r, i = T(e.local, e.prefix),
  2658. o = this.type,
  2659. c = this.model,
  2660. l = s(o),
  2661. u = i.name,
  2662. p = l.propertiesByName[u];
  2663. if (p) return k(p) && (r = e.attributes[P]) ? (t = r.value, n = c.getType(t), E({},
  2664. p, {
  2665. effectiveType: s(n).name
  2666. })) : p;
  2667. var f = c.getPackage(i.prefix);
  2668. if (f) {
  2669. if (t = i.prefix + ":" + O(i.localName, l.$pkg), n = c.getType(t), p = b(l.properties,
  2670. function(e) {
  2671. return ! e.isVirtual && !e.isReference && !e.isAttribute && n.hasType(e.type)
  2672. })) return E({},
  2673. p, {
  2674. effectiveType: s(n).name
  2675. })
  2676. } else if (p = b(l.properties,
  2677. function(e) {
  2678. return ! e.isReference && !e.isAttribute && "Element" === e.type
  2679. })) return p;
  2680. throw a("unrecognized element <" + i.name + ">")
  2681. },
  2682. m.prototype.toString = function() {
  2683. return "ElementDescriptor[" + s(this.type).name + "]"
  2684. },
  2685. m.prototype.valueHandler = function(e, t) {
  2686. return new h(e, t)
  2687. },
  2688. m.prototype.referenceHandler = function(e) {
  2689. return new f(e, this.context)
  2690. },
  2691. m.prototype.handler = function(e) {
  2692. return "Element" === e ? new y(this.model, e, this.context) : new m(this.model, e, this.context)
  2693. },
  2694. m.prototype.handleChild = function(e) {
  2695. var t, n, r, i;
  2696. if (t = this.getPropertyForNode(e), r = this.element, n = t.effectiveType || t.type, N(n)) return this.valueHandler(t, r);
  2697. i = t.isReference ? this.referenceHandler(t).handleNode(e) : this.handler(n).handleNode(e);
  2698. var o = i.element;
  2699. return void 0 !== o && (t.isMany ? r.get(t.name).push(o) : r.set(t.name, o), t.isReference ? (E(o, {
  2700. element: r
  2701. }), this.context.addReference(o)) : o.$parent = r),
  2702. i
  2703. },
  2704. y.prototype = Object.create(d.prototype),
  2705. y.prototype.createElement = function(e) {
  2706. var t = e.name,
  2707. n = e.prefix,
  2708. r = e.ns[n],
  2709. i = e.attributes;
  2710. return this.model.createAny(t, r, i)
  2711. },
  2712. y.prototype.handleChild = function(e) {
  2713. var t, n = new y(this.model, "Element", this.context).handleNode(e),
  2714. r = this.element,
  2715. i = n.element;
  2716. return void 0 !== i && (t = r.$children = r.$children || [], t.push(i), i.$parent = r),
  2717. n
  2718. },
  2719. y.prototype.handleText = function(e) {
  2720. this.body = this.body || "" + e
  2721. },
  2722. y.prototype.handleEnd = function() {
  2723. this.body && (this.element.$body = this.body)
  2724. },
  2725. g.prototype.fromXML = function(e, t, n) {
  2726. function r() {
  2727. var e, t, n = y.elementsById,
  2728. r = y.references;
  2729. for (e = 0; t = r[e]; e++) {
  2730. var i = t.element,
  2731. o = n[t.id],
  2732. a = s(i).propertiesByName[t.property];
  2733. if (o || y.addWarning({
  2734. message: "unresolved reference <" + t.id + ">",
  2735. element: t.element,
  2736. property: t.property,
  2737. value: t.id
  2738. }), a.isMany) {
  2739. var c = i.get(a.name),
  2740. l = c.indexOf(t);
  2741. l === -1 && (l = c.length),
  2742. o ? c[l] = o: c.splice(l, 1)
  2743. } else i.set(a.name, o)
  2744. }
  2745. }
  2746. function i(e) {
  2747. v.pop().handleEnd()
  2748. }
  2749. function l(e) {
  2750. var t = v.peek();
  2751. o(e, h);
  2752. try {
  2753. v.push(t.handleNode(e))
  2754. } catch(t) {
  2755. var n = this.line,
  2756. r = this.column,
  2757. i = "unparsable content <" + e.name + "> detected\n\tline: " + n + "\n\tcolumn: " + r + "\n\tnested error: " + t.message;
  2758. if (!d) throw console.error("could not parse document"),
  2759. console.error(t),
  2760. a(i);
  2761. y.addWarning({
  2762. message: i,
  2763. error: t
  2764. }),
  2765. console.warn("could not parse node"),
  2766. console.warn(t),
  2767. v.push(new u)
  2768. }
  2769. }
  2770. function p(e) {
  2771. v.peek().handleText(e)
  2772. }
  2773. var f = t.rootHandler;
  2774. t instanceof m ? (f = t, t = {}) : "string" == typeof t ? (f = this.handler(t), t = {}) : "string" == typeof f && (f = this.handler(f));
  2775. var h = this.model,
  2776. d = this.lax,
  2777. y = new c(E({},
  2778. t, {
  2779. rootHandler: f
  2780. })),
  2781. g = new _(!0, {
  2782. xmlns: !0,
  2783. trim: !0
  2784. }),
  2785. v = new A;
  2786. f.context = y,
  2787. v.push(f),
  2788. g.onopentag = l,
  2789. g.oncdata = g.ontext = p,
  2790. g.onclosetag = i,
  2791. g.onend = r,
  2792. w(function() {
  2793. var t;
  2794. try {
  2795. g.write(e).close()
  2796. } catch(e) {
  2797. t = e
  2798. }
  2799. n(t, t ? void 0 : f.element, y)
  2800. })
  2801. },
  2802. g.prototype.handler = function(e) {
  2803. return new m(this.model, e)
  2804. },
  2805. t.exports = g,
  2806. t.exports.ElementHandler = m
  2807. },
  2808. {
  2809. 18 : 18,
  2810. 197 : 197,
  2811. 21 : 21,
  2812. 22 : 22,
  2813. 23 : 23,
  2814. 28 : 28,
  2815. 31 : 31,
  2816. 82 : 82,
  2817. 83 : 83,
  2818. 87 : 87,
  2819. 92 : 92
  2820. }],
  2821. 20 : [function(e, t, n) {
  2822. "use strict";
  2823. function r(e) {
  2824. return E(e) ? e: (e.prefix ? e.prefix + ":": "") + e.localName
  2825. }
  2826. function i(e) {
  2827. function t(t) {
  2828. return e.used[t.uri]
  2829. }
  2830. function n(e) {
  2831. var t = "xmlns" + (e.prefix ? ":" + e.prefix: "");
  2832. return {
  2833. name: t,
  2834. value: e.uri
  2835. }
  2836. }
  2837. var r = [].concat(e.wellknown, e.custom);
  2838. return x(w(r, t), n)
  2839. }
  2840. function o(e, t) {
  2841. return t.isGeneric ? t.name: A({
  2842. localName: C(t.ns.localName, t.$pkg)
  2843. },
  2844. e)
  2845. }
  2846. function a(e, t) {
  2847. return A({
  2848. localName: t.ns.localName
  2849. },
  2850. e)
  2851. }
  2852. function s(e) {
  2853. var t = e.$descriptor;
  2854. return w(t.properties,
  2855. function(t) {
  2856. var n = t.name;
  2857. if (t.isVirtual) return ! 1;
  2858. if (!e.hasOwnProperty(n)) return ! 1;
  2859. var r = e[n];
  2860. return r !== t.
  2861. default && (null !== r && (!t.isMany || r.length))
  2862. })
  2863. }
  2864. function c(e) {
  2865. return e = E(e) ? e: "" + e,
  2866. e.replace(P,
  2867. function(e) {
  2868. return "&#" + O[e] + ";"
  2869. })
  2870. }
  2871. function l(e) {
  2872. return w(e,
  2873. function(e) {
  2874. return e.isAttr
  2875. })
  2876. }
  2877. function u(e) {
  2878. return w(e,
  2879. function(e) {
  2880. return ! e.isAttr
  2881. })
  2882. }
  2883. function p(e, t) {
  2884. this.ns = t
  2885. }
  2886. function f() {}
  2887. function h(e) {
  2888. this.ns = e
  2889. }
  2890. function d(e, t) {
  2891. this.body = [],
  2892. this.attrs = [],
  2893. this.parent = e,
  2894. this.ns = t
  2895. }
  2896. function m(e, t) {
  2897. d.call(this, e, t)
  2898. }
  2899. function y() {
  2900. this.value = "",
  2901. this.write = function(e) {
  2902. this.value += e
  2903. }
  2904. }
  2905. function g(e, t) {
  2906. var n = [""];
  2907. this.append = function(t) {
  2908. return e.write(t),
  2909. this
  2910. },
  2911. this.appendNewLine = function() {
  2912. return t && e.write("\n"),
  2913. this
  2914. },
  2915. this.appendIndent = function() {
  2916. return t && e.write(n.join(" ")),
  2917. this
  2918. },
  2919. this.indent = function() {
  2920. return n.push(""),
  2921. this
  2922. },
  2923. this.unindent = function() {
  2924. return n.pop(),
  2925. this
  2926. }
  2927. }
  2928. function v(e) {
  2929. function t(t, n) {
  2930. var r = n || new y,
  2931. i = new g(r, e.format);
  2932. if (e.preamble && i.append(M), (new d).build(t).serializeTo(i), !n) return r.value
  2933. }
  2934. return e = A({
  2935. format: !1,
  2936. preamble: !0
  2937. },
  2938. e || {}),
  2939. {
  2940. toXML: t
  2941. }
  2942. }
  2943. var x = e(86),
  2944. b = e(83),
  2945. E = e(194),
  2946. w = e(81),
  2947. A = e(197),
  2948. _ = e(31),
  2949. S = e(28).parseName,
  2950. T = e(18),
  2951. C = T.nameToAlias,
  2952. R = T.serializeAsType,
  2953. N = T.serializeAsProperty,
  2954. M = '<?xml version="1.0" encoding="UTF-8"?>\n',
  2955. P = /(<|>|'|"|&|\n\r|\n)/g,
  2956. D = T.DEFAULT_NS_MAP,
  2957. k = T.XSI_TYPE,
  2958. O = {
  2959. "\n": "10",
  2960. "\n\r": "10",
  2961. '"': "34",
  2962. "'": "39",
  2963. "<": "60",
  2964. ">": "62",
  2965. "&": "38"
  2966. };
  2967. p.prototype.build = function(e) {
  2968. return this.element = e,
  2969. this
  2970. },
  2971. p.prototype.serializeTo = function(e) {
  2972. e.appendIndent().append("<" + r(this.ns) + ">" + this.element.id + "</" + r(this.ns) + ">").appendNewLine()
  2973. },
  2974. f.prototype.serializeValue = f.prototype.serializeTo = function(e) {
  2975. var t = this.escape;
  2976. t && e.append("<![CDATA["),
  2977. e.append(this.value),
  2978. t && e.append("]]>")
  2979. },
  2980. f.prototype.build = function(e, t) {
  2981. return this.value = t,
  2982. "String" === e.type && t.search(P) !== -1 && (this.escape = !0),
  2983. this
  2984. },
  2985. h.prototype = new f,
  2986. h.prototype.serializeTo = function(e) {
  2987. e.appendIndent().append("<" + r(this.ns) + ">"),
  2988. this.serializeValue(e),
  2989. e.append("</" + r(this.ns) + ">").appendNewLine()
  2990. },
  2991. d.prototype.build = function(e) {
  2992. this.element = e;
  2993. var t = this.parseNsAttributes(e);
  2994. if (this.ns || (this.ns = this.nsTagName(e.$descriptor)), e.$descriptor.isGeneric) this.parseGeneric(e);
  2995. else {
  2996. var n = s(e);
  2997. this.parseAttributes(l(n)),
  2998. this.parseContainments(u(n)),
  2999. this.parseGenericAttributes(e, t)
  3000. }
  3001. return this
  3002. },
  3003. d.prototype.nsTagName = function(e) {
  3004. var t = this.logNamespaceUsed(e.ns);
  3005. return o(t, e)
  3006. },
  3007. d.prototype.nsPropertyTagName = function(e) {
  3008. var t = this.logNamespaceUsed(e.ns);
  3009. return a(t, e)
  3010. },
  3011. d.prototype.isLocalNs = function(e) {
  3012. return e.uri === this.ns.uri
  3013. },
  3014. d.prototype.nsAttributeName = function(e) {
  3015. var t;
  3016. if (t = E(e) ? S(e) : e.ns, e.inherited) return {
  3017. localName: t.localName
  3018. };
  3019. var n = this.logNamespaceUsed(t);
  3020. return this.isLocalNs(n) ? {
  3021. localName: t.localName
  3022. }: A({
  3023. localName: t.localName
  3024. },
  3025. n)
  3026. },
  3027. d.prototype.parseGeneric = function(e) {
  3028. var t = this,
  3029. n = this.body,
  3030. r = this.attrs;
  3031. b(e,
  3032. function(e, i) {
  3033. "$body" === i ? n.push((new f).build({
  3034. type: "String"
  3035. },
  3036. e)) : "$children" === i ? b(e,
  3037. function(e) {
  3038. n.push(new d(t).build(e))
  3039. }) : 0 !== i.indexOf("$") && r.push({
  3040. name: i,
  3041. value: c(e)
  3042. })
  3043. })
  3044. },
  3045. d.prototype.parseNsAttributes = function(e) {
  3046. var t = this,
  3047. n = e.$attrs,
  3048. r = e.$model,
  3049. i = [];
  3050. return b(n,
  3051. function(e, n) {
  3052. var o, a = S(n);
  3053. "xmlns" === a.prefix && (o = {
  3054. prefix: a.localName,
  3055. uri: e
  3056. }),
  3057. a.prefix || "xmlns" !== a.localName || (o = {
  3058. uri: e
  3059. }),
  3060. o ? r.getPackage(e) ? t.logNamespace(o, !0) : t.logNamespaceUsed(o) : i.push({
  3061. name: n,
  3062. value: e
  3063. })
  3064. }),
  3065. i
  3066. },
  3067. d.prototype.parseGenericAttributes = function(e, t) {
  3068. var n = this;
  3069. b(t,
  3070. function(t) {
  3071. if (t.name !== k) try {
  3072. n.addAttribute(n.nsAttributeName(t.name), t.value)
  3073. } catch(n) {
  3074. console.warn("missing namespace information for ", t.name, "=", t.value, "on", e, n)
  3075. }
  3076. })
  3077. },
  3078. d.prototype.parseContainments = function(e) {
  3079. var t = this,
  3080. n = this.body,
  3081. r = this.element;
  3082. b(e,
  3083. function(e) {
  3084. var i = r.get(e.name),
  3085. o = e.isReference,
  3086. a = e.isMany,
  3087. s = t.nsPropertyTagName(e);
  3088. if (a || (i = [i]), e.isBody) n.push((new f).build(e, i[0]));
  3089. else if (_.isSimple(e.type)) b(i,
  3090. function(t) {
  3091. n.push(new h(s).build(e, t))
  3092. });
  3093. else if (o) b(i,
  3094. function(e) {
  3095. n.push(new p(t, s).build(e))
  3096. });
  3097. else {
  3098. var c = R(e),
  3099. l = N(e);
  3100. b(i,
  3101. function(e) {
  3102. var r;
  3103. r = c ? new m(t, s) : l ? new d(t, s) : new d(t),
  3104. n.push(r.build(e))
  3105. })
  3106. }
  3107. })
  3108. },
  3109. d.prototype.getNamespaces = function() {
  3110. var e = this.namespaces,
  3111. t = this.parent;
  3112. return e || (e = this.namespaces = t ? t.getNamespaces() : {
  3113. prefixMap: {},
  3114. uriMap: {},
  3115. used: {},
  3116. wellknown: [],
  3117. custom: []
  3118. }),
  3119. e
  3120. },
  3121. d.prototype.logNamespace = function(e, t) {
  3122. var n = this.getNamespaces(),
  3123. r = e.uri,
  3124. i = n.uriMap[r];
  3125. return i || (n.uriMap[r] = e, t ? n.wellknown.push(e) : n.custom.push(e)),
  3126. n.prefixMap[e.prefix] = r,
  3127. e
  3128. },
  3129. d.prototype.logNamespaceUsed = function(e) {
  3130. var t = this.element,
  3131. n = t.$model,
  3132. r = this.getNamespaces(),
  3133. i = e.prefix,
  3134. o = D[i] || n && (n.getPackage(i) || {}).uri,
  3135. a = e.uri || r.prefixMap[i] || o;
  3136. if (!a) throw new Error("no namespace uri given for prefix <" + e.prefix + ">");
  3137. return e = r.uriMap[a],
  3138. e || (e = this.logNamespace({
  3139. prefix: i,
  3140. uri: a
  3141. },
  3142. o)),
  3143. r.used[e.uri] || (r.used[e.uri] = e),
  3144. e
  3145. },
  3146. d.prototype.parseAttributes = function(e) {
  3147. var t = this,
  3148. n = this.element;
  3149. b(e,
  3150. function(e) {
  3151. var r = n.get(e.name);
  3152. if (e.isReference) if (e.isMany) {
  3153. var i = [];
  3154. b(r,
  3155. function(e) {
  3156. i.push(e.id)
  3157. }),
  3158. r = i.join(" ")
  3159. } else r = r.id;
  3160. t.addAttribute(t.nsAttributeName(e), r)
  3161. })
  3162. },
  3163. d.prototype.addAttribute = function(e, t) {
  3164. var n = this.attrs;
  3165. E(t) && (t = c(t)),
  3166. n.push({
  3167. name: e,
  3168. value: t
  3169. })
  3170. },
  3171. d.prototype.serializeAttributes = function(e) {
  3172. var t = this.attrs,
  3173. n = !this.parent;
  3174. n && (t = i(this.namespaces).concat(t)),
  3175. b(t,
  3176. function(t) {
  3177. e.append(" ").append(r(t.name)).append('="').append(t.value).append('"')
  3178. })
  3179. },
  3180. d.prototype.serializeTo = function(e) {
  3181. var t = this.body.length,
  3182. n = !(1 === this.body.length && this.body[0] instanceof f);
  3183. e.appendIndent().append("<" + r(this.ns)),
  3184. this.serializeAttributes(e),
  3185. e.append(t ? ">": " />"),
  3186. t && (n && e.appendNewLine().indent(), b(this.body,
  3187. function(t) {
  3188. t.serializeTo(e)
  3189. }), n && e.unindent().appendIndent(), e.append("</" + r(this.ns) + ">")),
  3190. e.appendNewLine()
  3191. },
  3192. m.prototype = new d,
  3193. m.prototype.build = function(e) {
  3194. var t = e.$descriptor;
  3195. this.element = e,
  3196. this.typeNs = this.nsTagName(t);
  3197. var n = this.typeNs,
  3198. r = e.$model.getPackage(n.uri),
  3199. i = r.xml && r.xml.typePrefix || "";
  3200. return this.addAttribute(this.nsAttributeName(k), (n.prefix ? n.prefix + ":": "") + i + t.ns.localName),
  3201. d.prototype.build.call(this, e)
  3202. },
  3203. m.prototype.isLocalNs = function(e) {
  3204. return e.uri === this.typeNs.uri
  3205. },
  3206. t.exports = v
  3207. },
  3208. {
  3209. 18 : 18,
  3210. 194 : 194,
  3211. 197 : 197,
  3212. 28 : 28,
  3213. 31 : 31,
  3214. 81 : 81,
  3215. 83 : 83,
  3216. 86 : 86
  3217. }],
  3218. 21 : [function(e, t, n) { (function(t) { !
  3219. function(n) {
  3220. function r(e, t) {
  3221. if (! (this instanceof r)) return new r(e, t);
  3222. var i = this;
  3223. o(i),
  3224. i.q = i.c = "",
  3225. i.bufferCheckPosition = n.MAX_BUFFER_LENGTH,
  3226. i.opt = t || {},
  3227. i.opt.lowercase = i.opt.lowercase || i.opt.lowercasetags,
  3228. i.looseCase = i.opt.lowercase ? "toLowerCase": "toUpperCase",
  3229. i.tags = [],
  3230. i.closed = i.closedRoot = i.sawRoot = !1,
  3231. i.tag = i.error = null,
  3232. i.strict = !!e,
  3233. i.noscript = !(!e && !i.opt.noscript),
  3234. i.state = W.BEGIN,
  3235. i.ENTITIES = Object.create(n.ENTITIES),
  3236. i.attribList = [],
  3237. i.opt.xmlns && (i.ns = Object.create(V)),
  3238. i.trackPosition = i.opt.position !== !1,
  3239. i.trackPosition && (i.position = i.line = i.column = 0),
  3240. h(i, "onready")
  3241. }
  3242. function i(e) {
  3243. for (var t = Math.max(n.MAX_BUFFER_LENGTH, 10), r = 0, i = 0, o = C.length; i < o; i++) {
  3244. var a = e[C[i]].length;
  3245. if (a > t) switch (C[i]) {
  3246. case "textNode":
  3247. m(e);
  3248. break;
  3249. case "cdata":
  3250. d(e, "oncdata", e.cdata),
  3251. e.cdata = "";
  3252. break;
  3253. case "script":
  3254. d(e, "onscript", e.script),
  3255. e.script = "";
  3256. break;
  3257. default:
  3258. g(e, "Max buffer length exceeded: " + C[i])
  3259. }
  3260. r = Math.max(r, a)
  3261. }
  3262. e.bufferCheckPosition = n.MAX_BUFFER_LENGTH - r + e.position
  3263. }
  3264. function o(e) {
  3265. for (var t = 0,
  3266. n = C.length; t < n; t++) e[C[t]] = ""
  3267. }
  3268. function a(e) {
  3269. m(e),
  3270. "" !== e.cdata && (d(e, "oncdata", e.cdata), e.cdata = ""),
  3271. "" !== e.script && (d(e, "onscript", e.script), e.script = "")
  3272. }
  3273. function s(e, t) {
  3274. return new c(e, t)
  3275. }
  3276. function c(e, t) {
  3277. if (! (this instanceof c)) return new c(e, t);
  3278. R.apply(this),
  3279. this._parser = new r(e, t),
  3280. this.writable = !0,
  3281. this.readable = !0;
  3282. var n = this;
  3283. this._parser.onend = function() {
  3284. n.emit("end")
  3285. },
  3286. this._parser.onerror = function(e) {
  3287. n.emit("error", e),
  3288. n._parser.error = null
  3289. },
  3290. this._decoder = null,
  3291. N.forEach(function(e) {
  3292. Object.defineProperty(n, "on" + e, {
  3293. get: function() {
  3294. return n._parser["on" + e]
  3295. },
  3296. set: function(t) {
  3297. return t ? void n.on(e, t) : (n.removeAllListeners(e), n._parser["on" + e] = t)
  3298. },
  3299. enumerable: !0,
  3300. configurable: !1
  3301. })
  3302. })
  3303. }
  3304. function l(e) {
  3305. return e.split("").reduce(function(e, t) {
  3306. return e[t] = !0,
  3307. e
  3308. },
  3309. {})
  3310. }
  3311. function u(e) {
  3312. return "[object RegExp]" === Object.prototype.toString.call(e)
  3313. }
  3314. function p(e, t) {
  3315. return u(e) ? !!t.match(e) : e[t]
  3316. }
  3317. function f(e, t) {
  3318. return ! p(e, t)
  3319. }
  3320. function h(e, t, n) {
  3321. e[t] && e[t](n)
  3322. }
  3323. function d(e, t, n) {
  3324. e.textNode && m(e),
  3325. h(e, t, n)
  3326. }
  3327. function m(e) {
  3328. e.textNode = y(e.opt, e.textNode),
  3329. e.textNode && h(e, "ontext", e.textNode),
  3330. e.textNode = ""
  3331. }
  3332. function y(e, t) {
  3333. return e.trim && (t = t.trim()),
  3334. e.normalize && (t = t.replace(/\s+/g, " ")),
  3335. t
  3336. }
  3337. function g(e, t) {
  3338. return m(e),
  3339. e.trackPosition && (t += "\nLine: " + e.line + "\nColumn: " + e.column + "\nChar: " + e.c),
  3340. t = new Error(t),
  3341. e.error = t,
  3342. h(e, "onerror", t),
  3343. e
  3344. }
  3345. function v(e) {
  3346. return e.closedRoot || x(e, "Unclosed root tag"),
  3347. e.state !== W.BEGIN && e.state !== W.TEXT && g(e, "Unexpected end"),
  3348. m(e),
  3349. e.c = "",
  3350. e.closed = !0,
  3351. h(e, "onend"),
  3352. r.call(e, e.strict, e.opt),
  3353. e
  3354. }
  3355. function x(e, t) {
  3356. if ("object" != typeof e || !(e instanceof r)) throw new Error("bad call to strictFail");
  3357. e.strict && g(e, t)
  3358. }
  3359. function b(e) {
  3360. e.strict || (e.tagName = e.tagName[e.looseCase]());
  3361. var t = e.tags[e.tags.length - 1] || e,
  3362. n = e.tag = {
  3363. name: e.tagName,
  3364. attributes: {}
  3365. };
  3366. e.opt.xmlns && (n.ns = t.ns),
  3367. e.attribList.length = 0
  3368. }
  3369. function E(e, t) {
  3370. var n = e.indexOf(":"),
  3371. r = n < 0 ? ["", e] : e.split(":"),
  3372. i = r[0],
  3373. o = r[1];
  3374. return t && "xmlns" === e && (i = "xmlns", o = ""),
  3375. {
  3376. prefix: i,
  3377. local: o
  3378. }
  3379. }
  3380. function w(e) {
  3381. if (e.strict || (e.attribName = e.attribName[e.looseCase]()), e.attribList.indexOf(e.attribName) !== -1 || e.tag.attributes.hasOwnProperty(e.attribName)) return e.attribName = e.attribValue = "";
  3382. if (e.opt.xmlns) {
  3383. var t = E(e.attribName, !0),
  3384. n = t.prefix,
  3385. r = t.local;
  3386. if ("xmlns" === n) if ("xml" === r && e.attribValue !== F) x(e, "xml: prefix must be bound to " + F + "\nActual: " + e.attribValue);
  3387. else if ("xmlns" === r && e.attribValue !== j) x(e, "xmlns: prefix must be bound to " + j + "\nActual: " + e.attribValue);
  3388. else {
  3389. var i = e.tag,
  3390. o = e.tags[e.tags.length - 1] || e;
  3391. i.ns === o.ns && (i.ns = Object.create(o.ns)),
  3392. i.ns[r] = e.attribValue
  3393. }
  3394. e.attribList.push([e.attribName, e.attribValue])
  3395. } else e.tag.attributes[e.attribName] = e.attribValue,
  3396. d(e, "onattribute", {
  3397. name: e.attribName,
  3398. value: e.attribValue
  3399. });
  3400. e.attribName = e.attribValue = ""
  3401. }
  3402. function A(e, t) {
  3403. if (e.opt.xmlns) {
  3404. var n = e.tag,
  3405. r = E(e.tagName);
  3406. n.prefix = r.prefix,
  3407. n.local = r.local,
  3408. n.uri = n.ns[r.prefix] || "",
  3409. n.prefix && !n.uri && (x(e, "Unbound namespace prefix: " + JSON.stringify(e.tagName)), n.uri = r.prefix);
  3410. var i = e.tags[e.tags.length - 1] || e;
  3411. n.ns && i.ns !== n.ns && Object.keys(n.ns).forEach(function(t) {
  3412. d(e, "onopennamespace", {
  3413. prefix: t,
  3414. uri: n.ns[t]
  3415. })
  3416. });
  3417. for (var o = 0,
  3418. a = e.attribList.length; o < a; o++) {
  3419. var s = e.attribList[o],
  3420. c = s[0],
  3421. l = s[1],
  3422. u = E(c, !0),
  3423. p = u.prefix,
  3424. f = u.local,
  3425. h = "" == p ? "": n.ns[p] || "",
  3426. m = {
  3427. name: c,
  3428. value: l,
  3429. prefix: p,
  3430. local: f,
  3431. uri: h
  3432. };
  3433. p && "xmlns" != p && !h && (x(e, "Unbound namespace prefix: " + JSON.stringify(p)), m.uri = p),
  3434. e.tag.attributes[c] = m,
  3435. d(e, "onattribute", m)
  3436. }
  3437. e.attribList.length = 0
  3438. }
  3439. e.tag.isSelfClosing = !!t,
  3440. e.sawRoot = !0,
  3441. e.tags.push(e.tag),
  3442. d(e, "onopentag", e.tag),
  3443. t || (e.noscript || "script" !== e.tagName.toLowerCase() ? e.state = W.TEXT: e.state = W.SCRIPT, e.tag = null, e.tagName = ""),
  3444. e.attribName = e.attribValue = "",
  3445. e.attribList.length = 0
  3446. }
  3447. function _(e) {
  3448. if (!e.tagName) return x(e, "Weird empty close tag."),
  3449. e.textNode += "</>",
  3450. void(e.state = W.TEXT);
  3451. if (e.script) {
  3452. if ("script" !== e.tagName) return e.script += "</" + e.tagName + ">",
  3453. e.tagName = "",
  3454. void(e.state = W.SCRIPT);
  3455. d(e, "onscript", e.script),
  3456. e.script = ""
  3457. }
  3458. var t = e.tags.length,
  3459. n = e.tagName;
  3460. e.strict || (n = n[e.looseCase]());
  3461. for (var r = n; t--;) {
  3462. var i = e.tags[t];
  3463. if (i.name === r) break;
  3464. x(e, "Unexpected close tag")
  3465. }
  3466. if (t < 0) return x(e, "Unmatched closing tag: " + e.tagName),
  3467. e.textNode += "</" + e.tagName + ">",
  3468. void(e.state = W.TEXT);
  3469. e.tagName = n;
  3470. for (var o = e.tags.length; o-->t;) {
  3471. var a = e.tag = e.tags.pop();
  3472. e.tagName = e.tag.name,
  3473. d(e, "onclosetag", e.tagName);
  3474. var s = {};
  3475. for (var c in a.ns) s[c] = a.ns[c];
  3476. var l = e.tags[e.tags.length - 1] || e;
  3477. e.opt.xmlns && a.ns !== l.ns && Object.keys(a.ns).forEach(function(t) {
  3478. var n = a.ns[t];
  3479. d(e, "onclosenamespace", {
  3480. prefix: t,
  3481. uri: n
  3482. })
  3483. })
  3484. }
  3485. 0 === t && (e.closedRoot = !0),
  3486. e.tagName = e.attribValue = e.attribName = "",
  3487. e.attribList.length = 0,
  3488. e.state = W.TEXT
  3489. }
  3490. function S(e) {
  3491. var t, n = e.entity,
  3492. r = n.toLowerCase(),
  3493. i = "";
  3494. return e.ENTITIES[n] ? e.ENTITIES[n] : e.ENTITIES[r] ? e.ENTITIES[r] : (n = r, "#" === n.charAt(0) && ("x" === n.charAt(1) ? (n = n.slice(2), t = parseInt(n, 16), i = t.toString(16)) : (n = n.slice(1), t = parseInt(n, 10), i = t.toString(10))), n = n.replace(/^0+/, ""), i.toLowerCase() !== n ? (x(e, "Invalid character entity"), "&" + e.entity + ";") : String.fromCodePoint(t))
  3495. }
  3496. function T(e) {
  3497. var t = this;
  3498. if (this.error) throw this.error;
  3499. if (t.closed) return g(t, "Cannot write after close. Assign an onready handler.");
  3500. if (null === e) return v(t);
  3501. for (var n = 0,
  3502. r = ""; t.c = r = e.charAt(n++);) switch (t.trackPosition && (t.position++, "\n" === r ? (t.line++, t.column = 0) : t.column++), t.state) {
  3503. case W.BEGIN:
  3504. "<" === r ? (t.state = W.OPEN_WAKA, t.startTagPosition = t.position) : f(M, r) && (x(t, "Non-whitespace before first tag."), t.textNode = r, t.state = W.TEXT);
  3505. continue;
  3506. case W.TEXT:
  3507. if (t.sawRoot && !t.closedRoot) {
  3508. for (var o = n - 1; r && "<" !== r && "&" !== r;) r = e.charAt(n++),
  3509. r && t.trackPosition && (t.position++, "\n" === r ? (t.line++, t.column = 0) : t.column++);
  3510. t.textNode += e.substring(o, n - 1)
  3511. }
  3512. "<" === r ? (t.state = W.OPEN_WAKA, t.startTagPosition = t.position) : (!f(M, r) || t.sawRoot && !t.closedRoot || x(t, "Text data outside of root node."), "&" === r ? t.state = W.TEXT_ENTITY: t.textNode += r);
  3513. continue;
  3514. case W.SCRIPT:
  3515. "<" === r ? t.state = W.SCRIPT_ENDING: t.script += r;
  3516. continue;
  3517. case W.SCRIPT_ENDING:
  3518. "/" === r ? t.state = W.CLOSE_TAG: (t.script += "<" + r, t.state = W.SCRIPT);
  3519. continue;
  3520. case W.OPEN_WAKA:
  3521. if ("!" === r) t.state = W.SGML_DECL,
  3522. t.sgmlDecl = "";
  3523. else if (p(M, r));
  3524. else if (p(G, r)) t.state = W.OPEN_TAG,
  3525. t.tagName = r;
  3526. else if ("/" === r) t.state = W.CLOSE_TAG,
  3527. t.tagName = "";
  3528. else if ("?" === r) t.state = W.PROC_INST,
  3529. t.procInstName = t.procInstBody = "";
  3530. else {
  3531. if (x(t, "Unencoded <"), t.startTagPosition + 1 < t.position) {
  3532. var a = t.position - t.startTagPosition;
  3533. r = new Array(a).join(" ") + r
  3534. }
  3535. t.textNode += "<" + r,
  3536. t.state = W.TEXT
  3537. }
  3538. continue;
  3539. case W.SGML_DECL:
  3540. (t.sgmlDecl + r).toUpperCase() === I ? (d(t, "onopencdata"), t.state = W.CDATA, t.sgmlDecl = "", t.cdata = "") : t.sgmlDecl + r === "--" ? (t.state = W.COMMENT, t.comment = "", t.sgmlDecl = "") : (t.sgmlDecl + r).toUpperCase() === L ? (t.state = W.DOCTYPE, (t.doctype || t.sawRoot) && x(t, "Inappropriately located doctype declaration"), t.doctype = "", t.sgmlDecl = "") : ">" === r ? (d(t, "onsgmldeclaration", t.sgmlDecl), t.sgmlDecl = "", t.state = W.TEXT) : p(k, r) ? (t.state = W.SGML_DECL_QUOTED, t.sgmlDecl += r) : t.sgmlDecl += r;
  3541. continue;
  3542. case W.SGML_DECL_QUOTED:
  3543. r === t.q && (t.state = W.SGML_DECL, t.q = ""),
  3544. t.sgmlDecl += r;
  3545. continue;
  3546. case W.DOCTYPE:
  3547. ">" === r ? (t.state = W.TEXT, d(t, "ondoctype", t.doctype), t.doctype = !0) : (t.doctype += r, "[" === r ? t.state = W.DOCTYPE_DTD: p(k, r) && (t.state = W.DOCTYPE_QUOTED, t.q = r));
  3548. continue;
  3549. case W.DOCTYPE_QUOTED:
  3550. t.doctype += r,
  3551. r === t.q && (t.q = "", t.state = W.DOCTYPE);
  3552. continue;
  3553. case W.DOCTYPE_DTD:
  3554. t.doctype += r,
  3555. "]" === r ? t.state = W.DOCTYPE: p(k, r) && (t.state = W.DOCTYPE_DTD_QUOTED, t.q = r);
  3556. continue;
  3557. case W.DOCTYPE_DTD_QUOTED:
  3558. t.doctype += r,
  3559. r === t.q && (t.state = W.DOCTYPE_DTD, t.q = "");
  3560. continue;
  3561. case W.COMMENT:
  3562. "-" === r ? t.state = W.COMMENT_ENDING: t.comment += r;
  3563. continue;
  3564. case W.COMMENT_ENDING:
  3565. "-" === r ? (t.state = W.COMMENT_ENDED, t.comment = y(t.opt, t.comment), t.comment && d(t, "oncomment", t.comment), t.comment = "") : (t.comment += "-" + r, t.state = W.COMMENT);
  3566. continue;
  3567. case W.COMMENT_ENDED:
  3568. ">" !== r ? (x(t, "Malformed comment"), t.comment += "--" + r, t.state = W.COMMENT) : t.state = W.TEXT;
  3569. continue;
  3570. case W.CDATA:
  3571. "]" === r ? t.state = W.CDATA_ENDING: t.cdata += r;
  3572. continue;
  3573. case W.CDATA_ENDING:
  3574. "]" === r ? t.state = W.CDATA_ENDING_2: (t.cdata += "]" + r, t.state = W.CDATA);
  3575. continue;
  3576. case W.CDATA_ENDING_2:
  3577. ">" === r ? (t.cdata && d(t, "oncdata", t.cdata), d(t, "onclosecdata"), t.cdata = "", t.state = W.TEXT) : "]" === r ? t.cdata += "]": (t.cdata += "]]" + r, t.state = W.CDATA);
  3578. continue;
  3579. case W.PROC_INST:
  3580. "?" === r ? t.state = W.PROC_INST_ENDING: p(M, r) ? t.state = W.PROC_INST_BODY: t.procInstName += r;
  3581. continue;
  3582. case W.PROC_INST_BODY:
  3583. if (!t.procInstBody && p(M, r)) continue;
  3584. "?" === r ? t.state = W.PROC_INST_ENDING: t.procInstBody += r;
  3585. continue;
  3586. case W.PROC_INST_ENDING:
  3587. ">" === r ? (d(t, "onprocessinginstruction", {
  3588. name: t.procInstName,
  3589. body: t.procInstBody
  3590. }), t.procInstName = t.procInstBody = "", t.state = W.TEXT) : (t.procInstBody += "?" + r, t.state = W.PROC_INST_BODY);
  3591. continue;
  3592. case W.OPEN_TAG:
  3593. p(U, r) ? t.tagName += r: (b(t), ">" === r ? A(t) : "/" === r ? t.state = W.OPEN_TAG_SLASH: (f(M, r) && x(t, "Invalid character in tag name"), t.state = W.ATTRIB));
  3594. continue;
  3595. case W.OPEN_TAG_SLASH:
  3596. ">" === r ? (A(t, !0), _(t)) : (x(t, "Forward-slash in opening tag not followed by >"), t.state = W.ATTRIB);
  3597. continue;
  3598. case W.ATTRIB:
  3599. if (p(M, r)) continue;
  3600. ">" === r ? A(t) : "/" === r ? t.state = W.OPEN_TAG_SLASH: p(G, r) ? (t.attribName = r, t.attribValue = "", t.state = W.ATTRIB_NAME) : x(t, "Invalid attribute name");
  3601. continue;
  3602. case W.ATTRIB_NAME:
  3603. "=" === r ? t.state = W.ATTRIB_VALUE: ">" === r ? (x(t, "Attribute without value"), t.attribValue = t.attribName, w(t), A(t)) : p(M, r) ? t.state = W.ATTRIB_NAME_SAW_WHITE: p(U, r) ? t.attribName += r: x(t, "Invalid attribute name");
  3604. continue;
  3605. case W.ATTRIB_NAME_SAW_WHITE:
  3606. if ("=" === r) t.state = W.ATTRIB_VALUE;
  3607. else {
  3608. if (p(M, r)) continue;
  3609. x(t, "Attribute without value"),
  3610. t.tag.attributes[t.attribName] = "",
  3611. t.attribValue = "",
  3612. d(t, "onattribute", {
  3613. name: t.attribName,
  3614. value: ""
  3615. }),
  3616. t.attribName = "",
  3617. ">" === r ? A(t) : p(G, r) ? (t.attribName = r, t.state = W.ATTRIB_NAME) : (x(t, "Invalid attribute name"), t.state = W.ATTRIB)
  3618. }
  3619. continue;
  3620. case W.ATTRIB_VALUE:
  3621. if (p(M, r)) continue;
  3622. p(k, r) ? (t.q = r, t.state = W.ATTRIB_VALUE_QUOTED) : (x(t, "Unquoted attribute value"), t.state = W.ATTRIB_VALUE_UNQUOTED, t.attribValue = r);
  3623. continue;
  3624. case W.ATTRIB_VALUE_QUOTED:
  3625. if (r !== t.q) {
  3626. "&" === r ? t.state = W.ATTRIB_VALUE_ENTITY_Q: t.attribValue += r;
  3627. continue
  3628. }
  3629. w(t),
  3630. t.q = "",
  3631. t.state = W.ATTRIB_VALUE_CLOSED;
  3632. continue;
  3633. case W.ATTRIB_VALUE_CLOSED:
  3634. p(M, r) ? t.state = W.ATTRIB: ">" === r ? A(t) : "/" === r ? t.state = W.OPEN_TAG_SLASH: p(G, r) ? (x(t, "No whitespace between attributes"), t.attribName = r, t.attribValue = "", t.state = W.ATTRIB_NAME) : x(t, "Invalid attribute name");
  3635. continue;
  3636. case W.ATTRIB_VALUE_UNQUOTED:
  3637. if (f(B, r)) {
  3638. "&" === r ? t.state = W.ATTRIB_VALUE_ENTITY_U: t.attribValue += r;
  3639. continue
  3640. }
  3641. w(t),
  3642. ">" === r ? A(t) : t.state = W.ATTRIB;
  3643. continue;
  3644. case W.CLOSE_TAG:
  3645. if (t.tagName)">" === r ? _(t) : p(U, r) ? t.tagName += r: t.script ? (t.script += "</" + t.tagName, t.tagName = "", t.state = W.SCRIPT) : (f(M, r) && x(t, "Invalid tagname in closing tag"), t.state = W.CLOSE_TAG_SAW_WHITE);
  3646. else {
  3647. if (p(M, r)) continue;
  3648. f(G, r) ? t.script ? (t.script += "</" + r, t.state = W.SCRIPT) : x(t, "Invalid tagname in closing tag.") : t.tagName = r
  3649. }
  3650. continue;
  3651. case W.CLOSE_TAG_SAW_WHITE:
  3652. if (p(M, r)) continue;
  3653. ">" === r ? _(t) : x(t, "Invalid characters in closing tag");
  3654. continue;
  3655. case W.TEXT_ENTITY:
  3656. case W.ATTRIB_VALUE_ENTITY_Q:
  3657. case W.ATTRIB_VALUE_ENTITY_U:
  3658. switch (t.state) {
  3659. case W.TEXT_ENTITY:
  3660. var s = W.TEXT,
  3661. c = "textNode";
  3662. break;
  3663. case W.ATTRIB_VALUE_ENTITY_Q:
  3664. var s = W.ATTRIB_VALUE_QUOTED,
  3665. c = "attribValue";
  3666. break;
  3667. case W.ATTRIB_VALUE_ENTITY_U:
  3668. var s = W.ATTRIB_VALUE_UNQUOTED,
  3669. c = "attribValue"
  3670. }
  3671. ";" === r ? (t[c] += S(t), t.entity = "", t.state = s) : p(O, r) ? t.entity += r: (x(t, "Invalid character entity"), t[c] += "&" + t.entity + r, t.entity = "", t.state = s);
  3672. continue;
  3673. default:
  3674. throw new Error(t, "Unknown state: " + t.state)
  3675. }
  3676. return t.position >= t.bufferCheckPosition && i(t),
  3677. t
  3678. }
  3679. n.parser = function(e, t) {
  3680. return new r(e, t)
  3681. },
  3682. n.SAXParser = r,
  3683. n.SAXStream = c,
  3684. n.createStream = s,
  3685. n.MAX_BUFFER_LENGTH = 65536;
  3686. var C = ["comment", "sgmlDecl", "textNode", "tagName", "doctype", "procInstName", "procInstBody", "entity", "attribName", "attribValue", "cdata", "script"];
  3687. n.EVENTS = ["text", "processinginstruction", "sgmldeclaration", "doctype", "comment", "attribute", "opentag", "closetag", "opencdata", "cdata", "closecdata", "error", "end", "ready", "script", "opennamespace", "closenamespace"],
  3688. Object.create || (Object.create = function(e) {
  3689. function t() {
  3690. this.__proto__ = e
  3691. }
  3692. return t.prototype = e,
  3693. new t
  3694. }),
  3695. Object.getPrototypeOf || (Object.getPrototypeOf = function(e) {
  3696. return e.__proto__
  3697. }),
  3698. Object.keys || (Object.keys = function(e) {
  3699. var t = [];
  3700. for (var n in e) e.hasOwnProperty(n) && t.push(n);
  3701. return t
  3702. }),
  3703. r.prototype = {
  3704. end: function() {
  3705. v(this)
  3706. },
  3707. write: T,
  3708. resume: function() {
  3709. return this.error = null,
  3710. this
  3711. },
  3712. close: function() {
  3713. return this.write(null)
  3714. },
  3715. flush: function() {
  3716. a(this)
  3717. }
  3718. };
  3719. try {
  3720. var R = e("stream").Stream
  3721. } catch(e) {
  3722. var R = function() {}
  3723. }
  3724. var N = n.EVENTS.filter(function(e) {
  3725. return "error" !== e && "end" !== e
  3726. });
  3727. c.prototype = Object.create(R.prototype, {
  3728. constructor: {
  3729. value: c
  3730. }
  3731. }),
  3732. c.prototype.write = function(n) {
  3733. if ("function" == typeof t && "function" == typeof t.isBuffer && t.isBuffer(n)) {
  3734. if (!this._decoder) {
  3735. var r = e("string_decoder").StringDecoder;
  3736. this._decoder = new r("utf8")
  3737. }
  3738. n = this._decoder.write(n)
  3739. }
  3740. return this._parser.write(n.toString()),
  3741. this.emit("data", n),
  3742. !0
  3743. },
  3744. c.prototype.end = function(e) {
  3745. return e && e.length && this.write(e),
  3746. this._parser.end(),
  3747. !0
  3748. },
  3749. c.prototype.on = function(e, t) {
  3750. var n = this;
  3751. return n._parser["on" + e] || N.indexOf(e) === -1 || (n._parser["on" + e] = function() {
  3752. var t = 1 === arguments.length ? [arguments[0]] : Array.apply(null, arguments);
  3753. t.splice(0, 0, e),
  3754. n.emit.apply(n, t)
  3755. }),
  3756. R.prototype.on.call(n, e, t)
  3757. };
  3758. var M = "\r\n\t ",
  3759. P = "0124356789",
  3760. D = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
  3761. k = "'\"",
  3762. O = P + D + "#",
  3763. B = M + ">",
  3764. I = "[CDATA[",
  3765. L = "DOCTYPE",
  3766. F = "http://www.w3.org/XML/1998/namespace",
  3767. j = "http://www.w3.org/2000/xmlns/",
  3768. V = {
  3769. xml: F,
  3770. xmlns: j
  3771. };
  3772. M = l(M),
  3773. P = l(P),
  3774. D = l(D);
  3775. var G = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,
  3776. U = /[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040\.\d-]/;
  3777. k = l(k),
  3778. O = l(O),
  3779. B = l(B);
  3780. var W = 0;
  3781. n.STATE = {
  3782. BEGIN: W++,
  3783. TEXT: W++,
  3784. TEXT_ENTITY: W++,
  3785. OPEN_WAKA: W++,
  3786. SGML_DECL: W++,
  3787. SGML_DECL_QUOTED: W++,
  3788. DOCTYPE: W++,
  3789. DOCTYPE_QUOTED: W++,
  3790. DOCTYPE_DTD: W++,
  3791. DOCTYPE_DTD_QUOTED: W++,
  3792. COMMENT_STARTING: W++,
  3793. COMMENT: W++,
  3794. COMMENT_ENDING: W++,
  3795. COMMENT_ENDED: W++,
  3796. CDATA: W++,
  3797. CDATA_ENDING: W++,
  3798. CDATA_ENDING_2: W++,
  3799. PROC_INST: W++,
  3800. PROC_INST_BODY: W++,
  3801. PROC_INST_ENDING: W++,
  3802. OPEN_TAG: W++,
  3803. OPEN_TAG_SLASH: W++,
  3804. ATTRIB: W++,
  3805. ATTRIB_NAME: W++,
  3806. ATTRIB_NAME_SAW_WHITE: W++,
  3807. ATTRIB_VALUE: W++,
  3808. ATTRIB_VALUE_QUOTED: W++,
  3809. ATTRIB_VALUE_CLOSED: W++,
  3810. ATTRIB_VALUE_UNQUOTED: W++,
  3811. ATTRIB_VALUE_ENTITY_Q: W++,
  3812. ATTRIB_VALUE_ENTITY_U: W++,
  3813. CLOSE_TAG: W++,
  3814. CLOSE_TAG_SAW_WHITE: W++,
  3815. SCRIPT: W++,
  3816. SCRIPT_ENDING: W++
  3817. },
  3818. n.ENTITIES = {
  3819. amp: "&",
  3820. gt: ">",
  3821. lt: "<",
  3822. quot: '"',
  3823. apos: "'",
  3824. AElig: 198,
  3825. Aacute: 193,
  3826. Acirc: 194,
  3827. Agrave: 192,
  3828. Aring: 197,
  3829. Atilde: 195,
  3830. Auml: 196,
  3831. Ccedil: 199,
  3832. ETH: 208,
  3833. Eacute: 201,
  3834. Ecirc: 202,
  3835. Egrave: 200,
  3836. Euml: 203,
  3837. Iacute: 205,
  3838. Icirc: 206,
  3839. Igrave: 204,
  3840. Iuml: 207,
  3841. Ntilde: 209,
  3842. Oacute: 211,
  3843. Ocirc: 212,
  3844. Ograve: 210,
  3845. Oslash: 216,
  3846. Otilde: 213,
  3847. Ouml: 214,
  3848. THORN: 222,
  3849. Uacute: 218,
  3850. Ucirc: 219,
  3851. Ugrave: 217,
  3852. Uuml: 220,
  3853. Yacute: 221,
  3854. aacute: 225,
  3855. acirc: 226,
  3856. aelig: 230,
  3857. agrave: 224,
  3858. aring: 229,
  3859. atilde: 227,
  3860. auml: 228,
  3861. ccedil: 231,
  3862. eacute: 233,
  3863. ecirc: 234,
  3864. egrave: 232,
  3865. eth: 240,
  3866. euml: 235,
  3867. iacute: 237,
  3868. icirc: 238,
  3869. igrave: 236,
  3870. iuml: 239,
  3871. ntilde: 241,
  3872. oacute: 243,
  3873. ocirc: 244,
  3874. ograve: 242,
  3875. oslash: 248,
  3876. otilde: 245,
  3877. ouml: 246,
  3878. szlig: 223,
  3879. thorn: 254,
  3880. uacute: 250,
  3881. ucirc: 251,
  3882. ugrave: 249,
  3883. uuml: 252,
  3884. yacute: 253,
  3885. yuml: 255,
  3886. copy: 169,
  3887. reg: 174,
  3888. nbsp: 160,
  3889. iexcl: 161,
  3890. cent: 162,
  3891. pound: 163,
  3892. curren: 164,
  3893. yen: 165,
  3894. brvbar: 166,
  3895. sect: 167,
  3896. uml: 168,
  3897. ordf: 170,
  3898. laquo: 171,
  3899. not: 172,
  3900. shy: 173,
  3901. macr: 175,
  3902. deg: 176,
  3903. plusmn: 177,
  3904. sup1: 185,
  3905. sup2: 178,
  3906. sup3: 179,
  3907. acute: 180,
  3908. micro: 181,
  3909. para: 182,
  3910. middot: 183,
  3911. cedil: 184,
  3912. ordm: 186,
  3913. raquo: 187,
  3914. frac14: 188,
  3915. frac12: 189,
  3916. frac34: 190,
  3917. iquest: 191,
  3918. times: 215,
  3919. divide: 247,
  3920. OElig: 338,
  3921. oelig: 339,
  3922. Scaron: 352,
  3923. scaron: 353,
  3924. Yuml: 376,
  3925. fnof: 402,
  3926. circ: 710,
  3927. tilde: 732,
  3928. Alpha: 913,
  3929. Beta: 914,
  3930. Gamma: 915,
  3931. Delta: 916,
  3932. Epsilon: 917,
  3933. Zeta: 918,
  3934. Eta: 919,
  3935. Theta: 920,
  3936. Iota: 921,
  3937. Kappa: 922,
  3938. Lambda: 923,
  3939. Mu: 924,
  3940. Nu: 925,
  3941. Xi: 926,
  3942. Omicron: 927,
  3943. Pi: 928,
  3944. Rho: 929,
  3945. Sigma: 931,
  3946. Tau: 932,
  3947. Upsilon: 933,
  3948. Phi: 934,
  3949. Chi: 935,
  3950. Psi: 936,
  3951. Omega: 937,
  3952. alpha: 945,
  3953. beta: 946,
  3954. gamma: 947,
  3955. delta: 948,
  3956. epsilon: 949,
  3957. zeta: 950,
  3958. eta: 951,
  3959. theta: 952,
  3960. iota: 953,
  3961. kappa: 954,
  3962. lambda: 955,
  3963. mu: 956,
  3964. nu: 957,
  3965. xi: 958,
  3966. omicron: 959,
  3967. pi: 960,
  3968. rho: 961,
  3969. sigmaf: 962,
  3970. sigma: 963,
  3971. tau: 964,
  3972. upsilon: 965,
  3973. phi: 966,
  3974. chi: 967,
  3975. psi: 968,
  3976. omega: 969,
  3977. thetasym: 977,
  3978. upsih: 978,
  3979. piv: 982,
  3980. ensp: 8194,
  3981. emsp: 8195,
  3982. thinsp: 8201,
  3983. zwnj: 8204,
  3984. zwj: 8205,
  3985. lrm: 8206,
  3986. rlm: 8207,
  3987. ndash: 8211,
  3988. mdash: 8212,
  3989. lsquo: 8216,
  3990. rsquo: 8217,
  3991. sbquo: 8218,
  3992. ldquo: 8220,
  3993. rdquo: 8221,
  3994. bdquo: 8222,
  3995. dagger: 8224,
  3996. Dagger: 8225,
  3997. bull: 8226,
  3998. hellip: 8230,
  3999. permil: 8240,
  4000. prime: 8242,
  4001. Prime: 8243,
  4002. lsaquo: 8249,
  4003. rsaquo: 8250,
  4004. oline: 8254,
  4005. frasl: 8260,
  4006. euro: 8364,
  4007. image: 8465,
  4008. weierp: 8472,
  4009. real: 8476,
  4010. trade: 8482,
  4011. alefsym: 8501,
  4012. larr: 8592,
  4013. uarr: 8593,
  4014. rarr: 8594,
  4015. darr: 8595,
  4016. harr: 8596,
  4017. crarr: 8629,
  4018. lArr: 8656,
  4019. uArr: 8657,
  4020. rArr: 8658,
  4021. dArr: 8659,
  4022. hArr: 8660,
  4023. forall: 8704,
  4024. part: 8706,
  4025. exist: 8707,
  4026. empty: 8709,
  4027. nabla: 8711,
  4028. isin: 8712,
  4029. notin: 8713,
  4030. ni: 8715,
  4031. prod: 8719,
  4032. sum: 8721,
  4033. minus: 8722,
  4034. lowast: 8727,
  4035. radic: 8730,
  4036. prop: 8733,
  4037. infin: 8734,
  4038. ang: 8736,
  4039. and: 8743,
  4040. or: 8744,
  4041. cap: 8745,
  4042. cup: 8746,
  4043. int: 8747,
  4044. there4: 8756,
  4045. sim: 8764,
  4046. cong: 8773,
  4047. asymp: 8776,
  4048. ne: 8800,
  4049. equiv: 8801,
  4050. le: 8804,
  4051. ge: 8805,
  4052. sub: 8834,
  4053. sup: 8835,
  4054. nsub: 8836,
  4055. sube: 8838,
  4056. supe: 8839,
  4057. oplus: 8853,
  4058. otimes: 8855,
  4059. perp: 8869,
  4060. sdot: 8901,
  4061. lceil: 8968,
  4062. rceil: 8969,
  4063. lfloor: 8970,
  4064. rfloor: 8971,
  4065. lang: 9001,
  4066. rang: 9002,
  4067. loz: 9674,
  4068. spades: 9824,
  4069. clubs: 9827,
  4070. hearts: 9829,
  4071. diams: 9830
  4072. },
  4073. Object.keys(n.ENTITIES).forEach(function(e) {
  4074. var t = n.ENTITIES[e],
  4075. r = "number" == typeof t ? String.fromCharCode(t) : t;
  4076. n.ENTITIES[e] = r
  4077. });
  4078. for (var W in n.STATE) n.STATE[n.STATE[W]] = W;
  4079. W = n.STATE,
  4080. String.fromCodePoint || !
  4081. function() {
  4082. var e = String.fromCharCode,
  4083. t = Math.floor,
  4084. n = function() {
  4085. var n, r, i = 16384,
  4086. o = [],
  4087. a = -1,
  4088. s = arguments.length;
  4089. if (!s) return "";
  4090. for (var c = ""; ++a < s;) {
  4091. var l = Number(arguments[a]);
  4092. if (!isFinite(l) || l < 0 || l > 1114111 || t(l) != l) throw RangeError("Invalid code point: " + l);
  4093. l <= 65535 ? o.push(l) : (l -= 65536, n = (l >> 10) + 55296, r = l % 1024 + 56320, o.push(n, r)),
  4094. (a + 1 == s || o.length > i) && (c += e.apply(null, o), o.length = 0)
  4095. }
  4096. return c
  4097. };
  4098. Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", {
  4099. value: n,
  4100. configurable: !0,
  4101. writable: !0
  4102. }) : String.fromCodePoint = n
  4103. } ()
  4104. } ("undefined" == typeof n ? sax = {}: n)
  4105. }).call(this, void 0)
  4106. },
  4107. {
  4108. undefined: void 0
  4109. }],
  4110. 22 : [function(t, n, r) { !
  4111. function(t) {
  4112. "use strict";
  4113. function i() {
  4114. this.data = [null],
  4115. this.top = 0
  4116. }
  4117. function o() {
  4118. return new i
  4119. }
  4120. i.prototype.clear = function() {
  4121. return this.data = [null],
  4122. this.top = 0,
  4123. this
  4124. },
  4125. i.prototype.length = function() {
  4126. return this.top
  4127. },
  4128. i.prototype.peek = function() {
  4129. return this.data[this.top]
  4130. },
  4131. i.prototype.pop = function() {
  4132. return this.top > 0 ? (this.top--, this.data.pop()) : void 0
  4133. },
  4134. i.prototype.push = function(e) {
  4135. return this.data[++this.top] = e,
  4136. this
  4137. },
  4138. "undefined" != typeof r ? n.exports = o: "function" == typeof e ? e(function() {
  4139. return o
  4140. }) : t.stack = o
  4141. } (this)
  4142. },
  4143. {}],
  4144. 23 : [function(e, t, n) {
  4145. t.exports = e(27)
  4146. },
  4147. {
  4148. 27 : 27
  4149. }],
  4150. 24 : [function(e, t, n) {
  4151. "use strict";
  4152. function r() {}
  4153. r.prototype.get = function(e) {
  4154. return this.$model.properties.get(this, e)
  4155. },
  4156. r.prototype.set = function(e, t) {
  4157. this.$model.properties.set(this, e, t)
  4158. },
  4159. t.exports = r
  4160. },
  4161. {}],
  4162. 25 : [function(e, t, n) {
  4163. "use strict";
  4164. function r(e) {
  4165. this.ns = e,
  4166. this.name = e.name,
  4167. this.allTypes = [],
  4168. this.properties = [],
  4169. this.propertiesByName = {}
  4170. }
  4171. var i = e(203),
  4172. o = e(197),
  4173. a = e(83),
  4174. s = e(28).parseName;
  4175. t.exports = r,
  4176. r.prototype.build = function() {
  4177. return i(this, ["ns", "name", "allTypes", "properties", "propertiesByName", "bodyProperty", "idProperty"])
  4178. },
  4179. r.prototype.addProperty = function(e, t, n) {
  4180. "boolean" == typeof t && (n = t, t = void 0),
  4181. this.addNamedProperty(e, n !== !1);
  4182. var r = this.properties;
  4183. void 0 !== t ? r.splice(t, 0, e) : r.push(e)
  4184. },
  4185. r.prototype.replaceProperty = function(e, t, n) {
  4186. var r = e.ns,
  4187. i = this.properties,
  4188. o = this.propertiesByName,
  4189. a = e.name !== t.name;
  4190. if (e.isId) {
  4191. if (!t.isId) throw new Error("property <" + t.ns.name + "> must be id property to refine <" + e.ns.name + ">");
  4192. this.setIdProperty(t, !1)
  4193. }
  4194. if (e.isBody) {
  4195. if (!t.isBody) throw new Error("property <" + t.ns.name + "> must be body property to refine <" + e.ns.name + ">");
  4196. this.setBodyProperty(t, !1)
  4197. }
  4198. var s = i.indexOf(e);
  4199. if (s === -1) throw new Error("property <" + r.name + "> not found in property list");
  4200. i.splice(s, 1),
  4201. this.addProperty(t, n ? void 0 : s, a),
  4202. o[r.name] = o[r.localName] = t
  4203. },
  4204. r.prototype.redefineProperty = function(e, t, n) {
  4205. var r = e.ns.prefix,
  4206. i = t.split("#"),
  4207. o = s(i[0], r),
  4208. a = s(i[1], o.prefix).name,
  4209. c = this.propertiesByName[a];
  4210. if (!c) throw new Error("refined property <" + a + "> not found");
  4211. this.replaceProperty(c, e, n),
  4212. delete e.redefines
  4213. },
  4214. r.prototype.addNamedProperty = function(e, t) {
  4215. var n = e.ns,
  4216. r = this.propertiesByName;
  4217. t && (this.assertNotDefined(e, n.name), this.assertNotDefined(e, n.localName)),
  4218. r[n.name] = r[n.localName] = e
  4219. },
  4220. r.prototype.removeNamedProperty = function(e) {
  4221. var t = e.ns,
  4222. n = this.propertiesByName;
  4223. delete n[t.name],
  4224. delete n[t.localName]
  4225. },
  4226. r.prototype.setBodyProperty = function(e, t) {
  4227. if (t && this.bodyProperty) throw new Error("body property defined multiple times (<" + this.bodyProperty.ns.name + ">, <" + e.ns.name + ">)");
  4228. this.bodyProperty = e
  4229. },
  4230. r.prototype.setIdProperty = function(e, t) {
  4231. if (t && this.idProperty) throw new Error("id property defined multiple times (<" + this.idProperty.ns.name + ">, <" + e.ns.name + ">)");
  4232. this.idProperty = e
  4233. },
  4234. r.prototype.assertNotDefined = function(e, t) {
  4235. var n = e.name,
  4236. r = this.propertiesByName[n];
  4237. if (r) throw new Error("property <" + n + "> already defined; override of <" + r.definedBy.ns.name + "#" + r.ns.name + "> by <" + e.definedBy.ns.name + "#" + e.ns.name + "> not allowed without redefines")
  4238. },
  4239. r.prototype.hasProperty = function(e) {
  4240. return this.propertiesByName[e]
  4241. },
  4242. r.prototype.addTrait = function(e, t) {
  4243. var n = this.allTypes;
  4244. n.indexOf(e) === -1 && (a(e.properties,
  4245. function(n) {
  4246. n = o({},
  4247. n, {
  4248. name: n.ns.localName,
  4249. inherited: t
  4250. }),
  4251. Object.defineProperty(n, "definedBy", {
  4252. value: e
  4253. });
  4254. var r = n.replaces,
  4255. i = n.redefines;
  4256. r || i ? this.redefineProperty(n, r || i, r) : (n.isBody && this.setBodyProperty(n), n.isId && this.setIdProperty(n), this.addProperty(n))
  4257. },
  4258. this), n.push(e))
  4259. }
  4260. },
  4261. {
  4262. 197 : 197,
  4263. 203 : 203,
  4264. 28 : 28,
  4265. 83 : 83
  4266. }],
  4267. 26 : [function(e, t, n) {
  4268. "use strict";
  4269. function r(e, t) {
  4270. this.model = e,
  4271. this.properties = t
  4272. }
  4273. var i = e(83),
  4274. o = e(24);
  4275. t.exports = r,
  4276. r.prototype.createType = function(e) {
  4277. function t(e) {
  4278. r.define(this, "$type", {
  4279. value: s,
  4280. enumerable: !0
  4281. }),
  4282. r.define(this, "$attrs", {
  4283. value: {}
  4284. }),
  4285. r.define(this, "$parent", {
  4286. writable: !0
  4287. }),
  4288. i(e,
  4289. function(e, t) {
  4290. this.set(t, e)
  4291. },
  4292. this)
  4293. }
  4294. var n = this.model,
  4295. r = this.properties,
  4296. a = Object.create(o.prototype);
  4297. i(e.properties,
  4298. function(e) {
  4299. e.isMany || void 0 === e.
  4300. default || (a[e.name] = e.
  4301. default)
  4302. }),
  4303. r.defineModel(a, n),
  4304. r.defineDescriptor(a, e);
  4305. var s = e.ns.name;
  4306. return t.prototype = a,
  4307. t.hasType = a.$instanceOf = this.model.hasType,
  4308. r.defineModel(t, n),
  4309. r.defineDescriptor(t, e),
  4310. t
  4311. }
  4312. },
  4313. {
  4314. 24 : 24,
  4315. 83 : 83
  4316. }],
  4317. 27 : [function(e, t, n) {
  4318. "use strict";
  4319. function r(e) {
  4320. this.properties = new u(this),
  4321. this.factory = new c(this, this.properties),
  4322. this.registry = new l(e, this.properties),
  4323. this.typeCache = {}
  4324. }
  4325. var i = e(194),
  4326. o = e(192),
  4327. a = e(83),
  4328. s = e(82),
  4329. c = e(26),
  4330. l = e(30),
  4331. u = e(29),
  4332. p = e(28).parseName;
  4333. t.exports = r,
  4334. r.prototype.create = function(e, t) {
  4335. var n = this.getType(e);
  4336. if (!n) throw new Error("unknown type <" + e + ">");
  4337. return new n(t)
  4338. },
  4339. r.prototype.getType = function(e) {
  4340. var t = this.typeCache,
  4341. n = i(e) ? e: e.ns.name,
  4342. r = t[n];
  4343. return r || (e = this.registry.getEffectiveDescriptor(n), r = t[n] = this.factory.createType(e)),
  4344. r
  4345. },
  4346. r.prototype.createAny = function(e, t, n) {
  4347. var r = p(e),
  4348. i = {
  4349. $type: e
  4350. },
  4351. s = {
  4352. name: e,
  4353. isGeneric: !0,
  4354. ns: {
  4355. prefix: r.prefix,
  4356. localName: r.localName,
  4357. uri: t
  4358. }
  4359. };
  4360. return this.properties.defineDescriptor(i, s),
  4361. this.properties.defineModel(i, this),
  4362. this.properties.define(i, "$parent", {
  4363. enumerable: !1,
  4364. writable: !0
  4365. }),
  4366. a(n,
  4367. function(e, t) {
  4368. o(e) && void 0 !== e.value ? i[e.name] = e.value: i[t] = e
  4369. }),
  4370. i
  4371. },
  4372. r.prototype.getPackage = function(e) {
  4373. return this.registry.getPackage(e)
  4374. },
  4375. r.prototype.getPackages = function() {
  4376. return this.registry.getPackages()
  4377. },
  4378. r.prototype.getElementDescriptor = function(e) {
  4379. return e.$descriptor
  4380. },
  4381. r.prototype.hasType = function(e, t) {
  4382. void 0 === t && (t = e, e = this);
  4383. var n = e.$model.getElementDescriptor(e);
  4384. return !! s(n.allTypes,
  4385. function(e) {
  4386. return e.name === t
  4387. })
  4388. },
  4389. r.prototype.getPropertyDescriptor = function(e, t) {
  4390. return this.getElementDescriptor(e).propertiesByName[t]
  4391. }
  4392. },
  4393. {
  4394. 192 : 192,
  4395. 194 : 194,
  4396. 26 : 26,
  4397. 28 : 28,
  4398. 29 : 29,
  4399. 30 : 30,
  4400. 82 : 82,
  4401. 83 : 83
  4402. }],
  4403. 28 : [function(e, t, n) {
  4404. "use strict";
  4405. t.exports.parseName = function(e, t) {
  4406. var n, r, i = e.split(/:/);
  4407. if (1 === i.length) n = e,
  4408. r = t;
  4409. else {
  4410. if (2 !== i.length) throw new Error("expected <prefix:localName> or <localName>, got " + e);
  4411. n = i[1],
  4412. r = i[0]
  4413. }
  4414. return e = (r ? r + ":": "") + n,
  4415. {
  4416. name: e,
  4417. prefix: r,
  4418. localName: n
  4419. }
  4420. }
  4421. },
  4422. {}],
  4423. 29 : [function(e, t, n) {
  4424. "use strict";
  4425. function r(e) {
  4426. this.model = e
  4427. }
  4428. function i(e) {
  4429. return "undefined" == typeof e
  4430. }
  4431. function o(e, t, n) {
  4432. Object.defineProperty(e, t.name, {
  4433. enumerable: !t.isReference,
  4434. writable: !0,
  4435. value: n,
  4436. configurable: !0
  4437. })
  4438. }
  4439. t.exports = r,
  4440. r.prototype.set = function(e, t, n) {
  4441. var r = this.model.getPropertyDescriptor(e, t),
  4442. a = r && r.name;
  4443. i(n) ? r ? delete e[a] : delete e.$attrs[t] : r ? a in e ? e[a] = n: o(e, r, n) : e.$attrs[t] = n
  4444. },
  4445. r.prototype.get = function(e, t) {
  4446. var n = this.model.getPropertyDescriptor(e, t);
  4447. if (!n) return e.$attrs[t];
  4448. var r = n.name;
  4449. return ! e[r] && n.isMany && o(e, n, []),
  4450. e[r]
  4451. },
  4452. r.prototype.define = function(e, t, n) {
  4453. Object.defineProperty(e, t, n)
  4454. },
  4455. r.prototype.defineDescriptor = function(e, t) {
  4456. this.define(e, "$descriptor", {
  4457. value: t
  4458. })
  4459. },
  4460. r.prototype.defineModel = function(e, t) {
  4461. this.define(e, "$model", {
  4462. value: t
  4463. })
  4464. }
  4465. },
  4466. {}],
  4467. 30 : [function(e, t, n) {
  4468. "use strict";
  4469. function r(e, t) {
  4470. this.packageMap = {},
  4471. this.typeMap = {},
  4472. this.packages = [],
  4473. this.properties = t,
  4474. o(e, this.registerPackage, this)
  4475. }
  4476. var i = e(197),
  4477. o = e(83),
  4478. a = e(31),
  4479. s = e(25),
  4480. c = e(28).parseName,
  4481. l = a.isBuiltIn;
  4482. t.exports = r,
  4483. r.prototype.getPackage = function(e) {
  4484. return this.packageMap[e]
  4485. },
  4486. r.prototype.getPackages = function() {
  4487. return this.packages
  4488. },
  4489. r.prototype.registerPackage = function(e) {
  4490. e = i({},
  4491. e),
  4492. o(e.types,
  4493. function(t) {
  4494. this.registerType(t, e)
  4495. },
  4496. this),
  4497. this.packageMap[e.uri] = this.packageMap[e.prefix] = e,
  4498. this.packages.push(e)
  4499. },
  4500. r.prototype.registerType = function(e, t) {
  4501. e = i({},
  4502. e, {
  4503. superClass: (e.superClass || []).slice(),
  4504. extends: (e.extends || []).slice(),
  4505. properties: (e.properties || []).slice()
  4506. });
  4507. var n = c(e.name, t.prefix),
  4508. r = n.name,
  4509. a = {};
  4510. o(e.properties,
  4511. function(e) {
  4512. var t = c(e.name, n.prefix),
  4513. r = t.name;
  4514. l(e.type) || (e.type = c(e.type, t.prefix).name),
  4515. i(e, {
  4516. ns: t,
  4517. name: r
  4518. }),
  4519. a[r] = e
  4520. }),
  4521. i(e, {
  4522. ns: n,
  4523. name: r,
  4524. propertiesByName: a
  4525. }),
  4526. o(e.extends,
  4527. function(e) {
  4528. var t = this.typeMap[e];
  4529. t.traits = t.traits || [],
  4530. t.traits.push(r)
  4531. },
  4532. this),
  4533. this.definePackage(e, t),
  4534. this.typeMap[r] = e
  4535. },
  4536. r.prototype.mapTypes = function(e, t, n) {
  4537. function r(e) {
  4538. return i(e, !0)
  4539. }
  4540. function i(n, r) {
  4541. var i = c(n, l(n) ? "": e.prefix);
  4542. s.mapTypes(i, t, r)
  4543. }
  4544. var a = l(e.name) ? {
  4545. name: e.name
  4546. }: this.typeMap[e.name],
  4547. s = this;
  4548. if (!a) throw new Error("unknown type <" + e.name + ">");
  4549. o(a.superClass, n ? r: i),
  4550. t(a, !n),
  4551. o(a.traits, r)
  4552. },
  4553. r.prototype.getEffectiveDescriptor = function(e) {
  4554. var t = c(e),
  4555. n = new s(t);
  4556. this.mapTypes(t,
  4557. function(e, t) {
  4558. n.addTrait(e, t)
  4559. });
  4560. var r = n.build();
  4561. return this.definePackage(r, r.allTypes[r.allTypes.length - 1].$pkg),
  4562. r
  4563. },
  4564. r.prototype.definePackage = function(e, t) {
  4565. this.properties.define(e, "$pkg", {
  4566. value: t
  4567. })
  4568. }
  4569. },
  4570. {
  4571. 197 : 197,
  4572. 25 : 25,
  4573. 28 : 28,
  4574. 31 : 31,
  4575. 83 : 83
  4576. }],
  4577. 31 : [function(e, t, n) {
  4578. "use strict";
  4579. var r = {
  4580. String: !0,
  4581. Boolean: !0,
  4582. Integer: !0,
  4583. Real: !0,
  4584. Element: !0
  4585. },
  4586. i = {
  4587. String: function(e) {
  4588. return e
  4589. },
  4590. Boolean: function(e) {
  4591. return "true" === e
  4592. },
  4593. Integer: function(e) {
  4594. return parseInt(e, 10)
  4595. },
  4596. Real: function(e) {
  4597. return parseFloat(e, 10)
  4598. }
  4599. };
  4600. t.exports.coerceType = function(e, t) {
  4601. var n = i[e];
  4602. return n ? n(t) : t
  4603. },
  4604. t.exports.isBuiltIn = function(e) {
  4605. return !! r[e]
  4606. },
  4607. t.exports.isSimple = function(e) {
  4608. return !! i[e]
  4609. }
  4610. },
  4611. {}],
  4612. 32 : [function(e, t, n) {
  4613. t.exports = {
  4614. name: "BPMN20",
  4615. uri: "http://www.omg.org/spec/BPMN/20100524/MODEL",
  4616. associations: [],
  4617. types: [{
  4618. name: "Interface",
  4619. superClass: ["RootElement"],
  4620. properties: [{
  4621. name: "name",
  4622. isAttr: !0,
  4623. type: "String"
  4624. },
  4625. {
  4626. name: "operations",
  4627. type: "Operation",
  4628. isMany: !0
  4629. },
  4630. {
  4631. name: "implementationRef",
  4632. type: "String",
  4633. isAttr: !0
  4634. }]
  4635. },
  4636. {
  4637. name: "Operation",
  4638. superClass: ["BaseElement"],
  4639. properties: [{
  4640. name: "name",
  4641. isAttr: !0,
  4642. type: "String"
  4643. },
  4644. {
  4645. name: "inMessageRef",
  4646. type: "Message",
  4647. isReference: !0
  4648. },
  4649. {
  4650. name: "outMessageRef",
  4651. type: "Message",
  4652. isReference: !0
  4653. },
  4654. {
  4655. name: "errorRef",
  4656. type: "Error",
  4657. isMany: !0,
  4658. isReference: !0
  4659. },
  4660. {
  4661. name: "implementationRef",
  4662. type: "String",
  4663. isAttr: !0
  4664. }]
  4665. },
  4666. {
  4667. name: "EndPoint",
  4668. superClass: ["RootElement"]
  4669. },
  4670. {
  4671. name: "Auditing",
  4672. superClass: ["BaseElement"]
  4673. },
  4674. {
  4675. name: "GlobalTask",
  4676. superClass: ["CallableElement"],
  4677. properties: [{
  4678. name: "resources",
  4679. type: "ResourceRole",
  4680. isMany: !0
  4681. }]
  4682. },
  4683. {
  4684. name: "Monitoring",
  4685. superClass: ["BaseElement"]
  4686. },
  4687. {
  4688. name: "Performer",
  4689. superClass: ["ResourceRole"]
  4690. },
  4691. {
  4692. name: "Process",
  4693. superClass: ["FlowElementsContainer", "CallableElement"],
  4694. properties: [{
  4695. name: "processType",
  4696. type: "ProcessType",
  4697. isAttr: !0
  4698. },
  4699. {
  4700. name: "isClosed",
  4701. isAttr: !0,
  4702. type: "Boolean"
  4703. },
  4704. {
  4705. name: "auditing",
  4706. type: "Auditing"
  4707. },
  4708. {
  4709. name: "monitoring",
  4710. type: "Monitoring"
  4711. },
  4712. {
  4713. name: "properties",
  4714. type: "Property",
  4715. isMany: !0
  4716. },
  4717. {
  4718. name: "laneSets",
  4719. type: "LaneSet",
  4720. isMany: !0,
  4721. replaces: "FlowElementsContainer#laneSets"
  4722. },
  4723. {
  4724. name: "flowElements",
  4725. type: "FlowElement",
  4726. isMany: !0,
  4727. replaces: "FlowElementsContainer#flowElements"
  4728. },
  4729. {
  4730. name: "artifacts",
  4731. type: "Artifact",
  4732. isMany: !0
  4733. },
  4734. {
  4735. name: "resources",
  4736. type: "ResourceRole",
  4737. isMany: !0
  4738. },
  4739. {
  4740. name: "correlationSubscriptions",
  4741. type: "CorrelationSubscription",
  4742. isMany: !0
  4743. },
  4744. {
  4745. name: "supports",
  4746. type: "Process",
  4747. isMany: !0,
  4748. isReference: !0
  4749. },
  4750. {
  4751. name: "definitionalCollaborationRef",
  4752. type: "Collaboration",
  4753. isAttr: !0,
  4754. isReference: !0
  4755. },
  4756. {
  4757. name: "isExecutable",
  4758. isAttr: !0,
  4759. type: "Boolean"
  4760. }]
  4761. },
  4762. {
  4763. name: "LaneSet",
  4764. superClass: ["BaseElement"],
  4765. properties: [{
  4766. name: "lanes",
  4767. type: "Lane",
  4768. isMany: !0
  4769. },
  4770. {
  4771. name: "name",
  4772. isAttr: !0,
  4773. type: "String"
  4774. }]
  4775. },
  4776. {
  4777. name: "Lane",
  4778. superClass: ["BaseElement"],
  4779. properties: [{
  4780. name: "name",
  4781. isAttr: !0,
  4782. type: "String"
  4783. },
  4784. {
  4785. name: "partitionElementRef",
  4786. type: "BaseElement",
  4787. isAttr: !0,
  4788. isReference: !0
  4789. },
  4790. {
  4791. name: "partitionElement",
  4792. type: "BaseElement"
  4793. },
  4794. {
  4795. name: "flowNodeRef",
  4796. type: "FlowNode",
  4797. isMany: !0,
  4798. isReference: !0
  4799. },
  4800. {
  4801. name: "childLaneSet",
  4802. type: "LaneSet",
  4803. xml: {
  4804. serialize: "xsi:type"
  4805. }
  4806. }]
  4807. },
  4808. {
  4809. name: "GlobalManualTask",
  4810. superClass: ["GlobalTask"]
  4811. },
  4812. {
  4813. name: "ManualTask",
  4814. superClass: ["Task"]
  4815. },
  4816. {
  4817. name: "UserTask",
  4818. superClass: ["Task"],
  4819. properties: [{
  4820. name: "renderings",
  4821. type: "Rendering",
  4822. isMany: !0
  4823. },
  4824. {
  4825. name: "implementation",
  4826. isAttr: !0,
  4827. type: "String"
  4828. }]
  4829. },
  4830. {
  4831. name: "Rendering",
  4832. superClass: ["BaseElement"]
  4833. },
  4834. {
  4835. name: "HumanPerformer",
  4836. superClass: ["Performer"]
  4837. },
  4838. {
  4839. name: "PotentialOwner",
  4840. superClass: ["HumanPerformer"]
  4841. },
  4842. {
  4843. name: "GlobalUserTask",
  4844. superClass: ["GlobalTask"],
  4845. properties: [{
  4846. name: "implementation",
  4847. isAttr: !0,
  4848. type: "String"
  4849. },
  4850. {
  4851. name: "renderings",
  4852. type: "Rendering",
  4853. isMany: !0
  4854. }]
  4855. },
  4856. {
  4857. name: "Gateway",
  4858. isAbstract: !0,
  4859. superClass: ["FlowNode"],
  4860. properties: [{
  4861. name: "gatewayDirection",
  4862. type: "GatewayDirection",
  4863. default:
  4864. "Unspecified",
  4865. isAttr: !0
  4866. }]
  4867. },
  4868. {
  4869. name: "EventBasedGateway",
  4870. superClass: ["Gateway"],
  4871. properties: [{
  4872. name: "instantiate",
  4873. default:
  4874. !1,
  4875. isAttr: !0,
  4876. type: "Boolean"
  4877. },
  4878. {
  4879. name: "eventGatewayType",
  4880. type: "EventBasedGatewayType",
  4881. isAttr: !0,
  4882. default:
  4883. "Exclusive"
  4884. }]
  4885. },
  4886. {
  4887. name: "ComplexGateway",
  4888. superClass: ["Gateway"],
  4889. properties: [{
  4890. name: "activationCondition",
  4891. type: "Expression",
  4892. xml: {
  4893. serialize: "xsi:type"
  4894. }
  4895. },
  4896. {
  4897. name: "default",
  4898. type: "SequenceFlow",
  4899. isAttr: !0,
  4900. isReference: !0
  4901. }]
  4902. },
  4903. {
  4904. name: "ExclusiveGateway",
  4905. superClass: ["Gateway"],
  4906. properties: [{
  4907. name: "default",
  4908. type: "SequenceFlow",
  4909. isAttr: !0,
  4910. isReference: !0
  4911. }]
  4912. },
  4913. {
  4914. name: "InclusiveGateway",
  4915. superClass: ["Gateway"],
  4916. properties: [{
  4917. name: "default",
  4918. type: "SequenceFlow",
  4919. isAttr: !0,
  4920. isReference: !0
  4921. }]
  4922. },
  4923. {
  4924. name: "ParallelGateway",
  4925. superClass: ["Gateway"]
  4926. },
  4927. {
  4928. name: "RootElement",
  4929. isAbstract: !0,
  4930. superClass: ["BaseElement"]
  4931. },
  4932. {
  4933. name: "Relationship",
  4934. superClass: ["BaseElement"],
  4935. properties: [{
  4936. name: "type",
  4937. isAttr: !0,
  4938. type: "String"
  4939. },
  4940. {
  4941. name: "direction",
  4942. type: "RelationshipDirection",
  4943. isAttr: !0
  4944. },
  4945. {
  4946. name: "source",
  4947. isMany: !0,
  4948. isReference: !0,
  4949. type: "Element"
  4950. },
  4951. {
  4952. name: "target",
  4953. isMany: !0,
  4954. isReference: !0,
  4955. type: "Element"
  4956. }]
  4957. },
  4958. {
  4959. name: "BaseElement",
  4960. isAbstract: !0,
  4961. properties: [{
  4962. name: "id",
  4963. isAttr: !0,
  4964. type: "String",
  4965. isId: !0
  4966. },
  4967. {
  4968. name: "documentation",
  4969. type: "Documentation",
  4970. isMany: !0
  4971. },
  4972. {
  4973. name: "extensionDefinitions",
  4974. type: "ExtensionDefinition",
  4975. isMany: !0,
  4976. isReference: !0
  4977. },
  4978. {
  4979. name: "extensionElements",
  4980. type: "ExtensionElements"
  4981. }]
  4982. },
  4983. {
  4984. name: "Extension",
  4985. properties: [{
  4986. name: "mustUnderstand",
  4987. default:
  4988. !1,
  4989. isAttr: !0,
  4990. type: "Boolean"
  4991. },
  4992. {
  4993. name: "definition",
  4994. type: "ExtensionDefinition"
  4995. }]
  4996. },
  4997. {
  4998. name: "ExtensionDefinition",
  4999. properties: [{
  5000. name: "name",
  5001. isAttr: !0,
  5002. type: "String"
  5003. },
  5004. {
  5005. name: "extensionAttributeDefinitions",
  5006. type: "ExtensionAttributeDefinition",
  5007. isMany: !0
  5008. }]
  5009. },
  5010. {
  5011. name: "ExtensionAttributeDefinition",
  5012. properties: [{
  5013. name: "name",
  5014. isAttr: !0,
  5015. type: "String"
  5016. },
  5017. {
  5018. name: "type",
  5019. isAttr: !0,
  5020. type: "String"
  5021. },
  5022. {
  5023. name: "isReference",
  5024. default:
  5025. !1,
  5026. isAttr: !0,
  5027. type: "Boolean"
  5028. },
  5029. {
  5030. name: "extensionDefinition",
  5031. type: "ExtensionDefinition",
  5032. isAttr: !0,
  5033. isReference: !0
  5034. }]
  5035. },
  5036. {
  5037. name: "ExtensionElements",
  5038. properties: [{
  5039. name: "valueRef",
  5040. isAttr: !0,
  5041. isReference: !0,
  5042. type: "Element"
  5043. },
  5044. {
  5045. name: "values",
  5046. type: "Element",
  5047. isMany: !0
  5048. },
  5049. {
  5050. name: "extensionAttributeDefinition",
  5051. type: "ExtensionAttributeDefinition",
  5052. isAttr: !0,
  5053. isReference: !0
  5054. }]
  5055. },
  5056. {
  5057. name: "Documentation",
  5058. superClass: ["BaseElement"],
  5059. properties: [{
  5060. name: "text",
  5061. type: "String",
  5062. isBody: !0
  5063. },
  5064. {
  5065. name: "textFormat",
  5066. default:
  5067. "text/plain",
  5068. isAttr: !0,
  5069. type: "String"
  5070. }]
  5071. },
  5072. {
  5073. name: "Event",
  5074. isAbstract: !0,
  5075. superClass: ["FlowNode", "InteractionNode"],
  5076. properties: [{
  5077. name: "properties",
  5078. type: "Property",
  5079. isMany: !0
  5080. }]
  5081. },
  5082. {
  5083. name: "IntermediateCatchEvent",
  5084. superClass: ["CatchEvent"]
  5085. },
  5086. {
  5087. name: "IntermediateThrowEvent",
  5088. superClass: ["ThrowEvent"]
  5089. },
  5090. {
  5091. name: "EndEvent",
  5092. superClass: ["ThrowEvent"]
  5093. },
  5094. {
  5095. name: "StartEvent",
  5096. superClass: ["CatchEvent"],
  5097. properties: [{
  5098. name: "isInterrupting",
  5099. default:
  5100. !0,
  5101. isAttr: !0,
  5102. type: "Boolean"
  5103. }]
  5104. },
  5105. {
  5106. name: "ThrowEvent",
  5107. isAbstract: !0,
  5108. superClass: ["Event"],
  5109. properties: [{
  5110. name: "dataInputs",
  5111. type: "DataInput",
  5112. isMany: !0
  5113. },
  5114. {
  5115. name: "dataInputAssociations",
  5116. type: "DataInputAssociation",
  5117. isMany: !0
  5118. },
  5119. {
  5120. name: "inputSet",
  5121. type: "InputSet"
  5122. },
  5123. {
  5124. name: "eventDefinitions",
  5125. type: "EventDefinition",
  5126. isMany: !0
  5127. },
  5128. {
  5129. name: "eventDefinitionRef",
  5130. type: "EventDefinition",
  5131. isMany: !0,
  5132. isReference: !0
  5133. }]
  5134. },
  5135. {
  5136. name: "CatchEvent",
  5137. isAbstract: !0,
  5138. superClass: ["Event"],
  5139. properties: [{
  5140. name: "parallelMultiple",
  5141. isAttr: !0,
  5142. type: "Boolean",
  5143. default:
  5144. !1
  5145. },
  5146. {
  5147. name: "dataOutputs",
  5148. type: "DataOutput",
  5149. isMany: !0
  5150. },
  5151. {
  5152. name: "dataOutputAssociations",
  5153. type: "DataOutputAssociation",
  5154. isMany: !0
  5155. },
  5156. {
  5157. name: "outputSet",
  5158. type: "OutputSet"
  5159. },
  5160. {
  5161. name: "eventDefinitions",
  5162. type: "EventDefinition",
  5163. isMany: !0
  5164. },
  5165. {
  5166. name: "eventDefinitionRef",
  5167. type: "EventDefinition",
  5168. isMany: !0,
  5169. isReference: !0
  5170. }]
  5171. },
  5172. {
  5173. name: "BoundaryEvent",
  5174. superClass: ["CatchEvent"],
  5175. properties: [{
  5176. name: "cancelActivity",
  5177. default:
  5178. !0,
  5179. isAttr: !0,
  5180. type: "Boolean"
  5181. },
  5182. {
  5183. name: "attachedToRef",
  5184. type: "Activity",
  5185. isAttr: !0,
  5186. isReference: !0
  5187. }]
  5188. },
  5189. {
  5190. name: "EventDefinition",
  5191. isAbstract: !0,
  5192. superClass: ["RootElement"]
  5193. },
  5194. {
  5195. name: "CancelEventDefinition",
  5196. superClass: ["EventDefinition"]
  5197. },
  5198. {
  5199. name: "ErrorEventDefinition",
  5200. superClass: ["EventDefinition"],
  5201. properties: [{
  5202. name: "errorRef",
  5203. type: "Error",
  5204. isAttr: !0,
  5205. isReference: !0
  5206. }]
  5207. },
  5208. {
  5209. name: "TerminateEventDefinition",
  5210. superClass: ["EventDefinition"]
  5211. },
  5212. {
  5213. name: "EscalationEventDefinition",
  5214. superClass: ["EventDefinition"],
  5215. properties: [{
  5216. name: "escalationRef",
  5217. type: "Escalation",
  5218. isAttr: !0,
  5219. isReference: !0
  5220. }]
  5221. },
  5222. {
  5223. name: "Escalation",
  5224. properties: [{
  5225. name: "structureRef",
  5226. type: "ItemDefinition",
  5227. isAttr: !0,
  5228. isReference: !0
  5229. },
  5230. {
  5231. name: "name",
  5232. isAttr: !0,
  5233. type: "String"
  5234. },
  5235. {
  5236. name: "escalationCode",
  5237. isAttr: !0,
  5238. type: "String"
  5239. }],
  5240. superClass: ["RootElement"]
  5241. },
  5242. {
  5243. name: "CompensateEventDefinition",
  5244. superClass: ["EventDefinition"],
  5245. properties: [{
  5246. name: "waitForCompletion",
  5247. isAttr: !0,
  5248. type: "Boolean"
  5249. },
  5250. {
  5251. name: "activityRef",
  5252. type: "Activity",
  5253. isAttr: !0,
  5254. isReference: !0
  5255. }]
  5256. },
  5257. {
  5258. name: "TimerEventDefinition",
  5259. superClass: ["EventDefinition"],
  5260. properties: [{
  5261. name: "timeDate",
  5262. type: "Expression",
  5263. xml: {
  5264. serialize: "xsi:type"
  5265. }
  5266. },
  5267. {
  5268. name: "timeCycle",
  5269. type: "Expression",
  5270. xml: {
  5271. serialize: "xsi:type"
  5272. }
  5273. },
  5274. {
  5275. name: "timeDuration",
  5276. type: "Expression",
  5277. xml: {
  5278. serialize: "xsi:type"
  5279. }
  5280. }]
  5281. },
  5282. {
  5283. name: "LinkEventDefinition",
  5284. superClass: ["EventDefinition"],
  5285. properties: [{
  5286. name: "name",
  5287. isAttr: !0,
  5288. type: "String"
  5289. },
  5290. {
  5291. name: "target",
  5292. type: "LinkEventDefinition",
  5293. isAttr: !0,
  5294. isReference: !0
  5295. },
  5296. {
  5297. name: "source",
  5298. type: "LinkEventDefinition",
  5299. isMany: !0,
  5300. isReference: !0
  5301. }]
  5302. },
  5303. {
  5304. name: "MessageEventDefinition",
  5305. superClass: ["EventDefinition"],
  5306. properties: [{
  5307. name: "messageRef",
  5308. type: "Message",
  5309. isAttr: !0,
  5310. isReference: !0
  5311. },
  5312. {
  5313. name: "operationRef",
  5314. type: "Operation",
  5315. isAttr: !0,
  5316. isReference: !0
  5317. }]
  5318. },
  5319. {
  5320. name: "ConditionalEventDefinition",
  5321. superClass: ["EventDefinition"],
  5322. properties: [{
  5323. name: "condition",
  5324. type: "Expression",
  5325. xml: {
  5326. serialize: "xsi:type"
  5327. }
  5328. }]
  5329. },
  5330. {
  5331. name: "SignalEventDefinition",
  5332. superClass: ["EventDefinition"],
  5333. properties: [{
  5334. name: "signalRef",
  5335. type: "Signal",
  5336. isAttr: !0,
  5337. isReference: !0
  5338. }]
  5339. },
  5340. {
  5341. name: "Signal",
  5342. superClass: ["RootElement"],
  5343. properties: [{
  5344. name: "structureRef",
  5345. type: "ItemDefinition",
  5346. isAttr: !0,
  5347. isReference: !0
  5348. },
  5349. {
  5350. name: "name",
  5351. isAttr: !0,
  5352. type: "String"
  5353. }]
  5354. },
  5355. {
  5356. name: "ImplicitThrowEvent",
  5357. superClass: ["ThrowEvent"]
  5358. },
  5359. {
  5360. name: "DataState",
  5361. superClass: ["BaseElement"],
  5362. properties: [{
  5363. name: "name",
  5364. isAttr: !0,
  5365. type: "String"
  5366. }]
  5367. },
  5368. {
  5369. name: "ItemAwareElement",
  5370. superClass: ["BaseElement"],
  5371. properties: [{
  5372. name: "itemSubjectRef",
  5373. type: "ItemDefinition",
  5374. isAttr: !0,
  5375. isReference: !0
  5376. },
  5377. {
  5378. name: "dataState",
  5379. type: "DataState"
  5380. }]
  5381. },
  5382. {
  5383. name: "DataAssociation",
  5384. superClass: ["BaseElement"],
  5385. properties: [{
  5386. name: "assignment",
  5387. type: "Assignment",
  5388. isMany: !0
  5389. },
  5390. {
  5391. name: "sourceRef",
  5392. type: "ItemAwareElement",
  5393. isMany: !0,
  5394. isReference: !0
  5395. },
  5396. {
  5397. name: "targetRef",
  5398. type: "ItemAwareElement",
  5399. isReference: !0
  5400. },
  5401. {
  5402. name: "transformation",
  5403. type: "FormalExpression",
  5404. xml: {
  5405. serialize: "property"
  5406. }
  5407. }]
  5408. },
  5409. {
  5410. name: "DataInput",
  5411. superClass: ["ItemAwareElement"],
  5412. properties: [{
  5413. name: "name",
  5414. isAttr: !0,
  5415. type: "String"
  5416. },
  5417. {
  5418. name: "isCollection",
  5419. default:
  5420. !1,
  5421. isAttr: !0,
  5422. type: "Boolean"
  5423. },
  5424. {
  5425. name: "inputSetRef",
  5426. type: "InputSet",
  5427. isVirtual: !0,
  5428. isMany: !0,
  5429. isReference: !0
  5430. },
  5431. {
  5432. name: "inputSetWithOptional",
  5433. type: "InputSet",
  5434. isVirtual: !0,
  5435. isMany: !0,
  5436. isReference: !0
  5437. },
  5438. {
  5439. name: "inputSetWithWhileExecuting",
  5440. type: "InputSet",
  5441. isVirtual: !0,
  5442. isMany: !0,
  5443. isReference: !0
  5444. }]
  5445. },
  5446. {
  5447. name: "DataOutput",
  5448. superClass: ["ItemAwareElement"],
  5449. properties: [{
  5450. name: "name",
  5451. isAttr: !0,
  5452. type: "String"
  5453. },
  5454. {
  5455. name: "isCollection",
  5456. default:
  5457. !1,
  5458. isAttr: !0,
  5459. type: "Boolean"
  5460. },
  5461. {
  5462. name: "outputSetRef",
  5463. type: "OutputSet",
  5464. isVirtual: !0,
  5465. isMany: !0,
  5466. isReference: !0
  5467. },
  5468. {
  5469. name: "outputSetWithOptional",
  5470. type: "OutputSet",
  5471. isVirtual: !0,
  5472. isMany: !0,
  5473. isReference: !0
  5474. },
  5475. {
  5476. name: "outputSetWithWhileExecuting",
  5477. type: "OutputSet",
  5478. isVirtual: !0,
  5479. isMany: !0,
  5480. isReference: !0
  5481. }]
  5482. },
  5483. {
  5484. name: "InputSet",
  5485. superClass: ["BaseElement"],
  5486. properties: [{
  5487. name: "name",
  5488. isAttr: !0,
  5489. type: "String"
  5490. },
  5491. {
  5492. name: "dataInputRefs",
  5493. type: "DataInput",
  5494. isMany: !0,
  5495. isReference: !0
  5496. },
  5497. {
  5498. name: "optionalInputRefs",
  5499. type: "DataInput",
  5500. isMany: !0,
  5501. isReference: !0
  5502. },
  5503. {
  5504. name: "whileExecutingInputRefs",
  5505. type: "DataInput",
  5506. isMany: !0,
  5507. isReference: !0
  5508. },
  5509. {
  5510. name: "outputSetRefs",
  5511. type: "OutputSet",
  5512. isMany: !0,
  5513. isReference: !0
  5514. }]
  5515. },
  5516. {
  5517. name: "OutputSet",
  5518. superClass: ["BaseElement"],
  5519. properties: [{
  5520. name: "dataOutputRefs",
  5521. type: "DataOutput",
  5522. isMany: !0,
  5523. isReference: !0
  5524. },
  5525. {
  5526. name: "name",
  5527. isAttr: !0,
  5528. type: "String"
  5529. },
  5530. {
  5531. name: "inputSetRefs",
  5532. type: "InputSet",
  5533. isMany: !0,
  5534. isReference: !0
  5535. },
  5536. {
  5537. name: "optionalOutputRefs",
  5538. type: "DataOutput",
  5539. isMany: !0,
  5540. isReference: !0
  5541. },
  5542. {
  5543. name: "whileExecutingOutputRefs",
  5544. type: "DataOutput",
  5545. isMany: !0,
  5546. isReference: !0
  5547. }]
  5548. },
  5549. {
  5550. name: "Property",
  5551. superClass: ["ItemAwareElement"],
  5552. properties: [{
  5553. name: "name",
  5554. isAttr: !0,
  5555. type: "String"
  5556. }]
  5557. },
  5558. {
  5559. name: "DataInputAssociation",
  5560. superClass: ["DataAssociation"]
  5561. },
  5562. {
  5563. name: "DataOutputAssociation",
  5564. superClass: ["DataAssociation"]
  5565. },
  5566. {
  5567. name: "InputOutputSpecification",
  5568. superClass: ["BaseElement"],
  5569. properties: [{
  5570. name: "dataInputs",
  5571. type: "DataInput",
  5572. isMany: !0
  5573. },
  5574. {
  5575. name: "dataOutputs",
  5576. type: "DataOutput",
  5577. isMany: !0
  5578. },
  5579. {
  5580. name: "inputSets",
  5581. type: "InputSet",
  5582. isMany: !0
  5583. },
  5584. {
  5585. name: "outputSets",
  5586. type: "OutputSet",
  5587. isMany: !0
  5588. }]
  5589. },
  5590. {
  5591. name: "DataObject",
  5592. superClass: ["FlowElement", "ItemAwareElement"],
  5593. properties: [{
  5594. name: "isCollection",
  5595. default:
  5596. !1,
  5597. isAttr: !0,
  5598. type: "Boolean"
  5599. }]
  5600. },
  5601. {
  5602. name: "InputOutputBinding",
  5603. properties: [{
  5604. name: "inputDataRef",
  5605. type: "InputSet",
  5606. isAttr: !0,
  5607. isReference: !0
  5608. },
  5609. {
  5610. name: "outputDataRef",
  5611. type: "OutputSet",
  5612. isAttr: !0,
  5613. isReference: !0
  5614. },
  5615. {
  5616. name: "operationRef",
  5617. type: "Operation",
  5618. isAttr: !0,
  5619. isReference: !0
  5620. }]
  5621. },
  5622. {
  5623. name: "Assignment",
  5624. superClass: ["BaseElement"],
  5625. properties: [{
  5626. name: "from",
  5627. type: "Expression",
  5628. xml: {
  5629. serialize: "xsi:type"
  5630. }
  5631. },
  5632. {
  5633. name: "to",
  5634. type: "Expression",
  5635. xml: {
  5636. serialize: "xsi:type"
  5637. }
  5638. }]
  5639. },
  5640. {
  5641. name: "DataStore",
  5642. superClass: ["RootElement", "ItemAwareElement"],
  5643. properties: [{
  5644. name: "name",
  5645. isAttr: !0,
  5646. type: "String"
  5647. },
  5648. {
  5649. name: "capacity",
  5650. isAttr: !0,
  5651. type: "Integer"
  5652. },
  5653. {
  5654. name: "isUnlimited",
  5655. default:
  5656. !0,
  5657. isAttr: !0,
  5658. type: "Boolean"
  5659. }]
  5660. },
  5661. {
  5662. name: "DataStoreReference",
  5663. superClass: ["ItemAwareElement", "FlowElement"],
  5664. properties: [{
  5665. name: "dataStoreRef",
  5666. type: "DataStore",
  5667. isAttr: !0,
  5668. isReference: !0
  5669. }]
  5670. },
  5671. {
  5672. name: "DataObjectReference",
  5673. superClass: ["ItemAwareElement", "FlowElement"],
  5674. properties: [{
  5675. name: "dataObjectRef",
  5676. type: "DataObject",
  5677. isAttr: !0,
  5678. isReference: !0
  5679. }]
  5680. },
  5681. {
  5682. name: "ConversationLink",
  5683. superClass: ["BaseElement"],
  5684. properties: [{
  5685. name: "sourceRef",
  5686. type: "InteractionNode",
  5687. isAttr: !0,
  5688. isReference: !0
  5689. },
  5690. {
  5691. name: "targetRef",
  5692. type: "InteractionNode",
  5693. isAttr: !0,
  5694. isReference: !0
  5695. },
  5696. {
  5697. name: "name",
  5698. isAttr: !0,
  5699. type: "String"
  5700. }]
  5701. },
  5702. {
  5703. name: "ConversationAssociation",
  5704. superClass: ["BaseElement"],
  5705. properties: [{
  5706. name: "innerConversationNodeRef",
  5707. type: "ConversationNode",
  5708. isAttr: !0,
  5709. isReference: !0
  5710. },
  5711. {
  5712. name: "outerConversationNodeRef",
  5713. type: "ConversationNode",
  5714. isAttr: !0,
  5715. isReference: !0
  5716. }]
  5717. },
  5718. {
  5719. name: "CallConversation",
  5720. superClass: ["ConversationNode"],
  5721. properties: [{
  5722. name: "calledCollaborationRef",
  5723. type: "Collaboration",
  5724. isAttr: !0,
  5725. isReference: !0
  5726. },
  5727. {
  5728. name: "participantAssociations",
  5729. type: "ParticipantAssociation",
  5730. isMany: !0
  5731. }]
  5732. },
  5733. {
  5734. name: "Conversation",
  5735. superClass: ["ConversationNode"]
  5736. },
  5737. {
  5738. name: "SubConversation",
  5739. superClass: ["ConversationNode"],
  5740. properties: [{
  5741. name: "conversationNodes",
  5742. type: "ConversationNode",
  5743. isMany: !0
  5744. }]
  5745. },
  5746. {
  5747. name: "ConversationNode",
  5748. isAbstract: !0,
  5749. superClass: ["InteractionNode", "BaseElement"],
  5750. properties: [{
  5751. name: "name",
  5752. isAttr: !0,
  5753. type: "String"
  5754. },
  5755. {
  5756. name: "participantRefs",
  5757. type: "Participant",
  5758. isMany: !0,
  5759. isReference: !0
  5760. },
  5761. {
  5762. name: "messageFlowRefs",
  5763. type: "MessageFlow",
  5764. isMany: !0,
  5765. isReference: !0
  5766. },
  5767. {
  5768. name: "correlationKeys",
  5769. type: "CorrelationKey",
  5770. isMany: !0
  5771. }]
  5772. },
  5773. {
  5774. name: "GlobalConversation",
  5775. superClass: ["Collaboration"]
  5776. },
  5777. {
  5778. name: "PartnerEntity",
  5779. superClass: ["RootElement"],
  5780. properties: [{
  5781. name: "name",
  5782. isAttr: !0,
  5783. type: "String"
  5784. },
  5785. {
  5786. name: "participantRef",
  5787. type: "Participant",
  5788. isMany: !0,
  5789. isReference: !0
  5790. }]
  5791. },
  5792. {
  5793. name: "PartnerRole",
  5794. superClass: ["RootElement"],
  5795. properties: [{
  5796. name: "name",
  5797. isAttr: !0,
  5798. type: "String"
  5799. },
  5800. {
  5801. name: "participantRef",
  5802. type: "Participant",
  5803. isMany: !0,
  5804. isReference: !0
  5805. }]
  5806. },
  5807. {
  5808. name: "CorrelationProperty",
  5809. superClass: ["RootElement"],
  5810. properties: [{
  5811. name: "correlationPropertyRetrievalExpression",
  5812. type: "CorrelationPropertyRetrievalExpression",
  5813. isMany: !0
  5814. },
  5815. {
  5816. name: "name",
  5817. isAttr: !0,
  5818. type: "String"
  5819. },
  5820. {
  5821. name: "type",
  5822. type: "ItemDefinition",
  5823. isAttr: !0,
  5824. isReference: !0
  5825. }]
  5826. },
  5827. {
  5828. name: "Error",
  5829. superClass: ["RootElement"],
  5830. properties: [{
  5831. name: "structureRef",
  5832. type: "ItemDefinition",
  5833. isAttr: !0,
  5834. isReference: !0
  5835. },
  5836. {
  5837. name: "name",
  5838. isAttr: !0,
  5839. type: "String"
  5840. },
  5841. {
  5842. name: "errorCode",
  5843. isAttr: !0,
  5844. type: "String"
  5845. }]
  5846. },
  5847. {
  5848. name: "CorrelationKey",
  5849. superClass: ["BaseElement"],
  5850. properties: [{
  5851. name: "correlationPropertyRef",
  5852. type: "CorrelationProperty",
  5853. isMany: !0,
  5854. isReference: !0
  5855. },
  5856. {
  5857. name: "name",
  5858. isAttr: !0,
  5859. type: "String"
  5860. }]
  5861. },
  5862. {
  5863. name: "Expression",
  5864. superClass: ["BaseElement"],
  5865. isAbstract: !0
  5866. },
  5867. {
  5868. name: "FormalExpression",
  5869. superClass: ["Expression"],
  5870. properties: [{
  5871. name: "language",
  5872. isAttr: !0,
  5873. type: "String"
  5874. },
  5875. {
  5876. name: "body",
  5877. type: "String",
  5878. isBody: !0
  5879. },
  5880. {
  5881. name: "evaluatesToTypeRef",
  5882. type: "ItemDefinition",
  5883. isAttr: !0,
  5884. isReference: !0
  5885. }]
  5886. },
  5887. {
  5888. name: "Message",
  5889. superClass: ["RootElement"],
  5890. properties: [{
  5891. name: "name",
  5892. isAttr: !0,
  5893. type: "String"
  5894. },
  5895. {
  5896. name: "itemRef",
  5897. type: "ItemDefinition",
  5898. isAttr: !0,
  5899. isReference: !0
  5900. }]
  5901. },
  5902. {
  5903. name: "ItemDefinition",
  5904. superClass: ["RootElement"],
  5905. properties: [{
  5906. name: "itemKind",
  5907. type: "ItemKind",
  5908. isAttr: !0
  5909. },
  5910. {
  5911. name: "structureRef",
  5912. type: "String",
  5913. isAttr: !0
  5914. },
  5915. {
  5916. name: "isCollection",
  5917. default:
  5918. !1,
  5919. isAttr: !0,
  5920. type: "Boolean"
  5921. },
  5922. {
  5923. name: "import",
  5924. type: "Import",
  5925. isAttr: !0,
  5926. isReference: !0
  5927. }]
  5928. },
  5929. {
  5930. name: "FlowElement",
  5931. isAbstract: !0,
  5932. superClass: ["BaseElement"],
  5933. properties: [{
  5934. name: "name",
  5935. isAttr: !0,
  5936. type: "String"
  5937. },
  5938. {
  5939. name: "auditing",
  5940. type: "Auditing"
  5941. },
  5942. {
  5943. name: "monitoring",
  5944. type: "Monitoring"
  5945. },
  5946. {
  5947. name: "categoryValueRef",
  5948. type: "CategoryValue",
  5949. isMany: !0,
  5950. isReference: !0
  5951. }]
  5952. },
  5953. {
  5954. name: "SequenceFlow",
  5955. superClass: ["FlowElement"],
  5956. properties: [{
  5957. name: "isImmediate",
  5958. isAttr: !0,
  5959. type: "Boolean"
  5960. },
  5961. {
  5962. name: "conditionExpression",
  5963. type: "Expression",
  5964. xml: {
  5965. serialize: "xsi:type"
  5966. }
  5967. },
  5968. {
  5969. name: "sourceRef",
  5970. type: "FlowNode",
  5971. isAttr: !0,
  5972. isReference: !0
  5973. },
  5974. {
  5975. name: "targetRef",
  5976. type: "FlowNode",
  5977. isAttr: !0,
  5978. isReference: !0
  5979. }]
  5980. },
  5981. {
  5982. name: "FlowElementsContainer",
  5983. isAbstract: !0,
  5984. superClass: ["BaseElement"],
  5985. properties: [{
  5986. name: "laneSets",
  5987. type: "LaneSet",
  5988. isMany: !0
  5989. },
  5990. {
  5991. name: "flowElements",
  5992. type: "FlowElement",
  5993. isMany: !0
  5994. }]
  5995. },
  5996. {
  5997. name: "CallableElement",
  5998. isAbstract: !0,
  5999. superClass: ["RootElement"],
  6000. properties: [{
  6001. name: "name",
  6002. isAttr: !0,
  6003. type: "String"
  6004. },
  6005. {
  6006. name: "ioSpecification",
  6007. type: "InputOutputSpecification",
  6008. xml: {
  6009. serialize: "property"
  6010. }
  6011. },
  6012. {
  6013. name: "supportedInterfaceRef",
  6014. type: "Interface",
  6015. isMany: !0,
  6016. isReference: !0
  6017. },
  6018. {
  6019. name: "ioBinding",
  6020. type: "InputOutputBinding",
  6021. isMany: !0,
  6022. xml: {
  6023. serialize: "property"
  6024. }
  6025. }]
  6026. },
  6027. {
  6028. name: "FlowNode",
  6029. isAbstract: !0,
  6030. superClass: ["FlowElement"],
  6031. properties: [{
  6032. name: "incoming",
  6033. type: "SequenceFlow",
  6034. isMany: !0,
  6035. isReference: !0
  6036. },
  6037. {
  6038. name: "outgoing",
  6039. type: "SequenceFlow",
  6040. isMany: !0,
  6041. isReference: !0
  6042. },
  6043. {
  6044. name: "lanes",
  6045. type: "Lane",
  6046. isVirtual: !0,
  6047. isMany: !0,
  6048. isReference: !0
  6049. }]
  6050. },
  6051. {
  6052. name: "CorrelationPropertyRetrievalExpression",
  6053. superClass: ["BaseElement"],
  6054. properties: [{
  6055. name: "messagePath",
  6056. type: "FormalExpression"
  6057. },
  6058. {
  6059. name: "messageRef",
  6060. type: "Message",
  6061. isAttr: !0,
  6062. isReference: !0
  6063. }]
  6064. },
  6065. {
  6066. name: "CorrelationPropertyBinding",
  6067. superClass: ["BaseElement"],
  6068. properties: [{
  6069. name: "dataPath",
  6070. type: "FormalExpression"
  6071. },
  6072. {
  6073. name: "correlationPropertyRef",
  6074. type: "CorrelationProperty",
  6075. isAttr: !0,
  6076. isReference: !0
  6077. }]
  6078. },
  6079. {
  6080. name: "Resource",
  6081. superClass: ["RootElement"],
  6082. properties: [{
  6083. name: "name",
  6084. isAttr: !0,
  6085. type: "String"
  6086. },
  6087. {
  6088. name: "resourceParameters",
  6089. type: "ResourceParameter",
  6090. isMany: !0
  6091. }]
  6092. },
  6093. {
  6094. name: "ResourceParameter",
  6095. superClass: ["BaseElement"],
  6096. properties: [{
  6097. name: "name",
  6098. isAttr: !0,
  6099. type: "String"
  6100. },
  6101. {
  6102. name: "isRequired",
  6103. isAttr: !0,
  6104. type: "Boolean"
  6105. },
  6106. {
  6107. name: "type",
  6108. type: "ItemDefinition",
  6109. isAttr: !0,
  6110. isReference: !0
  6111. }]
  6112. },
  6113. {
  6114. name: "CorrelationSubscription",
  6115. superClass: ["BaseElement"],
  6116. properties: [{
  6117. name: "correlationKeyRef",
  6118. type: "CorrelationKey",
  6119. isAttr: !0,
  6120. isReference: !0
  6121. },
  6122. {
  6123. name: "correlationPropertyBinding",
  6124. type: "CorrelationPropertyBinding",
  6125. isMany: !0
  6126. }]
  6127. },
  6128. {
  6129. name: "MessageFlow",
  6130. superClass: ["BaseElement"],
  6131. properties: [{
  6132. name: "name",
  6133. isAttr: !0,
  6134. type: "String"
  6135. },
  6136. {
  6137. name: "sourceRef",
  6138. type: "InteractionNode",
  6139. isAttr: !0,
  6140. isReference: !0
  6141. },
  6142. {
  6143. name: "targetRef",
  6144. type: "InteractionNode",
  6145. isAttr: !0,
  6146. isReference: !0
  6147. },
  6148. {
  6149. name: "messageRef",
  6150. type: "Message",
  6151. isAttr: !0,
  6152. isReference: !0
  6153. }]
  6154. },
  6155. {
  6156. name: "MessageFlowAssociation",
  6157. superClass: ["BaseElement"],
  6158. properties: [{
  6159. name: "innerMessageFlowRef",
  6160. type: "MessageFlow",
  6161. isAttr: !0,
  6162. isReference: !0
  6163. },
  6164. {
  6165. name: "outerMessageFlowRef",
  6166. type: "MessageFlow",
  6167. isAttr: !0,
  6168. isReference: !0
  6169. }]
  6170. },
  6171. {
  6172. name: "InteractionNode",
  6173. isAbstract: !0,
  6174. properties: [{
  6175. name: "incomingConversationLinks",
  6176. type: "ConversationLink",
  6177. isVirtual: !0,
  6178. isMany: !0,
  6179. isReference: !0
  6180. },
  6181. {
  6182. name: "outgoingConversationLinks",
  6183. type: "ConversationLink",
  6184. isVirtual: !0,
  6185. isMany: !0,
  6186. isReference: !0
  6187. }]
  6188. },
  6189. {
  6190. name: "Participant",
  6191. superClass: ["InteractionNode", "BaseElement"],
  6192. properties: [{
  6193. name: "name",
  6194. isAttr: !0,
  6195. type: "String"
  6196. },
  6197. {
  6198. name: "interfaceRef",
  6199. type: "Interface",
  6200. isMany: !0,
  6201. isReference: !0
  6202. },
  6203. {
  6204. name: "participantMultiplicity",
  6205. type: "ParticipantMultiplicity"
  6206. },
  6207. {
  6208. name: "endPointRefs",
  6209. type: "EndPoint",
  6210. isMany: !0,
  6211. isReference: !0
  6212. },
  6213. {
  6214. name: "processRef",
  6215. type: "Process",
  6216. isAttr: !0,
  6217. isReference: !0
  6218. }]
  6219. },
  6220. {
  6221. name: "ParticipantAssociation",
  6222. superClass: ["BaseElement"],
  6223. properties: [{
  6224. name: "innerParticipantRef",
  6225. type: "Participant",
  6226. isAttr: !0,
  6227. isReference: !0
  6228. },
  6229. {
  6230. name: "outerParticipantRef",
  6231. type: "Participant",
  6232. isAttr: !0,
  6233. isReference: !0
  6234. }]
  6235. },
  6236. {
  6237. name: "ParticipantMultiplicity",
  6238. properties: [{
  6239. name: "minimum",
  6240. default:
  6241. 0,
  6242. isAttr: !0,
  6243. type: "Integer"
  6244. },
  6245. {
  6246. name: "maximum",
  6247. default:
  6248. 1,
  6249. isAttr: !0,
  6250. type: "Integer"
  6251. }]
  6252. },
  6253. {
  6254. name: "Collaboration",
  6255. superClass: ["RootElement"],
  6256. properties: [{
  6257. name: "name",
  6258. isAttr: !0,
  6259. type: "String"
  6260. },
  6261. {
  6262. name: "isClosed",
  6263. isAttr: !0,
  6264. type: "Boolean"
  6265. },
  6266. {
  6267. name: "participants",
  6268. type: "Participant",
  6269. isMany: !0
  6270. },
  6271. {
  6272. name: "messageFlows",
  6273. type: "MessageFlow",
  6274. isMany: !0
  6275. },
  6276. {
  6277. name: "artifacts",
  6278. type: "Artifact",
  6279. isMany: !0
  6280. },
  6281. {
  6282. name: "conversations",
  6283. type: "ConversationNode",
  6284. isMany: !0
  6285. },
  6286. {
  6287. name: "conversationAssociations",
  6288. type: "ConversationAssociation"
  6289. },
  6290. {
  6291. name: "participantAssociations",
  6292. type: "ParticipantAssociation",
  6293. isMany: !0
  6294. },
  6295. {
  6296. name: "messageFlowAssociations",
  6297. type: "MessageFlowAssociation",
  6298. isMany: !0
  6299. },
  6300. {
  6301. name: "correlationKeys",
  6302. type: "CorrelationKey",
  6303. isMany: !0
  6304. },
  6305. {
  6306. name: "choreographyRef",
  6307. type: "Choreography",
  6308. isMany: !0,
  6309. isReference: !0
  6310. },
  6311. {
  6312. name: "conversationLinks",
  6313. type: "ConversationLink",
  6314. isMany: !0
  6315. }]
  6316. },
  6317. {
  6318. name: "ChoreographyActivity",
  6319. isAbstract: !0,
  6320. superClass: ["FlowNode"],
  6321. properties: [{
  6322. name: "participantRefs",
  6323. type: "Participant",
  6324. isMany: !0,
  6325. isReference: !0
  6326. },
  6327. {
  6328. name: "initiatingParticipantRef",
  6329. type: "Participant",
  6330. isAttr: !0,
  6331. isReference: !0
  6332. },
  6333. {
  6334. name: "correlationKeys",
  6335. type: "CorrelationKey",
  6336. isMany: !0
  6337. },
  6338. {
  6339. name: "loopType",
  6340. type: "ChoreographyLoopType",
  6341. default:
  6342. "None",
  6343. isAttr: !0
  6344. }]
  6345. },
  6346. {
  6347. name: "CallChoreography",
  6348. superClass: ["ChoreographyActivity"],
  6349. properties: [{
  6350. name: "calledChoreographyRef",
  6351. type: "Choreography",
  6352. isAttr: !0,
  6353. isReference: !0
  6354. },
  6355. {
  6356. name: "participantAssociations",
  6357. type: "ParticipantAssociation",
  6358. isMany: !0
  6359. }]
  6360. },
  6361. {
  6362. name: "SubChoreography",
  6363. superClass: ["ChoreographyActivity", "FlowElementsContainer"],
  6364. properties: [{
  6365. name: "artifacts",
  6366. type: "Artifact",
  6367. isMany: !0
  6368. }]
  6369. },
  6370. {
  6371. name: "ChoreographyTask",
  6372. superClass: ["ChoreographyActivity"],
  6373. properties: [{
  6374. name: "messageFlowRef",
  6375. type: "MessageFlow",
  6376. isMany: !0,
  6377. isReference: !0
  6378. }]
  6379. },
  6380. {
  6381. name: "Choreography",
  6382. superClass: ["FlowElementsContainer", "Collaboration"]
  6383. },
  6384. {
  6385. name: "GlobalChoreographyTask",
  6386. superClass: ["Choreography"],
  6387. properties: [{
  6388. name: "initiatingParticipantRef",
  6389. type: "Participant",
  6390. isAttr: !0,
  6391. isReference: !0
  6392. }]
  6393. },
  6394. {
  6395. name: "TextAnnotation",
  6396. superClass: ["Artifact"],
  6397. properties: [{
  6398. name: "text",
  6399. type: "String"
  6400. },
  6401. {
  6402. name: "textFormat",
  6403. default:
  6404. "text/plain",
  6405. isAttr: !0,
  6406. type: "String"
  6407. }]
  6408. },
  6409. {
  6410. name: "Group",
  6411. superClass: ["Artifact"],
  6412. properties: [{
  6413. name: "categoryValueRef",
  6414. type: "CategoryValue",
  6415. isAttr: !0,
  6416. isReference: !0
  6417. }]
  6418. },
  6419. {
  6420. name: "Association",
  6421. superClass: ["Artifact"],
  6422. properties: [{
  6423. name: "associationDirection",
  6424. type: "AssociationDirection",
  6425. isAttr: !0
  6426. },
  6427. {
  6428. name: "sourceRef",
  6429. type: "BaseElement",
  6430. isAttr: !0,
  6431. isReference: !0
  6432. },
  6433. {
  6434. name: "targetRef",
  6435. type: "BaseElement",
  6436. isAttr: !0,
  6437. isReference: !0
  6438. }]
  6439. },
  6440. {
  6441. name: "Category",
  6442. superClass: ["RootElement"],
  6443. properties: [{
  6444. name: "categoryValue",
  6445. type: "CategoryValue",
  6446. isMany: !0
  6447. },
  6448. {
  6449. name: "name",
  6450. isAttr: !0,
  6451. type: "String"
  6452. }]
  6453. },
  6454. {
  6455. name: "Artifact",
  6456. isAbstract: !0,
  6457. superClass: ["BaseElement"]
  6458. },
  6459. {
  6460. name: "CategoryValue",
  6461. superClass: ["BaseElement"],
  6462. properties: [{
  6463. name: "categorizedFlowElements",
  6464. type: "FlowElement",
  6465. isVirtual: !0,
  6466. isMany: !0,
  6467. isReference: !0
  6468. },
  6469. {
  6470. name: "value",
  6471. isAttr: !0,
  6472. type: "String"
  6473. }]
  6474. },
  6475. {
  6476. name: "Activity",
  6477. isAbstract: !0,
  6478. superClass: ["FlowNode"],
  6479. properties: [{
  6480. name: "isForCompensation",
  6481. default:
  6482. !1,
  6483. isAttr: !0,
  6484. type: "Boolean"
  6485. },
  6486. {
  6487. name: "default",
  6488. type: "SequenceFlow",
  6489. isAttr: !0,
  6490. isReference: !0
  6491. },
  6492. {
  6493. name: "ioSpecification",
  6494. type: "InputOutputSpecification",
  6495. xml: {
  6496. serialize: "property"
  6497. }
  6498. },
  6499. {
  6500. name: "boundaryEventRefs",
  6501. type: "BoundaryEvent",
  6502. isMany: !0,
  6503. isReference: !0
  6504. },
  6505. {
  6506. name: "properties",
  6507. type: "Property",
  6508. isMany: !0
  6509. },
  6510. {
  6511. name: "dataInputAssociations",
  6512. type: "DataInputAssociation",
  6513. isMany: !0
  6514. },
  6515. {
  6516. name: "dataOutputAssociations",
  6517. type: "DataOutputAssociation",
  6518. isMany: !0
  6519. },
  6520. {
  6521. name: "startQuantity",
  6522. default:
  6523. 1,
  6524. isAttr: !0,
  6525. type: "Integer"
  6526. },
  6527. {
  6528. name: "resources",
  6529. type: "ResourceRole",
  6530. isMany: !0
  6531. },
  6532. {
  6533. name: "completionQuantity",
  6534. default:
  6535. 1,
  6536. isAttr: !0,
  6537. type: "Integer"
  6538. },
  6539. {
  6540. name: "loopCharacteristics",
  6541. type: "LoopCharacteristics"
  6542. }]
  6543. },
  6544. {
  6545. name: "ServiceTask",
  6546. superClass: ["Task"],
  6547. properties: [{
  6548. name: "implementation",
  6549. isAttr: !0,
  6550. type: "String"
  6551. },
  6552. {
  6553. name: "operationRef",
  6554. type: "Operation",
  6555. isAttr: !0,
  6556. isReference: !0
  6557. }]
  6558. },
  6559. {
  6560. name: "SubProcess",
  6561. superClass: ["Activity", "FlowElementsContainer", "InteractionNode"],
  6562. properties: [{
  6563. name: "triggeredByEvent",
  6564. default:
  6565. !1,
  6566. isAttr: !0,
  6567. type: "Boolean"
  6568. },
  6569. {
  6570. name: "artifacts",
  6571. type: "Artifact",
  6572. isMany: !0
  6573. }]
  6574. },
  6575. {
  6576. name: "LoopCharacteristics",
  6577. isAbstract: !0,
  6578. superClass: ["BaseElement"]
  6579. },
  6580. {
  6581. name: "MultiInstanceLoopCharacteristics",
  6582. superClass: ["LoopCharacteristics"],
  6583. properties: [{
  6584. name: "isSequential",
  6585. default:
  6586. !1,
  6587. isAttr: !0,
  6588. type: "Boolean"
  6589. },
  6590. {
  6591. name: "behavior",
  6592. type: "MultiInstanceBehavior",
  6593. default:
  6594. "All",
  6595. isAttr: !0
  6596. },
  6597. {
  6598. name: "loopCardinality",
  6599. type: "Expression",
  6600. xml: {
  6601. serialize: "xsi:type"
  6602. }
  6603. },
  6604. {
  6605. name: "loopDataInputRef",
  6606. type: "ItemAwareElement",
  6607. isReference: !0
  6608. },
  6609. {
  6610. name: "loopDataOutputRef",
  6611. type: "ItemAwareElement",
  6612. isReference: !0
  6613. },
  6614. {
  6615. name: "inputDataItem",
  6616. type: "DataInput",
  6617. xml: {
  6618. serialize: "property"
  6619. }
  6620. },
  6621. {
  6622. name: "outputDataItem",
  6623. type: "DataOutput",
  6624. xml: {
  6625. serialize: "property"
  6626. }
  6627. },
  6628. {
  6629. name: "complexBehaviorDefinition",
  6630. type: "ComplexBehaviorDefinition",
  6631. isMany: !0
  6632. },
  6633. {
  6634. name: "completionCondition",
  6635. type: "Expression",
  6636. xml: {
  6637. serialize: "xsi:type"
  6638. }
  6639. },
  6640. {
  6641. name: "oneBehaviorEventRef",
  6642. type: "EventDefinition",
  6643. isAttr: !0,
  6644. isReference: !0
  6645. },
  6646. {
  6647. name: "noneBehaviorEventRef",
  6648. type: "EventDefinition",
  6649. isAttr: !0,
  6650. isReference: !0
  6651. }]
  6652. },
  6653. {
  6654. name: "StandardLoopCharacteristics",
  6655. superClass: ["LoopCharacteristics"],
  6656. properties: [{
  6657. name: "testBefore",
  6658. default:
  6659. !1,
  6660. isAttr: !0,
  6661. type: "Boolean"
  6662. },
  6663. {
  6664. name: "loopCondition",
  6665. type: "Expression",
  6666. xml: {
  6667. serialize: "xsi:type"
  6668. }
  6669. },
  6670. {
  6671. name: "loopMaximum",
  6672. type: "Expression",
  6673. xml: {
  6674. serialize: "xsi:type"
  6675. }
  6676. }]
  6677. },
  6678. {
  6679. name: "CallActivity",
  6680. superClass: ["Activity"],
  6681. properties: [{
  6682. name: "calledElement",
  6683. type: "String",
  6684. isAttr: !0
  6685. }]
  6686. },
  6687. {
  6688. name: "Task",
  6689. superClass: ["Activity", "InteractionNode"]
  6690. },
  6691. {
  6692. name: "SendTask",
  6693. superClass: ["Task"],
  6694. properties: [{
  6695. name: "implementation",
  6696. isAttr: !0,
  6697. type: "String"
  6698. },
  6699. {
  6700. name: "operationRef",
  6701. type: "Operation",
  6702. isAttr: !0,
  6703. isReference: !0
  6704. },
  6705. {
  6706. name: "messageRef",
  6707. type: "Message",
  6708. isAttr: !0,
  6709. isReference: !0
  6710. }]
  6711. },
  6712. {
  6713. name: "ReceiveTask",
  6714. superClass: ["Task"],
  6715. properties: [{
  6716. name: "implementation",
  6717. isAttr: !0,
  6718. type: "String"
  6719. },
  6720. {
  6721. name: "instantiate",
  6722. default:
  6723. !1,
  6724. isAttr: !0,
  6725. type: "Boolean"
  6726. },
  6727. {
  6728. name: "operationRef",
  6729. type: "Operation",
  6730. isAttr: !0,
  6731. isReference: !0
  6732. },
  6733. {
  6734. name: "messageRef",
  6735. type: "Message",
  6736. isAttr: !0,
  6737. isReference: !0
  6738. }]
  6739. },
  6740. {
  6741. name: "ScriptTask",
  6742. superClass: ["Task"],
  6743. properties: [{
  6744. name: "scriptFormat",
  6745. isAttr: !0,
  6746. type: "String"
  6747. },
  6748. {
  6749. name: "script",
  6750. type: "String"
  6751. }]
  6752. },
  6753. {
  6754. name: "BusinessRuleTask",
  6755. superClass: ["Task"],
  6756. properties: [{
  6757. name: "implementation",
  6758. isAttr: !0,
  6759. type: "String"
  6760. }]
  6761. },
  6762. {
  6763. name: "AdHocSubProcess",
  6764. superClass: ["SubProcess"],
  6765. properties: [{
  6766. name: "completionCondition",
  6767. type: "Expression",
  6768. xml: {
  6769. serialize: "xsi:type"
  6770. }
  6771. },
  6772. {
  6773. name: "ordering",
  6774. type: "AdHocOrdering",
  6775. isAttr: !0
  6776. },
  6777. {
  6778. name: "cancelRemainingInstances",
  6779. default:
  6780. !0,
  6781. isAttr: !0,
  6782. type: "Boolean"
  6783. }]
  6784. },
  6785. {
  6786. name: "Transaction",
  6787. superClass: ["SubProcess"],
  6788. properties: [{
  6789. name: "protocol",
  6790. isAttr: !0,
  6791. type: "String"
  6792. },
  6793. {
  6794. name: "method",
  6795. isAttr: !0,
  6796. type: "String"
  6797. }]
  6798. },
  6799. {
  6800. name: "GlobalScriptTask",
  6801. superClass: ["GlobalTask"],
  6802. properties: [{
  6803. name: "scriptLanguage",
  6804. isAttr: !0,
  6805. type: "String"
  6806. },
  6807. {
  6808. name: "script",
  6809. isAttr: !0,
  6810. type: "String"
  6811. }]
  6812. },
  6813. {
  6814. name: "GlobalBusinessRuleTask",
  6815. superClass: ["GlobalTask"],
  6816. properties: [{
  6817. name: "implementation",
  6818. isAttr: !0,
  6819. type: "String"
  6820. }]
  6821. },
  6822. {
  6823. name: "ComplexBehaviorDefinition",
  6824. superClass: ["BaseElement"],
  6825. properties: [{
  6826. name: "condition",
  6827. type: "FormalExpression"
  6828. },
  6829. {
  6830. name: "event",
  6831. type: "ImplicitThrowEvent"
  6832. }]
  6833. },
  6834. {
  6835. name: "ResourceRole",
  6836. superClass: ["BaseElement"],
  6837. properties: [{
  6838. name: "resourceRef",
  6839. type: "Resource",
  6840. isReference: !0
  6841. },
  6842. {
  6843. name: "resourceParameterBindings",
  6844. type: "ResourceParameterBinding",
  6845. isMany: !0
  6846. },
  6847. {
  6848. name: "resourceAssignmentExpression",
  6849. type: "ResourceAssignmentExpression"
  6850. },
  6851. {
  6852. name: "name",
  6853. isAttr: !0,
  6854. type: "String"
  6855. }]
  6856. },
  6857. {
  6858. name: "ResourceParameterBinding",
  6859. properties: [{
  6860. name: "expression",
  6861. type: "Expression",
  6862. xml: {
  6863. serialize: "xsi:type"
  6864. }
  6865. },
  6866. {
  6867. name: "parameterRef",
  6868. type: "ResourceParameter",
  6869. isAttr: !0,
  6870. isReference: !0
  6871. }]
  6872. },
  6873. {
  6874. name: "ResourceAssignmentExpression",
  6875. properties: [{
  6876. name: "expression",
  6877. type: "Expression",
  6878. xml: {
  6879. serialize: "xsi:type"
  6880. }
  6881. }],
  6882. superClass: ["BaseElement"]
  6883. },
  6884. {
  6885. name: "Import",
  6886. properties: [{
  6887. name: "importType",
  6888. isAttr: !0,
  6889. type: "String"
  6890. },
  6891. {
  6892. name: "location",
  6893. isAttr: !0,
  6894. type: "String"
  6895. },
  6896. {
  6897. name: "namespace",
  6898. isAttr: !0,
  6899. type: "String"
  6900. }]
  6901. },
  6902. {
  6903. name: "Definitions",
  6904. superClass: ["BaseElement"],
  6905. properties: [{
  6906. name: "name",
  6907. isAttr: !0,
  6908. type: "String"
  6909. },
  6910. {
  6911. name: "targetNamespace",
  6912. isAttr: !0,
  6913. type: "String"
  6914. },
  6915. {
  6916. name: "expressionLanguage",
  6917. default:
  6918. "http://www.w3.org/1999/XPath",
  6919. isAttr: !0,
  6920. type: "String"
  6921. },
  6922. {
  6923. name: "typeLanguage",
  6924. default:
  6925. "http://www.w3.org/2001/XMLSchema",
  6926. isAttr: !0,
  6927. type: "String"
  6928. },
  6929. {
  6930. name: "imports",
  6931. type: "Import",
  6932. isMany: !0
  6933. },
  6934. {
  6935. name: "extensions",
  6936. type: "Extension",
  6937. isMany: !0
  6938. },
  6939. {
  6940. name: "rootElements",
  6941. type: "RootElement",
  6942. isMany: !0
  6943. },
  6944. {
  6945. name: "diagrams",
  6946. isMany: !0,
  6947. type: "bpmndi:BPMNDiagram"
  6948. },
  6949. {
  6950. name: "exporter",
  6951. isAttr: !0,
  6952. type: "String"
  6953. },
  6954. {
  6955. name: "relationships",
  6956. type: "Relationship",
  6957. isMany: !0
  6958. },
  6959. {
  6960. name: "exporterVersion",
  6961. isAttr: !0,
  6962. type: "String"
  6963. }]
  6964. }],
  6965. emumerations: [{
  6966. name: "ProcessType",
  6967. literalValues: [{
  6968. name: "None"
  6969. },
  6970. {
  6971. name: "Public"
  6972. },
  6973. {
  6974. name: "Private"
  6975. }]
  6976. },
  6977. {
  6978. name: "GatewayDirection",
  6979. literalValues: [{
  6980. name: "Unspecified"
  6981. },
  6982. {
  6983. name: "Converging"
  6984. },
  6985. {
  6986. name: "Diverging"
  6987. },
  6988. {
  6989. name: "Mixed"
  6990. }]
  6991. },
  6992. {
  6993. name: "EventBasedGatewayType",
  6994. literalValues: [{
  6995. name: "Parallel"
  6996. },
  6997. {
  6998. name: "Exclusive"
  6999. }]
  7000. },
  7001. {
  7002. name: "RelationshipDirection",
  7003. literalValues: [{
  7004. name: "None"
  7005. },
  7006. {
  7007. name: "Forward"
  7008. },
  7009. {
  7010. name: "Backward"
  7011. },
  7012. {
  7013. name: "Both"
  7014. }]
  7015. },
  7016. {
  7017. name: "ItemKind",
  7018. literalValues: [{
  7019. name: "Physical"
  7020. },
  7021. {
  7022. name: "Information"
  7023. }]
  7024. },
  7025. {
  7026. name: "ChoreographyLoopType",
  7027. literalValues: [{
  7028. name: "None"
  7029. },
  7030. {
  7031. name: "Standard"
  7032. },
  7033. {
  7034. name: "MultiInstanceSequential"
  7035. },
  7036. {
  7037. name: "MultiInstanceParallel"
  7038. }]
  7039. },
  7040. {
  7041. name: "AssociationDirection",
  7042. literalValues: [{
  7043. name: "None"
  7044. },
  7045. {
  7046. name: "One"
  7047. },
  7048. {
  7049. name: "Both"
  7050. }]
  7051. },
  7052. {
  7053. name: "MultiInstanceBehavior",
  7054. literalValues: [{
  7055. name: "None"
  7056. },
  7057. {
  7058. name: "One"
  7059. },
  7060. {
  7061. name: "All"
  7062. },
  7063. {
  7064. name: "Complex"
  7065. }]
  7066. },
  7067. {
  7068. name: "AdHocOrdering",
  7069. literalValues: [{
  7070. name: "Parallel"
  7071. },
  7072. {
  7073. name: "Sequential"
  7074. }]
  7075. }],
  7076. prefix: "bpmn",
  7077. xml: {
  7078. tagAlias: "lowerCase",
  7079. typePrefix: "t"
  7080. }
  7081. }
  7082. },
  7083. {}],
  7084. 33 : [function(e, t, n) {
  7085. t.exports = {
  7086. name: "BPMNDI",
  7087. uri: "http://www.omg.org/spec/BPMN/20100524/DI",
  7088. types: [{
  7089. name: "BPMNDiagram",
  7090. properties: [{
  7091. name: "plane",
  7092. type: "BPMNPlane",
  7093. redefines: "di:Diagram#rootElement"
  7094. },
  7095. {
  7096. name: "labelStyle",
  7097. type: "BPMNLabelStyle",
  7098. isMany: !0
  7099. }],
  7100. superClass: ["di:Diagram"]
  7101. },
  7102. {
  7103. name: "BPMNPlane",
  7104. properties: [{
  7105. name: "bpmnElement",
  7106. isAttr: !0,
  7107. isReference: !0,
  7108. type: "bpmn:BaseElement",
  7109. redefines: "di:DiagramElement#modelElement"
  7110. }],
  7111. superClass: ["di:Plane"]
  7112. },
  7113. {
  7114. name: "BPMNShape",
  7115. properties: [{
  7116. name: "bpmnElement",
  7117. isAttr: !0,
  7118. isReference: !0,
  7119. type: "bpmn:BaseElement",
  7120. redefines: "di:DiagramElement#modelElement"
  7121. },
  7122. {
  7123. name: "isHorizontal",
  7124. isAttr: !0,
  7125. type: "Boolean"
  7126. },
  7127. {
  7128. name: "isExpanded",
  7129. isAttr: !0,
  7130. type: "Boolean"
  7131. },
  7132. {
  7133. name: "isMarkerVisible",
  7134. isAttr: !0,
  7135. type: "Boolean"
  7136. },
  7137. {
  7138. name: "label",
  7139. type: "BPMNLabel"
  7140. },
  7141. {
  7142. name: "isMessageVisible",
  7143. isAttr: !0,
  7144. type: "Boolean"
  7145. },
  7146. {
  7147. name: "participantBandKind",
  7148. type: "ParticipantBandKind",
  7149. isAttr: !0
  7150. },
  7151. {
  7152. name: "choreographyActivityShape",
  7153. type: "BPMNShape",
  7154. isAttr: !0,
  7155. isReference: !0
  7156. }],
  7157. superClass: ["di:LabeledShape"]
  7158. },
  7159. {
  7160. name: "BPMNEdge",
  7161. properties: [{
  7162. name: "label",
  7163. type: "BPMNLabel"
  7164. },
  7165. {
  7166. name: "bpmnElement",
  7167. isAttr: !0,
  7168. isReference: !0,
  7169. type: "bpmn:BaseElement",
  7170. redefines: "di:DiagramElement#modelElement"
  7171. },
  7172. {
  7173. name: "sourceElement",
  7174. isAttr: !0,
  7175. isReference: !0,
  7176. type: "di:DiagramElement",
  7177. redefines: "di:Edge#source"
  7178. },
  7179. {
  7180. name: "targetElement",
  7181. isAttr: !0,
  7182. isReference: !0,
  7183. type: "di:DiagramElement",
  7184. redefines: "di:Edge#target"
  7185. },
  7186. {
  7187. name: "messageVisibleKind",
  7188. type: "MessageVisibleKind",
  7189. isAttr: !0,
  7190. default:
  7191. "initiating"
  7192. }],
  7193. superClass: ["di:LabeledEdge"]
  7194. },
  7195. {
  7196. name: "BPMNLabel",
  7197. properties: [{
  7198. name: "labelStyle",
  7199. type: "BPMNLabelStyle",
  7200. isAttr: !0,
  7201. isReference: !0,
  7202. redefines: "di:DiagramElement#style"
  7203. }],
  7204. superClass: ["di:Label"]
  7205. },
  7206. {
  7207. name: "BPMNLabelStyle",
  7208. properties: [{
  7209. name: "font",
  7210. type: "dc:Font"
  7211. }],
  7212. superClass: ["di:Style"]
  7213. }],
  7214. emumerations: [{
  7215. name: "ParticipantBandKind",
  7216. literalValues: [{
  7217. name: "top_initiating"
  7218. },
  7219. {
  7220. name: "middle_initiating"
  7221. },
  7222. {
  7223. name: "bottom_initiating"
  7224. },
  7225. {
  7226. name: "top_non_initiating"
  7227. },
  7228. {
  7229. name: "middle_non_initiating"
  7230. },
  7231. {
  7232. name: "bottom_non_initiating"
  7233. }]
  7234. },
  7235. {
  7236. name: "MessageVisibleKind",
  7237. literalValues: [{
  7238. name: "initiating"
  7239. },
  7240. {
  7241. name: "non_initiating"
  7242. }]
  7243. }],
  7244. associations: [],
  7245. prefix: "bpmndi"
  7246. }
  7247. },
  7248. {}],
  7249. 34 : [function(e, t, n) {
  7250. t.exports = {
  7251. name: "DC",
  7252. uri: "http://www.omg.org/spec/DD/20100524/DC",
  7253. types: [{
  7254. name: "Boolean"
  7255. },
  7256. {
  7257. name: "Integer"
  7258. },
  7259. {
  7260. name: "Real"
  7261. },
  7262. {
  7263. name: "String"
  7264. },
  7265. {
  7266. name: "Font",
  7267. properties: [{
  7268. name: "name",
  7269. type: "String",
  7270. isAttr: !0
  7271. },
  7272. {
  7273. name: "size",
  7274. type: "Real",
  7275. isAttr: !0
  7276. },
  7277. {
  7278. name: "isBold",
  7279. type: "Boolean",
  7280. isAttr: !0
  7281. },
  7282. {
  7283. name: "isItalic",
  7284. type: "Boolean",
  7285. isAttr: !0
  7286. },
  7287. {
  7288. name: "isUnderline",
  7289. type: "Boolean",
  7290. isAttr: !0
  7291. },
  7292. {
  7293. name: "isStrikeThrough",
  7294. type: "Boolean",
  7295. isAttr: !0
  7296. }]
  7297. },
  7298. {
  7299. name: "Point",
  7300. properties: [{
  7301. name: "x",
  7302. type: "Real",
  7303. default:
  7304. "0",
  7305. isAttr: !0
  7306. },
  7307. {
  7308. name: "y",
  7309. type: "Real",
  7310. default:
  7311. "0",
  7312. isAttr: !0
  7313. }]
  7314. },
  7315. {
  7316. name: "Bounds",
  7317. properties: [{
  7318. name: "x",
  7319. type: "Real",
  7320. default:
  7321. "0",
  7322. isAttr: !0
  7323. },
  7324. {
  7325. name: "y",
  7326. type: "Real",
  7327. default:
  7328. "0",
  7329. isAttr: !0
  7330. },
  7331. {
  7332. name: "width",
  7333. type: "Real",
  7334. isAttr: !0
  7335. },
  7336. {
  7337. name: "height",
  7338. type: "Real",
  7339. isAttr: !0
  7340. }]
  7341. }],
  7342. prefix: "dc",
  7343. associations: []
  7344. }
  7345. },
  7346. {}],
  7347. 35 : [function(e, t, n) {
  7348. t.exports = {
  7349. name: "DI",
  7350. uri: "http://www.omg.org/spec/DD/20100524/DI",
  7351. types: [{
  7352. name: "DiagramElement",
  7353. isAbstract: !0,
  7354. properties: [{
  7355. name: "id",
  7356. type: "String",
  7357. isAttr: !0,
  7358. isId: !0
  7359. },
  7360. {
  7361. name: "extension",
  7362. type: "Extension"
  7363. },
  7364. {
  7365. name: "owningDiagram",
  7366. type: "Diagram",
  7367. isReadOnly: !0,
  7368. isVirtual: !0,
  7369. isReference: !0
  7370. },
  7371. {
  7372. name: "owningElement",
  7373. type: "DiagramElement",
  7374. isReadOnly: !0,
  7375. isVirtual: !0,
  7376. isReference: !0
  7377. },
  7378. {
  7379. name: "modelElement",
  7380. isReadOnly: !0,
  7381. isVirtual: !0,
  7382. isReference: !0,
  7383. type: "Element"
  7384. },
  7385. {
  7386. name: "style",
  7387. type: "Style",
  7388. isReadOnly: !0,
  7389. isVirtual: !0,
  7390. isReference: !0
  7391. },
  7392. {
  7393. name: "ownedElement",
  7394. type: "DiagramElement",
  7395. isReadOnly: !0,
  7396. isVirtual: !0,
  7397. isMany: !0
  7398. }]
  7399. },
  7400. {
  7401. name: "Node",
  7402. isAbstract: !0,
  7403. superClass: ["DiagramElement"]
  7404. },
  7405. {
  7406. name: "Edge",
  7407. isAbstract: !0,
  7408. superClass: ["DiagramElement"],
  7409. properties: [{
  7410. name: "source",
  7411. type: "DiagramElement",
  7412. isReadOnly: !0,
  7413. isVirtual: !0,
  7414. isReference: !0
  7415. },
  7416. {
  7417. name: "target",
  7418. type: "DiagramElement",
  7419. isReadOnly: !0,
  7420. isVirtual: !0,
  7421. isReference: !0
  7422. },
  7423. {
  7424. name: "waypoint",
  7425. isUnique: !1,
  7426. isMany: !0,
  7427. type: "dc:Point",
  7428. xml: {
  7429. serialize: "xsi:type"
  7430. }
  7431. }]
  7432. },
  7433. {
  7434. name: "Diagram",
  7435. isAbstract: !0,
  7436. properties: [{
  7437. name: "id",
  7438. type: "String",
  7439. isAttr: !0,
  7440. isId: !0
  7441. },
  7442. {
  7443. name: "rootElement",
  7444. type: "DiagramElement",
  7445. isReadOnly: !0,
  7446. isVirtual: !0
  7447. },
  7448. {
  7449. name: "name",
  7450. isAttr: !0,
  7451. type: "String"
  7452. },
  7453. {
  7454. name: "documentation",
  7455. isAttr: !0,
  7456. type: "String"
  7457. },
  7458. {
  7459. name: "resolution",
  7460. isAttr: !0,
  7461. type: "Real"
  7462. },
  7463. {
  7464. name: "ownedStyle",
  7465. type: "Style",
  7466. isReadOnly: !0,
  7467. isVirtual: !0,
  7468. isMany: !0
  7469. }]
  7470. },
  7471. {
  7472. name: "Shape",
  7473. isAbstract: !0,
  7474. superClass: ["Node"],
  7475. properties: [{
  7476. name: "bounds",
  7477. type: "dc:Bounds"
  7478. }]
  7479. },
  7480. {
  7481. name: "Plane",
  7482. isAbstract: !0,
  7483. superClass: ["Node"],
  7484. properties: [{
  7485. name: "planeElement",
  7486. type: "DiagramElement",
  7487. subsettedProperty: "DiagramElement-ownedElement",
  7488. isMany: !0
  7489. }]
  7490. },
  7491. {
  7492. name: "LabeledEdge",
  7493. isAbstract: !0,
  7494. superClass: ["Edge"],
  7495. properties: [{
  7496. name: "ownedLabel",
  7497. type: "Label",
  7498. isReadOnly: !0,
  7499. subsettedProperty: "DiagramElement-ownedElement",
  7500. isVirtual: !0,
  7501. isMany: !0
  7502. }]
  7503. },
  7504. {
  7505. name: "LabeledShape",
  7506. isAbstract: !0,
  7507. superClass: ["Shape"],
  7508. properties: [{
  7509. name: "ownedLabel",
  7510. type: "Label",
  7511. isReadOnly: !0,
  7512. subsettedProperty: "DiagramElement-ownedElement",
  7513. isVirtual: !0,
  7514. isMany: !0
  7515. }]
  7516. },
  7517. {
  7518. name: "Label",
  7519. isAbstract: !0,
  7520. superClass: ["Node"],
  7521. properties: [{
  7522. name: "bounds",
  7523. type: "dc:Bounds"
  7524. }]
  7525. },
  7526. {
  7527. name: "Style",
  7528. isAbstract: !0,
  7529. properties: [{
  7530. name: "id",
  7531. type: "String",
  7532. isAttr: !0,
  7533. isId: !0
  7534. }]
  7535. },
  7536. {
  7537. name: "Extension",
  7538. properties: [{
  7539. name: "values",
  7540. type: "Element",
  7541. isMany: !0
  7542. }]
  7543. }],
  7544. associations: [],
  7545. prefix: "di",
  7546. xml: {
  7547. tagAlias: "lowerCase"
  7548. }
  7549. }
  7550. },
  7551. {}],
  7552. 36 : [function(e, t, n) {
  7553. t.exports = e(37)
  7554. },
  7555. {
  7556. 37 : 37
  7557. }],
  7558. 37 : [function(e, t, n) {
  7559. "use strict";
  7560. function r(e) {
  7561. function t(e) {
  7562. return i.indexOf(e) >= 0
  7563. }
  7564. function n(e) {
  7565. i.push(e)
  7566. }
  7567. function r(e) {
  7568. t(e) || ((e.__depends__ || []).forEach(r), t(e) || (n(e), (e.__init__ || []).forEach(function(e) {
  7569. o.push(e)
  7570. })))
  7571. }
  7572. var i = [],
  7573. o = [];
  7574. e.forEach(r);
  7575. var s = new a.Injector(i);
  7576. return o.forEach(function(e) {
  7577. try {
  7578. s["string" == typeof e ? "get": "invoke"](e)
  7579. } catch(e) {
  7580. throw console.error("Failed to instantiate component"),
  7581. console.error(e.stack),
  7582. e
  7583. }
  7584. }),
  7585. s
  7586. }
  7587. function i(t) {
  7588. t = t || {};
  7589. var n = {
  7590. config: ["value", t]
  7591. },
  7592. i = e(43),
  7593. o = [n, i].concat(t.modules || []);
  7594. return r(o)
  7595. }
  7596. function o(e, t) {
  7597. this.injector = t = t || i(e),
  7598. this.get = t.get,
  7599. this.invoke = t.invoke,
  7600. this.get("eventBus").fire("diagram.init")
  7601. }
  7602. var a = e(71);
  7603. t.exports = o,
  7604. o.prototype.destroy = function() {
  7605. this.get("eventBus").fire("diagram.destroy")
  7606. },
  7607. o.prototype.clear = function() {
  7608. this.get("eventBus").fire("diagram.clear")
  7609. }
  7610. },
  7611. {
  7612. 43 : 43,
  7613. 71 : 71
  7614. }],
  7615. 38 : [function(e, t, n) {
  7616. "use strict";
  7617. function r(e, t) {
  7618. return Math.round(e * t) / t
  7619. }
  7620. function i(e) {
  7621. return l(e) ? e + "px": e
  7622. }
  7623. function o(e) {
  7624. e = u({},
  7625. {
  7626. width: "100%",
  7627. height: "100%"
  7628. },
  7629. e);
  7630. var t = e.container || document.body,
  7631. n = document.createElement("div");
  7632. return n.setAttribute("class", "djs-container"),
  7633. u(n.style, {
  7634. position: "relative",
  7635. overflow: "hidden",
  7636. width: i(e.width),
  7637. height: i(e.height)
  7638. }),
  7639. t.appendChild(n),
  7640. n
  7641. }
  7642. function a(e, t) {
  7643. return e.group().attr({
  7644. class: t
  7645. })
  7646. }
  7647. function s(e, t, n, r) {
  7648. this._eventBus = t,
  7649. this._elementRegistry = r,
  7650. this._graphicsFactory = n,
  7651. this._init(e || {})
  7652. }
  7653. function c(e, t) {
  7654. var n = "matrix(" + t.a + "," + t.b + "," + t.c + "," + t.d + "," + t.e + "," + t.f + ")";
  7655. e.setAttribute("transform", n)
  7656. }
  7657. var l = e(191),
  7658. u = e(197),
  7659. p = e(83),
  7660. f = e(80),
  7661. h = e(91),
  7662. d = e(61),
  7663. m = e(62),
  7664. y = e(76),
  7665. g = "base",
  7666. v = {
  7667. shape: ["x", "y", "width", "height"],
  7668. connection: ["waypoints"]
  7669. };
  7670. s.$inject = ["config.canvas", "eventBus", "graphicsFactory", "elementRegistry"],
  7671. t.exports = s,
  7672. s.prototype._init = function(e) {
  7673. var t = this._eventBus,
  7674. n = this._container = o(e),
  7675. r = this._svg = y.createSnapAt("100%", "100%", n),
  7676. i = this._viewport = a(r, "viewport");
  7677. this._layers = {},
  7678. e.deferUpdate !== !1 && (this._viewboxChanged = h(this._viewboxChanged, 300)),
  7679. t.on("diagram.init",
  7680. function() {
  7681. t.fire("canvas.init", {
  7682. svg: r,
  7683. viewport: i
  7684. }),
  7685. this.resized()
  7686. },
  7687. this),
  7688. t.on("diagram.destroy", 500, this._destroy, this),
  7689. t.on("diagram.clear", 500, this._clear, this)
  7690. },
  7691. s.prototype._destroy = function(e) {
  7692. this._eventBus.fire("canvas.destroy", {
  7693. svg: this._svg,
  7694. viewport: this._viewport
  7695. });
  7696. var t = this._container.parentNode;
  7697. t && t.removeChild(this._container),
  7698. delete this._svg,
  7699. delete this._container,
  7700. delete this._layers,
  7701. delete this._rootElement,
  7702. delete this._viewport
  7703. },
  7704. s.prototype._clear = function() {
  7705. var e = this,
  7706. t = this._elementRegistry.getAll();
  7707. t.forEach(function(t) {
  7708. var n = m.getType(t);
  7709. "root" === n ? e.setRootElement(null, !0) : e._removeElement(t, n)
  7710. }),
  7711. delete this._cachedViewbox
  7712. },
  7713. s.prototype.getDefaultLayer = function() {
  7714. return this.getLayer(g)
  7715. },
  7716. s.prototype.getLayer = function(e) {
  7717. if (!e) throw new Error("must specify a name");
  7718. var t = this._layers[e];
  7719. return t || (t = this._layers[e] = a(this._viewport, "layer-" + e)),
  7720. t
  7721. },
  7722. s.prototype.getContainer = function() {
  7723. return this._container
  7724. },
  7725. s.prototype._updateMarker = function(e, t, n) {
  7726. var r;
  7727. e.id || (e = this._elementRegistry.get(e)),
  7728. r = this._elementRegistry._elements[e.id],
  7729. r && (p([r.gfx, r.secondaryGfx],
  7730. function(e) {
  7731. e && e[n ? "addClass": "removeClass"](t)
  7732. }), this._eventBus.fire("element.marker.update", {
  7733. element: e,
  7734. gfx: r.gfx,
  7735. marker: t,
  7736. add: !!n
  7737. }))
  7738. },
  7739. s.prototype.addMarker = function(e, t) {
  7740. this._updateMarker(e, t, !0)
  7741. },
  7742. s.prototype.removeMarker = function(e, t) {
  7743. this._updateMarker(e, t, !1)
  7744. },
  7745. s.prototype.hasMarker = function(e, t) {
  7746. e.id || (e = this._elementRegistry.get(e));
  7747. var n = this.getGraphics(e);
  7748. return n && n.hasClass(t)
  7749. },
  7750. s.prototype.toggleMarker = function(e, t) {
  7751. this.hasMarker(e, t) ? this.removeMarker(e, t) : this.addMarker(e, t)
  7752. },
  7753. s.prototype.getRootElement = function() {
  7754. return this._rootElement || this.setRootElement({
  7755. id: "__implicitroot",
  7756. children: []
  7757. }),
  7758. this._rootElement
  7759. },
  7760. s.prototype.setRootElement = function(e, t) {
  7761. e && this._ensureValid("root", e);
  7762. var n = this._rootElement,
  7763. r = this._elementRegistry,
  7764. i = this._eventBus;
  7765. if (n) {
  7766. if (!t) throw new Error("rootElement already set, need to specify override");
  7767. i.fire("root.remove", {
  7768. element: n
  7769. }),
  7770. i.fire("root.removed", {
  7771. element: n
  7772. }),
  7773. r.remove(n)
  7774. }
  7775. if (e) {
  7776. var o = this.getDefaultLayer();
  7777. i.fire("root.add", {
  7778. element: e
  7779. }),
  7780. r.add(e, o, this._svg),
  7781. i.fire("root.added", {
  7782. element: e,
  7783. gfx: o
  7784. })
  7785. }
  7786. return this._rootElement = e,
  7787. e
  7788. },
  7789. s.prototype._ensureValid = function(e, t) {
  7790. if (!t.id) throw new Error("element must have an id");
  7791. if (this._elementRegistry.get(t.id)) throw new Error("element with id " + t.id + " already exists");
  7792. var n = v[e],
  7793. r = f(n,
  7794. function(e) {
  7795. return "undefined" != typeof t[e]
  7796. });
  7797. if (!r) throw new Error("must supply { " + n.join(", ") + " } with " + e)
  7798. },
  7799. s.prototype._setParent = function(e, t, n) {
  7800. d.add(t.children, e, n),
  7801. e.parent = t
  7802. },
  7803. s.prototype._addElement = function(e, t, n, r) {
  7804. n = n || this.getRootElement();
  7805. var i = this._eventBus,
  7806. o = this._graphicsFactory;
  7807. this._ensureValid(e, t),
  7808. i.fire(e + ".add", {
  7809. element: t,
  7810. parent: n
  7811. }),
  7812. this._setParent(t, n, r);
  7813. var a = o.create(e, t);
  7814. return this._elementRegistry.add(t, a),
  7815. o.update(e, t, a),
  7816. i.fire(e + ".added", {
  7817. element: t,
  7818. gfx: a
  7819. }),
  7820. t
  7821. },
  7822. s.prototype.addShape = function(e, t, n) {
  7823. return this._addElement("shape", e, t, n)
  7824. },
  7825. s.prototype.addConnection = function(e, t, n) {
  7826. return this._addElement("connection", e, t, n)
  7827. },
  7828. s.prototype._removeElement = function(e, t) {
  7829. var n = this._elementRegistry,
  7830. r = this._graphicsFactory,
  7831. i = this._eventBus;
  7832. if (e = n.get(e.id || e)) return i.fire(t + ".remove", {
  7833. element: e
  7834. }),
  7835. r.remove(e),
  7836. d.remove(e.parent && e.parent.children, e),
  7837. e.parent = null,
  7838. i.fire(t + ".removed", {
  7839. element: e
  7840. }),
  7841. n.remove(e),
  7842. e
  7843. },
  7844. s.prototype.removeShape = function(e) {
  7845. return this._removeElement(e, "shape")
  7846. },
  7847. s.prototype.removeConnection = function(e) {
  7848. return this._removeElement(e, "connection")
  7849. },
  7850. s.prototype.getGraphics = function(e, t) {
  7851. return this._elementRegistry.getGraphics(e, t)
  7852. },
  7853. s.prototype._changeViewbox = function(e) {
  7854. this._eventBus.fire("canvas.viewbox.changing"),
  7855. e.apply(this),
  7856. this._cachedViewbox = null,
  7857. this._viewboxChanged()
  7858. },
  7859. s.prototype._viewboxChanged = function() {
  7860. this._eventBus.fire("canvas.viewbox.changed", {
  7861. viewbox: this.viewbox()
  7862. })
  7863. },
  7864. s.prototype.viewbox = function(e) {
  7865. if (void 0 === e && this._cachedViewbox) return this._cachedViewbox;
  7866. var t, n, i, o, a, s = this._viewport,
  7867. c = this.getSize();
  7868. return e ? (this._changeViewbox(function() {
  7869. i = Math.min(c.width / e.width, c.height / e.height),
  7870. n = (new y.Matrix).scale(i).translate( - e.x, -e.y),
  7871. s.transform(n)
  7872. }), e) : (t = this.getDefaultLayer().getBBox(!0), n = s.transform().localMatrix, i = r(n.a, 1e3), o = r( - n.e || 0, 1e3), a = r( - n.f || 0, 1e3), e = this._cachedViewbox = {
  7873. x: o ? o / i: 0,
  7874. y: a ? a / i: 0,
  7875. width: c.width / i,
  7876. height: c.height / i,
  7877. scale: i,
  7878. inner: {
  7879. width: t.width,
  7880. height: t.height,
  7881. x: t.x,
  7882. y: t.y
  7883. },
  7884. outer: c
  7885. })
  7886. },
  7887. s.prototype.scroll = function(e) {
  7888. var t = this._viewport.node,
  7889. n = t.getCTM();
  7890. return e && this._changeViewbox(function() {
  7891. e = u({
  7892. dx: 0,
  7893. dy: 0
  7894. },
  7895. e || {}),
  7896. n = this._svg.node.createSVGMatrix().translate(e.dx, e.dy).multiply(n),
  7897. c(t, n)
  7898. }),
  7899. {
  7900. x: n.e,
  7901. y: n.f
  7902. }
  7903. },
  7904. s.prototype.zoom = function(e, t) {
  7905. if (!e) return this.viewbox(e).scale;
  7906. if ("fit-viewport" === e) return this._fitViewport(t);
  7907. var n, i;
  7908. return this._changeViewbox(function() {
  7909. "object" != typeof t && (n = this.viewbox().outer, t = {
  7910. x: n.width / 2,
  7911. y: n.height / 2
  7912. }),
  7913. i = this._setZoom(e, t)
  7914. }),
  7915. r(i.a, 1e3)
  7916. },
  7917. s.prototype._fitViewport = function(e) {
  7918. var t, n, r = this.viewbox(),
  7919. i = r.outer,
  7920. o = r.inner;
  7921. return o.x >= 0 && o.y >= 0 && o.x + o.width <= i.width && o.y + o.height <= i.height && !e ? n = {
  7922. x: 0,
  7923. y: 0,
  7924. width: Math.max(o.width + o.x, i.width),
  7925. height: Math.max(o.height + o.y, i.height)
  7926. }: (t = Math.min(1, i.width / o.width, i.height / o.height), n = {
  7927. x: o.x + (e ? o.width / 2 - i.width / t / 2 : 0),
  7928. y: o.y + (e ? o.height / 2 - i.height / t / 2 : 0),
  7929. width: i.width / t,
  7930. height: i.height / t
  7931. }),
  7932. this.viewbox(n),
  7933. this.viewbox(!1).scale
  7934. },
  7935. s.prototype._setZoom = function(e, t) {
  7936. var n, r, i, o, a, s = this._svg.node,
  7937. l = this._viewport.node,
  7938. p = s.createSVGMatrix(),
  7939. f = s.createSVGPoint();
  7940. i = l.getCTM();
  7941. var h = i.a;
  7942. return t ? (n = u(f, t), r = n.matrixTransform(i.inverse()), o = p.translate(r.x, r.y).scale(1 / h * e).translate( - r.x, -r.y), a = i.multiply(o)) : a = p.scale(e),
  7943. c(this._viewport.node, a),
  7944. a
  7945. },
  7946. s.prototype.getSize = function() {
  7947. return {
  7948. width: this._container.clientWidth,
  7949. height: this._container.clientHeight
  7950. }
  7951. },
  7952. s.prototype.getAbsoluteBBox = function(e) {
  7953. var t, n = this.viewbox();
  7954. if (e.waypoints) {
  7955. var r = this.getGraphics(e),
  7956. i = r.getBBox(!0);
  7957. t = r.getBBox(),
  7958. t.x -= i.x,
  7959. t.y -= i.y,
  7960. t.width += 2 * i.x,
  7961. t.height += 2 * i.y
  7962. } else t = e;
  7963. var o = t.x * n.scale - n.x * n.scale,
  7964. a = t.y * n.scale - n.y * n.scale,
  7965. s = t.width * n.scale,
  7966. c = t.height * n.scale;
  7967. return {
  7968. x: o,
  7969. y: a,
  7970. width: s,
  7971. height: c
  7972. }
  7973. },
  7974. s.prototype.resized = function() {
  7975. delete this._cachedViewbox,
  7976. this._eventBus.fire("canvas.resized")
  7977. }
  7978. },
  7979. {
  7980. 191 : 191,
  7981. 197 : 197,
  7982. 61 : 61,
  7983. 62 : 62,
  7984. 76 : 76,
  7985. 80 : 80,
  7986. 83 : 83,
  7987. 91 : 91
  7988. }],
  7989. 39 : [function(e, t, n) {
  7990. "use strict";
  7991. function r() {
  7992. this._uid = 12
  7993. }
  7994. var i = e(60),
  7995. o = e(197);
  7996. t.exports = r,
  7997. r.prototype.createRoot = function(e) {
  7998. return this.create("root", e)
  7999. },
  8000. r.prototype.createLabel = function(e) {
  8001. return this.create("label", e)
  8002. },
  8003. r.prototype.createShape = function(e) {
  8004. return this.create("shape", e)
  8005. },
  8006. r.prototype.createConnection = function(e) {
  8007. return this.create("connection", e)
  8008. },
  8009. r.prototype.create = function(e, t) {
  8010. return t = o({},
  8011. t || {}),
  8012. t.id || (t.id = e + "_" + this._uid++),
  8013. i.create(e, t)
  8014. }
  8015. },
  8016. {
  8017. 197 : 197,
  8018. 60 : 60
  8019. }],
  8020. 40 : [function(e, t, n) {
  8021. "use strict";
  8022. function r() {
  8023. this._elements = {}
  8024. }
  8025. var i = "data-element-id";
  8026. t.exports = r,
  8027. r.prototype.add = function(e, t, n) {
  8028. var r = e.id;
  8029. this._validateId(r),
  8030. t.attr(i, r),
  8031. n && n.attr(i, r),
  8032. this._elements[r] = {
  8033. element: e,
  8034. gfx: t,
  8035. secondaryGfx: n
  8036. }
  8037. },
  8038. r.prototype.remove = function(e) {
  8039. var t = this._elements,
  8040. n = e.id || e,
  8041. r = n && t[n];
  8042. r && (r.gfx.attr(i, ""), r.secondaryGfx && r.secondaryGfx.attr(i, ""), delete t[n])
  8043. },
  8044. r.prototype.updateId = function(e, t) {
  8045. this._validateId(t),
  8046. "string" == typeof e && (e = this.get(e));
  8047. var n = this.getGraphics(e),
  8048. r = this.getGraphics(e, !0);
  8049. this.remove(e),
  8050. e.id = t,
  8051. this.add(e, n, r)
  8052. },
  8053. r.prototype.get = function(e) {
  8054. var t;
  8055. t = "string" == typeof e ? e: e && e.attr(i);
  8056. var n = this._elements[t];
  8057. return n && n.element
  8058. },
  8059. r.prototype.filter = function(e) {
  8060. var t = [];
  8061. return this.forEach(function(n, r) {
  8062. e(n, r) && t.push(n)
  8063. }),
  8064. t
  8065. },
  8066. r.prototype.getAll = function() {
  8067. return this.filter(function(e) {
  8068. return e
  8069. })
  8070. },
  8071. r.prototype.forEach = function(e) {
  8072. var t = this._elements;
  8073. Object.keys(t).forEach(function(n) {
  8074. var r = t[n],
  8075. i = r.element,
  8076. o = r.gfx;
  8077. return e(i, o)
  8078. })
  8079. },
  8080. r.prototype.getGraphics = function(e, t) {
  8081. var n = e.id || e,
  8082. r = this._elements[n];
  8083. return r && (t ? r.secondaryGfx: r.gfx)
  8084. },
  8085. r.prototype._validateId = function(e) {
  8086. if (!e) throw new Error("element must have an id");
  8087. if (this._elements[e]) throw new Error("element with id " + e + " already added")
  8088. }
  8089. },
  8090. {}],
  8091. 41 : [function(e, t, n) {
  8092. "use strict";
  8093. function r() {
  8094. this._listeners = {},
  8095. this.on("diagram.destroy", 1, this._destroy, this)
  8096. }
  8097. function i() {}
  8098. function o(e, t) {
  8099. return e.apply(null, t)
  8100. }
  8101. var a = e(189),
  8102. s = e(188),
  8103. c = e(191),
  8104. l = e(90),
  8105. u = e(197),
  8106. p = "__fn",
  8107. f = 1e3,
  8108. h = Array.prototype.slice;
  8109. t.exports = r,
  8110. r.prototype.on = function(e, t, n, r) {
  8111. if (e = s(e) ? e: [e], a(t) && (r = n, n = t, t = f), !c(t)) throw new Error("priority must be a number");
  8112. var i = n;
  8113. r && (i = l(n, r), i[p] = n[p] || n);
  8114. var o = this,
  8115. u = {
  8116. priority: t,
  8117. callback: i
  8118. };
  8119. e.forEach(function(e) {
  8120. o._addListener(e, u)
  8121. })
  8122. },
  8123. r.prototype.once = function(e, t, n, r) {
  8124. function i() {
  8125. return o.off(e, i),
  8126. n.apply(r, arguments)
  8127. }
  8128. var o = this;
  8129. if (a(t) && (r = n, n = t, t = f), !c(t)) throw new Error("priority must be a number");
  8130. i[p] = n,
  8131. this.on(e, t, i)
  8132. },
  8133. r.prototype.off = function(e, t) {
  8134. var n, r, i, o = this._getListeners(e);
  8135. if (t) for (i = o.length - 1; n = o[i]; i--) r = n.callback,
  8136. r !== t && r[p] !== t || o.splice(i, 1);
  8137. else o.length = 0
  8138. },
  8139. r.prototype.fire = function(e, t) {
  8140. var n, r, o, a;
  8141. if (a = h.call(arguments), "object" == typeof e && (n = e, e = n.type), !e) throw new Error("no event type specified");
  8142. if (r = this._listeners[e]) {
  8143. t instanceof i ? n = t: (n = new i, n.init(t)),
  8144. a[0] = n;
  8145. var s = n.type;
  8146. e !== s && (n.type = e);
  8147. try {
  8148. o = this._invokeListeners(n, a, r)
  8149. } finally {
  8150. e !== s && (n.type = s)
  8151. }
  8152. return void 0 === o && n.defaultPrevented && (o = !1),
  8153. o
  8154. }
  8155. },
  8156. r.prototype.handleError = function(e) {
  8157. return this.fire("error", {
  8158. error: e
  8159. }) === !1
  8160. },
  8161. r.prototype._destroy = function() {
  8162. this._listeners = {}
  8163. },
  8164. r.prototype._invokeListeners = function(e, t, n) {
  8165. var r, i, o;
  8166. for (r = 0; (i = n[r]) && !e.cancelBubble; r++) o = this._invokeListener(e, t, i);
  8167. return o
  8168. },
  8169. r.prototype._invokeListener = function(e, t, n) {
  8170. var r;
  8171. try {
  8172. r = o(n.callback, t),
  8173. void 0 !== r && (e.returnValue = r, e.stopPropagation()),
  8174. r === !1 && e.preventDefault()
  8175. } catch(e) {
  8176. if (!this.handleError(e)) throw console.error("unhandled error in event listener"),
  8177. console.error(e.stack),
  8178. e
  8179. }
  8180. return r
  8181. },
  8182. r.prototype._addListener = function(e, t) {
  8183. var n, r, i = this._getListeners(e);
  8184. for (r = 0; n = i[r]; r++) if (n.priority < t.priority) return void i.splice(r, 0, t);
  8185. i.push(t)
  8186. },
  8187. r.prototype._getListeners = function(e) {
  8188. var t = this._listeners[e];
  8189. return t || (this._listeners[e] = t = []),
  8190. t
  8191. },
  8192. t.exports.Event = i,
  8193. i.prototype.stopPropagation = function() {
  8194. this.cancelBubble = !0
  8195. },
  8196. i.prototype.preventDefault = function() {
  8197. this.defaultPrevented = !0
  8198. },
  8199. i.prototype.init = function(e) {
  8200. u(this, e || {})
  8201. }
  8202. },
  8203. {
  8204. 188 : 188,
  8205. 189 : 189,
  8206. 191 : 191,
  8207. 197 : 197,
  8208. 90 : 90
  8209. }],
  8210. 42 : [function(e, t, n) {
  8211. "use strict";
  8212. function r(e, t) {
  8213. this._eventBus = e,
  8214. this._elementRegistry = t
  8215. }
  8216. var i = e(83),
  8217. o = e(87),
  8218. a = e(64),
  8219. s = e(210);
  8220. r.$inject = ["eventBus", "elementRegistry"],
  8221. t.exports = r,
  8222. r.prototype._getChildren = function(e) {
  8223. var t, n = this._elementRegistry.getGraphics(e);
  8224. return e.parent ? (t = a.getChildren(n), t || (t = n.parent().group().attr("class", "djs-children"))) : t = n,
  8225. t
  8226. },
  8227. r.prototype._clear = function(e) {
  8228. var t = a.getVisual(e);
  8229. return s(t.node),
  8230. t
  8231. },
  8232. r.prototype._createContainer = function(e, t) {
  8233. var n = t.group().attr("class", "djs-group"),
  8234. r = n.group().attr("class", "djs-element djs-" + e);
  8235. return r.group().attr("class", "djs-visual"),
  8236. r
  8237. },
  8238. r.prototype.create = function(e, t) {
  8239. var n = this._getChildren(t.parent);
  8240. return this._createContainer(e, n)
  8241. },
  8242. r.prototype.updateContainments = function(e) {
  8243. var t, n = this,
  8244. r = this._elementRegistry;
  8245. t = o(e,
  8246. function(e, t) {
  8247. return t.parent && (e[t.parent.id] = t.parent),
  8248. e
  8249. },
  8250. {}),
  8251. i(t,
  8252. function(e) {
  8253. var t = n._getChildren(e),
  8254. o = e.children;
  8255. o && i(o.slice().reverse(),
  8256. function(e) {
  8257. var n = r.getGraphics(e);
  8258. n.parent().prependTo(t)
  8259. })
  8260. })
  8261. },
  8262. r.prototype.drawShape = function(e, t) {
  8263. var n = this._eventBus;
  8264. return n.fire("render.shape", {
  8265. gfx: e,
  8266. element: t
  8267. })
  8268. },
  8269. r.prototype.getShapePath = function(e) {
  8270. var t = this._eventBus;
  8271. return t.fire("render.getShapePath", e)
  8272. },
  8273. r.prototype.drawConnection = function(e, t) {
  8274. var n = this._eventBus;
  8275. return n.fire("render.connection", {
  8276. gfx: e,
  8277. element: t
  8278. })
  8279. },
  8280. r.prototype.getConnectionPath = function(e) {
  8281. var t = this._eventBus;
  8282. return t.fire("render.getConnectionPath", e)
  8283. },
  8284. r.prototype.update = function(e, t, n) {
  8285. if (t.parent) {
  8286. var r = this._clear(n);
  8287. if ("shape" === e) this.drawShape(r, t),
  8288. n.translate(t.x, t.y);
  8289. else {
  8290. if ("connection" !== e) throw new Error("unknown type: " + e);
  8291. this.drawConnection(r, t)
  8292. }
  8293. n.attr("display", t.hidden ? "none": "block")
  8294. }
  8295. },
  8296. r.prototype.remove = function(e) {
  8297. var t = this._elementRegistry.getGraphics(e);
  8298. t.parent().remove()
  8299. }
  8300. },
  8301. {
  8302. 210 : 210,
  8303. 64 : 64,
  8304. 83 : 83,
  8305. 87 : 87
  8306. }],
  8307. 43 : [function(e, t, n) {
  8308. t.exports = {
  8309. __depends__: [e(47)],
  8310. __init__: ["canvas"],
  8311. canvas: ["type", e(38)],
  8312. elementRegistry: ["type", e(40)],
  8313. elementFactory: ["type", e(39)],
  8314. eventBus: ["type", e(41)],
  8315. graphicsFactory: ["type", e(42)]
  8316. }
  8317. },
  8318. {
  8319. 38 : 38,
  8320. 39 : 39,
  8321. 40 : 40,
  8322. 41 : 41,
  8323. 42 : 42,
  8324. 47 : 47
  8325. }],
  8326. 44 : [function(e, t, n) {
  8327. "use strict";
  8328. function r(e, t) {
  8329. var n = this;
  8330. t = t || i,
  8331. e.on(["render.shape", "render.connection"], t,
  8332. function(e, t) {
  8333. var r = e.type,
  8334. i = t.element,
  8335. o = t.gfx;
  8336. if (n.canRender(i)) return "render.shape" === r ? n.drawShape(o, i) : n.drawConnection(o, i)
  8337. }),
  8338. e.on(["render.getShapePath", "render.getConnectionPath"], t,
  8339. function(e, t) {
  8340. if (n.canRender(t)) return "render.getShapePath" === e.type ? n.getShapePath(t) : n.getConnectionPath(t)
  8341. })
  8342. }
  8343. var i = 1e3;
  8344. r.prototype.canRender = function() {},
  8345. r.prototype.drawShape = function() {},
  8346. r.prototype.drawConnection = function() {},
  8347. r.prototype.getShapePath = function() {},
  8348. r.prototype.getConnectionPath = function() {},
  8349. t.exports = r
  8350. },
  8351. {}],
  8352. 45 : [function(e, t, n) {
  8353. "use strict";
  8354. function r(e, t) {
  8355. o.call(this, e, l),
  8356. this.CONNECTION_STYLE = t.style(["no-fill"], {
  8357. strokeWidth: 5,
  8358. stroke: "fuchsia"
  8359. }),
  8360. this.SHAPE_STYLE = t.style({
  8361. fill: "white",
  8362. stroke: "fuchsia",
  8363. strokeWidth: 2
  8364. })
  8365. }
  8366. var i = e(77),
  8367. o = e(44),
  8368. a = e(68),
  8369. s = a.componentsToPath,
  8370. c = a.createLine,
  8371. l = 1;
  8372. i(r, o),
  8373. r.prototype.canRender = function() {
  8374. return ! 0
  8375. },
  8376. r.prototype.drawShape = function(e, t) {
  8377. return e.rect(0, 0, t.width || 0, t.height || 0).attr(this.SHAPE_STYLE)
  8378. },
  8379. r.prototype.drawConnection = function(e, t) {
  8380. return c(t.waypoints, this.CONNECTION_STYLE).appendTo(e)
  8381. },
  8382. r.prototype.getShapePath = function(e) {
  8383. var t = e.x,
  8384. n = e.y,
  8385. r = e.width,
  8386. i = e.height,
  8387. o = [["M", t, n], ["l", r, 0], ["l", 0, i], ["l", -r, 0], ["z"]];
  8388. return s(o)
  8389. },
  8390. r.prototype.getConnectionPath = function(e) {
  8391. var t, n, r = e.waypoints,
  8392. i = [];
  8393. for (t = 0; n = r[t]; t++) n = n.original || n,
  8394. i.push([0 === t ? "M": "L", n.x, n.y]);
  8395. return s(i)
  8396. },
  8397. r.$inject = ["eventBus", "styles"],
  8398. t.exports = r
  8399. },
  8400. {
  8401. 44 : 44,
  8402. 68 : 68,
  8403. 77 : 77
  8404. }],
  8405. 46 : [function(e, t, n) {
  8406. "use strict";
  8407. function r() {
  8408. var e = {
  8409. "no-fill": {
  8410. fill: "none"
  8411. },
  8412. "no-border": {
  8413. strokeOpacity: 0
  8414. },
  8415. "no-events": {
  8416. pointerEvents: "none"
  8417. }
  8418. },
  8419. t = this;
  8420. this.cls = function(e, t, n) {
  8421. var r = this.style(t, n);
  8422. return o(r, {
  8423. class: e
  8424. })
  8425. },
  8426. this.style = function(t, n) {
  8427. i(t) || n || (n = t, t = []);
  8428. var r = a(t,
  8429. function(t, n) {
  8430. return o(t, e[n] || {})
  8431. },
  8432. {});
  8433. return n ? o(r, n) : r
  8434. },
  8435. this.computeStyle = function(e, n, r) {
  8436. return i(n) || (r = n, n = []),
  8437. t.style(n || [], o({},
  8438. r, e || {}))
  8439. }
  8440. }
  8441. var i = e(188),
  8442. o = e(197),
  8443. a = e(87);
  8444. t.exports = r
  8445. },
  8446. {
  8447. 188 : 188,
  8448. 197 : 197,
  8449. 87 : 87
  8450. }],
  8451. 47 : [function(e, t, n) {
  8452. t.exports = {
  8453. __init__: ["defaultRenderer"],
  8454. defaultRenderer: ["type", e(45)],
  8455. styles: ["type", e(46)]
  8456. }
  8457. },
  8458. {
  8459. 45 : 45,
  8460. 46 : 46
  8461. }],
  8462. 48 : [function(e, t, n) {
  8463. "use strict";
  8464. function r(e, t, n) {
  8465. function r(n, r, i) {
  8466. if (a(r)) {
  8467. var o, c, l;
  8468. i ? c = t.getGraphics(i) : (o = r.delegateTarget || r.target, o && (c = new s(o), i = t.get(c))),
  8469. c && i && (l = e.fire(n, {
  8470. element: i,
  8471. gfx: c,
  8472. originalEvent: r
  8473. }), l === !1 && (r.stopPropagation(), r.preventDefault()))
  8474. }
  8475. }
  8476. function c(e) {
  8477. var t = v[e];
  8478. return t || (t = v[e] = function(t) {
  8479. r(e, t)
  8480. }),
  8481. t
  8482. }
  8483. function f(e, t, n) {
  8484. var i = x[e];
  8485. if (!i) throw new Error("unmapped DOM event name <" + e + ">");
  8486. return r(i, t, n)
  8487. }
  8488. function h(e, t, n) {
  8489. var r = c(n);
  8490. r.$delegate = o.bind(e, b, t, r)
  8491. }
  8492. function d(e, t, n) {
  8493. o.unbind(e, t, c(n).$delegate)
  8494. }
  8495. function m(e) {
  8496. i(x,
  8497. function(t, n) {
  8498. h(e.node, n, t)
  8499. })
  8500. }
  8501. function y(e) {
  8502. i(x,
  8503. function(t, n) {
  8504. d(e.node, n, t)
  8505. })
  8506. }
  8507. var g = n.cls("djs-hit", ["no-fill", "no-border"], {
  8508. stroke: "white",
  8509. strokeWidth: 15
  8510. }),
  8511. v = {},
  8512. x = {
  8513. mouseover: "element.hover",
  8514. mouseout: "element.out",
  8515. click: "element.click",
  8516. dblclick: "element.dblclick",
  8517. mousedown: "element.mousedown",
  8518. mouseup: "element.mouseup"
  8519. },
  8520. b = "svg, .djs-element";
  8521. e.on("canvas.destroy",
  8522. function(e) {
  8523. y(e.svg)
  8524. }),
  8525. e.on("canvas.init",
  8526. function(e) {
  8527. m(e.svg)
  8528. }),
  8529. e.on(["shape.added", "connection.added"],
  8530. function(e) {
  8531. var t, n = e.element,
  8532. r = e.gfx;
  8533. t = n.waypoints ? l(n.waypoints) : s.create("rect", {
  8534. x: 0,
  8535. y: 0,
  8536. width: n.width,
  8537. height: n.height
  8538. }),
  8539. t.attr(g).appendTo(r.node)
  8540. }),
  8541. e.on("shape.changed", p,
  8542. function(e) {
  8543. var t = e.element,
  8544. n = e.gfx,
  8545. r = n.select(".djs-hit");
  8546. r.attr({
  8547. width: t.width,
  8548. height: t.height
  8549. })
  8550. }),
  8551. e.on("connection.changed",
  8552. function(e) {
  8553. var t = e.element,
  8554. n = e.gfx,
  8555. r = n.select(".djs-hit");
  8556. u(r, t.waypoints)
  8557. }),
  8558. this.fire = r,
  8559. this.triggerMouseEvent = f,
  8560. this.mouseHandler = c,
  8561. this.registerEvent = h,
  8562. this.unregisterEvent = d
  8563. }
  8564. var i = e(83),
  8565. o = e(211),
  8566. a = e(66).isPrimaryButton,
  8567. s = e(76),
  8568. c = e(68),
  8569. l = c.createLine,
  8570. u = c.updateLine,
  8571. p = 500;
  8572. r.$inject = ["eventBus", "elementRegistry", "styles"],
  8573. t.exports = r
  8574. },
  8575. {
  8576. 211 : 211,
  8577. 66 : 66,
  8578. 68 : 68,
  8579. 76 : 76,
  8580. 83 : 83
  8581. }],
  8582. 49 : [function(e, t, n) {
  8583. t.exports = {
  8584. __init__: ["interactionEvents"],
  8585. interactionEvents: ["type", e(48)]
  8586. }
  8587. },
  8588. {
  8589. 48 : 48
  8590. }],
  8591. 50 : [function(e, t, n) {
  8592. "use strict";
  8593. function r(e, t, n) {
  8594. function r(e, t) {
  8595. return e.rect(10, 10, 0, 0).attr(i)
  8596. }
  8597. this.offset = 6;
  8598. var i = t.cls("djs-outline", ["no-fill"]),
  8599. a = this;
  8600. e.on(["shape.added", "shape.changed"], o,
  8601. function(e) {
  8602. var t = e.element,
  8603. n = e.gfx,
  8604. i = n.select(".djs-outline");
  8605. i || (i = r(n, t)),
  8606. a.updateShapeOutline(i, t)
  8607. }),
  8608. e.on(["connection.added", "connection.changed"],
  8609. function(e) {
  8610. var t = e.element,
  8611. n = e.gfx,
  8612. i = n.select(".djs-outline");
  8613. i || (i = r(n, t)),
  8614. a.updateConnectionOutline(i, t)
  8615. })
  8616. }
  8617. var i = e(62).getBBox,
  8618. o = 500;
  8619. r.prototype.updateShapeOutline = function(e, t) {
  8620. e.attr({
  8621. x: -this.offset,
  8622. y: -this.offset,
  8623. width: t.width + 2 * this.offset,
  8624. height: t.height + 2 * this.offset
  8625. })
  8626. },
  8627. r.prototype.updateConnectionOutline = function(e, t) {
  8628. var n = i(t);
  8629. e.attr({
  8630. x: n.x - this.offset,
  8631. y: n.y - this.offset,
  8632. width: n.width + 2 * this.offset,
  8633. height: n.height + 2 * this.offset
  8634. })
  8635. },
  8636. r.$inject = ["eventBus", "styles", "elementRegistry"],
  8637. t.exports = r
  8638. },
  8639. {
  8640. 62 : 62
  8641. }],
  8642. 51 : [function(e, t, n) {
  8643. "use strict";
  8644. t.exports = {
  8645. __init__: ["outline"],
  8646. outline: ["type", e(50)]
  8647. }
  8648. },
  8649. {
  8650. 50 : 50
  8651. }],
  8652. 52 : [function(e, t, n) {
  8653. "use strict";
  8654. function r(e) {
  8655. var t = d('<div class="djs-overlay-container" style="position: absolute; width: 0; height: 0;" />');
  8656. return e.insertBefore(t, e.firstChild),
  8657. t
  8658. }
  8659. function i(e, t, n) {
  8660. u(e.style, {
  8661. left: t + "px",
  8662. top: n + "px"
  8663. })
  8664. }
  8665. function o(e, t) {
  8666. e.style.display = t === !1 ? "none": ""
  8667. }
  8668. function a(e, t, n) {
  8669. this._eventBus = e,
  8670. this._canvas = t,
  8671. this._elementRegistry = n,
  8672. this._ids = b,
  8673. this._overlayDefaults = {
  8674. show: {
  8675. minZoom: .7,
  8676. maxZoom: 5
  8677. }
  8678. },
  8679. this._overlays = {},
  8680. this._overlayContainers = [],
  8681. this._overlayRoot = r(t.getContainer()),
  8682. this._init()
  8683. }
  8684. var s = e(188),
  8685. c = e(194),
  8686. l = e(192),
  8687. u = e(197),
  8688. p = e(83),
  8689. f = e(82),
  8690. h = e(81),
  8691. d = e(212),
  8692. m = e(209),
  8693. y = e(208),
  8694. g = e(215),
  8695. v = e(210),
  8696. x = e(62).getBBox,
  8697. b = new(e(65))("ov");
  8698. a.$inject = ["eventBus", "canvas", "elementRegistry"],
  8699. t.exports = a,
  8700. a.prototype.get = function(e) {
  8701. if (c(e) && (e = {
  8702. id: e
  8703. }), c(e.element) && (e.element = this._elementRegistry.get(e.element)), e.element) {
  8704. var t = this._getOverlayContainer(e.element, !0);
  8705. return t ? e.type ? h(t.overlays, {
  8706. type: e.type
  8707. }) : t.overlays.slice() : []
  8708. }
  8709. return e.type ? h(this._overlays, {
  8710. type: e.type
  8711. }) : e.id ? this._overlays[e.id] : null
  8712. },
  8713. a.prototype.add = function(e, t, n) {
  8714. if (l(t) && (n = t, t = null), e.id || (e = this._elementRegistry.get(e)), !n.position) throw new Error("must specifiy overlay position");
  8715. if (!n.html) throw new Error("must specifiy overlay html");
  8716. if (!e) throw new Error("invalid element specified");
  8717. var r = this._ids.next();
  8718. return n = u({},
  8719. this._overlayDefaults, n, {
  8720. id: r,
  8721. type: t,
  8722. element: e,
  8723. html: n.html
  8724. }),
  8725. this._addOverlay(n),
  8726. r
  8727. },
  8728. a.prototype.remove = function(e) {
  8729. var t = this.get(e) || [];
  8730. s(t) || (t = [t]);
  8731. var n = this;
  8732. p(t,
  8733. function(e) {
  8734. var t = n._getOverlayContainer(e.element, !0);
  8735. if (e && (g(e.html), g(e.htmlContainer), delete e.htmlContainer, delete e.element, delete n._overlays[e.id]), t) {
  8736. var r = t.overlays.indexOf(e);
  8737. r !== -1 && t.overlays.splice(r, 1)
  8738. }
  8739. })
  8740. },
  8741. a.prototype.show = function() {
  8742. o(this._overlayRoot)
  8743. },
  8744. a.prototype.hide = function() {
  8745. o(this._overlayRoot, !1)
  8746. },
  8747. a.prototype.clear = function() {
  8748. this._overlays = {},
  8749. this._overlayContainers = [],
  8750. v(this._overlayRoot)
  8751. },
  8752. a.prototype._updateOverlayContainer = function(e) {
  8753. var t = e.element,
  8754. n = e.html,
  8755. r = t.x,
  8756. o = t.y;
  8757. if (t.waypoints) {
  8758. var a = x(t);
  8759. r = a.x,
  8760. o = a.y
  8761. }
  8762. i(n, r, o),
  8763. y(e.html, "data-container-id", t.id)
  8764. },
  8765. a.prototype._updateOverlay = function(e) {
  8766. var t = e.position,
  8767. n = e.htmlContainer,
  8768. r = e.element,
  8769. o = t.left,
  8770. a = t.top;
  8771. if (void 0 !== t.right) {
  8772. var s;
  8773. s = r.waypoints ? x(r).width: r.width,
  8774. o = t.right * -1 + s
  8775. }
  8776. if (void 0 !== t.bottom) {
  8777. var c;
  8778. c = r.waypoints ? x(r).height: r.height,
  8779. a = t.bottom * -1 + c
  8780. }
  8781. i(n, o || 0, a || 0)
  8782. },
  8783. a.prototype._createOverlayContainer = function(e) {
  8784. var t = d('<div class="djs-overlays" style="position: absolute" />');
  8785. this._overlayRoot.appendChild(t);
  8786. var n = {
  8787. html: t,
  8788. element: e,
  8789. overlays: []
  8790. };
  8791. return this._updateOverlayContainer(n),
  8792. this._overlayContainers.push(n),
  8793. n
  8794. },
  8795. a.prototype._updateRoot = function(e) {
  8796. var t = e.scale || 1,
  8797. n = e.scale || 1,
  8798. r = "matrix(" + t + ",0,0," + n + "," + -1 * e.x * t + "," + -1 * e.y * n + ")";
  8799. this._overlayRoot.style.transform = r,
  8800. this._overlayRoot.style["-ms-transform"] = r,
  8801. this._overlayRoot.style["-webkit-transform"] = r
  8802. },
  8803. a.prototype._getOverlayContainer = function(e, t) {
  8804. var n = f(this._overlayContainers,
  8805. function(t) {
  8806. return t.element === e
  8807. });
  8808. return n || t ? n: this._createOverlayContainer(e)
  8809. },
  8810. a.prototype._addOverlay = function(e) {
  8811. var t, n, r = e.id,
  8812. i = e.element,
  8813. o = e.html;
  8814. o.get && (o = o.get(0)),
  8815. c(o) && (o = d(o)),
  8816. n = this._getOverlayContainer(i),
  8817. t = d('<div class="djs-overlay" data-overlay-id="' + r + '" style="position: absolute">'),
  8818. t.appendChild(o),
  8819. e.type && m(t).add("djs-overlay-" + e.type),
  8820. e.htmlContainer = t,
  8821. n.overlays.push(e),
  8822. n.html.appendChild(t),
  8823. this._overlays[r] = e,
  8824. this._updateOverlay(e),
  8825. this._updateOverlayVisibilty(e, this._canvas.viewbox())
  8826. },
  8827. a.prototype._updateOverlayVisibilty = function(e, t) {
  8828. var n = e.show,
  8829. r = e.htmlContainer,
  8830. i = !0;
  8831. n && ((n.minZoom > t.scale || n.maxZoom < t.scale) && (i = !1), o(r, i))
  8832. },
  8833. a.prototype._updateOverlaysVisibilty = function(e) {
  8834. var t = this;
  8835. p(this._overlays,
  8836. function(n) {
  8837. t._updateOverlayVisibilty(n, e)
  8838. })
  8839. },
  8840. a.prototype._init = function() {
  8841. function e(e) {
  8842. n._updateRoot(e),
  8843. n._updateOverlaysVisibilty(e),
  8844. n.show()
  8845. }
  8846. var t = this._eventBus,
  8847. n = this;
  8848. t.on("canvas.viewbox.changing",
  8849. function(e) {
  8850. n.hide()
  8851. }),
  8852. t.on("canvas.viewbox.changed",
  8853. function(t) {
  8854. e(t.viewbox)
  8855. }),
  8856. t.on(["shape.remove", "connection.remove"],
  8857. function(e) {
  8858. var t = e.element,
  8859. r = n.get({
  8860. element: t
  8861. });
  8862. p(r,
  8863. function(e) {
  8864. n.remove(e.id)
  8865. });
  8866. var i = n._getOverlayContainer(t);
  8867. if (i) {
  8868. g(i.html);
  8869. var o = n._overlayContainers.indexOf(i);
  8870. o !== -1 && n._overlayContainers.splice(o, 1)
  8871. }
  8872. }),
  8873. t.on(["element.changed"],
  8874. function(e) {
  8875. var t = e.element,
  8876. r = n._getOverlayContainer(t, !0);
  8877. r && (p(r.overlays,
  8878. function(e) {
  8879. n._updateOverlay(e)
  8880. }), n._updateOverlayContainer(r))
  8881. }),
  8882. t.on("element.marker.update",
  8883. function(e) {
  8884. var t = n._getOverlayContainer(e.element, !0);
  8885. t && m(t.html)[e.add ? "add": "remove"](e.marker)
  8886. }),
  8887. t.on("diagram.clear", this.clear, this)
  8888. }
  8889. },
  8890. {
  8891. 188 : 188,
  8892. 192 : 192,
  8893. 194 : 194,
  8894. 197 : 197,
  8895. 208 : 208,
  8896. 209 : 209,
  8897. 210 : 210,
  8898. 212 : 212,
  8899. 215 : 215,
  8900. 62 : 62,
  8901. 65 : 65,
  8902. 81 : 81,
  8903. 82 : 82,
  8904. 83 : 83
  8905. }],
  8906. 53 : [function(e, t, n) {
  8907. t.exports = {
  8908. __init__: ["overlays"],
  8909. overlays: ["type", e(52)]
  8910. }
  8911. },
  8912. {
  8913. 52 : 52
  8914. }],
  8915. 54 : [function(e, t, n) {
  8916. "use strict";
  8917. function r(e) {
  8918. this._eventBus = e,
  8919. this._selectedElements = [];
  8920. var t = this;
  8921. e.on(["shape.remove", "connection.remove"],
  8922. function(e) {
  8923. var n = e.element;
  8924. t.deselect(n)
  8925. }),
  8926. e.on(["diagram.clear"],
  8927. function(e) {
  8928. t.select(null)
  8929. })
  8930. }
  8931. var i = e(188),
  8932. o = e(83);
  8933. r.$inject = ["eventBus"],
  8934. t.exports = r,
  8935. r.prototype.deselect = function(e) {
  8936. var t = this._selectedElements,
  8937. n = t.indexOf(e);
  8938. if (n !== -1) {
  8939. var r = t.slice();
  8940. t.splice(n, 1),
  8941. this._eventBus.fire("selection.changed", {
  8942. oldSelection: r,
  8943. newSelection: t
  8944. })
  8945. }
  8946. },
  8947. r.prototype.get = function() {
  8948. return this._selectedElements
  8949. },
  8950. r.prototype.isSelected = function(e) {
  8951. return this._selectedElements.indexOf(e) !== -1
  8952. },
  8953. r.prototype.select = function(e, t) {
  8954. var n = this._selectedElements,
  8955. r = n.slice();
  8956. i(e) || (e = e ? [e] : []),
  8957. t ? o(e,
  8958. function(e) {
  8959. n.indexOf(e) === -1 && n.push(e)
  8960. }) : this._selectedElements = n = e.slice(),
  8961. this._eventBus.fire("selection.changed", {
  8962. oldSelection: r,
  8963. newSelection: n
  8964. })
  8965. }
  8966. },
  8967. {
  8968. 188 : 188,
  8969. 83 : 83
  8970. }],
  8971. 55 : [function(e, t, n) {
  8972. "use strict";
  8973. function r(e, t, n, r) {
  8974. e.on("create.end", 500,
  8975. function(e) {
  8976. e.context.canExecute && t.select(e.context.shape)
  8977. }),
  8978. e.on("connect.end", 500,
  8979. function(e) {
  8980. e.context.canExecute && e.context.target && t.select(e.context.target)
  8981. }),
  8982. e.on("shape.move.end", 500,
  8983. function(e) {
  8984. var n = e.previousSelection || [],
  8985. i = r.get(e.context.shape.id),
  8986. a = o(n,
  8987. function(e) {
  8988. return i.id === e.id
  8989. });
  8990. a || t.select(i)
  8991. }),
  8992. e.on("element.click",
  8993. function(e) {
  8994. var r = e.element;
  8995. r === n.getRootElement() && (r = null);
  8996. var o = t.isSelected(r),
  8997. a = t.get().length > 1,
  8998. s = i(e);
  8999. return o && a ? s ? t.deselect(r) : t.select(r) : void(o ? t.deselect(r) : t.select(r, s))
  9000. })
  9001. }
  9002. var i = e(66).hasPrimaryModifier,
  9003. o = e(82);
  9004. r.$inject = ["eventBus", "selection", "canvas", "elementRegistry"],
  9005. t.exports = r
  9006. },
  9007. {
  9008. 66 : 66,
  9009. 82 : 82
  9010. }],
  9011. 56 : [function(e, t, n) {
  9012. "use strict";
  9013. function r(e, t, n, r, s) {
  9014. function c(e, n) {
  9015. t.addMarker(e, n)
  9016. }
  9017. function l(e, n) {
  9018. t.removeMarker(e, n)
  9019. }
  9020. this._multiSelectionBox = null,
  9021. e.on("element.hover",
  9022. function(e) {
  9023. c(e.element, o)
  9024. }),
  9025. e.on("element.out",
  9026. function(e) {
  9027. l(e.element, o)
  9028. }),
  9029. e.on("selection.changed",
  9030. function(e) {
  9031. function t(e) {
  9032. l(e, a)
  9033. }
  9034. function n(e) {
  9035. c(e, a)
  9036. }
  9037. var r = e.oldSelection,
  9038. o = e.newSelection;
  9039. i(r,
  9040. function(e) {
  9041. o.indexOf(e) === -1 && t(e)
  9042. }),
  9043. i(o,
  9044. function(e) {
  9045. r.indexOf(e) === -1 && n(e)
  9046. })
  9047. })
  9048. }
  9049. var i = e(83),
  9050. o = "hover",
  9051. a = "selected";
  9052. r.$inject = ["eventBus", "canvas", "selection", "graphicsFactory", "styles"],
  9053. t.exports = r
  9054. },
  9055. {
  9056. 83 : 83
  9057. }],
  9058. 57 : [function(e, t, n) {
  9059. t.exports = {
  9060. __init__: ["selectionVisuals", "selectionBehavior"],
  9061. __depends__: [e(49), e(51)],
  9062. selection: ["type", e(54)],
  9063. selectionVisuals: ["type", e(56)],
  9064. selectionBehavior: ["type", e(55)]
  9065. }
  9066. },
  9067. {
  9068. 49 : 49,
  9069. 51 : 51,
  9070. 54 : 54,
  9071. 55 : 55,
  9072. 56 : 56
  9073. }],
  9074. 58 : [function(e, t, n) {
  9075. t.exports = {
  9076. translate: ["value", e(59)]
  9077. }
  9078. },
  9079. {
  9080. 59 : 59
  9081. }],
  9082. 59 : [function(e, t, n) {
  9083. "use strict";
  9084. t.exports = function(e, t) {
  9085. return t = t || {},
  9086. e.replace(/{([^}]+)}/g,
  9087. function(e, n) {
  9088. return t[n] || "{" + n + "}"
  9089. })
  9090. }
  9091. },
  9092. {}],
  9093. 60 : [function(e, t, n) {
  9094. "use strict";
  9095. function r() {
  9096. Object.defineProperty(this, "businessObject", {
  9097. writable: !0
  9098. }),
  9099. p.bind(this, "parent"),
  9100. f.bind(this, "label"),
  9101. d.bind(this, "outgoing"),
  9102. m.bind(this, "incoming")
  9103. }
  9104. function i() {
  9105. r.call(this),
  9106. p.bind(this, "children"),
  9107. h.bind(this, "host"),
  9108. h.bind(this, "attachers")
  9109. }
  9110. function o() {
  9111. i.call(this)
  9112. }
  9113. function a() {
  9114. i.call(this),
  9115. f.bind(this, "labelTarget")
  9116. }
  9117. function s() {
  9118. r.call(this),
  9119. d.bind(this, "source"),
  9120. m.bind(this, "target")
  9121. }
  9122. var c = e(197),
  9123. l = e(77),
  9124. u = e(224),
  9125. p = new u({
  9126. name: "children",
  9127. enumerable: !0,
  9128. collection: !0
  9129. },
  9130. {
  9131. name: "parent"
  9132. }),
  9133. f = new u({
  9134. name: "label",
  9135. enumerable: !0
  9136. },
  9137. {
  9138. name: "labelTarget"
  9139. }),
  9140. h = new u({
  9141. name: "attachers",
  9142. collection: !0
  9143. },
  9144. {
  9145. name: "host"
  9146. }),
  9147. d = new u({
  9148. name: "outgoing",
  9149. collection: !0
  9150. },
  9151. {
  9152. name: "source"
  9153. }),
  9154. m = new u({
  9155. name: "incoming",
  9156. collection: !0
  9157. },
  9158. {
  9159. name: "target"
  9160. });
  9161. l(i, r),
  9162. l(o, i),
  9163. l(a, i),
  9164. l(s, r);
  9165. var y = {
  9166. connection: s,
  9167. shape: i,
  9168. label: a,
  9169. root: o
  9170. };
  9171. t.exports.create = function(e, t) {
  9172. var n = y[e];
  9173. if (!n) throw new Error("unknown type: <" + e + ">");
  9174. return c(new n, t)
  9175. },
  9176. t.exports.Base = r,
  9177. t.exports.Root = o,
  9178. t.exports.Shape = i,
  9179. t.exports.Connection = s,
  9180. t.exports.Label = a
  9181. },
  9182. {
  9183. 197 : 197,
  9184. 224 : 224,
  9185. 77 : 77
  9186. }],
  9187. 61 : [function(e, t, n) {
  9188. "use strict";
  9189. t.exports.remove = function(e, t) {
  9190. if (!e || !t) return - 1;
  9191. var n = e.indexOf(t);
  9192. return n !== -1 && e.splice(n, 1),
  9193. n
  9194. },
  9195. t.exports.add = function(e, t, n) {
  9196. if (e && t) {
  9197. "number" != typeof n && (n = -1);
  9198. var r = e.indexOf(t);
  9199. if (r !== -1) {
  9200. if (r === n) return;
  9201. if (n === -1) return;
  9202. e.splice(r, 1)
  9203. }
  9204. n !== -1 ? e.splice(n, 0, t) : e.push(t)
  9205. }
  9206. },
  9207. t.exports.indexOf = function(e, t) {
  9208. return e && t ? e.indexOf(t) : -1
  9209. }
  9210. },
  9211. {}],
  9212. 62 : [function(e, t, n) {
  9213. "use strict";
  9214. function r(e, t, n) {
  9215. var r = !n || e.indexOf(t) === -1;
  9216. return r && e.push(t),
  9217. r
  9218. }
  9219. function i(e, t, n) {
  9220. n = n || 0,
  9221. f(e) || (e = [e]),
  9222. m(e,
  9223. function(e, r) {
  9224. var o = t(e, r, n);
  9225. f(o) && o.length && i(o, t, n + 1)
  9226. })
  9227. }
  9228. function o(e, t, n) {
  9229. var o = [],
  9230. a = [];
  9231. return i(e,
  9232. function(e, i, s) {
  9233. r(o, e, t);
  9234. var c = e.children;
  9235. if ((n === -1 || s < n) && c && r(a, c, t)) return c
  9236. }),
  9237. o
  9238. }
  9239. function a(e, t) {
  9240. return o(e, !t, 1)
  9241. }
  9242. function s(e, t) {
  9243. return o(e, !t, -1)
  9244. }
  9245. function c(e) {
  9246. function t(e) {
  9247. r[e.source.id] && r[e.target.id] && (r[e.id] = e),
  9248. o[e.source.id] && o[e.target.id] && (c[e.id] = s[e.id] = e),
  9249. a[e.id] = e
  9250. }
  9251. function n(e) {
  9252. return s[e.id] = e,
  9253. e.waypoints ? void(c[e.id] = a[e.id] = e) : (o[e.id] = e, m(e.incoming, t), m(e.outgoing, t), e.children)
  9254. }
  9255. var r = d(e,
  9256. function(e) {
  9257. return e.id
  9258. }),
  9259. o = {},
  9260. a = {},
  9261. s = {},
  9262. c = {};
  9263. return i(e, n),
  9264. {
  9265. allShapes: o,
  9266. allConnections: a,
  9267. topLevel: r,
  9268. enclosedConnections: c,
  9269. enclosedElements: s
  9270. }
  9271. }
  9272. function l(e, t) {
  9273. t = !!t,
  9274. f(e) || (e = [e]);
  9275. var n, r, i, o;
  9276. return m(e,
  9277. function(e) {
  9278. var a = e;
  9279. e.waypoints && !t && (a = l(e.waypoints, !0));
  9280. var s = a.x,
  9281. c = a.y,
  9282. u = a.height || 0,
  9283. p = a.width || 0; (s < n || void 0 === n) && (n = s),
  9284. (c < r || void 0 === r) && (r = c),
  9285. (s + p > i || void 0 === i) && (i = s + p),
  9286. (c + u > o || void 0 === o) && (o = c + u)
  9287. }),
  9288. {
  9289. x: n,
  9290. y: r,
  9291. height: o - r,
  9292. width: i - n
  9293. }
  9294. }
  9295. function u(e, t) {
  9296. var n = {};
  9297. return m(e,
  9298. function(e) {
  9299. var r = e;
  9300. r.waypoints && (r = l(r)),
  9301. !h(t.y) && r.x > t.x && (n[e.id] = e),
  9302. !h(t.x) && r.y > t.y && (n[e.id] = e),
  9303. r.x > t.x && r.y > t.y && (h(t.width) && h(t.height) && r.width + r.x < t.width + t.x && r.height + r.y < t.height + t.y ? n[e.id] = e: h(t.width) && h(t.height) || (n[e.id] = e))
  9304. }),
  9305. n
  9306. }
  9307. function p(e) {
  9308. return "waypoints" in e ? "connection": "x" in e ? "shape": "root"
  9309. }
  9310. var f = e(188),
  9311. h = e(191),
  9312. d = e(84),
  9313. m = e(83);
  9314. t.exports.add = r,
  9315. t.exports.eachElement = i,
  9316. t.exports.selfAndDirectChildren = a,
  9317. t.exports.selfAndAllChildren = s,
  9318. t.exports.getBBox = l,
  9319. t.exports.getEnclosedElements = u,
  9320. t.exports.getClosure = c,
  9321. t.exports.getType = p
  9322. },
  9323. {
  9324. 188 : 188,
  9325. 191 : 191,
  9326. 83 : 83,
  9327. 84 : 84
  9328. }],
  9329. 63 : [function(e, t, n) {
  9330. "use strict";
  9331. function r(e) {
  9332. return e && e.preventDefault()
  9333. }
  9334. function i(e, t) {
  9335. e && (e.stopPropagation && e.stopPropagation(), t && e.stopImmediatePropagation && e.stopImmediatePropagation())
  9336. }
  9337. function o(e) {
  9338. return e.originalEvent || e.srcEvent
  9339. }
  9340. function a(e, t) {
  9341. c(e, t),
  9342. s(e)
  9343. }
  9344. function s(e) {
  9345. r(e),
  9346. r(o(e))
  9347. }
  9348. function c(e, t) {
  9349. i(e, t),
  9350. i(o(e), t)
  9351. }
  9352. function l(e) {
  9353. return e.pointers && e.pointers.length && (e = e.pointers[0]),
  9354. e.touches && e.touches.length && (e = e.touches[0]),
  9355. e ? {
  9356. x: e.clientX,
  9357. y: e.clientY
  9358. }: null
  9359. }
  9360. t.exports.getOriginal = o,
  9361. t.exports.stopEvent = a,
  9362. t.exports.preventDefault = s,
  9363. t.exports.stopPropagation = c,
  9364. t.exports.toPoint = l
  9365. },
  9366. {}],
  9367. 64 : [function(e, t, n) {
  9368. "use strict";
  9369. function r(e) {
  9370. return e.select(".djs-visual")
  9371. }
  9372. function i(e) {
  9373. return e.parent().children()[1]
  9374. }
  9375. function o(e) {
  9376. return r(e).select("*").getBBox()
  9377. }
  9378. t.exports.getVisual = r,
  9379. t.exports.getChildren = i,
  9380. t.exports.getBBox = o
  9381. },
  9382. {}],
  9383. 65 : [function(e, t, n) {
  9384. "use strict";
  9385. function r(e) {
  9386. this._counter = 0,
  9387. this._prefix = (e ? e + "-": "") + Math.floor(1e9 * Math.random()) + "-"
  9388. }
  9389. t.exports = r,
  9390. r.prototype.next = function() {
  9391. return this._prefix + ++this._counter
  9392. }
  9393. },
  9394. {}],
  9395. 66 : [function(e, t, n) {
  9396. "use strict";
  9397. function r(e) {
  9398. return ! (i(e) || e).button
  9399. }
  9400. var i = e(63).getOriginal,
  9401. o = e(67).isMac;
  9402. t.exports.isPrimaryButton = r,
  9403. t.exports.isMac = o,
  9404. t.exports.hasPrimaryModifier = function(e) {
  9405. var t = i(e) || e;
  9406. return !! r(e) && (o() ? t.metaKey: t.ctrlKey)
  9407. },
  9408. t.exports.hasSecondaryModifier = function(e) {
  9409. var t = i(e) || e;
  9410. return r(e) && t.shiftKey
  9411. }
  9412. },
  9413. {
  9414. 63 : 63,
  9415. 67 : 67
  9416. }],
  9417. 67 : [function(e, t, n) {
  9418. "use strict";
  9419. t.exports.isMac = function() {
  9420. return /mac/i.test(navigator.platform)
  9421. }
  9422. },
  9423. {}],
  9424. 68 : [function(e, t, n) {
  9425. "use strict";
  9426. function r(e) {
  9427. for (var t, n = "",
  9428. r = 0; t = e[r]; r++) n += t.x + "," + t.y + " ";
  9429. return n
  9430. }
  9431. var i = e(76);
  9432. t.exports.componentsToPath = function(e) {
  9433. return e.join(",").replace(/,?([A-z]),?/g, "$1")
  9434. },
  9435. t.exports.toSVGPoints = r,
  9436. t.exports.createLine = function(e, t) {
  9437. return i.create("polyline", {
  9438. points: r(e)
  9439. }).attr(t || {})
  9440. },
  9441. t.exports.updateLine = function(e, t) {
  9442. return e.attr({
  9443. points: r(t)
  9444. })
  9445. }
  9446. },
  9447. {
  9448. 76 : 76
  9449. }],
  9450. 69 : [function(e, t, n) {
  9451. "use strict";
  9452. function r(e) {
  9453. var t = e.split("-");
  9454. return {
  9455. horizontal: t[0] || "center",
  9456. vertical: t[1] || "top"
  9457. }
  9458. }
  9459. function i(e) {
  9460. return p(e) ? f({
  9461. top: 0,
  9462. left: 0,
  9463. right: 0,
  9464. bottom: 0
  9465. },
  9466. e) : {
  9467. top: e,
  9468. left: e,
  9469. right: e,
  9470. bottom: e
  9471. }
  9472. }
  9473. function o(e, t) {
  9474. return t.textContent = e,
  9475. h(t.getBBox(), ["width", "height"])
  9476. }
  9477. function a(e, t, n) {
  9478. for (var r, i = e.shift(), a = i;;) {
  9479. if (r = o(a, n), r.width = a ? r.width: 0, " " === a || "" === a || r.width < Math.round(t) || a.length < 4) return s(e, a, i, r);
  9480. a = l(a, r.width, t)
  9481. }
  9482. }
  9483. function s(e, t, n, r) {
  9484. if (t.length < n.length) {
  9485. var i = e[0] || "",
  9486. o = n.slice(t.length).trim();
  9487. i = /-\s*$/.test(o) ? o + i.replace(/^\s+/, "") : o + " " + i,
  9488. e[0] = i
  9489. }
  9490. return {
  9491. width: r.width,
  9492. height: r.height,
  9493. text: t
  9494. }
  9495. }
  9496. function c(e, t) {
  9497. var n, r = e.split(/(\s|-)/g),
  9498. i = [],
  9499. o = 0;
  9500. if (r.length > 1) for (; n = r.shift();) {
  9501. if (! (n.length + o < t)) {
  9502. "-" === n && i.pop();
  9503. break
  9504. }
  9505. i.push(n),
  9506. o += n.length
  9507. }
  9508. return i.join("")
  9509. }
  9510. function l(e, t, n) {
  9511. var r = Math.max(e.length * (n / t), 1),
  9512. i = c(e, r);
  9513. return i || (i = e.slice(0, Math.max(Math.round(r - 1), 1))),
  9514. i
  9515. }
  9516. function u(e) {
  9517. this._config = f({},
  9518. {
  9519. size: x,
  9520. padding: v,
  9521. style: {},
  9522. align: "center-top"
  9523. },
  9524. e || {})
  9525. }
  9526. var p = e(192),
  9527. f = e(197),
  9528. h = e(203),
  9529. d = e(83),
  9530. m = e(87),
  9531. y = e(200),
  9532. g = e(76),
  9533. v = 0,
  9534. x = {
  9535. width: 150,
  9536. height: 50
  9537. };
  9538. u.prototype.createText = function(e, t, n) {
  9539. for (var o = y({},
  9540. this._config.size, n.box || {}), s = y({},
  9541. this._config.style, n.style || {}), c = r(n.align || this._config.align), l = i(void 0 !== n.padding ? n.padding: this._config.padding), u = t.split(/\r?\n/g), p = [], f = o.width - l.left - l.right, h = e.paper.text(0, 0, "").attr(s).node; u.length;) p.push(a(u, f, h));
  9542. var v, x, b = m(p,
  9543. function(e, t, n) {
  9544. return e + t.height
  9545. },
  9546. 0);
  9547. switch (c.vertical) {
  9548. case "middle":
  9549. v = (o.height - b) / 2 - p[0].height / 4;
  9550. break;
  9551. default:
  9552. v = l.top
  9553. }
  9554. var E = e.text().attr(s);
  9555. return d(p,
  9556. function(e) {
  9557. switch (v += e.height, c.horizontal) {
  9558. case "left":
  9559. x = l.left;
  9560. break;
  9561. case "right":
  9562. x = f - l.right - e.width;
  9563. break;
  9564. default:
  9565. x = Math.max((f - e.width) / 2 + l.left, 0)
  9566. }
  9567. var t = g.create("tspan", {
  9568. x: x,
  9569. y: v
  9570. }).node;
  9571. t.textContent = e.text,
  9572. E.append(t)
  9573. }),
  9574. h.parentNode.removeChild(h),
  9575. E
  9576. },
  9577. t.exports = u
  9578. },
  9579. {
  9580. 192 : 192,
  9581. 197 : 197,
  9582. 200 : 200,
  9583. 203 : 203,
  9584. 76 : 76,
  9585. 83 : 83,
  9586. 87 : 87
  9587. }],
  9588. 70 : [function(e, t, n) {
  9589. var r = function(e) {
  9590. return "[object Array]" === Object.prototype.toString.call(e)
  9591. },
  9592. i = function() {
  9593. var e = Array.prototype.slice.call(arguments);
  9594. 1 === e.length && r(e[0]) && (e = e[0]);
  9595. var t = e.pop();
  9596. return t.$inject = e,
  9597. t
  9598. },
  9599. o = /^function\s*[^\(]*\(\s*([^\)]*)\)/m,
  9600. a = /\/\*([^\*]*)\*\//m,
  9601. s = function(e) {
  9602. if ("function" != typeof e) throw new Error('Cannot annotate "' + e + '". Expected a function!');
  9603. var t = e.toString().match(o);
  9604. return t[1] && t[1].split(",").map(function(e) {
  9605. return t = e.match(a),
  9606. t ? t[1].trim() : e.trim()
  9607. }) || []
  9608. };
  9609. n.annotate = i,
  9610. n.parse = s,
  9611. n.isArray = r
  9612. },
  9613. {}],
  9614. 71 : [function(e, t, n) {
  9615. t.exports = {
  9616. annotate: e(70).annotate,
  9617. Module: e(73),
  9618. Injector: e(72)
  9619. }
  9620. },
  9621. {
  9622. 70 : 70,
  9623. 72 : 72,
  9624. 73 : 73
  9625. }],
  9626. 72 : [function(e, t, n) {
  9627. var r = e(73),
  9628. i = e(70).parse,
  9629. o = e(70).annotate,
  9630. a = e(70).isArray,
  9631. s = function(e, t) {
  9632. t = t || {
  9633. get: function(e, t) {
  9634. if (n.push(e), t === !1) return null;
  9635. throw p('No provider for "' + e + '"!')
  9636. }
  9637. };
  9638. var n = [],
  9639. c = this._providers = Object.create(t._providers || null),
  9640. l = this._instances = Object.create(null),
  9641. u = l.injector = this,
  9642. p = function(e) {
  9643. var t = n.join(" -> ");
  9644. return n.length = 0,
  9645. new Error(t ? e + " (Resolving: " + t + ")": e)
  9646. },
  9647. f = function(e, r) {
  9648. if (!c[e] && e.indexOf(".") !== -1) {
  9649. for (var i = e.split("."), o = f(i.shift()); i.length;) o = o[i.shift()];
  9650. return o
  9651. }
  9652. if (Object.hasOwnProperty.call(l, e)) return l[e];
  9653. if (Object.hasOwnProperty.call(c, e)) {
  9654. if (n.indexOf(e) !== -1) throw n.push(e),
  9655. p("Cannot resolve circular dependency!");
  9656. return n.push(e),
  9657. l[e] = c[e][0](c[e][1]),
  9658. n.pop(),
  9659. l[e]
  9660. }
  9661. return t.get(e, r)
  9662. },
  9663. h = function(e) {
  9664. var t = Object.create(e.prototype),
  9665. n = d(e, t);
  9666. return "object" == typeof n ? n: t
  9667. },
  9668. d = function(e, t) {
  9669. if ("function" != typeof e) {
  9670. if (!a(e)) throw new Error('Cannot invoke "' + e + '". Expected a function!');
  9671. e = o(e.slice())
  9672. }
  9673. var n = e.$inject && e.$inject || i(e),
  9674. r = n.map(function(e) {
  9675. return f(e)
  9676. });
  9677. return e.apply(t, r)
  9678. },
  9679. m = function(e) {
  9680. return o(function(t) {
  9681. return e.get(t)
  9682. })
  9683. },
  9684. y = function(e, t) {
  9685. if (t && t.length) {
  9686. var n, r, i, o, a = Object.create(null),
  9687. l = Object.create(null),
  9688. p = [],
  9689. f = [],
  9690. h = [];
  9691. for (var d in c) n = c[d],
  9692. t.indexOf(d) !== -1 && ("private" === n[2] ? (r = p.indexOf(n[3]), r === -1 ? (i = n[3].createChild([], t), o = m(i), p.push(n[3]), f.push(i), h.push(o), a[d] = [o, d, "private", i]) : a[d] = [h[r], d, "private", f[r]]) : a[d] = [n[2], n[1]], l[d] = !0),
  9693. "factory" !== n[2] && "type" !== n[2] || !n[1].$scope || t.forEach(function(e) {
  9694. n[1].$scope.indexOf(e) !== -1 && (a[d] = [n[2], n[1]], l[e] = !0)
  9695. });
  9696. t.forEach(function(e) {
  9697. if (!l[e]) throw new Error('No provider for "' + e + '". Cannot use provider from the parent!')
  9698. }),
  9699. e.unshift(a)
  9700. }
  9701. return new s(e, u)
  9702. },
  9703. g = {
  9704. factory: d,
  9705. type: h,
  9706. value: function(e) {
  9707. return e
  9708. }
  9709. };
  9710. e.forEach(function(e) {
  9711. function t(e, t) {
  9712. return "value" !== e && a(t) && (t = o(t.slice())),
  9713. t
  9714. }
  9715. if (e instanceof r) e.forEach(function(e) {
  9716. var n = e[0],
  9717. r = e[1],
  9718. i = e[2];
  9719. c[n] = [g[r], t(r, i), r]
  9720. });
  9721. else if ("object" == typeof e) if (e.__exports__) {
  9722. var n = Object.keys(e).reduce(function(t, n) {
  9723. return "__" !== n.substring(0, 2) && (t[n] = e[n]),
  9724. t
  9725. },
  9726. Object.create(null)),
  9727. i = new s((e.__modules__ || []).concat([n]), u),
  9728. l = o(function(e) {
  9729. return i.get(e)
  9730. });
  9731. e.__exports__.forEach(function(e) {
  9732. c[e] = [l, e, "private", i]
  9733. })
  9734. } else Object.keys(e).forEach(function(n) {
  9735. if ("private" === e[n][2]) return void(c[n] = e[n]);
  9736. var r = e[n][0],
  9737. i = e[n][1];
  9738. c[n] = [g[r], t(r, i), r]
  9739. })
  9740. }),
  9741. this.get = f,
  9742. this.invoke = d,
  9743. this.instantiate = h,
  9744. this.createChild = y
  9745. };
  9746. t.exports = s
  9747. },
  9748. {
  9749. 70 : 70,
  9750. 73 : 73
  9751. }],
  9752. 73 : [function(e, t, n) {
  9753. var r = function() {
  9754. var e = [];
  9755. this.factory = function(t, n) {
  9756. return e.push([t, "factory", n]),
  9757. this
  9758. },
  9759. this.value = function(t, n) {
  9760. return e.push([t, "value", n]),
  9761. this
  9762. },
  9763. this.type = function(t, n) {
  9764. return e.push([t, "type", n]),
  9765. this
  9766. },
  9767. this.forEach = function(t) {
  9768. e.forEach(t)
  9769. }
  9770. };
  9771. t.exports = r
  9772. },
  9773. {}],
  9774. 74 : [function(t, n, r) { !
  9775. function(t) {
  9776. var r, i, o = "0.4.2",
  9777. a = "hasOwnProperty",
  9778. s = /[\.\/]/,
  9779. c = /\s*,\s*/,
  9780. l = "*",
  9781. u = function(e, t) {
  9782. return e - t
  9783. },
  9784. p = {
  9785. n: {}
  9786. },
  9787. f = function() {
  9788. for (var e = 0,
  9789. t = this.length; e < t; e++) if ("undefined" != typeof this[e]) return this[e]
  9790. },
  9791. h = function() {
  9792. for (var e = this.length; --e;) if ("undefined" != typeof this[e]) return this[e]
  9793. },
  9794. d = function(e, t) {
  9795. e = String(e);
  9796. var n, o = i,
  9797. a = Array.prototype.slice.call(arguments, 2),
  9798. s = d.listeners(e),
  9799. c = 0,
  9800. l = [],
  9801. p = {},
  9802. m = [],
  9803. y = r;
  9804. m.firstDefined = f,
  9805. m.lastDefined = h,
  9806. r = e,
  9807. i = 0;
  9808. for (var g = 0,
  9809. v = s.length; g < v; g++)"zIndex" in s[g] && (l.push(s[g].zIndex), s[g].zIndex < 0 && (p[s[g].zIndex] = s[g]));
  9810. for (l.sort(u); l[c] < 0;) if (n = p[l[c++]], m.push(n.apply(t, a)), i) return i = o,
  9811. m;
  9812. for (g = 0; g < v; g++) if (n = s[g], "zIndex" in n) if (n.zIndex == l[c]) {
  9813. if (m.push(n.apply(t, a)), i) break;
  9814. do
  9815. if (c++, n = p[l[c]], n && m.push(n.apply(t, a)), i) break;
  9816. while (n)
  9817. } else p[n.zIndex] = n;
  9818. else if (m.push(n.apply(t, a)), i) break;
  9819. return i = o,
  9820. r = y,
  9821. m
  9822. };
  9823. d._events = p,
  9824. d.listeners = function(e) {
  9825. var t, n, r, i, o, a, c, u, f = e.split(s),
  9826. h = p,
  9827. d = [h],
  9828. m = [];
  9829. for (i = 0, o = f.length; i < o; i++) {
  9830. for (u = [], a = 0, c = d.length; a < c; a++) for (h = d[a].n, n = [h[f[i]], h[l]], r = 2; r--;) t = n[r],
  9831. t && (u.push(t), m = m.concat(t.f || []));
  9832. d = u
  9833. }
  9834. return m
  9835. },
  9836. d.on = function(e, t) {
  9837. if (e = String(e), "function" != typeof t) return function() {};
  9838. for (var n = e.split(c), r = 0, i = n.length; r < i; r++) !
  9839. function(e) {
  9840. for (var n, r = e.split(s), i = p, o = 0, a = r.length; o < a; o++) i = i.n,
  9841. i = i.hasOwnProperty(r[o]) && i[r[o]] || (i[r[o]] = {
  9842. n: {}
  9843. });
  9844. for (i.f = i.f || [], o = 0, a = i.f.length; o < a; o++) if (i.f[o] == t) {
  9845. n = !0;
  9846. break
  9847. } ! n && i.f.push(t)
  9848. } (n[r]);
  9849. return function(e) { + e == +e && (t.zIndex = +e)
  9850. }
  9851. },
  9852. d.f = function(e) {
  9853. var t = [].slice.call(arguments, 1);
  9854. return function() {
  9855. d.apply(null, [e, null].concat(t).concat([].slice.call(arguments, 0)))
  9856. }
  9857. },
  9858. d.stop = function() {
  9859. i = 1
  9860. },
  9861. d.nt = function(e) {
  9862. return e ? new RegExp("(?:\\.|\\/|^)" + e + "(?:\\.|\\/|$)").test(r) : r
  9863. },
  9864. d.nts = function() {
  9865. return r.split(s)
  9866. },
  9867. d.off = d.unbind = function(e, t) {
  9868. if (!e) return void(d._events = p = {
  9869. n: {}
  9870. });
  9871. var n = e.split(c);
  9872. if (n.length > 1) for (var r = 0,
  9873. i = n.length; r < i; r++) d.off(n[r], t);
  9874. else {
  9875. n = e.split(s);
  9876. var o, u, f, r, i, h, m, y = [p];
  9877. for (r = 0, i = n.length; r < i; r++) for (h = 0; h < y.length; h += f.length - 2) {
  9878. if (f = [h, 1], o = y[h].n, n[r] != l) o[n[r]] && f.push(o[n[r]]);
  9879. else for (u in o) o[a](u) && f.push(o[u]);
  9880. y.splice.apply(y, f)
  9881. }
  9882. for (r = 0, i = y.length; r < i; r++) for (o = y[r]; o.n;) {
  9883. if (t) {
  9884. if (o.f) {
  9885. for (h = 0, m = o.f.length; h < m; h++) if (o.f[h] == t) {
  9886. o.f.splice(h, 1);
  9887. break
  9888. } ! o.f.length && delete o.f
  9889. }
  9890. for (u in o.n) if (o.n[a](u) && o.n[u].f) {
  9891. var g = o.n[u].f;
  9892. for (h = 0, m = g.length; h < m; h++) if (g[h] == t) {
  9893. g.splice(h, 1);
  9894. break
  9895. } ! g.length && delete o.n[u].f
  9896. }
  9897. } else {
  9898. delete o.f;
  9899. for (u in o.n) o.n[a](u) && o.n[u].f && delete o.n[u].f
  9900. }
  9901. o = o.n
  9902. }
  9903. }
  9904. },
  9905. d.once = function(e, t) {
  9906. var n = function() {
  9907. return d.unbind(e, n),
  9908. t.apply(this, arguments)
  9909. };
  9910. return d.on(e, n)
  9911. },
  9912. d.version = o,
  9913. d.toString = function() {
  9914. return "You are running Eve " + o
  9915. },
  9916. "undefined" != typeof n && n.exports ? n.exports = d: "function" == typeof e && e.amd ? e("eve", [],
  9917. function() {
  9918. return d
  9919. }) : t.eve = d
  9920. } (this)
  9921. },
  9922. {}],
  9923. 75 : [function(t, n, r) { !
  9924. function(i, o) {
  9925. if ("function" == typeof e && e.amd) e(["eve"],
  9926. function(e) {
  9927. return o(i, e)
  9928. });
  9929. else if ("undefined" != typeof r) {
  9930. var a = t(74);
  9931. n.exports = o(i, a)
  9932. } else o(i, i.eve)
  9933. } (window || this,
  9934. function(e, t) {
  9935. var n = function(t) {
  9936. var n = {},
  9937. r = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame ||
  9938. function(e) {
  9939. setTimeout(e, 16)
  9940. },
  9941. i = Array.isArray ||
  9942. function(e) {
  9943. return e instanceof Array || "[object Array]" == Object.prototype.toString.call(e)
  9944. },
  9945. o = 0,
  9946. a = "M" + ( + new Date).toString(36),
  9947. s = function() {
  9948. return a + (o++).toString(36)
  9949. },
  9950. c = Date.now ||
  9951. function() {
  9952. return + new Date
  9953. },
  9954. l = function(e) {
  9955. var t = this;
  9956. if (null == e) return t.s;
  9957. var n = t.s - e;
  9958. t.b += t.dur * n,
  9959. t.B += t.dur * n,
  9960. t.s = e
  9961. },
  9962. u = function(e) {
  9963. var t = this;
  9964. return null == e ? t.spd: void(t.spd = e)
  9965. },
  9966. p = function(e) {
  9967. var t = this;
  9968. return null == e ? t.dur: (t.s = t.s * e / t.dur, void(t.dur = e))
  9969. },
  9970. f = function() {
  9971. var e = this;
  9972. delete n[e.id],
  9973. e.update(),
  9974. t("mina.stop." + e.id, e)
  9975. },
  9976. h = function() {
  9977. var e = this;
  9978. e.pdif || (delete n[e.id], e.update(), e.pdif = e.get() - e.b)
  9979. },
  9980. d = function() {
  9981. var e = this;
  9982. e.pdif && (e.b = e.get() - e.pdif, delete e.pdif, n[e.id] = e)
  9983. },
  9984. m = function() {
  9985. var e, t = this;
  9986. if (i(t.start)) {
  9987. e = [];
  9988. for (var n = 0,
  9989. r = t.start.length; n < r; n++) e[n] = +t.start[n] + (t.end[n] - t.start[n]) * t.easing(t.s)
  9990. } else e = +t.start + (t.end - t.start) * t.easing(t.s);
  9991. t.set(e)
  9992. },
  9993. y = function() {
  9994. var e = 0;
  9995. for (var i in n) if (n.hasOwnProperty(i)) {
  9996. var o = n[i],
  9997. a = o.get();
  9998. e++,
  9999. o.s = (a - o.b) / (o.dur / o.spd),
  10000. o.s >= 1 && (delete n[i], o.s = 1, e--,
  10001. function(e) {
  10002. setTimeout(function() {
  10003. t("mina.finish." + e.id, e)
  10004. })
  10005. } (o)),
  10006. o.update()
  10007. }
  10008. e && r(y)
  10009. },
  10010. g = function(e, t, i, o, a, c, v) {
  10011. var x = {
  10012. id: s(),
  10013. start: e,
  10014. end: t,
  10015. b: i,
  10016. s: 0,
  10017. dur: o - i,
  10018. spd: 1,
  10019. get: a,
  10020. set: c,
  10021. easing: v || g.linear,
  10022. status: l,
  10023. speed: u,
  10024. duration: p,
  10025. stop: f,
  10026. pause: h,
  10027. resume: d,
  10028. update: m
  10029. };
  10030. n[x.id] = x;
  10031. var b, E = 0;
  10032. for (b in n) if (n.hasOwnProperty(b) && (E++, 2 == E)) break;
  10033. return 1 == E && r(y),
  10034. x
  10035. };
  10036. return g.time = c,
  10037. g.getById = function(e) {
  10038. return n[e] || null
  10039. },
  10040. g.linear = function(e) {
  10041. return e
  10042. },
  10043. g.easeout = function(e) {
  10044. return Math.pow(e, 1.7)
  10045. },
  10046. g.easein = function(e) {
  10047. return Math.pow(e, .48)
  10048. },
  10049. g.easeinout = function(e) {
  10050. if (1 == e) return 1;
  10051. if (0 == e) return 0;
  10052. var t = .48 - e / 1.04,
  10053. n = Math.sqrt(.1734 + t * t),
  10054. r = n - t,
  10055. i = Math.pow(Math.abs(r), 1 / 3) * (r < 0 ? -1 : 1),
  10056. o = -n - t,
  10057. a = Math.pow(Math.abs(o), 1 / 3) * (o < 0 ? -1 : 1),
  10058. s = i + a + .5;
  10059. return 3 * (1 - s) * s * s + s * s * s
  10060. },
  10061. g.backin = function(e) {
  10062. if (1 == e) return 1;
  10063. var t = 1.70158;
  10064. return e * e * ((t + 1) * e - t)
  10065. },
  10066. g.backout = function(e) {
  10067. if (0 == e) return 0;
  10068. e -= 1;
  10069. var t = 1.70158;
  10070. return e * e * ((t + 1) * e + t) + 1
  10071. },
  10072. g.elastic = function(e) {
  10073. return e == !!e ? e: Math.pow(2, -10 * e) * Math.sin((e - .075) * (2 * Math.PI) / .3) + 1
  10074. },
  10075. g.bounce = function(e) {
  10076. var t, n = 7.5625,
  10077. r = 2.75;
  10078. return e < 1 / r ? t = n * e * e: e < 2 / r ? (e -= 1.5 / r, t = n * e * e + .75) : e < 2.5 / r ? (e -= 2.25 / r, t = n * e * e + .9375) : (e -= 2.625 / r, t = n * e * e + .984375),
  10079. t
  10080. },
  10081. e.mina = g,
  10082. g
  10083. } ("undefined" == typeof t ?
  10084. function() {}: t),
  10085. r = function(e) {
  10086. function n(e, t) {
  10087. if (e) {
  10088. if (e.tagName) return w(e);
  10089. if (i(e, "array") && n.set) return n.set.apply(n, e);
  10090. if (e instanceof v) return e;
  10091. if (null == t) return e = A.doc.querySelector(e),
  10092. w(e)
  10093. }
  10094. return e = null == e ? "100%": e,
  10095. t = null == t ? "100%": t,
  10096. new E(e, t)
  10097. }
  10098. function r(e, t) {
  10099. if (t) {
  10100. if ("#text" == e && (e = A.doc.createTextNode(t.text || "")), "string" == typeof e && (e = r(e)), "string" == typeof t) return "xlink:" == t.substring(0, 6) ? e.getAttributeNS(z, t.substring(6)) : "xml:" == t.substring(0, 4) ? e.getAttributeNS(q, t.substring(4)) : e.getAttribute(t);
  10101. for (var n in t) if (t[_](n)) {
  10102. var i = S(t[n]);
  10103. i ? "xlink:" == n.substring(0, 6) ? e.setAttributeNS(z, n.substring(6), i) : "xml:" == n.substring(0, 4) ? e.setAttributeNS(q, n.substring(4), i) : e.setAttribute(n, i) : e.removeAttribute(n)
  10104. }
  10105. } else e = A.doc.createElementNS(q, e);
  10106. return e
  10107. }
  10108. function i(e, t) {
  10109. return t = S.prototype.toLowerCase.call(t),
  10110. "finite" == t ? isFinite(e) : !("array" != t || !(e instanceof Array || Array.isArray && Array.isArray(e))) || ("null" == t && null === e || t == typeof e && null !== e || "object" == t && e === Object(e) || O.call(e).slice(8, -1).toLowerCase() == t)
  10111. }
  10112. function o(e) {
  10113. if ("function" == typeof e || Object(e) !== e) return e;
  10114. var t = new e.constructor;
  10115. for (var n in e) e[_](n) && (t[n] = o(e[n]));
  10116. return t
  10117. }
  10118. function a(e, t) {
  10119. for (var n = 0,
  10120. r = e.length; n < r; n++) if (e[n] === t) return e.push(e.splice(n, 1)[0])
  10121. }
  10122. function s(e, t, n) {
  10123. function r() {
  10124. var i = Array.prototype.slice.call(arguments, 0),
  10125. o = i.join("␀"),
  10126. s = r.cache = r.cache || {},
  10127. c = r.count = r.count || [];
  10128. return s[_](o) ? (a(c, o), n ? n(s[o]) : s[o]) : (c.length >= 1e3 && delete s[c.shift()], c.push(o), s[o] = e.apply(t, i), n ? n(s[o]) : s[o])
  10129. }
  10130. return r
  10131. }
  10132. function c(e, t, n, r, i, o) {
  10133. if (null == i) {
  10134. var a = e - n,
  10135. s = t - r;
  10136. return a || s ? (180 + 180 * R.atan2( - s, -a) / D + 360) % 360 : 0
  10137. }
  10138. return c(e, t, i, o) - c(n, r, i, o)
  10139. }
  10140. function l(e) {
  10141. return e % 360 * D / 180
  10142. }
  10143. function u(e) {
  10144. return 180 * e / D % 360
  10145. }
  10146. function p(e) {
  10147. var t = [];
  10148. return e = e.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,
  10149. function(e, n, r) {
  10150. return r = r.split(/\s*,\s*|\s+/),
  10151. "rotate" == n && 1 == r.length && r.push(0, 0),
  10152. "scale" == n && (r.length > 2 ? r = r.slice(0, 2) : 2 == r.length && r.push(0, 0), 1 == r.length && r.push(r[0], 0, 0)),
  10153. "skewX" == n ? t.push(["m", 1, 0, R.tan(l(r[0])), 1, 0, 0]) : "skewY" == n ? t.push(["m", 1, R.tan(l(r[0])), 0, 1, 0, 0]) : t.push([n.charAt(0)].concat(r)),
  10154. e
  10155. }),
  10156. t
  10157. }
  10158. function f(e, t) {
  10159. var r = J(e),
  10160. i = new n.Matrix;
  10161. if (r) for (var o = 0,
  10162. a = r.length; o < a; o++) {
  10163. var s, c, l, u, p, f = r[o],
  10164. h = f.length,
  10165. d = S(f[0]).toLowerCase(),
  10166. m = f[0] != d,
  10167. y = m ? i.invert() : 0;
  10168. "t" == d && 2 == h ? i.translate(f[1], 0) : "t" == d && 3 == h ? m ? (s = y.x(0, 0), c = y.y(0, 0), l = y.x(f[1], f[2]), u = y.y(f[1], f[2]), i.translate(l - s, u - c)) : i.translate(f[1], f[2]) : "r" == d ? 2 == h ? (p = p || t, i.rotate(f[1], p.x + p.width / 2, p.y + p.height / 2)) : 4 == h && (m ? (l = y.x(f[2], f[3]), u = y.y(f[2], f[3]), i.rotate(f[1], l, u)) : i.rotate(f[1], f[2], f[3])) : "s" == d ? 2 == h || 3 == h ? (p = p || t, i.scale(f[1], f[h - 1], p.x + p.width / 2, p.y + p.height / 2)) : 4 == h ? m ? (l = y.x(f[2], f[3]), u = y.y(f[2], f[3]), i.scale(f[1], f[1], l, u)) : i.scale(f[1], f[1], f[2], f[3]) : 5 == h && (m ? (l = y.x(f[3], f[4]), u = y.y(f[3], f[4]), i.scale(f[1], f[2], l, u)) : i.scale(f[1], f[2], f[3], f[4])) : "m" == d && 7 == h && i.add(f[1], f[2], f[3], f[4], f[5], f[6])
  10169. }
  10170. return i
  10171. }
  10172. function h(e) {
  10173. var t = e.node.ownerSVGElement && w(e.node.ownerSVGElement) || e.node.parentNode && w(e.node.parentNode) || n.select("svg") || n(0, 0),
  10174. r = t.select("defs"),
  10175. i = null != r && r.node;
  10176. return i || (i = b("defs", t.node).node),
  10177. i
  10178. }
  10179. function d(e) {
  10180. return e.node.ownerSVGElement && w(e.node.ownerSVGElement) || n.select("svg")
  10181. }
  10182. function m(e, t, n) {
  10183. function i(e) {
  10184. if (null == e) return k;
  10185. if (e == +e) return e;
  10186. r(l, {
  10187. width: e
  10188. });
  10189. try {
  10190. return l.getBBox().width
  10191. } catch(e) {
  10192. return 0
  10193. }
  10194. }
  10195. function o(e) {
  10196. if (null == e) return k;
  10197. if (e == +e) return e;
  10198. r(l, {
  10199. height: e
  10200. });
  10201. try {
  10202. return l.getBBox().height
  10203. } catch(e) {
  10204. return 0
  10205. }
  10206. }
  10207. function a(r, i) {
  10208. null == t ? c[r] = i(e.attr(r) || 0) : r == t && (c = i(null == n ? e.attr(r) || 0 : n))
  10209. }
  10210. var s = d(e).node,
  10211. c = {},
  10212. l = s.querySelector(".svg---mgr");
  10213. switch (l || (l = r("rect"), r(l, {
  10214. x: -9e9,
  10215. y: -9e9,
  10216. width: 10,
  10217. height: 10,
  10218. class: "svg---mgr",
  10219. fill: "none"
  10220. }), s.appendChild(l)), e.type) {
  10221. case "rect":
  10222. a("rx", i),
  10223. a("ry", o);
  10224. case "image":
  10225. a("width", i),
  10226. a("height", o);
  10227. case "text":
  10228. a("x", i),
  10229. a("y", o);
  10230. break;
  10231. case "circle":
  10232. a("cx", i),
  10233. a("cy", o),
  10234. a("r", i);
  10235. break;
  10236. case "ellipse":
  10237. a("cx", i),
  10238. a("cy", o),
  10239. a("rx", i),
  10240. a("ry", o);
  10241. break;
  10242. case "line":
  10243. a("x1", i),
  10244. a("x2", i),
  10245. a("y1", o),
  10246. a("y2", o);
  10247. break;
  10248. case "marker":
  10249. a("refX", i),
  10250. a("markerWidth", i),
  10251. a("refY", o),
  10252. a("markerHeight", o);
  10253. break;
  10254. case "radialGradient":
  10255. a("fx", i),
  10256. a("fy", o);
  10257. break;
  10258. case "tspan":
  10259. a("dx", i),
  10260. a("dy", o);
  10261. break;
  10262. default:
  10263. a(t, i)
  10264. }
  10265. return s.removeChild(l),
  10266. c
  10267. }
  10268. function y(e) {
  10269. i(e, "array") || (e = Array.prototype.slice.call(arguments, 0));
  10270. for (var t = 0,
  10271. n = 0,
  10272. r = this.node; this[t];) delete this[t++];
  10273. for (t = 0; t < e.length; t++)"set" == e[t].type ? e[t].forEach(function(e) {
  10274. r.appendChild(e.node)
  10275. }) : r.appendChild(e[t].node);
  10276. var o = r.childNodes;
  10277. for (t = 0; t < o.length; t++) this[n++] = w(o[t]);
  10278. return this
  10279. }
  10280. function v(e) {
  10281. if (e.snap in H) return H[e.snap];
  10282. var t;
  10283. try {
  10284. t = e.ownerSVGElement
  10285. } catch(e) {}
  10286. this.node = e,
  10287. t && (this.paper = new E(t)),
  10288. this.type = e.tagName;
  10289. var n = this.id = W(this);
  10290. if (this.anims = {},
  10291. this._ = {
  10292. transform: []
  10293. },
  10294. e.snap = n, H[n] = this, "g" == this.type && (this.add = y), this.type in {
  10295. g: 1,
  10296. mask: 1,
  10297. pattern: 1,
  10298. symbol: 1
  10299. }) for (var r in E.prototype) E.prototype[_](r) && (this[r] = E.prototype[r])
  10300. }
  10301. function x(e) {
  10302. this.node = e
  10303. }
  10304. function b(e, t) {
  10305. var n = r(e);
  10306. t.appendChild(n);
  10307. var i = w(n);
  10308. return i
  10309. }
  10310. function E(e, t) {
  10311. var n, i, o, a = E.prototype;
  10312. if (e && "svg" == e.tagName) {
  10313. if (e.snap in H) return H[e.snap];
  10314. var s = e.ownerDocument;
  10315. n = new v(e),
  10316. i = e.getElementsByTagName("desc")[0],
  10317. o = e.getElementsByTagName("defs")[0],
  10318. i || (i = r("desc"), i.appendChild(s.createTextNode("Created with Snap")), n.node.appendChild(i)),
  10319. o || (o = r("defs"), n.node.appendChild(o)),
  10320. n.defs = o;
  10321. for (var c in a) a[_](c) && (n[c] = a[c]);
  10322. n.paper = n.root = n
  10323. } else n = b("svg", A.doc.body),
  10324. r(n.node, {
  10325. height: t,
  10326. version: 1.1,
  10327. width: e,
  10328. xmlns: q
  10329. });
  10330. return n
  10331. }
  10332. function w(e) {
  10333. return e ? e instanceof v || e instanceof x ? e: e.tagName && "svg" == e.tagName.toLowerCase() ? new E(e) : e.tagName && "object" == e.tagName.toLowerCase() && "image/svg+xml" == e.type ? new E(e.contentDocument.getElementsByTagName("svg")[0]) : new v(e) : e
  10334. }
  10335. n.version = "0.3.0",
  10336. n.toString = function() {
  10337. return "Snap v" + this.version
  10338. },
  10339. n._ = {};
  10340. var A = {
  10341. win: e.window,
  10342. doc: e.window.document
  10343. };
  10344. n._.glob = A;
  10345. var _ = "hasOwnProperty",
  10346. S = String,
  10347. T = parseFloat,
  10348. C = parseInt,
  10349. R = Math,
  10350. N = R.max,
  10351. M = R.min,
  10352. P = R.abs,
  10353. D = (R.pow, R.PI),
  10354. k = (R.round, ""),
  10355. O = Object.prototype.toString,
  10356. B = /^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,
  10357. I = (n._.separator = /[,\s]+/, /[\s]*,[\s]*/),
  10358. L = {
  10359. hs: 1,
  10360. rg: 1
  10361. },
  10362. F = /([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,
  10363. j = /([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,
  10364. V = /(-?\d*\.?\d*(?:e[\-+]?\\d+)?)[\s]*,?[\s]*/gi,
  10365. G = 0,
  10366. U = "S" + ( + new Date).toString(36),
  10367. W = function(e) {
  10368. return (e && e.type ? e.type: k) + U + (G++).toString(36)
  10369. },
  10370. z = "http://www.w3.org/1999/xlink",
  10371. q = "http://www.w3.org/2000/svg",
  10372. H = {};
  10373. n.url = function(e) {
  10374. return "url('#" + e + "')"
  10375. };
  10376. n._.$ = r,
  10377. n._.id = W,
  10378. n.format = function() {
  10379. var e = /\{([^\}]+)\}/g,
  10380. t = /(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,
  10381. n = function(e, n, r) {
  10382. var i = r;
  10383. return n.replace(t,
  10384. function(e, t, n, r, o) {
  10385. t = t || r,
  10386. i && (t in i && (i = i[t]), "function" == typeof i && o && (i = i()))
  10387. }),
  10388. i = (null == i || i == r ? e: i) + ""
  10389. };
  10390. return function(t, r) {
  10391. return S(t).replace(e,
  10392. function(e, t) {
  10393. return n(e, t, r)
  10394. })
  10395. }
  10396. } (),
  10397. n._.clone = o,
  10398. n._.cacher = s,
  10399. n.rad = l,
  10400. n.deg = u,
  10401. n.angle = c,
  10402. n.is = i,
  10403. n.snapTo = function(e, t, n) {
  10404. if (n = i(n, "finite") ? n: 10, i(e, "array")) {
  10405. for (var r = e.length; r--;) if (P(e[r] - t) <= n) return e[r]
  10406. } else {
  10407. e = +e;
  10408. var o = t % e;
  10409. if (o < n) return t - o;
  10410. if (o > e - n) return t - o + e
  10411. }
  10412. return t
  10413. },
  10414. n.getRGB = s(function(e) {
  10415. if (!e || (e = S(e)).indexOf("-") + 1) return {
  10416. r: -1,
  10417. g: -1,
  10418. b: -1,
  10419. hex: "none",
  10420. error: 1,
  10421. toString: X
  10422. };
  10423. if ("none" == e) return {
  10424. r: -1,
  10425. g: -1,
  10426. b: -1,
  10427. hex: "none",
  10428. toString: X
  10429. };
  10430. if (! (L[_](e.toLowerCase().substring(0, 2)) || "#" == e.charAt()) && (e = Y(e)), !e) return {
  10431. r: -1,
  10432. g: -1,
  10433. b: -1,
  10434. hex: "none",
  10435. error: 1,
  10436. toString: X
  10437. };
  10438. var t, r, o, a, s, c, l = e.match(B);
  10439. return l ? (l[2] && (o = C(l[2].substring(5), 16), r = C(l[2].substring(3, 5), 16), t = C(l[2].substring(1, 3), 16)), l[3] && (o = C((s = l[3].charAt(3)) + s, 16), r = C((s = l[3].charAt(2)) + s, 16), t = C((s = l[3].charAt(1)) + s, 16)), l[4] && (c = l[4].split(I), t = T(c[0]), "%" == c[0].slice( - 1) && (t *= 2.55), r = T(c[1]), "%" == c[1].slice( - 1) && (r *= 2.55), o = T(c[2]), "%" == c[2].slice( - 1) && (o *= 2.55), "rgba" == l[1].toLowerCase().slice(0, 4) && (a = T(c[3])), c[3] && "%" == c[3].slice( - 1) && (a /= 100)), l[5] ? (c = l[5].split(I), t = T(c[0]), "%" == c[0].slice( - 1) && (t /= 100), r = T(c[1]), "%" == c[1].slice( - 1) && (r /= 100), o = T(c[2]), "%" == c[2].slice( - 1) && (o /= 100), ("deg" == c[0].slice( - 3) || "°" == c[0].slice( - 1)) && (t /= 360), "hsba" == l[1].toLowerCase().slice(0, 4) && (a = T(c[3])), c[3] && "%" == c[3].slice( - 1) && (a /= 100), n.hsb2rgb(t, r, o, a)) : l[6] ? (c = l[6].split(I), t = T(c[0]), "%" == c[0].slice( - 1) && (t /= 100), r = T(c[1]), "%" == c[1].slice( - 1) && (r /= 100), o = T(c[2]), "%" == c[2].slice( - 1) && (o /= 100), ("deg" == c[0].slice( - 3) || "°" == c[0].slice( - 1)) && (t /= 360), "hsla" == l[1].toLowerCase().slice(0, 4) && (a = T(c[3])), c[3] && "%" == c[3].slice( - 1) && (a /= 100), n.hsl2rgb(t, r, o, a)) : (t = M(R.round(t), 255), r = M(R.round(r), 255), o = M(R.round(o), 255), a = M(N(a, 0), 1), l = {
  10440. r: t,
  10441. g: r,
  10442. b: o,
  10443. toString: X
  10444. },
  10445. l.hex = "#" + (16777216 | o | r << 8 | t << 16).toString(16).slice(1), l.opacity = i(a, "finite") ? a: 1, l)) : {
  10446. r: -1,
  10447. g: -1,
  10448. b: -1,
  10449. hex: "none",
  10450. error: 1,
  10451. toString: X
  10452. }
  10453. },
  10454. n),
  10455. n.hsb = s(function(e, t, r) {
  10456. return n.hsb2rgb(e, t, r).hex
  10457. }),
  10458. n.hsl = s(function(e, t, r) {
  10459. return n.hsl2rgb(e, t, r).hex
  10460. }),
  10461. n.rgb = s(function(e, t, n, r) {
  10462. if (i(r, "finite")) {
  10463. var o = R.round;
  10464. return "rgba(" + [o(e), o(t), o(n), +r.toFixed(2)] + ")"
  10465. }
  10466. return "#" + (16777216 | n | t << 8 | e << 16).toString(16).slice(1)
  10467. });
  10468. var Y = function(e) {
  10469. var t = A.doc.getElementsByTagName("head")[0] || A.doc.getElementsByTagName("svg")[0],
  10470. n = "rgb(255, 0, 0)";
  10471. return (Y = s(function(e) {
  10472. if ("red" == e.toLowerCase()) return n;
  10473. t.style.color = n,
  10474. t.style.color = e;
  10475. var r = A.doc.defaultView.getComputedStyle(t, k).getPropertyValue("color");
  10476. return r == n ? null: r
  10477. }))(e)
  10478. },
  10479. $ = function() {
  10480. return "hsb(" + [this.h, this.s, this.b] + ")"
  10481. },
  10482. K = function() {
  10483. return "hsl(" + [this.h, this.s, this.l] + ")"
  10484. },
  10485. X = function() {
  10486. return 1 == this.opacity || null == this.opacity ? this.hex: "rgba(" + [this.r, this.g, this.b, this.opacity] + ")"
  10487. },
  10488. Q = function(e, t, r) {
  10489. if (null == t && i(e, "object") && "r" in e && "g" in e && "b" in e && (r = e.b, t = e.g, e = e.r), null == t && i(e, string)) {
  10490. var o = n.getRGB(e);
  10491. e = o.r,
  10492. t = o.g,
  10493. r = o.b
  10494. }
  10495. return (e > 1 || t > 1 || r > 1) && (e /= 255, t /= 255, r /= 255),
  10496. [e, t, r]
  10497. },
  10498. Z = function(e, t, r, o) {
  10499. e = R.round(255 * e),
  10500. t = R.round(255 * t),
  10501. r = R.round(255 * r);
  10502. var a = {
  10503. r: e,
  10504. g: t,
  10505. b: r,
  10506. opacity: i(o, "finite") ? o: 1,
  10507. hex: n.rgb(e, t, r),
  10508. toString: X
  10509. };
  10510. return i(o, "finite") && (a.opacity = o),
  10511. a
  10512. };
  10513. n.color = function(e) {
  10514. var t;
  10515. return i(e, "object") && "h" in e && "s" in e && "b" in e ? (t = n.hsb2rgb(e), e.r = t.r, e.g = t.g, e.b = t.b, e.opacity = 1, e.hex = t.hex) : i(e, "object") && "h" in e && "s" in e && "l" in e ? (t = n.hsl2rgb(e), e.r = t.r, e.g = t.g, e.b = t.b, e.opacity = 1, e.hex = t.hex) : (i(e, "string") && (e = n.getRGB(e)), i(e, "object") && "r" in e && "g" in e && "b" in e && !("error" in e) ? (t = n.rgb2hsl(e), e.h = t.h, e.s = t.s, e.l = t.l, t = n.rgb2hsb(e), e.v = t.b) : (e = {
  10516. hex: "none"
  10517. },
  10518. e.r = e.g = e.b = e.h = e.s = e.v = e.l = -1, e.error = 1)),
  10519. e.toString = X,
  10520. e
  10521. },
  10522. n.hsb2rgb = function(e, t, n, r) {
  10523. i(e, "object") && "h" in e && "s" in e && "b" in e && (n = e.b, t = e.s, e = e.h, r = e.o),
  10524. e *= 360;
  10525. var o, a, s, c, l;
  10526. return e = e % 360 / 60,
  10527. l = n * t,
  10528. c = l * (1 - P(e % 2 - 1)),
  10529. o = a = s = n - l,
  10530. e = ~~e,
  10531. o += [l, c, 0, 0, c, l][e],
  10532. a += [c, l, l, c, 0, 0][e],
  10533. s += [0, 0, c, l, l, c][e],
  10534. Z(o, a, s, r)
  10535. },
  10536. n.hsl2rgb = function(e, t, n, r) {
  10537. i(e, "object") && "h" in e && "s" in e && "l" in e && (n = e.l, t = e.s, e = e.h),
  10538. (e > 1 || t > 1 || n > 1) && (e /= 360, t /= 100, n /= 100),
  10539. e *= 360;
  10540. var o, a, s, c, l;
  10541. return e = e % 360 / 60,
  10542. l = 2 * t * (n < .5 ? n: 1 - n),
  10543. c = l * (1 - P(e % 2 - 1)),
  10544. o = a = s = n - l / 2,
  10545. e = ~~e,
  10546. o += [l, c, 0, 0, c, l][e],
  10547. a += [c, l, l, c, 0, 0][e],
  10548. s += [0, 0, c, l, l, c][e],
  10549. Z(o, a, s, r)
  10550. },
  10551. n.rgb2hsb = function(e, t, n) {
  10552. n = Q(e, t, n),
  10553. e = n[0],
  10554. t = n[1],
  10555. n = n[2];
  10556. var r, i, o, a;
  10557. return o = N(e, t, n),
  10558. a = o - M(e, t, n),
  10559. r = 0 == a ? null: o == e ? (t - n) / a: o == t ? (n - e) / a + 2 : (e - t) / a + 4,
  10560. r = (r + 360) % 6 * 60 / 360,
  10561. i = 0 == a ? 0 : a / o,
  10562. {
  10563. h: r,
  10564. s: i,
  10565. b: o,
  10566. toString: $
  10567. }
  10568. },
  10569. n.rgb2hsl = function(e, t, n) {
  10570. n = Q(e, t, n),
  10571. e = n[0],
  10572. t = n[1],
  10573. n = n[2];
  10574. var r, i, o, a, s, c;
  10575. return a = N(e, t, n),
  10576. s = M(e, t, n),
  10577. c = a - s,
  10578. r = 0 == c ? null: a == e ? (t - n) / c: a == t ? (n - e) / c + 2 : (e - t) / c + 4,
  10579. r = (r + 360) % 6 * 60 / 360,
  10580. o = (a + s) / 2,
  10581. i = 0 == c ? 0 : o < .5 ? c / (2 * o) : c / (2 - 2 * o),
  10582. {
  10583. h: r,
  10584. s: i,
  10585. l: o,
  10586. toString: K
  10587. }
  10588. },
  10589. n.parsePathString = function(e) {
  10590. if (!e) return null;
  10591. var t = n.path(e);
  10592. if (t.arr) return n.path.clone(t.arr);
  10593. var r = {
  10594. a: 7,
  10595. c: 6,
  10596. o: 2,
  10597. h: 1,
  10598. l: 2,
  10599. m: 2,
  10600. r: 4,
  10601. q: 4,
  10602. s: 4,
  10603. t: 2,
  10604. v: 1,
  10605. u: 3,
  10606. z: 0
  10607. },
  10608. o = [];
  10609. return i(e, "array") && i(e[0], "array") && (o = n.path.clone(e)),
  10610. o.length || S(e).replace(F,
  10611. function(e, t, n) {
  10612. var i = [],
  10613. a = t.toLowerCase();
  10614. if (n.replace(V,
  10615. function(e, t) {
  10616. t && i.push( + t)
  10617. }), "m" == a && i.length > 2 && (o.push([t].concat(i.splice(0, 2))), a = "l", t = "m" == t ? "l": "L"), "o" == a && 1 == i.length && o.push([t, i[0]]), "r" == a) o.push([t].concat(i));
  10618. else for (; i.length >= r[a] && (o.push([t].concat(i.splice(0, r[a]))), r[a]););
  10619. }),
  10620. o.toString = n.path.toString,
  10621. t.arr = n.path.clone(o),
  10622. o
  10623. };
  10624. var J = n.parseTransformString = function(e) {
  10625. if (!e) return null;
  10626. var t = [];
  10627. return i(e, "array") && i(e[0], "array") && (t = n.path.clone(e)),
  10628. t.length || S(e).replace(j,
  10629. function(e, n, r) {
  10630. var i = [];
  10631. n.toLowerCase();
  10632. r.replace(V,
  10633. function(e, t) {
  10634. t && i.push( + t)
  10635. }),
  10636. t.push([n].concat(i))
  10637. }),
  10638. t.toString = n.path.toString,
  10639. t
  10640. };
  10641. n._.svgTransform2string = p,
  10642. n._.rgTransform = /^[a-z][\s]*-?\.?\d/i,
  10643. n._.transform2matrix = f,
  10644. n._unit2px = m;
  10645. A.doc.contains || A.doc.compareDocumentPosition ?
  10646. function(e, t) {
  10647. var n = 9 == e.nodeType ? e.documentElement: e,
  10648. r = t && t.parentNode;
  10649. return e == r || !(!r || 1 != r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
  10650. }: function(e, t) {
  10651. if (t) for (; t;) if (t = t.parentNode, t == e) return ! 0;
  10652. return ! 1
  10653. };
  10654. n._.getSomeDefs = h,
  10655. n._.getSomeSVG = d,
  10656. n.select = function(e) {
  10657. return e = S(e).replace(/([^\\]):/g, "$1\\:"),
  10658. w(A.doc.querySelector(e))
  10659. },
  10660. n.selectAll = function(e) {
  10661. for (var t = A.doc.querySelectorAll(e), r = (n.set || Array)(), i = 0; i < t.length; i++) r.push(w(t[i]));
  10662. return r
  10663. },
  10664. setInterval(function() {
  10665. for (var e in H) if (H[_](e)) {
  10666. var t = H[e],
  10667. n = t.node; ("svg" != t.type && !n.ownerSVGElement || "svg" == t.type && (!n.parentNode || "ownerSVGElement" in n.parentNode && !n.ownerSVGElement)) && delete H[e]
  10668. }
  10669. },
  10670. 1e4),
  10671. v.prototype.attr = function(e, n) {
  10672. var r = this;
  10673. r.node;
  10674. if (!e) return r;
  10675. if (i(e, "string")) {
  10676. if (! (arguments.length > 1)) return t("snap.util.getattr." + e, r).firstDefined();
  10677. var o = {};
  10678. o[e] = n,
  10679. e = o
  10680. }
  10681. for (var a in e) e[_](a) && t("snap.util.attr." + a, r, e[a]);
  10682. return r
  10683. },
  10684. n.parse = function(e) {
  10685. var t = A.doc.createDocumentFragment(),
  10686. n = !0,
  10687. r = A.doc.createElement("div");
  10688. if (e = S(e), e.match(/^\s*<\s*svg(?:\s|>)/) || (e = "<svg>" + e + "</svg>", n = !1), r.innerHTML = e, e = r.getElementsByTagName("svg")[0]) if (n) t = e;
  10689. else {
  10690. for (; e.firstChild;) t.appendChild(e.firstChild);
  10691. r.innerHTML = k
  10692. }
  10693. return new x(t)
  10694. },
  10695. n.fragment = function() {
  10696. for (var e = Array.prototype.slice.call(arguments, 0), t = A.doc.createDocumentFragment(), r = 0, i = e.length; r < i; r++) {
  10697. var o = e[r];
  10698. o.node && o.node.nodeType && t.appendChild(o.node),
  10699. o.nodeType && t.appendChild(o),
  10700. "string" == typeof o && t.appendChild(n.parse(o).node)
  10701. }
  10702. return new x(t)
  10703. },
  10704. n._.make = b,
  10705. n._.wrap = w,
  10706. E.prototype.el = function(e, t) {
  10707. var n = b(e, this.node);
  10708. return t && n.attr(t),
  10709. n
  10710. },
  10711. t.on("snap.util.getattr",
  10712. function() {
  10713. var e = t.nt();
  10714. e = e.substring(e.lastIndexOf(".") + 1);
  10715. var n = e.replace(/[A-Z]/g,
  10716. function(e) {
  10717. return "-" + e.toLowerCase()
  10718. });
  10719. return ee[_](n) ? this.node.ownerDocument.defaultView.getComputedStyle(this.node, null).getPropertyValue(n) : r(this.node, e)
  10720. });
  10721. var ee = {
  10722. "alignment-baseline": 0,
  10723. "baseline-shift": 0,
  10724. clip: 0,
  10725. "clip-path": 0,
  10726. "clip-rule": 0,
  10727. color: 0,
  10728. "color-interpolation": 0,
  10729. "color-interpolation-filters": 0,
  10730. "color-profile": 0,
  10731. "color-rendering": 0,
  10732. cursor: 0,
  10733. direction: 0,
  10734. display: 0,
  10735. "dominant-baseline": 0,
  10736. "enable-background": 0,
  10737. fill: 0,
  10738. "fill-opacity": 0,
  10739. "fill-rule": 0,
  10740. filter: 0,
  10741. "flood-color": 0,
  10742. "flood-opacity": 0,
  10743. font: 0,
  10744. "font-family": 0,
  10745. "font-size": 0,
  10746. "font-size-adjust": 0,
  10747. "font-stretch": 0,
  10748. "font-style": 0,
  10749. "font-variant": 0,
  10750. "font-weight": 0,
  10751. "glyph-orientation-horizontal": 0,
  10752. "glyph-orientation-vertical": 0,
  10753. "image-rendering": 0,
  10754. kerning: 0,
  10755. "letter-spacing": 0,
  10756. "lighting-color": 0,
  10757. marker: 0,
  10758. "marker-end": 0,
  10759. "marker-mid": 0,
  10760. "marker-start": 0,
  10761. mask: 0,
  10762. opacity: 0,
  10763. overflow: 0,
  10764. "pointer-events": 0,
  10765. "shape-rendering": 0,
  10766. "stop-color": 0,
  10767. "stop-opacity": 0,
  10768. stroke: 0,
  10769. "stroke-dasharray": 0,
  10770. "stroke-dashoffset": 0,
  10771. "stroke-linecap": 0,
  10772. "stroke-linejoin": 0,
  10773. "stroke-miterlimit": 0,
  10774. "stroke-opacity": 0,
  10775. "stroke-width": 0,
  10776. "text-anchor": 0,
  10777. "text-decoration": 0,
  10778. "text-rendering": 0,
  10779. "unicode-bidi": 0,
  10780. visibility: 0,
  10781. "word-spacing": 0,
  10782. "writing-mode": 0
  10783. };
  10784. t.on("snap.util.attr",
  10785. function(e) {
  10786. var n = t.nt(),
  10787. i = {};
  10788. n = n.substring(n.lastIndexOf(".") + 1),
  10789. i[n] = e;
  10790. var o = n.replace(/-(\w)/gi,
  10791. function(e, t) {
  10792. return t.toUpperCase()
  10793. }),
  10794. a = n.replace(/[A-Z]/g,
  10795. function(e) {
  10796. return "-" + e.toLowerCase()
  10797. });
  10798. ee[_](a) ? this.node.style[o] = null == e ? k: e: r(this.node, i)
  10799. }),
  10800. function(e) {} (E.prototype),
  10801. n.ajax = function(e, n, r, o) {
  10802. var a = new XMLHttpRequest,
  10803. s = W();
  10804. if (a) {
  10805. if (i(n, "function")) o = r,
  10806. r = n,
  10807. n = null;
  10808. else if (i(n, "object")) {
  10809. var c = [];
  10810. for (var l in n) n.hasOwnProperty(l) && c.push(encodeURIComponent(l) + "=" + encodeURIComponent(n[l]));
  10811. n = c.join("&")
  10812. }
  10813. return a.open(n ? "POST": "GET", e, !0),
  10814. n && (a.setRequestHeader("X-Requested-With", "XMLHttpRequest"), a.setRequestHeader("Content-type", "application/x-www-form-urlencoded")),
  10815. r && (t.once("snap.ajax." + s + ".0", r), t.once("snap.ajax." + s + ".200", r), t.once("snap.ajax." + s + ".304", r)),
  10816. a.onreadystatechange = function() {
  10817. 4 == a.readyState && t("snap.ajax." + s + "." + a.status, o, a)
  10818. },
  10819. 4 == a.readyState ? a: (a.send(n), a)
  10820. }
  10821. },
  10822. n.load = function(e, t, r) {
  10823. n.ajax(e,
  10824. function(e) {
  10825. var i = n.parse(e.responseText);
  10826. r ? t.call(r, i) : t(i)
  10827. })
  10828. };
  10829. var te = function(e) {
  10830. var t = e.getBoundingClientRect(),
  10831. n = e.ownerDocument,
  10832. r = n.body,
  10833. i = n.documentElement,
  10834. o = i.clientTop || r.clientTop || 0,
  10835. a = i.clientLeft || r.clientLeft || 0,
  10836. s = t.top + (g.win.pageYOffset || i.scrollTop || r.scrollTop) - o,
  10837. c = t.left + (g.win.pageXOffset || i.scrollLeft || r.scrollLeft) - a;
  10838. return {
  10839. y: s,
  10840. x: c
  10841. }
  10842. };
  10843. return n.getElementByPoint = function(e, t) {
  10844. var n = this,
  10845. r = (n.canvas, A.doc.elementFromPoint(e, t));
  10846. if (A.win.opera && "svg" == r.tagName) {
  10847. var i = te(r),
  10848. o = r.createSVGRect();
  10849. o.x = e - i.x,
  10850. o.y = t - i.y,
  10851. o.width = o.height = 1;
  10852. var a = r.getIntersectionList(o, null);
  10853. a.length && (r = a[a.length - 1])
  10854. }
  10855. return r ? w(r) : null
  10856. },
  10857. n.plugin = function(e) {
  10858. e(n, v, E, A, x)
  10859. },
  10860. A.win.Snap = n,
  10861. n
  10862. } (e || this);
  10863. return r.plugin(function(r, i, o, a, s) {
  10864. function c(e, t) {
  10865. if (null == t) {
  10866. var n = !0;
  10867. if (t = "linearGradient" == e.type || "radialGradient" == e.type ? e.node.getAttribute("gradientTransform") : "pattern" == e.type ? e.node.getAttribute("patternTransform") : e.node.getAttribute("transform"), !t) return new r.Matrix;
  10868. t = r._.svgTransform2string(t)
  10869. } else t = r._.rgTransform.test(t) ? d(t).replace(/\.{3}|\u2026/g, e._.transform || E) : r._.svgTransform2string(t),
  10870. h(t, "array") && (t = r.path ? r.path.toString.call(t) : d(t)),
  10871. e._.transform = t;
  10872. var i = r._.transform2matrix(t, e.getBBox(1));
  10873. return n ? i: void(e.matrix = i)
  10874. }
  10875. function l(e) {
  10876. function t(e, t) {
  10877. var n = y(e.node, t);
  10878. n = n && n.match(o),
  10879. n = n && n[2],
  10880. n && "#" == n.charAt() && (n = n.substring(1), n && (s[n] = (s[n] || []).concat(function(n) {
  10881. var r = {};
  10882. r[t] = URL(n),
  10883. y(e.node, r)
  10884. })))
  10885. }
  10886. function n(e) {
  10887. var t = y(e.node, "xlink:href");
  10888. t && "#" == t.charAt() && (t = t.substring(1), t && (s[t] = (s[t] || []).concat(function(t) {
  10889. e.attr("xlink:href", "#" + t)
  10890. })))
  10891. }
  10892. for (var r, i = e.selectAll("*"), o = /^\s*url\(("|'|)(.*)\1\)\s*$/, a = [], s = {},
  10893. c = 0, l = i.length; c < l; c++) {
  10894. r = i[c],
  10895. t(r, "fill"),
  10896. t(r, "stroke"),
  10897. t(r, "filter"),
  10898. t(r, "mask"),
  10899. t(r, "clip-path"),
  10900. n(r);
  10901. var u = y(r.node, "id");
  10902. u && (y(r.node, {
  10903. id: r.id
  10904. }), a.push({
  10905. old: u,
  10906. id: r.id
  10907. }))
  10908. }
  10909. for (c = 0, l = a.length; c < l; c++) {
  10910. var p = s[a[c].old];
  10911. if (p) for (var f = 0,
  10912. h = p.length; f < h; f++) p[f](a[c].id)
  10913. }
  10914. }
  10915. function u(e, t, n) {
  10916. return function(r) {
  10917. var i = r.slice(e, t);
  10918. return 1 == i.length && (i = i[0]),
  10919. n ? n(i) : i
  10920. }
  10921. }
  10922. function p(e) {
  10923. return function() {
  10924. var t = e ? "<" + this.type: "",
  10925. n = this.node.attributes,
  10926. r = this.node.childNodes;
  10927. if (e) for (var i = 0,
  10928. o = n.length; i < o; i++) t += " " + n[i].name + '="' + n[i].value.replace(/"/g, '\\"') + '"';
  10929. if (r.length) {
  10930. for (e && (t += ">"), i = 0, o = r.length; i < o; i++) 3 == r[i].nodeType ? t += r[i].nodeValue: 1 == r[i].nodeType && (t += b(r[i]).toString());
  10931. e && (t += "</" + this.type + ">")
  10932. } else e && (t += "/>");
  10933. return t
  10934. }
  10935. }
  10936. var f = i.prototype,
  10937. h = r.is,
  10938. d = String,
  10939. m = r._unit2px,
  10940. y = r._.$,
  10941. g = r._.make,
  10942. v = r._.getSomeDefs,
  10943. x = "hasOwnProperty",
  10944. b = r._.wrap;
  10945. f.getBBox = function(e) {
  10946. if (!r.Matrix || !r.path) return this.node.getBBox();
  10947. var t = this,
  10948. n = new r.Matrix;
  10949. if (t.removed) return r._.box();
  10950. for (;
  10951. "use" == t.type;) if (e || (n = n.add(t.transform().localMatrix.translate(t.attr("x") || 0, t.attr("y") || 0))), t.original) t = t.original;
  10952. else {
  10953. var i = t.attr("xlink:href");
  10954. t = t.original = t.node.ownerDocument.getElementById(i.substring(i.indexOf("#") + 1))
  10955. }
  10956. var o = t._,
  10957. a = r.path.get[t.type] || r.path.get.deflt;
  10958. try {
  10959. return e ? (o.bboxwt = a ? r.path.getBBox(t.realPath = a(t)) : r._.box(t.node.getBBox()), r._.box(o.bboxwt)) : (t.realPath = a(t), t.matrix = t.transform().localMatrix, o.bbox = r.path.getBBox(r.path.map(t.realPath, n.add(t.matrix))), r._.box(o.bbox))
  10960. } catch(e) {
  10961. return r._.box()
  10962. }
  10963. };
  10964. var w = function() {
  10965. return this.string
  10966. };
  10967. f.transform = function(e) {
  10968. var t = this._;
  10969. if (null == e) {
  10970. for (var n, i = this,
  10971. o = new r.Matrix(this.node.getCTM()), a = c(this), s = [a], l = new r.Matrix, u = a.toTransformString(), p = d(a) == d(this.matrix) ? d(t.transform) : u;
  10972. "svg" != i.type && (i = i.parent());) s.push(c(i));
  10973. for (n = s.length; n--;) l.add(s[n]);
  10974. return {
  10975. string: p,
  10976. globalMatrix: o,
  10977. totalMatrix: l,
  10978. localMatrix: a,
  10979. diffMatrix: o.clone().add(a.invert()),
  10980. global: o.toTransformString(),
  10981. total: l.toTransformString(),
  10982. local: u,
  10983. toString: w
  10984. }
  10985. }
  10986. return e instanceof r.Matrix ? (this.matrix = e, this._.transform = e.toTransformString()) : c(this, e),
  10987. this.node && ("linearGradient" == this.type || "radialGradient" == this.type ? y(this.node, {
  10988. gradientTransform: this.matrix
  10989. }) : "pattern" == this.type ? y(this.node, {
  10990. patternTransform: this.matrix
  10991. }) : y(this.node, {
  10992. transform: this.matrix
  10993. })),
  10994. this
  10995. },
  10996. f.parent = function() {
  10997. return b(this.node.parentNode)
  10998. },
  10999. f.append = f.add = function(e) {
  11000. if (e) {
  11001. if ("set" == e.type) {
  11002. var t = this;
  11003. return e.forEach(function(e) {
  11004. t.add(e)
  11005. }),
  11006. this
  11007. }
  11008. e = b(e),
  11009. this.node.appendChild(e.node),
  11010. e.paper = this.paper
  11011. }
  11012. return this
  11013. },
  11014. f.appendTo = function(e) {
  11015. return e && (e = b(e), e.append(this)),
  11016. this
  11017. },
  11018. f.prepend = function(e) {
  11019. if (e) {
  11020. if ("set" == e.type) {
  11021. var t, n = this;
  11022. return e.forEach(function(e) {
  11023. t ? t.after(e) : n.prepend(e),
  11024. t = e
  11025. }),
  11026. this
  11027. }
  11028. e = b(e);
  11029. var r = e.parent();
  11030. this.node.insertBefore(e.node, this.node.firstChild),
  11031. this.add && this.add(),
  11032. e.paper = this.paper,
  11033. this.parent() && this.parent().add(),
  11034. r && r.add()
  11035. }
  11036. return this
  11037. },
  11038. f.prependTo = function(e) {
  11039. return e = b(e),
  11040. e.prepend(this),
  11041. this
  11042. },
  11043. f.before = function(e) {
  11044. if ("set" == e.type) {
  11045. var t = this;
  11046. return e.forEach(function(e) {
  11047. var n = e.parent();
  11048. t.node.parentNode.insertBefore(e.node, t.node),
  11049. n && n.add()
  11050. }),
  11051. this.parent().add(),
  11052. this
  11053. }
  11054. e = b(e);
  11055. var n = e.parent();
  11056. return this.node.parentNode.insertBefore(e.node, this.node),
  11057. this.parent() && this.parent().add(),
  11058. n && n.add(),
  11059. e.paper = this.paper,
  11060. this
  11061. },
  11062. f.after = function(e) {
  11063. e = b(e);
  11064. var t = e.parent();
  11065. return this.node.nextSibling ? this.node.parentNode.insertBefore(e.node, this.node.nextSibling) : this.node.parentNode.appendChild(e.node),
  11066. this.parent() && this.parent().add(),
  11067. t && t.add(),
  11068. e.paper = this.paper,
  11069. this
  11070. },
  11071. f.insertBefore = function(e) {
  11072. e = b(e);
  11073. var t = this.parent();
  11074. return e.node.parentNode.insertBefore(this.node, e.node),
  11075. this.paper = e.paper,
  11076. t && t.add(),
  11077. e.parent() && e.parent().add(),
  11078. this
  11079. },
  11080. f.insertAfter = function(e) {
  11081. e = b(e);
  11082. var t = this.parent();
  11083. return e.node.parentNode.insertBefore(this.node, e.node.nextSibling),
  11084. this.paper = e.paper,
  11085. t && t.add(),
  11086. e.parent() && e.parent().add(),
  11087. this
  11088. },
  11089. f.remove = function() {
  11090. var e = this.parent();
  11091. return this.node.parentNode && this.node.parentNode.removeChild(this.node),
  11092. delete this.paper,
  11093. this.removed = !0,
  11094. e && e.add(),
  11095. this
  11096. },
  11097. f.select = function(e) {
  11098. return e = d(e).replace(/([^\\]):/g, "$1\\:"),
  11099. b(this.node.querySelector(e))
  11100. },
  11101. f.selectAll = function(e) {
  11102. for (var t = this.node.querySelectorAll(e), n = (r.set || Array)(), i = 0; i < t.length; i++) n.push(b(t[i]));
  11103. return n
  11104. },
  11105. f.asPX = function(e, t) {
  11106. return null == t && (t = this.attr(e)),
  11107. +m(this, e, t)
  11108. },
  11109. f.use = function() {
  11110. var e, t = this.node.id;
  11111. return t || (t = this.id, y(this.node, {
  11112. id: t
  11113. })),
  11114. e = "linearGradient" == this.type || "radialGradient" == this.type || "pattern" == this.type ? g(this.type, this.node.parentNode) : g("use", this.node.parentNode),
  11115. y(e.node, {
  11116. "xlink:href": "#" + t
  11117. }),
  11118. e.original = this,
  11119. e
  11120. },
  11121. f.clone = function() {
  11122. var e = b(this.node.cloneNode(!0));
  11123. return y(e.node, "id") && y(e.node, {
  11124. id: e.id
  11125. }),
  11126. l(e),
  11127. e.insertAfter(this),
  11128. e
  11129. },
  11130. f.toDefs = function() {
  11131. var e = v(this);
  11132. return e.appendChild(this.node),
  11133. this
  11134. },
  11135. f.pattern = f.toPattern = function(e, t, n, r) {
  11136. var i = g("pattern", v(this));
  11137. return null == e && (e = this.getBBox()),
  11138. h(e, "object") && "x" in e && (t = e.y, n = e.width, r = e.height, e = e.x),
  11139. y(i.node, {
  11140. x: e,
  11141. y: t,
  11142. width: n,
  11143. height: r,
  11144. patternUnits: "userSpaceOnUse",
  11145. id: i.id,
  11146. viewBox: [e, t, n, r].join(" ")
  11147. }),
  11148. i.node.appendChild(this.node),
  11149. i
  11150. },
  11151. f.marker = function(e, t, n, r, i, o) {
  11152. var a = g("marker", v(this));
  11153. return null == e && (e = this.getBBox()),
  11154. h(e, "object") && "x" in e && (t = e.y, n = e.width, r = e.height, i = e.refX || e.cx, o = e.refY || e.cy, e = e.x),
  11155. y(a.node, {
  11156. viewBox: [e, t, n, r].join(" "),
  11157. markerWidth: n,
  11158. markerHeight: r,
  11159. orient: "auto",
  11160. refX: i || 0,
  11161. refY: o || 0,
  11162. id: a.id
  11163. }),
  11164. a.node.appendChild(this.node),
  11165. a
  11166. };
  11167. var A = function(e, t, r, i) {
  11168. "function" != typeof r || r.length || (i = r, r = n.linear),
  11169. this.attr = e,
  11170. this.dur = t,
  11171. r && (this.easing = r),
  11172. i && (this.callback = i)
  11173. };
  11174. r._.Animation = A,
  11175. r.animation = function(e, t, n, r) {
  11176. return new A(e, t, n, r)
  11177. },
  11178. f.inAnim = function() {
  11179. var e = this,
  11180. t = [];
  11181. for (var n in e.anims) e.anims[x](n) && !
  11182. function(e) {
  11183. t.push({
  11184. anim: new A(e._attrs, e.dur, e.easing, e._callback),
  11185. mina: e,
  11186. curStatus: e.status(),
  11187. status: function(t) {
  11188. return e.status(t)
  11189. },
  11190. stop: function() {
  11191. e.stop()
  11192. }
  11193. })
  11194. } (e.anims[n]);
  11195. return t
  11196. },
  11197. r.animate = function(e, r, i, o, a, s) {
  11198. "function" != typeof a || a.length || (s = a, a = n.linear);
  11199. var c = n.time(),
  11200. l = n(e, r, c, c + o, n.time, i, a);
  11201. return s && t.once("mina.finish." + l.id, s),
  11202. l
  11203. },
  11204. f.stop = function() {
  11205. for (var e = this.inAnim(), t = 0, n = e.length; t < n; t++) e[t].stop();
  11206. return this
  11207. },
  11208. f.animate = function(e, r, i, o) {
  11209. "function" != typeof i || i.length || (o = i, i = n.linear),
  11210. e instanceof A && (o = e.callback, i = e.easing, r = i.dur, e = e.attr);
  11211. var a, s, c, l, p = [],
  11212. f = [],
  11213. m = {},
  11214. y = this;
  11215. for (var g in e) if (e[x](g)) {
  11216. y.equal ? (l = y.equal(g, d(e[g])), a = l.from, s = l.to, c = l.f) : (a = +y.attr(g), s = +e[g]);
  11217. var v = h(a, "array") ? a.length: 1;
  11218. m[g] = u(p.length, p.length + v, c),
  11219. p = p.concat(a),
  11220. f = f.concat(s)
  11221. }
  11222. var b = n.time(),
  11223. E = n(p, f, b, b + r, n.time,
  11224. function(e) {
  11225. var t = {};
  11226. for (var n in m) m[x](n) && (t[n] = m[n](e));
  11227. y.attr(t)
  11228. },
  11229. i);
  11230. return y.anims[E.id] = E,
  11231. E._attrs = e,
  11232. E._callback = o,
  11233. t("snap.animcreated." + y.id, E),
  11234. t.once("mina.finish." + E.id,
  11235. function() {
  11236. delete y.anims[E.id],
  11237. o && o.call(y)
  11238. }),
  11239. t.once("mina.stop." + E.id,
  11240. function() {
  11241. delete y.anims[E.id]
  11242. }),
  11243. y
  11244. };
  11245. var _ = {};
  11246. f.data = function(e, n) {
  11247. var i = _[this.id] = _[this.id] || {};
  11248. if (0 == arguments.length) return t("snap.data.get." + this.id, this, i, null),
  11249. i;
  11250. if (1 == arguments.length) {
  11251. if (r.is(e, "object")) {
  11252. for (var o in e) e[x](o) && this.data(o, e[o]);
  11253. return this
  11254. }
  11255. return t("snap.data.get." + this.id, this, i[e], e),
  11256. i[e]
  11257. }
  11258. return i[e] = n,
  11259. t("snap.data.set." + this.id, this, n, e),
  11260. this
  11261. },
  11262. f.removeData = function(e) {
  11263. return null == e ? _[this.id] = {}: _[this.id] && delete _[this.id][e],
  11264. this
  11265. },
  11266. f.outerSVG = f.toString = p(1),
  11267. f.innerSVG = p(),
  11268. f.toDataURL = function() {
  11269. if (e && e.btoa) {
  11270. var t = this.getBBox(),
  11271. n = r.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>', {
  11272. x: +t.x.toFixed(3),
  11273. y: +t.y.toFixed(3),
  11274. width: +t.width.toFixed(3),
  11275. height: +t.height.toFixed(3),
  11276. contents: this.outerSVG()
  11277. });
  11278. return "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(n)))
  11279. }
  11280. },
  11281. s.prototype.select = f.select,
  11282. s.prototype.selectAll = f.selectAll
  11283. }),
  11284. r.plugin(function(e, t, n, r, i) {
  11285. function o(e, t, n, r, i, o) {
  11286. return null == t && "[object SVGMatrix]" == a.call(e) ? (this.a = e.a, this.b = e.b, this.c = e.c, this.d = e.d, this.e = e.e, void(this.f = e.f)) : void(null != e ? (this.a = +e, this.b = +t, this.c = +n, this.d = +r, this.e = +i, this.f = +o) : (this.a = 1, this.b = 0, this.c = 0, this.d = 1, this.e = 0, this.f = 0))
  11287. }
  11288. var a = Object.prototype.toString,
  11289. s = String,
  11290. c = Math,
  11291. l = ""; !
  11292. function(t) {
  11293. function n(e) {
  11294. return e[0] * e[0] + e[1] * e[1]
  11295. }
  11296. function r(e) {
  11297. var t = c.sqrt(n(e));
  11298. e[0] && (e[0] /= t),
  11299. e[1] && (e[1] /= t)
  11300. }
  11301. t.add = function(e, t, n, r, i, a) {
  11302. var s, c, l, u, p = [[], [], []],
  11303. f = [[this.a, this.c, this.e], [this.b, this.d, this.f], [0, 0, 1]],
  11304. h = [[e, n, i], [t, r, a], [0, 0, 1]];
  11305. for (e && e instanceof o && (h = [[e.a, e.c, e.e], [e.b, e.d, e.f], [0, 0, 1]]), s = 0; s < 3; s++) for (c = 0; c < 3; c++) {
  11306. for (u = 0, l = 0; l < 3; l++) u += f[s][l] * h[l][c];
  11307. p[s][c] = u
  11308. }
  11309. return this.a = p[0][0],
  11310. this.b = p[1][0],
  11311. this.c = p[0][1],
  11312. this.d = p[1][1],
  11313. this.e = p[0][2],
  11314. this.f = p[1][2],
  11315. this
  11316. },
  11317. t.invert = function() {
  11318. var e = this,
  11319. t = e.a * e.d - e.b * e.c;
  11320. return new o(e.d / t, -e.b / t, -e.c / t, e.a / t, (e.c * e.f - e.d * e.e) / t, (e.b * e.e - e.a * e.f) / t)
  11321. },
  11322. t.clone = function() {
  11323. return new o(this.a, this.b, this.c, this.d, this.e, this.f)
  11324. },
  11325. t.translate = function(e, t) {
  11326. return this.add(1, 0, 0, 1, e, t)
  11327. },
  11328. t.scale = function(e, t, n, r) {
  11329. return null == t && (t = e),
  11330. (n || r) && this.add(1, 0, 0, 1, n, r),
  11331. this.add(e, 0, 0, t, 0, 0),
  11332. (n || r) && this.add(1, 0, 0, 1, -n, -r),
  11333. this
  11334. },
  11335. t.rotate = function(t, n, r) {
  11336. t = e.rad(t),
  11337. n = n || 0,
  11338. r = r || 0;
  11339. var i = +c.cos(t).toFixed(9),
  11340. o = +c.sin(t).toFixed(9);
  11341. return this.add(i, o, -o, i, n, r),
  11342. this.add(1, 0, 0, 1, -n, -r)
  11343. },
  11344. t.x = function(e, t) {
  11345. return e * this.a + t * this.c + this.e
  11346. },
  11347. t.y = function(e, t) {
  11348. return e * this.b + t * this.d + this.f
  11349. },
  11350. t.get = function(e) {
  11351. return + this[s.fromCharCode(97 + e)].toFixed(4)
  11352. },
  11353. t.toString = function() {
  11354. return "matrix(" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)].join() + ")"
  11355. },
  11356. t.offset = function() {
  11357. return [this.e.toFixed(4), this.f.toFixed(4)]
  11358. },
  11359. t.determinant = function() {
  11360. return this.a * this.d - this.b * this.c
  11361. },
  11362. t.split = function() {
  11363. var t = {};
  11364. t.dx = this.e,
  11365. t.dy = this.f;
  11366. var i = [[this.a, this.c], [this.b, this.d]];
  11367. t.scalex = c.sqrt(n(i[0])),
  11368. r(i[0]),
  11369. t.shear = i[0][0] * i[1][0] + i[0][1] * i[1][1],
  11370. i[1] = [i[1][0] - i[0][0] * t.shear, i[1][1] - i[0][1] * t.shear],
  11371. t.scaley = c.sqrt(n(i[1])),
  11372. r(i[1]),
  11373. t.shear /= t.scaley,
  11374. this.determinant() < 0 && (t.scalex = -t.scalex);
  11375. var o = -i[0][1],
  11376. a = i[1][1];
  11377. return a < 0 ? (t.rotate = e.deg(c.acos(a)), o < 0 && (t.rotate = 360 - t.rotate)) : t.rotate = e.deg(c.asin(o)),
  11378. t.isSimple = !( + t.shear.toFixed(9) || t.scalex.toFixed(9) != t.scaley.toFixed(9) && t.rotate),
  11379. t.isSuperSimple = !+t.shear.toFixed(9) && t.scalex.toFixed(9) == t.scaley.toFixed(9) && !t.rotate,
  11380. t.noRotation = !+t.shear.toFixed(9) && !t.rotate,
  11381. t
  11382. },
  11383. t.toTransformString = function(e) {
  11384. var t = e || this.split();
  11385. return + t.shear.toFixed(9) ? "m" + [this.get(0), this.get(1), this.get(2), this.get(3), this.get(4), this.get(5)] : (t.scalex = +t.scalex.toFixed(4), t.scaley = +t.scaley.toFixed(4), t.rotate = +t.rotate.toFixed(4), (t.dx || t.dy ? "t" + [ + t.dx.toFixed(4), +t.dy.toFixed(4)] : l) + (1 != t.scalex || 1 != t.scaley ? "s" + [t.scalex, t.scaley, 0, 0] : l) + (t.rotate ? "r" + [ + t.rotate.toFixed(4), 0, 0] : l))
  11386. }
  11387. } (o.prototype),
  11388. e.Matrix = o,
  11389. e.matrix = function(e, t, n, r, i, a) {
  11390. return new o(e, t, n, r, i, a)
  11391. }
  11392. }),
  11393. r.plugin(function(e, n, r, i, o) {
  11394. function a(r) {
  11395. return function(i) {
  11396. if (t.stop(), i instanceof o && 1 == i.node.childNodes.length && ("radialGradient" == i.node.firstChild.tagName || "linearGradient" == i.node.firstChild.tagName || "pattern" == i.node.firstChild.tagName) && (i = i.node.firstChild, h(this).appendChild(i), i = p(i)), i instanceof n) if ("radialGradient" == i.type || "linearGradient" == i.type || "pattern" == i.type) {
  11397. i.node.id || m(i.node, {
  11398. id: i.id
  11399. });
  11400. var a = y(i.node.id)
  11401. } else a = i.attr(r);
  11402. else if (a = e.color(i), a.error) {
  11403. var s = e(h(this).ownerSVGElement).gradient(i);
  11404. s ? (s.node.id || m(s.node, {
  11405. id: s.id
  11406. }), a = y(s.node.id)) : a = i
  11407. } else a = g(a);
  11408. var c = {};
  11409. c[r] = a,
  11410. m(this.node, c),
  11411. this.node.style[r] = x
  11412. }
  11413. }
  11414. function s(e) {
  11415. t.stop(),
  11416. e == +e && (e += "px"),
  11417. this.node.style.fontSize = e
  11418. }
  11419. function c(e) {
  11420. for (var t = [], n = e.childNodes, r = 0, i = n.length; r < i; r++) {
  11421. var o = n[r];
  11422. 3 == o.nodeType && t.push(o.nodeValue),
  11423. "tspan" == o.tagName && (1 == o.childNodes.length && 3 == o.firstChild.nodeType ? t.push(o.firstChild.nodeValue) : t.push(c(o)))
  11424. }
  11425. return t
  11426. }
  11427. function l() {
  11428. return t.stop(),
  11429. this.node.style.fontSize
  11430. }
  11431. var u = e._.make,
  11432. p = e._.wrap,
  11433. f = e.is,
  11434. h = e._.getSomeDefs,
  11435. d = /^url\(#?([^)]+)\)$/,
  11436. m = e._.$,
  11437. y = e.url,
  11438. g = String,
  11439. v = e._.separator,
  11440. x = "";
  11441. t.on("snap.util.attr.mask",
  11442. function(e) {
  11443. if (e instanceof n || e instanceof o) {
  11444. if (t.stop(), e instanceof o && 1 == e.node.childNodes.length && (e = e.node.firstChild, h(this).appendChild(e), e = p(e)), "mask" == e.type) var r = e;
  11445. else r = u("mask", h(this)),
  11446. r.node.appendChild(e.node); ! r.node.id && m(r.node, {
  11447. id: r.id
  11448. }),
  11449. m(this.node, {
  11450. mask: y(r.id)
  11451. })
  11452. }
  11453. }),
  11454. function(e) {
  11455. t.on("snap.util.attr.clip", e),
  11456. t.on("snap.util.attr.clip-path", e),
  11457. t.on("snap.util.attr.clipPath", e)
  11458. } (function(e) {
  11459. if (e instanceof n || e instanceof o) {
  11460. if (t.stop(), "clipPath" == e.type) var r = e;
  11461. else r = u("clipPath", h(this)),
  11462. r.node.appendChild(e.node),
  11463. !r.node.id && m(r.node, {
  11464. id: r.id
  11465. });
  11466. m(this.node, {
  11467. "clip-path": y(r.node.id || r.id)
  11468. })
  11469. }
  11470. }),
  11471. t.on("snap.util.attr.fill", a("fill")),
  11472. t.on("snap.util.attr.stroke", a("stroke"));
  11473. var b = /^([lr])(?:\(([^)]*)\))?(.*)$/i;
  11474. t.on("snap.util.grad.parse",
  11475. function(e) {
  11476. e = g(e);
  11477. var t = e.match(b);
  11478. if (!t) return null;
  11479. var n = t[1],
  11480. r = t[2],
  11481. i = t[3];
  11482. return r = r.split(/\s*,\s*/).map(function(e) {
  11483. return + e == e ? +e: e
  11484. }),
  11485. 1 == r.length && 0 == r[0] && (r = []),
  11486. i = i.split("-"),
  11487. i = i.map(function(e) {
  11488. e = e.split(":");
  11489. var t = {
  11490. color: e[0]
  11491. };
  11492. return e[1] && (t.offset = parseFloat(e[1])),
  11493. t
  11494. }),
  11495. {
  11496. type: n,
  11497. params: r,
  11498. stops: i
  11499. }
  11500. }),
  11501. t.on("snap.util.attr.d",
  11502. function(n) {
  11503. t.stop(),
  11504. f(n, "array") && f(n[0], "array") && (n = e.path.toString.call(n)),
  11505. n = g(n),
  11506. n.match(/[ruo]/i) && (n = e.path.toAbsolute(n)),
  11507. m(this.node, {
  11508. d: n
  11509. })
  11510. })( - 1),
  11511. t.on("snap.util.attr.#text",
  11512. function(e) {
  11513. t.stop(),
  11514. e = g(e);
  11515. for (var n = i.doc.createTextNode(e); this.node.firstChild;) this.node.removeChild(this.node.firstChild);
  11516. this.node.appendChild(n)
  11517. })( - 1),
  11518. t.on("snap.util.attr.path",
  11519. function(e) {
  11520. t.stop(),
  11521. this.attr({
  11522. d: e
  11523. })
  11524. })( - 1),
  11525. t.on("snap.util.attr.class",
  11526. function(e) {
  11527. t.stop(),
  11528. this.node.className.baseVal = e
  11529. })( - 1),
  11530. t.on("snap.util.attr.viewBox",
  11531. function(e) {
  11532. var n;
  11533. n = f(e, "object") && "x" in e ? [e.x, e.y, e.width, e.height].join(" ") : f(e, "array") ? e.join(" ") : e,
  11534. m(this.node, {
  11535. viewBox: n
  11536. }),
  11537. t.stop()
  11538. })( - 1),
  11539. t.on("snap.util.attr.transform",
  11540. function(e) {
  11541. this.transform(e),
  11542. t.stop()
  11543. })( - 1),
  11544. t.on("snap.util.attr.r",
  11545. function(e) {
  11546. "rect" == this.type && (t.stop(), m(this.node, {
  11547. rx: e,
  11548. ry: e
  11549. }))
  11550. })( - 1),
  11551. t.on("snap.util.attr.textpath",
  11552. function(e) {
  11553. if (t.stop(), "text" == this.type) {
  11554. var r, i, o;
  11555. if (!e && this.textPath) {
  11556. for (i = this.textPath; i.node.firstChild;) this.node.appendChild(i.node.firstChild);
  11557. return i.remove(),
  11558. void delete this.textPath
  11559. }
  11560. if (f(e, "string")) {
  11561. var a = h(this),
  11562. s = p(a.parentNode).path(e);
  11563. a.appendChild(s.node),
  11564. r = s.id,
  11565. s.attr({
  11566. id: r
  11567. })
  11568. } else e = p(e),
  11569. e instanceof n && (r = e.attr("id"), r || (r = e.id, e.attr({
  11570. id: r
  11571. })));
  11572. if (r) if (i = this.textPath, o = this.node, i) i.attr({
  11573. "xlink:href": "#" + r
  11574. });
  11575. else {
  11576. for (i = m("textPath", {
  11577. "xlink:href": "#" + r
  11578. }); o.firstChild;) i.appendChild(o.firstChild);
  11579. o.appendChild(i),
  11580. this.textPath = p(i)
  11581. }
  11582. }
  11583. })( - 1),
  11584. t.on("snap.util.attr.text",
  11585. function(e) {
  11586. if ("text" == this.type) {
  11587. for (var n = this.node,
  11588. r = function(e) {
  11589. var t = m("tspan");
  11590. if (f(e, "array")) for (var n = 0; n < e.length; n++) t.appendChild(r(e[n]));
  11591. else t.appendChild(i.doc.createTextNode(e));
  11592. return t.normalize && t.normalize(),
  11593. t
  11594. }; n.firstChild;) n.removeChild(n.firstChild);
  11595. for (var o = r(e); o.firstChild;) n.appendChild(o.firstChild)
  11596. }
  11597. t.stop()
  11598. })( - 1),
  11599. t.on("snap.util.attr.fontSize", s)( - 1),
  11600. t.on("snap.util.attr.font-size", s)( - 1),
  11601. t.on("snap.util.getattr.transform",
  11602. function() {
  11603. return t.stop(),
  11604. this.transform()
  11605. })( - 1),
  11606. t.on("snap.util.getattr.textpath",
  11607. function() {
  11608. return t.stop(),
  11609. this.textPath
  11610. })( - 1),
  11611. function() {
  11612. function n(n) {
  11613. return function() {
  11614. t.stop();
  11615. var r = i.doc.defaultView.getComputedStyle(this.node, null).getPropertyValue("marker-" + n);
  11616. return "none" == r ? r: e(i.doc.getElementById(r.match(d)[1]))
  11617. }
  11618. }
  11619. function r(e) {
  11620. return function(n) {
  11621. t.stop();
  11622. var r = "marker" + e.charAt(0).toUpperCase() + e.substring(1);
  11623. if ("" == n || !n) return void(this.node.style[r] = "none");
  11624. if ("marker" == n.type) {
  11625. var i = n.node.id;
  11626. return i || m(n.node, {
  11627. id: n.id
  11628. }),
  11629. void(this.node.style[r] = y(i))
  11630. }
  11631. }
  11632. }
  11633. t.on("snap.util.getattr.marker-end", n("end"))( - 1),
  11634. t.on("snap.util.getattr.markerEnd", n("end"))( - 1),
  11635. t.on("snap.util.getattr.marker-start", n("start"))( - 1),
  11636. t.on("snap.util.getattr.markerStart", n("start"))( - 1),
  11637. t.on("snap.util.getattr.marker-mid", n("mid"))( - 1),
  11638. t.on("snap.util.getattr.markerMid", n("mid"))( - 1),
  11639. t.on("snap.util.attr.marker-end", r("end"))( - 1),
  11640. t.on("snap.util.attr.markerEnd", r("end"))( - 1),
  11641. t.on("snap.util.attr.marker-start", r("start"))( - 1),
  11642. t.on("snap.util.attr.markerStart", r("start"))( - 1),
  11643. t.on("snap.util.attr.marker-mid", r("mid"))( - 1),
  11644. t.on("snap.util.attr.markerMid", r("mid"))( - 1)
  11645. } (),
  11646. t.on("snap.util.getattr.r",
  11647. function() {
  11648. if ("rect" == this.type && m(this.node, "rx") == m(this.node, "ry")) return t.stop(),
  11649. m(this.node, "rx")
  11650. })( - 1),
  11651. t.on("snap.util.getattr.text",
  11652. function() {
  11653. if ("text" == this.type || "tspan" == this.type) {
  11654. t.stop();
  11655. var e = c(this.node);
  11656. return 1 == e.length ? e[0] : e
  11657. }
  11658. })( - 1),
  11659. t.on("snap.util.getattr.#text",
  11660. function() {
  11661. return this.node.textContent
  11662. })( - 1),
  11663. t.on("snap.util.getattr.viewBox",
  11664. function() {
  11665. t.stop();
  11666. var n = m(this.node, "viewBox");
  11667. return n ? (n = n.split(v), e._.box( + n[0], +n[1], +n[2], +n[3])) : void 0
  11668. })( - 1),
  11669. t.on("snap.util.getattr.points",
  11670. function() {
  11671. var e = m(this.node, "points");
  11672. return t.stop(),
  11673. e ? e.split(v) : void 0
  11674. })( - 1),
  11675. t.on("snap.util.getattr.path",
  11676. function() {
  11677. var e = m(this.node, "d");
  11678. return t.stop(),
  11679. e
  11680. })( - 1),
  11681. t.on("snap.util.getattr.class",
  11682. function() {
  11683. return this.node.className.baseVal
  11684. })( - 1),
  11685. t.on("snap.util.getattr.fontSize", l)( - 1),
  11686. t.on("snap.util.getattr.font-size", l)( - 1)
  11687. }),
  11688. r.plugin(function(n, r, i, o, a) {
  11689. var s = i.prototype,
  11690. c = n.is;
  11691. s.rect = function(e, t, n, r, i, o) {
  11692. var a;
  11693. return null == o && (o = i),
  11694. c(e, "object") && "[object Object]" == e ? a = e: null != e && (a = {
  11695. x: e,
  11696. y: t,
  11697. width: n,
  11698. height: r
  11699. },
  11700. null != i && (a.rx = i, a.ry = o)),
  11701. this.el("rect", a)
  11702. },
  11703. s.circle = function(e, t, n) {
  11704. var r;
  11705. return c(e, "object") && "[object Object]" == e ? r = e: null != e && (r = {
  11706. cx: e,
  11707. cy: t,
  11708. r: n
  11709. }),
  11710. this.el("circle", r)
  11711. };
  11712. var l = function() {
  11713. function e() {
  11714. this.parentNode.removeChild(this)
  11715. }
  11716. return function(t, n) {
  11717. var r = o.doc.createElement("img"),
  11718. i = o.doc.body;
  11719. r.style.cssText = "position:absolute;left:-9999em;top:-9999em",
  11720. r.onload = function() {
  11721. n.call(r),
  11722. r.onload = r.onerror = null,
  11723. i.removeChild(r)
  11724. },
  11725. r.onerror = e,
  11726. i.appendChild(r),
  11727. r.src = t
  11728. }
  11729. } ();
  11730. s.image = function(e, t, r, i, o) {
  11731. var a = this.el("image");
  11732. if (c(e, "object") && "src" in e) a.attr(e);
  11733. else if (null != e) {
  11734. var s = {
  11735. "xlink:href": e,
  11736. preserveAspectRatio: "none"
  11737. };
  11738. null != t && null != r && (s.x = t, s.y = r),
  11739. null != i && null != o ? (s.width = i, s.height = o) : l(e,
  11740. function() {
  11741. n._.$(a.node, {
  11742. width: this.offsetWidth,
  11743. height: this.offsetHeight
  11744. })
  11745. }),
  11746. n._.$(a.node, s)
  11747. }
  11748. return a
  11749. },
  11750. s.ellipse = function(e, t, n, r) {
  11751. var i;
  11752. return c(e, "object") && "[object Object]" == e ? i = e: null != e && (i = {
  11753. cx: e,
  11754. cy: t,
  11755. rx: n,
  11756. ry: r
  11757. }),
  11758. this.el("ellipse", i)
  11759. },
  11760. s.path = function(e) {
  11761. var t;
  11762. return c(e, "object") && !c(e, "array") ? t = e: e && (t = {
  11763. d: e
  11764. }),
  11765. this.el("path", t)
  11766. },
  11767. s.group = s.g = function(e) {
  11768. var t = this.el("g");
  11769. return 1 == arguments.length && e && !e.type ? t.attr(e) : arguments.length && t.add(Array.prototype.slice.call(arguments, 0)),
  11770. t
  11771. },
  11772. s.svg = function(e, t, n, r, i, o, a, s) {
  11773. var l = {};
  11774. return c(e, "object") && null == t ? l = e: (null != e && (l.x = e), null != t && (l.y = t), null != n && (l.width = n), null != r && (l.height = r), null != i && null != o && null != a && null != s && (l.viewBox = [i, o, a, s])),
  11775. this.el("svg", l)
  11776. },
  11777. s.mask = function(e) {
  11778. var t = this.el("mask");
  11779. return 1 == arguments.length && e && !e.type ? t.attr(e) : arguments.length && t.add(Array.prototype.slice.call(arguments, 0)),
  11780. t
  11781. },
  11782. s.ptrn = function(e, t, n, r, i, o, a, s) {
  11783. if (c(e, "object")) var l = e;
  11784. else l = {
  11785. patternUnits: "userSpaceOnUse"
  11786. },
  11787. e && (l.x = e),
  11788. t && (l.y = t),
  11789. null != n && (l.width = n),
  11790. null != r && (l.height = r),
  11791. null != i && null != o && null != a && null != s && (l.viewBox = [i, o, a, s]);
  11792. return this.el("pattern", l)
  11793. },
  11794. s.use = function(e) {
  11795. return null != e ? (e instanceof r && (e.attr("id") || e.attr({
  11796. id: n._.id(e)
  11797. }), e = e.attr("id")), "#" == String(e).charAt() && (e = e.substring(1)), this.el("use", {
  11798. "xlink:href": "#" + e
  11799. })) : r.prototype.use.call(this)
  11800. },
  11801. s.symbol = function(e, t, n, r) {
  11802. var i = {};
  11803. return null != e && null != t && null != n && null != r && (i.viewBox = [e, t, n, r]),
  11804. this.el("symbol", i)
  11805. },
  11806. s.text = function(e, t, n) {
  11807. var r = {};
  11808. return c(e, "object") ? r = e: null != e && (r = {
  11809. x: e,
  11810. y: t,
  11811. text: n || ""
  11812. }),
  11813. this.el("text", r)
  11814. },
  11815. s.line = function(e, t, n, r) {
  11816. var i = {};
  11817. return c(e, "object") ? i = e: null != e && (i = {
  11818. x1: e,
  11819. x2: n,
  11820. y1: t,
  11821. y2: r
  11822. }),
  11823. this.el("line", i)
  11824. },
  11825. s.polyline = function(e) {
  11826. arguments.length > 1 && (e = Array.prototype.slice.call(arguments, 0));
  11827. var t = {};
  11828. return c(e, "object") && !c(e, "array") ? t = e: null != e && (t = {
  11829. points: e
  11830. }),
  11831. this.el("polyline", t)
  11832. },
  11833. s.polygon = function(e) {
  11834. arguments.length > 1 && (e = Array.prototype.slice.call(arguments, 0));
  11835. var t = {};
  11836. return c(e, "object") && !c(e, "array") ? t = e: null != e && (t = {
  11837. points: e
  11838. }),
  11839. this.el("polygon", t)
  11840. },
  11841. function() {
  11842. function r() {
  11843. return this.selectAll("stop")
  11844. }
  11845. function i(e, t) {
  11846. var r = u("stop"),
  11847. i = {
  11848. offset: +t + "%"
  11849. };
  11850. return e = n.color(e),
  11851. i["stop-color"] = e.hex,
  11852. e.opacity < 1 && (i["stop-opacity"] = e.opacity),
  11853. u(r, i),
  11854. this.node.appendChild(r),
  11855. this
  11856. }
  11857. function o() {
  11858. if ("linearGradient" == this.type) {
  11859. var e = u(this.node, "x1") || 0,
  11860. t = u(this.node, "x2") || 1,
  11861. r = u(this.node, "y1") || 0,
  11862. i = u(this.node, "y2") || 0;
  11863. return n._.box(e, r, math.abs(t - e), math.abs(i - r))
  11864. }
  11865. var o = this.node.cx || .5,
  11866. a = this.node.cy || .5,
  11867. s = this.node.r || 0;
  11868. return n._.box(o - s, a - s, 2 * s, 2 * s)
  11869. }
  11870. function a(e, n) {
  11871. function r(e, t) {
  11872. for (var n = (t - p) / (e - f), r = f; r < e; r++) a[r].offset = +( + p + n * (r - f)).toFixed(2);
  11873. f = e,
  11874. p = t
  11875. }
  11876. var i, o = t("snap.util.grad.parse", null, n).firstDefined();
  11877. if (!o) return null;
  11878. o.params.unshift(e),
  11879. i = "l" == o.type.toLowerCase() ? c.apply(0, o.params) : l.apply(0, o.params),
  11880. o.type != o.type.toLowerCase() && u(i.node, {
  11881. gradientUnits: "userSpaceOnUse"
  11882. });
  11883. var a = o.stops,
  11884. s = a.length,
  11885. p = 0,
  11886. f = 0;
  11887. s--;
  11888. for (var h = 0; h < s; h++)"offset" in a[h] && r(h, a[h].offset);
  11889. for (a[s].offset = a[s].offset || 100, r(s, a[s].offset), h = 0; h <= s; h++) {
  11890. var d = a[h];
  11891. i.addStop(d.color, d.offset)
  11892. }
  11893. return i
  11894. }
  11895. function c(e, t, a, s, c) {
  11896. var l = n._.make("linearGradient", e);
  11897. return l.stops = r,
  11898. l.addStop = i,
  11899. l.getBBox = o,
  11900. null != t && u(l.node, {
  11901. x1: t,
  11902. y1: a,
  11903. x2: s,
  11904. y2: c
  11905. }),
  11906. l
  11907. }
  11908. function l(e, t, a, s, c, l) {
  11909. var p = n._.make("radialGradient", e);
  11910. return p.stops = r,
  11911. p.addStop = i,
  11912. p.getBBox = o,
  11913. null != t && u(p.node, {
  11914. cx: t,
  11915. cy: a,
  11916. r: s
  11917. }),
  11918. null != c && null != l && u(p.node, {
  11919. fx: c,
  11920. fy: l
  11921. }),
  11922. p
  11923. }
  11924. var u = n._.$;
  11925. s.gradient = function(e) {
  11926. return a(this.defs, e)
  11927. },
  11928. s.gradientLinear = function(e, t, n, r) {
  11929. return c(this.defs, e, t, n, r)
  11930. },
  11931. s.gradientRadial = function(e, t, n, r, i) {
  11932. return l(this.defs, e, t, n, r, i)
  11933. },
  11934. s.toString = function() {
  11935. var e, t = this.node.ownerDocument,
  11936. r = t.createDocumentFragment(),
  11937. i = t.createElement("div"),
  11938. o = this.node.cloneNode(!0);
  11939. return r.appendChild(i),
  11940. i.appendChild(o),
  11941. n._.$(o, {
  11942. xmlns: "http://www.w3.org/2000/svg"
  11943. }),
  11944. e = i.innerHTML,
  11945. r.removeChild(r.firstChild),
  11946. e
  11947. },
  11948. s.toDataURL = function() {
  11949. if (e && e.btoa) return "data:image/svg+xml;base64," + btoa(unescape(encodeURIComponent(this)))
  11950. },
  11951. s.clear = function() {
  11952. for (var e, t = this.node.firstChild; t;) e = t.nextSibling,
  11953. "defs" != t.tagName ? t.parentNode.removeChild(t) : s.clear.call({
  11954. node: t
  11955. }),
  11956. t = e
  11957. }
  11958. } ()
  11959. }),
  11960. r.plugin(function(e, t, n, r) {
  11961. function i(e) {
  11962. var t = i.ps = i.ps || {};
  11963. return t[e] ? t[e].sleep = 100 : t[e] = {
  11964. sleep: 100
  11965. },
  11966. setTimeout(function() {
  11967. for (var n in t) t[F](n) && n != e && (t[n].sleep--, !t[n].sleep && delete t[n])
  11968. }),
  11969. t[e]
  11970. }
  11971. function o(e, t, n, r) {
  11972. return null == e && (e = t = n = r = 0),
  11973. null == t && (t = e.y, n = e.width, r = e.height, e = e.x),
  11974. {
  11975. x: e,
  11976. y: t,
  11977. width: n,
  11978. w: n,
  11979. height: r,
  11980. h: r,
  11981. x2: e + n,
  11982. y2: t + r,
  11983. cx: e + n / 2,
  11984. cy: t + r / 2,
  11985. r1: G.min(n, r) / 2,
  11986. r2: G.max(n, r) / 2,
  11987. r0: G.sqrt(n * n + r * r) / 2,
  11988. path: _(e, t, n, r),
  11989. vb: [e, t, n, r].join(" ")
  11990. }
  11991. }
  11992. function a() {
  11993. return this.join(",").replace(j, "$1")
  11994. }
  11995. function s(e) {
  11996. var t = L(e);
  11997. return t.toString = a,
  11998. t
  11999. }
  12000. function c(e, t, n, r, i, o, a, s, c) {
  12001. return null == c ? m(e, t, n, r, i, o, a, s) : u(e, t, n, r, i, o, a, s, y(e, t, n, r, i, o, a, s, c))
  12002. }
  12003. function l(n, r) {
  12004. function i(e) {
  12005. return + ( + e).toFixed(3)
  12006. }
  12007. return e._.cacher(function(e, o, a) {
  12008. e instanceof t && (e = e.attr("d")),
  12009. e = D(e);
  12010. for (var s, l, p, f, h, d = "",
  12011. m = {},
  12012. y = 0,
  12013. g = 0,
  12014. v = e.length; g < v; g++) {
  12015. if (p = e[g], "M" == p[0]) s = +p[1],
  12016. l = +p[2];
  12017. else {
  12018. if (f = c(s, l, p[1], p[2], p[3], p[4], p[5], p[6]), y + f > o) {
  12019. if (r && !m.start) {
  12020. if (h = c(s, l, p[1], p[2], p[3], p[4], p[5], p[6], o - y), d += ["C" + i(h.start.x), i(h.start.y), i(h.m.x), i(h.m.y), i(h.x), i(h.y)], a) return d;
  12021. m.start = d,
  12022. d = ["M" + i(h.x), i(h.y) + "C" + i(h.n.x), i(h.n.y), i(h.end.x), i(h.end.y), i(p[5]), i(p[6])].join(),
  12023. y += f,
  12024. s = +p[5],
  12025. l = +p[6];
  12026. continue
  12027. }
  12028. if (!n && !r) return h = c(s, l, p[1], p[2], p[3], p[4], p[5], p[6], o - y)
  12029. }
  12030. y += f,
  12031. s = +p[5],
  12032. l = +p[6]
  12033. }
  12034. d += p.shift() + p
  12035. }
  12036. return m.end = d,
  12037. h = n ? y: r ? m: u(s, l, p[0], p[1], p[2], p[3], p[4], p[5], 1)
  12038. },
  12039. null, e._.clone)
  12040. }
  12041. function u(e, t, n, r, i, o, a, s, c) {
  12042. var l = 1 - c,
  12043. u = q(l, 3),
  12044. p = q(l, 2),
  12045. f = c * c,
  12046. h = f * c,
  12047. d = u * e + 3 * p * c * n + 3 * l * c * c * i + h * a,
  12048. m = u * t + 3 * p * c * r + 3 * l * c * c * o + h * s,
  12049. y = e + 2 * c * (n - e) + f * (i - 2 * n + e),
  12050. g = t + 2 * c * (r - t) + f * (o - 2 * r + t),
  12051. v = n + 2 * c * (i - n) + f * (a - 2 * i + n),
  12052. x = r + 2 * c * (o - r) + f * (s - 2 * o + r),
  12053. b = l * e + c * n,
  12054. E = l * t + c * r,
  12055. w = l * i + c * a,
  12056. A = l * o + c * s,
  12057. _ = 90 - 180 * G.atan2(y - v, g - x) / U;
  12058. return {
  12059. x: d,
  12060. y: m,
  12061. m: {
  12062. x: y,
  12063. y: g
  12064. },
  12065. n: {
  12066. x: v,
  12067. y: x
  12068. },
  12069. start: {
  12070. x: b,
  12071. y: E
  12072. },
  12073. end: {
  12074. x: w,
  12075. y: A
  12076. },
  12077. alpha: _
  12078. }
  12079. }
  12080. function p(t, n, r, i, a, s, c, l) {
  12081. e.is(t, "array") || (t = [t, n, r, i, a, s, c, l]);
  12082. var u = P.apply(null, t);
  12083. return o(u.min.x, u.min.y, u.max.x - u.min.x, u.max.y - u.min.y)
  12084. }
  12085. function f(e, t, n) {
  12086. return t >= e.x && t <= e.x + e.width && n >= e.y && n <= e.y + e.height
  12087. }
  12088. function h(e, t) {
  12089. return e = o(e),
  12090. t = o(t),
  12091. f(t, e.x, e.y) || f(t, e.x2, e.y) || f(t, e.x, e.y2) || f(t, e.x2, e.y2) || f(e, t.x, t.y) || f(e, t.x2, t.y) || f(e, t.x, t.y2) || f(e, t.x2, t.y2) || (e.x < t.x2 && e.x > t.x || t.x < e.x2 && t.x > e.x) && (e.y < t.y2 && e.y > t.y || t.y < e.y2 && t.y > e.y)
  12092. }
  12093. function d(e, t, n, r, i) {
  12094. var o = -3 * t + 9 * n - 9 * r + 3 * i,
  12095. a = e * o + 6 * t - 12 * n + 6 * r;
  12096. return e * a - 3 * t + 3 * n
  12097. }
  12098. function m(e, t, n, r, i, o, a, s, c) {
  12099. null == c && (c = 1),
  12100. c = c > 1 ? 1 : c < 0 ? 0 : c;
  12101. for (var l = c / 2,
  12102. u = 12,
  12103. p = [ - .1252, .1252, -.3678, .3678, -.5873, .5873, -.7699, .7699, -.9041, .9041, -.9816, .9816], f = [.2491, .2491, .2335, .2335, .2032, .2032, .1601, .1601, .1069, .1069, .0472, .0472], h = 0, m = 0; m < u; m++) {
  12104. var y = l * p[m] + l,
  12105. g = d(y, e, n, i, a),
  12106. v = d(y, t, r, o, s),
  12107. x = g * g + v * v;
  12108. h += f[m] * G.sqrt(x)
  12109. }
  12110. return l * h
  12111. }
  12112. function y(e, t, n, r, i, o, a, s, c) {
  12113. if (! (c < 0 || m(e, t, n, r, i, o, a, s) < c)) {
  12114. var l, u = 1,
  12115. p = u / 2,
  12116. f = u - p,
  12117. h = .01;
  12118. for (l = m(e, t, n, r, i, o, a, s, f); H(l - c) > h;) p /= 2,
  12119. f += (l < c ? 1 : -1) * p,
  12120. l = m(e, t, n, r, i, o, a, s, f);
  12121. return f
  12122. }
  12123. }
  12124. function g(e, t, n, r, i, o, a, s) {
  12125. if (! (z(e, n) < W(i, a) || W(e, n) > z(i, a) || z(t, r) < W(o, s) || W(t, r) > z(o, s))) {
  12126. var c = (e * r - t * n) * (i - a) - (e - n) * (i * s - o * a),
  12127. l = (e * r - t * n) * (o - s) - (t - r) * (i * s - o * a),
  12128. u = (e - n) * (o - s) - (t - r) * (i - a);
  12129. if (u) {
  12130. var p = c / u,
  12131. f = l / u,
  12132. h = +p.toFixed(2),
  12133. d = +f.toFixed(2);
  12134. if (! (h < +W(e, n).toFixed(2) || h > +z(e, n).toFixed(2) || h < +W(i, a).toFixed(2) || h > +z(i, a).toFixed(2) || d < +W(t, r).toFixed(2) || d > +z(t, r).toFixed(2) || d < +W(o, s).toFixed(2) || d > +z(o, s).toFixed(2))) return {
  12135. x: p,
  12136. y: f
  12137. }
  12138. }
  12139. }
  12140. }
  12141. function v(e, t, n) {
  12142. var r = p(e),
  12143. i = p(t);
  12144. if (!h(r, i)) return n ? 0 : [];
  12145. for (var o = m.apply(0, e), a = m.apply(0, t), s = ~~ (o / 8), c = ~~ (a / 8), l = [], f = [], d = {},
  12146. y = n ? 0 : [], v = 0; v < s + 1; v++) {
  12147. var x = u.apply(0, e.concat(v / s));
  12148. l.push({
  12149. x: x.x,
  12150. y: x.y,
  12151. t: v / s
  12152. })
  12153. }
  12154. for (v = 0; v < c + 1; v++) x = u.apply(0, t.concat(v / c)),
  12155. f.push({
  12156. x: x.x,
  12157. y: x.y,
  12158. t: v / c
  12159. });
  12160. for (v = 0; v < s; v++) for (var b = 0; b < c; b++) {
  12161. var E = l[v],
  12162. w = l[v + 1],
  12163. A = f[b],
  12164. _ = f[b + 1],
  12165. S = H(w.x - E.x) < .001 ? "y": "x",
  12166. T = H(_.x - A.x) < .001 ? "y": "x",
  12167. C = g(E.x, E.y, w.x, w.y, A.x, A.y, _.x, _.y);
  12168. if (C) {
  12169. if (d[C.x.toFixed(4)] == C.y.toFixed(4)) continue;
  12170. d[C.x.toFixed(4)] = C.y.toFixed(4);
  12171. var R = E.t + H((C[S] - E[S]) / (w[S] - E[S])) * (w.t - E.t),
  12172. N = A.t + H((C[T] - A[T]) / (_[T] - A[T])) * (_.t - A.t);
  12173. R >= 0 && R <= 1 && N >= 0 && N <= 1 && (n ? y++:y.push({
  12174. x: C.x,
  12175. y: C.y,
  12176. t1: R,
  12177. t2: N
  12178. }))
  12179. }
  12180. }
  12181. return y
  12182. }
  12183. function x(e, t) {
  12184. return E(e, t)
  12185. }
  12186. function b(e, t) {
  12187. return E(e, t, 1)
  12188. }
  12189. function E(e, t, n) {
  12190. e = D(e),
  12191. t = D(t);
  12192. for (var r, i, o, a, s, c, l, u, p, f, h = n ? 0 : [], d = 0, m = e.length; d < m; d++) {
  12193. var y = e[d];
  12194. if ("M" == y[0]) r = s = y[1],
  12195. i = c = y[2];
  12196. else {
  12197. "C" == y[0] ? (p = [r, i].concat(y.slice(1)), r = p[6], i = p[7]) : (p = [r, i, r, i, s, c, s, c], r = s, i = c);
  12198. for (var g = 0,
  12199. x = t.length; g < x; g++) {
  12200. var b = t[g];
  12201. if ("M" == b[0]) o = l = b[1],
  12202. a = u = b[2];
  12203. else {
  12204. "C" == b[0] ? (f = [o, a].concat(b.slice(1)), o = f[6], a = f[7]) : (f = [o, a, o, a, l, u, l, u], o = l, a = u);
  12205. var E = v(p, f, n);
  12206. if (n) h += E;
  12207. else {
  12208. for (var w = 0,
  12209. A = E.length; w < A; w++) E[w].segment1 = d,
  12210. E[w].segment2 = g,
  12211. E[w].bez1 = p,
  12212. E[w].bez2 = f;
  12213. h = h.concat(E)
  12214. }
  12215. }
  12216. }
  12217. }
  12218. }
  12219. return h
  12220. }
  12221. function w(e, t, n) {
  12222. var r = A(e);
  12223. return f(r, t, n) && E(e, [["M", t, n], ["H", r.x2 + 10]], 1) % 2 == 1
  12224. }
  12225. function A(e) {
  12226. var t = i(e);
  12227. if (t.bbox) return L(t.bbox);
  12228. if (!e) return o();
  12229. e = D(e);
  12230. for (var n, r = 0,
  12231. a = 0,
  12232. s = [], c = [], l = 0, u = e.length; l < u; l++) if (n = e[l], "M" == n[0]) r = n[1],
  12233. a = n[2],
  12234. s.push(r),
  12235. c.push(a);
  12236. else {
  12237. var p = P(r, a, n[1], n[2], n[3], n[4], n[5], n[6]);
  12238. s = s.concat(p.min.x, p.max.x),
  12239. c = c.concat(p.min.y, p.max.y),
  12240. r = n[5],
  12241. a = n[6]
  12242. }
  12243. var f = W.apply(0, s),
  12244. h = W.apply(0, c),
  12245. d = z.apply(0, s),
  12246. m = z.apply(0, c),
  12247. y = o(f, h, d - f, m - h);
  12248. return t.bbox = L(y),
  12249. y
  12250. }
  12251. function _(e, t, n, r, i) {
  12252. if (i) return [["M", +e + +i, t], ["l", n - 2 * i, 0], ["a", i, i, 0, 0, 1, i, i], ["l", 0, r - 2 * i], ["a", i, i, 0, 0, 1, -i, i], ["l", 2 * i - n, 0], ["a", i, i, 0, 0, 1, -i, -i], ["l", 0, 2 * i - r], ["a", i, i, 0, 0, 1, i, -i], ["z"]];
  12253. var o = [["M", e, t], ["l", n, 0], ["l", 0, r], ["l", -n, 0], ["z"]];
  12254. return o.toString = a,
  12255. o
  12256. }
  12257. function S(e, t, n, r, i) {
  12258. if (null == i && null == r && (r = n), e = +e, t = +t, n = +n, r = +r, null != i) var o = Math.PI / 180,
  12259. s = e + n * Math.cos( - r * o),
  12260. c = e + n * Math.cos( - i * o),
  12261. l = t + n * Math.sin( - r * o),
  12262. u = t + n * Math.sin( - i * o),
  12263. p = [["M", s, l], ["A", n, n, 0, +(i - r > 180), 0, c, u]];
  12264. else p = [["M", e, t], ["m", 0, -r], ["a", n, r, 0, 1, 1, 0, 2 * r], ["a", n, r, 0, 1, 1, 0, -2 * r], ["z"]];
  12265. return p.toString = a,
  12266. p
  12267. }
  12268. function T(t) {
  12269. var n = i(t),
  12270. r = String.prototype.toLowerCase;
  12271. if (n.rel) return s(n.rel);
  12272. e.is(t, "array") && e.is(t && t[0], "array") || (t = e.parsePathString(t));
  12273. var o = [],
  12274. c = 0,
  12275. l = 0,
  12276. u = 0,
  12277. p = 0,
  12278. f = 0;
  12279. "M" == t[0][0] && (c = t[0][1], l = t[0][2], u = c, p = l, f++, o.push(["M", c, l]));
  12280. for (var h = f,
  12281. d = t.length; h < d; h++) {
  12282. var m = o[h] = [],
  12283. y = t[h];
  12284. if (y[0] != r.call(y[0])) switch (m[0] = r.call(y[0]), m[0]) {
  12285. case "a":
  12286. m[1] = y[1],
  12287. m[2] = y[2],
  12288. m[3] = y[3],
  12289. m[4] = y[4],
  12290. m[5] = y[5],
  12291. m[6] = +(y[6] - c).toFixed(3),
  12292. m[7] = +(y[7] - l).toFixed(3);
  12293. break;
  12294. case "v":
  12295. m[1] = +(y[1] - l).toFixed(3);
  12296. break;
  12297. case "m":
  12298. u = y[1],
  12299. p = y[2];
  12300. default:
  12301. for (var g = 1,
  12302. v = y.length; g < v; g++) m[g] = +(y[g] - (g % 2 ? c: l)).toFixed(3)
  12303. } else {
  12304. m = o[h] = [],
  12305. "m" == y[0] && (u = y[1] + c, p = y[2] + l);
  12306. for (var x = 0,
  12307. b = y.length; x < b; x++) o[h][x] = y[x]
  12308. }
  12309. var E = o[h].length;
  12310. switch (o[h][0]) {
  12311. case "z":
  12312. c = u,
  12313. l = p;
  12314. break;
  12315. case "h":
  12316. c += +o[h][E - 1];
  12317. break;
  12318. case "v":
  12319. l += +o[h][E - 1];
  12320. break;
  12321. default:
  12322. c += +o[h][E - 2],
  12323. l += +o[h][E - 1]
  12324. }
  12325. }
  12326. return o.toString = a,
  12327. n.rel = s(o),
  12328. o
  12329. }
  12330. function C(t) {
  12331. var n = i(t);
  12332. if (n.abs) return s(n.abs);
  12333. if (I(t, "array") && I(t && t[0], "array") || (t = e.parsePathString(t)), !t || !t.length) return [["M", 0, 0]];
  12334. var r, o = [],
  12335. c = 0,
  12336. l = 0,
  12337. u = 0,
  12338. p = 0,
  12339. f = 0;
  12340. "M" == t[0][0] && (c = +t[0][1], l = +t[0][2], u = c, p = l, f++, o[0] = ["M", c, l]);
  12341. for (var h, d, m = 3 == t.length && "M" == t[0][0] && "R" == t[1][0].toUpperCase() && "Z" == t[2][0].toUpperCase(), y = f, g = t.length; y < g; y++) {
  12342. if (o.push(h = []), d = t[y], r = d[0], r != r.toUpperCase()) switch (h[0] = r.toUpperCase(), h[0]) {
  12343. case "A":
  12344. h[1] = d[1],
  12345. h[2] = d[2],
  12346. h[3] = d[3],
  12347. h[4] = d[4],
  12348. h[5] = d[5],
  12349. h[6] = +d[6] + c,
  12350. h[7] = +d[7] + l;
  12351. break;
  12352. case "V":
  12353. h[1] = +d[1] + l;
  12354. break;
  12355. case "H":
  12356. h[1] = +d[1] + c;
  12357. break;
  12358. case "R":
  12359. for (var v = [c, l].concat(d.slice(1)), x = 2, b = v.length; x < b; x++) v[x] = +v[x] + c,
  12360. v[++x] = +v[x] + l;
  12361. o.pop(),
  12362. o = o.concat(O(v, m));
  12363. break;
  12364. case "O":
  12365. o.pop(),
  12366. v = S(c, l, d[1], d[2]),
  12367. v.push(v[0]),
  12368. o = o.concat(v);
  12369. break;
  12370. case "U":
  12371. o.pop(),
  12372. o = o.concat(S(c, l, d[1], d[2], d[3])),
  12373. h = ["U"].concat(o[o.length - 1].slice( - 2));
  12374. break;
  12375. case "M":
  12376. u = +d[1] + c,
  12377. p = +d[2] + l;
  12378. default:
  12379. for (x = 1, b = d.length; x < b; x++) h[x] = +d[x] + (x % 2 ? c: l)
  12380. } else if ("R" == r) v = [c, l].concat(d.slice(1)),
  12381. o.pop(),
  12382. o = o.concat(O(v, m)),
  12383. h = ["R"].concat(d.slice( - 2));
  12384. else if ("O" == r) o.pop(),
  12385. v = S(c, l, d[1], d[2]),
  12386. v.push(v[0]),
  12387. o = o.concat(v);
  12388. else if ("U" == r) o.pop(),
  12389. o = o.concat(S(c, l, d[1], d[2], d[3])),
  12390. h = ["U"].concat(o[o.length - 1].slice( - 2));
  12391. else for (var E = 0,
  12392. w = d.length; E < w; E++) h[E] = d[E];
  12393. if (r = r.toUpperCase(), "O" != r) switch (h[0]) {
  12394. case "Z":
  12395. c = +u,
  12396. l = +p;
  12397. break;
  12398. case "H":
  12399. c = h[1];
  12400. break;
  12401. case "V":
  12402. l = h[1];
  12403. break;
  12404. case "M":
  12405. u = h[h.length - 2],
  12406. p = h[h.length - 1];
  12407. default:
  12408. c = h[h.length - 2],
  12409. l = h[h.length - 1]
  12410. }
  12411. }
  12412. return o.toString = a,
  12413. n.abs = s(o),
  12414. o
  12415. }
  12416. function R(e, t, n, r) {
  12417. return [e, t, n, r, n, r]
  12418. }
  12419. function N(e, t, n, r, i, o) {
  12420. var a = 1 / 3,
  12421. s = 2 / 3;
  12422. return [a * e + s * n, a * t + s * r, a * i + s * n, a * o + s * r, i, o]
  12423. }
  12424. function M(t, n, r, i, o, a, s, c, l, u) {
  12425. var p, f = 120 * U / 180,
  12426. h = U / 180 * ( + o || 0),
  12427. d = [],
  12428. m = e._.cacher(function(e, t, n) {
  12429. var r = e * G.cos(n) - t * G.sin(n),
  12430. i = e * G.sin(n) + t * G.cos(n);
  12431. return {
  12432. x: r,
  12433. y: i
  12434. }
  12435. });
  12436. if (u) _ = u[0],
  12437. S = u[1],
  12438. w = u[2],
  12439. A = u[3];
  12440. else {
  12441. p = m(t, n, -h),
  12442. t = p.x,
  12443. n = p.y,
  12444. p = m(c, l, -h),
  12445. c = p.x,
  12446. l = p.y;
  12447. var y = (G.cos(U / 180 * o), G.sin(U / 180 * o), (t - c) / 2),
  12448. g = (n - l) / 2,
  12449. v = y * y / (r * r) + g * g / (i * i);
  12450. v > 1 && (v = G.sqrt(v), r = v * r, i = v * i);
  12451. var x = r * r,
  12452. b = i * i,
  12453. E = (a == s ? -1 : 1) * G.sqrt(H((x * b - x * g * g - b * y * y) / (x * g * g + b * y * y))),
  12454. w = E * r * g / i + (t + c) / 2,
  12455. A = E * -i * y / r + (n + l) / 2,
  12456. _ = G.asin(((n - A) / i).toFixed(9)),
  12457. S = G.asin(((l - A) / i).toFixed(9));
  12458. _ = t < w ? U - _: _,
  12459. S = c < w ? U - S: S,
  12460. _ < 0 && (_ = 2 * U + _),
  12461. S < 0 && (S = 2 * U + S),
  12462. s && _ > S && (_ -= 2 * U),
  12463. !s && S > _ && (S -= 2 * U)
  12464. }
  12465. var T = S - _;
  12466. if (H(T) > f) {
  12467. var C = S,
  12468. R = c,
  12469. N = l;
  12470. S = _ + f * (s && S > _ ? 1 : -1),
  12471. c = w + r * G.cos(S),
  12472. l = A + i * G.sin(S),
  12473. d = M(c, l, r, i, o, 0, s, R, N, [S, C, w, A])
  12474. }
  12475. T = S - _;
  12476. var P = G.cos(_),
  12477. D = G.sin(_),
  12478. k = G.cos(S),
  12479. O = G.sin(S),
  12480. B = G.tan(T / 4),
  12481. I = 4 / 3 * r * B,
  12482. L = 4 / 3 * i * B,
  12483. F = [t, n],
  12484. j = [t + I * D, n - L * P],
  12485. V = [c + I * O, l - L * k],
  12486. W = [c, l];
  12487. if (j[0] = 2 * F[0] - j[0], j[1] = 2 * F[1] - j[1], u) return [j, V, W].concat(d);
  12488. d = [j, V, W].concat(d).join().split(",");
  12489. for (var z = [], q = 0, Y = d.length; q < Y; q++) z[q] = q % 2 ? m(d[q - 1], d[q], h).y: m(d[q], d[q + 1], h).x;
  12490. return z
  12491. }
  12492. function P(e, t, n, r, i, o, a, s) {
  12493. for (var c, l, u, p, f, h, d, m, y = [], g = [[], []], v = 0; v < 2; ++v) if (0 == v ? (l = 6 * e - 12 * n + 6 * i, c = -3 * e + 9 * n - 9 * i + 3 * a, u = 3 * n - 3 * e) : (l = 6 * t - 12 * r + 6 * o, c = -3 * t + 9 * r - 9 * o + 3 * s, u = 3 * r - 3 * t), H(c) < 1e-12) {
  12494. if (H(l) < 1e-12) continue;
  12495. p = -u / l,
  12496. 0 < p && p < 1 && y.push(p)
  12497. } else d = l * l - 4 * u * c,
  12498. m = G.sqrt(d),
  12499. d < 0 || (f = ( - l + m) / (2 * c), 0 < f && f < 1 && y.push(f), h = ( - l - m) / (2 * c), 0 < h && h < 1 && y.push(h));
  12500. for (var x, b = y.length,
  12501. E = b; b--;) p = y[b],
  12502. x = 1 - p,
  12503. g[0][b] = x * x * x * e + 3 * x * x * p * n + 3 * x * p * p * i + p * p * p * a,
  12504. g[1][b] = x * x * x * t + 3 * x * x * p * r + 3 * x * p * p * o + p * p * p * s;
  12505. return g[0][E] = e,
  12506. g[1][E] = t,
  12507. g[0][E + 1] = a,
  12508. g[1][E + 1] = s,
  12509. g[0].length = g[1].length = E + 2,
  12510. {
  12511. min: {
  12512. x: W.apply(0, g[0]),
  12513. y: W.apply(0, g[1])
  12514. },
  12515. max: {
  12516. x: z.apply(0, g[0]),
  12517. y: z.apply(0, g[1])
  12518. }
  12519. }
  12520. }
  12521. function D(e, t) {
  12522. var n = !t && i(e);
  12523. if (!t && n.curve) return s(n.curve);
  12524. for (var r = C(e), o = t && C(t), a = {
  12525. x: 0,
  12526. y: 0,
  12527. bx: 0,
  12528. by: 0,
  12529. X: 0,
  12530. Y: 0,
  12531. qx: null,
  12532. qy: null
  12533. },
  12534. c = {
  12535. x: 0,
  12536. y: 0,
  12537. bx: 0,
  12538. by: 0,
  12539. X: 0,
  12540. Y: 0,
  12541. qx: null,
  12542. qy: null
  12543. },
  12544. l = (function(e, t, n) {
  12545. var r, i;
  12546. if (!e) return ["C", t.x, t.y, t.x, t.y, t.x, t.y];
  12547. switch (! (e[0] in {
  12548. T: 1,
  12549. Q: 1
  12550. }) && (t.qx = t.qy = null), e[0]) {
  12551. case "M":
  12552. t.X = e[1],
  12553. t.Y = e[2];
  12554. break;
  12555. case "A":
  12556. e = ["C"].concat(M.apply(0, [t.x, t.y].concat(e.slice(1))));
  12557. break;
  12558. case "S":
  12559. "C" == n || "S" == n ? (r = 2 * t.x - t.bx, i = 2 * t.y - t.by) : (r = t.x, i = t.y),
  12560. e = ["C", r, i].concat(e.slice(1));
  12561. break;
  12562. case "T":
  12563. "Q" == n || "T" == n ? (t.qx = 2 * t.x - t.qx, t.qy = 2 * t.y - t.qy) : (t.qx = t.x, t.qy = t.y),
  12564. e = ["C"].concat(N(t.x, t.y, t.qx, t.qy, e[1], e[2]));
  12565. break;
  12566. case "Q":
  12567. t.qx = e[1],
  12568. t.qy = e[2],
  12569. e = ["C"].concat(N(t.x, t.y, e[1], e[2], e[3], e[4]));
  12570. break;
  12571. case "L":
  12572. e = ["C"].concat(R(t.x, t.y, e[1], e[2]));
  12573. break;
  12574. case "H":
  12575. e = ["C"].concat(R(t.x, t.y, e[1], t.y));
  12576. break;
  12577. case "V":
  12578. e = ["C"].concat(R(t.x, t.y, t.x, e[1]));
  12579. break;
  12580. case "Z":
  12581. e = ["C"].concat(R(t.x, t.y, t.X, t.Y))
  12582. }
  12583. return e
  12584. }), u = function(e, t) {
  12585. if (e[t].length > 7) {
  12586. e[t].shift();
  12587. for (var n = e[t]; n.length;) f[t] = "A",
  12588. o && (h[t] = "A"),
  12589. e.splice(t++, 0, ["C"].concat(n.splice(0, 6)));
  12590. e.splice(t, 1),
  12591. g = z(r.length, o && o.length || 0)
  12592. }
  12593. },
  12594. p = function(e, t, n, i, a) {
  12595. e && t && "M" == e[a][0] && "M" != t[a][0] && (t.splice(a, 0, ["M", i.x, i.y]), n.bx = 0, n.by = 0, n.x = e[a][1], n.y = e[a][2], g = z(r.length, o && o.length || 0))
  12596. },
  12597. f = [], h = [], d = "", m = "", y = 0, g = z(r.length, o && o.length || 0); y < g; y++) {
  12598. r[y] && (d = r[y][0]),
  12599. "C" != d && (f[y] = d, y && (m = f[y - 1])),
  12600. r[y] = l(r[y], a, m),
  12601. "A" != f[y] && "C" == d && (f[y] = "C"),
  12602. u(r, y),
  12603. o && (o[y] && (d = o[y][0]), "C" != d && (h[y] = d, y && (m = h[y - 1])), o[y] = l(o[y], c, m), "A" != h[y] && "C" == d && (h[y] = "C"), u(o, y)),
  12604. p(r, o, a, c, y),
  12605. p(o, r, c, a, y);
  12606. var v = r[y],
  12607. x = o && o[y],
  12608. b = v.length,
  12609. E = o && x.length;
  12610. a.x = v[b - 2],
  12611. a.y = v[b - 1],
  12612. a.bx = V(v[b - 4]) || a.x,
  12613. a.by = V(v[b - 3]) || a.y,
  12614. c.bx = o && (V(x[E - 4]) || c.x),
  12615. c.by = o && (V(x[E - 3]) || c.y),
  12616. c.x = o && x[E - 2],
  12617. c.y = o && x[E - 1]
  12618. }
  12619. return o || (n.curve = s(r)),
  12620. o ? [r, o] : r
  12621. }
  12622. function k(e, t) {
  12623. if (!t) return e;
  12624. var n, r, i, o, a, s, c;
  12625. for (e = D(e), i = 0, a = e.length; i < a; i++) for (c = e[i], o = 1, s = c.length; o < s; o += 2) n = t.x(c[o], c[o + 1]),
  12626. r = t.y(c[o], c[o + 1]),
  12627. c[o] = n,
  12628. c[o + 1] = r;
  12629. return e
  12630. }
  12631. function O(e, t) {
  12632. for (var n = [], r = 0, i = e.length; i - 2 * !t > r; r += 2) {
  12633. var o = [{
  12634. x: +e[r - 2],
  12635. y: +e[r - 1]
  12636. },
  12637. {
  12638. x: +e[r],
  12639. y: +e[r + 1]
  12640. },
  12641. {
  12642. x: +e[r + 2],
  12643. y: +e[r + 3]
  12644. },
  12645. {
  12646. x: +e[r + 4],
  12647. y: +e[r + 5]
  12648. }];
  12649. t ? r ? i - 4 == r ? o[3] = {
  12650. x: +e[0],
  12651. y: +e[1]
  12652. }: i - 2 == r && (o[2] = {
  12653. x: +e[0],
  12654. y: +e[1]
  12655. },
  12656. o[3] = {
  12657. x: +e[2],
  12658. y: +e[3]
  12659. }) : o[0] = {
  12660. x: +e[i - 2],
  12661. y: +e[i - 1]
  12662. }: i - 4 == r ? o[3] = o[2] : r || (o[0] = {
  12663. x: +e[r],
  12664. y: +e[r + 1]
  12665. }),
  12666. n.push(["C", ( - o[0].x + 6 * o[1].x + o[2].x) / 6, ( - o[0].y + 6 * o[1].y + o[2].y) / 6, (o[1].x + 6 * o[2].x - o[3].x) / 6, (o[1].y + 6 * o[2].y - o[3].y) / 6, o[2].x, o[2].y])
  12667. }
  12668. return n
  12669. }
  12670. var B = t.prototype,
  12671. I = e.is,
  12672. L = e._.clone,
  12673. F = "hasOwnProperty",
  12674. j = /,?([a-z]),?/gi,
  12675. V = parseFloat,
  12676. G = Math,
  12677. U = G.PI,
  12678. W = G.min,
  12679. z = G.max,
  12680. q = G.pow,
  12681. H = G.abs,
  12682. Y = l(1),
  12683. $ = l(),
  12684. K = l(0, 1),
  12685. X = e._unit2px,
  12686. Q = {
  12687. path: function(e) {
  12688. return e.attr("path")
  12689. },
  12690. circle: function(e) {
  12691. var t = X(e);
  12692. return S(t.cx, t.cy, t.r)
  12693. },
  12694. ellipse: function(e) {
  12695. var t = X(e);
  12696. return S(t.cx || 0, t.cy || 0, t.rx, t.ry)
  12697. },
  12698. rect: function(e) {
  12699. var t = X(e);
  12700. return _(t.x || 0, t.y || 0, t.width, t.height, t.rx, t.ry)
  12701. },
  12702. image: function(e) {
  12703. var t = X(e);
  12704. return _(t.x || 0, t.y || 0, t.width, t.height)
  12705. },
  12706. line: function(e) {
  12707. return "M" + [e.attr("x1") || 0, e.attr("y1") || 0, e.attr("x2"), e.attr("y2")]
  12708. },
  12709. polyline: function(e) {
  12710. return "M" + e.attr("points")
  12711. },
  12712. polygon: function(e) {
  12713. return "M" + e.attr("points") + "z"
  12714. },
  12715. deflt: function(e) {
  12716. var t = e.node.getBBox();
  12717. return _(t.x, t.y, t.width, t.height)
  12718. }
  12719. };
  12720. e.path = i,
  12721. e.path.getTotalLength = Y,
  12722. e.path.getPointAtLength = $,
  12723. e.path.getSubpath = function(e, t, n) {
  12724. if (this.getTotalLength(e) - n < 1e-6) return K(e, t).end;
  12725. var r = K(e, n, 1);
  12726. return t ? K(r, t).end: r
  12727. },
  12728. B.getTotalLength = function() {
  12729. if (this.node.getTotalLength) return this.node.getTotalLength()
  12730. },
  12731. B.getPointAtLength = function(e) {
  12732. return $(this.attr("d"), e)
  12733. },
  12734. B.getSubpath = function(t, n) {
  12735. return e.path.getSubpath(this.attr("d"), t, n)
  12736. },
  12737. e._.box = o,
  12738. e.path.findDotsAtSegment = u,
  12739. e.path.bezierBBox = p,
  12740. e.path.isPointInsideBBox = f,
  12741. e.path.isBBoxIntersect = h,
  12742. e.path.intersection = x,
  12743. e.path.intersectionNumber = b,
  12744. e.path.isPointInside = w,
  12745. e.path.getBBox = A,
  12746. e.path.get = Q,
  12747. e.path.toRelative = T,
  12748. e.path.toAbsolute = C,
  12749. e.path.toCubic = D,
  12750. e.path.map = k,
  12751. e.path.toString = a,
  12752. e.path.clone = s
  12753. }),
  12754. r.plugin(function(e, n, r, i) {
  12755. for (var o = n.prototype,
  12756. a = "hasOwnProperty",
  12757. s = ("createTouch" in i.doc), c = ["click", "dblclick", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "touchstart", "touchmove", "touchend", "touchcancel"], l = {
  12758. mousedown: "touchstart",
  12759. mousemove: "touchmove",
  12760. mouseup: "touchend"
  12761. },
  12762. u = (function(e, t) {
  12763. var n = "y" == e ? "scrollTop": "scrollLeft",
  12764. r = t && t.node ? t.node.ownerDocument: i.doc;
  12765. return r[n in r.documentElement ? "documentElement": "body"][n]
  12766. }), p = function() {
  12767. this.returnValue = !1
  12768. },
  12769. f = function() {
  12770. return this.originalEvent.preventDefault()
  12771. },
  12772. h = function() {
  12773. this.cancelBubble = !0
  12774. },
  12775. d = function() {
  12776. return this.originalEvent.stopPropagation()
  12777. },
  12778. m = function() {
  12779. return i.doc.addEventListener ?
  12780. function(e, t, n, r) {
  12781. var i = s && l[t] ? l[t] : t,
  12782. o = function(i) {
  12783. var o = u("y", r),
  12784. c = u("x", r);
  12785. if (s && l[a](t)) for (var p = 0,
  12786. h = i.targetTouches && i.targetTouches.length; p < h; p++) if (i.targetTouches[p].target == e || e.contains(i.targetTouches[p].target)) {
  12787. var m = i;
  12788. i = i.targetTouches[p],
  12789. i.originalEvent = m,
  12790. i.preventDefault = f,
  12791. i.stopPropagation = d;
  12792. break
  12793. }
  12794. var y = i.clientX + c,
  12795. g = i.clientY + o;
  12796. return n.call(r, i, y, g)
  12797. };
  12798. return t !== i && e.addEventListener(t, o, !1),
  12799. e.addEventListener(i, o, !1),
  12800. function() {
  12801. return t !== i && e.removeEventListener(t, o, !1),
  12802. e.removeEventListener(i, o, !1),
  12803. !0
  12804. }
  12805. }: i.doc.attachEvent ?
  12806. function(e, t, n, r) {
  12807. var i = function(e) {
  12808. e = e || r.node.ownerDocument.window.event;
  12809. var t = u("y", r),
  12810. i = u("x", r),
  12811. o = e.clientX + i,
  12812. a = e.clientY + t;
  12813. return e.preventDefault = e.preventDefault || p,
  12814. e.stopPropagation = e.stopPropagation || h,
  12815. n.call(r, e, o, a)
  12816. };
  12817. e.attachEvent("on" + t, i);
  12818. var o = function() {
  12819. return e.detachEvent("on" + t, i),
  12820. !0
  12821. };
  12822. return o
  12823. }: void 0
  12824. } (), y = [], g = function(e) {
  12825. for (var n, r = e.clientX,
  12826. i = e.clientY,
  12827. o = u("y"), a = u("x"), c = y.length; c--;) {
  12828. if (n = y[c], s) {
  12829. for (var l, p = e.touches && e.touches.length; p--;) if (l = e.touches[p], l.identifier == n.el._drag.id || n.el.node.contains(l.target)) {
  12830. r = l.clientX,
  12831. i = l.clientY,
  12832. (e.originalEvent ? e.originalEvent: e).preventDefault();
  12833. break
  12834. }
  12835. } else e.preventDefault();
  12836. var f = n.el.node;
  12837. f.nextSibling,
  12838. f.parentNode,
  12839. f.style.display;
  12840. r += a,
  12841. i += o,
  12842. t("snap.drag.move." + n.el.id, n.move_scope || n.el, r - n.el._drag.x, i - n.el._drag.y, r, i, e)
  12843. }
  12844. },
  12845. v = function(n) {
  12846. e.unmousemove(g).unmouseup(v);
  12847. for (var r, i = y.length; i--;) r = y[i],
  12848. r.el._drag = {},
  12849. t("snap.drag.end." + r.el.id, r.end_scope || r.start_scope || r.move_scope || r.el, n);
  12850. y = []
  12851. },
  12852. x = c.length; x--;) !
  12853. function(t) {
  12854. e[t] = o[t] = function(n, r) {
  12855. return e.is(n, "function") && (this.events = this.events || [], this.events.push({
  12856. name: t,
  12857. f: n,
  12858. unbind: m(this.node || document, t, n, r || this)
  12859. })),
  12860. this
  12861. },
  12862. e["un" + t] = o["un" + t] = function(e) {
  12863. for (var n = this.events || [], r = n.length; r--;) if (n[r].name == t && (n[r].f == e || !e)) return n[r].unbind(),
  12864. n.splice(r, 1),
  12865. !n.length && delete this.events,
  12866. this;
  12867. return this
  12868. }
  12869. } (c[x]);
  12870. o.hover = function(e, t, n, r) {
  12871. return this.mouseover(e, n).mouseout(t, r || n)
  12872. },
  12873. o.unhover = function(e, t) {
  12874. return this.unmouseover(e).unmouseout(t)
  12875. };
  12876. var b = [];
  12877. o.drag = function(n, r, i, o, a, s) {
  12878. function c(c, l, u) { (c.originalEvent || c).preventDefault(),
  12879. this._drag.x = l,
  12880. this._drag.y = u,
  12881. this._drag.id = c.identifier,
  12882. !y.length && e.mousemove(g).mouseup(v),
  12883. y.push({
  12884. el: this,
  12885. move_scope: o,
  12886. start_scope: a,
  12887. end_scope: s
  12888. }),
  12889. r && t.on("snap.drag.start." + this.id, r),
  12890. n && t.on("snap.drag.move." + this.id, n),
  12891. i && t.on("snap.drag.end." + this.id, i),
  12892. t("snap.drag.start." + this.id, a || o || this, l, u, c)
  12893. }
  12894. if (!arguments.length) {
  12895. var l;
  12896. return this.drag(function(e, t) {
  12897. this.attr({
  12898. transform: l + (l ? "T": "t") + [e, t]
  12899. })
  12900. },
  12901. function() {
  12902. l = this.transform().local
  12903. })
  12904. }
  12905. return this._drag = {},
  12906. b.push({
  12907. el: this,
  12908. start: c
  12909. }),
  12910. this.mousedown(c),
  12911. this
  12912. },
  12913. o.undrag = function() {
  12914. for (var n = b.length; n--;) b[n].el == this && (this.unmousedown(b[n].start), b.splice(n, 1), t.unbind("snap.drag.*." + this.id));
  12915. return ! b.length && e.unmousemove(g).unmouseup(v),
  12916. this
  12917. }
  12918. }),
  12919. r.plugin(function(e, n, r, i) {
  12920. var o = (n.prototype, r.prototype),
  12921. a = /^\s*url\((.+)\)/,
  12922. s = String,
  12923. c = e._.$;
  12924. e.filter = {},
  12925. o.filter = function(t) {
  12926. var r = this;
  12927. "svg" != r.type && (r = r.paper);
  12928. var i = e.parse(s(t)),
  12929. o = e._.id(),
  12930. a = (r.node.offsetWidth, r.node.offsetHeight, c("filter"));
  12931. return c(a, {
  12932. id: o,
  12933. filterUnits: "userSpaceOnUse"
  12934. }),
  12935. a.appendChild(i.node),
  12936. r.defs.appendChild(a),
  12937. new n(a)
  12938. },
  12939. t.on("snap.util.getattr.filter",
  12940. function() {
  12941. t.stop();
  12942. var n = c(this.node, "filter");
  12943. if (n) {
  12944. var r = s(n).match(a);
  12945. return r && e.select(r[1])
  12946. }
  12947. }),
  12948. t.on("snap.util.attr.filter",
  12949. function(r) {
  12950. if (r instanceof n && "filter" == r.type) {
  12951. t.stop();
  12952. var i = r.node.id;
  12953. i || (c(r.node, {
  12954. id: r.id
  12955. }), i = r.id),
  12956. c(this.node, {
  12957. filter: e.url(i)
  12958. })
  12959. }
  12960. r && "none" != r || (t.stop(), this.node.removeAttribute("filter"))
  12961. }),
  12962. e.filter.blur = function(t, n) {
  12963. null == t && (t = 2);
  12964. var r = null == n ? t: [t, n];
  12965. return e.format('<feGaussianBlur stdDeviation="{def}"/>', {
  12966. def: r
  12967. })
  12968. },
  12969. e.filter.blur.toString = function() {
  12970. return this()
  12971. },
  12972. e.filter.shadow = function(t, n, r, i, o) {
  12973. return "string" == typeof r && (i = r, o = i, r = 4),
  12974. "string" != typeof i && (o = i, i = "#000"),
  12975. i = i || "#000",
  12976. null == r && (r = 4),
  12977. null == o && (o = 1),
  12978. null == t && (t = 0, n = 2),
  12979. null == n && (n = t),
  12980. i = e.color(i),
  12981. e.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>', {
  12982. color: i,
  12983. dx: t,
  12984. dy: n,
  12985. blur: r,
  12986. opacity: o
  12987. })
  12988. },
  12989. e.filter.shadow.toString = function() {
  12990. return this()
  12991. },
  12992. e.filter.grayscale = function(t) {
  12993. return null == t && (t = 1),
  12994. e.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>', {
  12995. a: .2126 + .7874 * (1 - t),
  12996. b: .7152 - .7152 * (1 - t),
  12997. c: .0722 - .0722 * (1 - t),
  12998. d: .2126 - .2126 * (1 - t),
  12999. e: .7152 + .2848 * (1 - t),
  13000. f: .0722 - .0722 * (1 - t),
  13001. g: .2126 - .2126 * (1 - t),
  13002. h: .0722 + .9278 * (1 - t)
  13003. })
  13004. },
  13005. e.filter.grayscale.toString = function() {
  13006. return this()
  13007. },
  13008. e.filter.sepia = function(t) {
  13009. return null == t && (t = 1),
  13010. e.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>', {
  13011. a: .393 + .607 * (1 - t),
  13012. b: .769 - .769 * (1 - t),
  13013. c: .189 - .189 * (1 - t),
  13014. d: .349 - .349 * (1 - t),
  13015. e: .686 + .314 * (1 - t),
  13016. f: .168 - .168 * (1 - t),
  13017. g: .272 - .272 * (1 - t),
  13018. h: .534 - .534 * (1 - t),
  13019. i: .131 + .869 * (1 - t)
  13020. })
  13021. },
  13022. e.filter.sepia.toString = function() {
  13023. return this()
  13024. },
  13025. e.filter.saturate = function(t) {
  13026. return null == t && (t = 1),
  13027. e.format('<feColorMatrix type="saturate" values="{amount}"/>', {
  13028. amount: 1 - t
  13029. })
  13030. },
  13031. e.filter.saturate.toString = function() {
  13032. return this()
  13033. },
  13034. e.filter.hueRotate = function(t) {
  13035. return t = t || 0,
  13036. e.format('<feColorMatrix type="hueRotate" values="{angle}"/>', {
  13037. angle: t
  13038. })
  13039. },
  13040. e.filter.hueRotate.toString = function() {
  13041. return this()
  13042. },
  13043. e.filter.invert = function(t) {
  13044. return null == t && (t = 1),
  13045. e.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>', {
  13046. amount: t,
  13047. amount2: 1 - t
  13048. })
  13049. },
  13050. e.filter.invert.toString = function() {
  13051. return this()
  13052. },
  13053. e.filter.brightness = function(t) {
  13054. return null == t && (t = 1),
  13055. e.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>', {
  13056. amount: t
  13057. })
  13058. },
  13059. e.filter.brightness.toString = function() {
  13060. return this()
  13061. },
  13062. e.filter.contrast = function(t) {
  13063. return null == t && (t = 1),
  13064. e.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>', {
  13065. amount: t,
  13066. amount2: .5 - t / 2
  13067. })
  13068. },
  13069. e.filter.contrast.toString = function() {
  13070. return this()
  13071. }
  13072. }),
  13073. r
  13074. })
  13075. },
  13076. {
  13077. 74 : 74
  13078. }],
  13079. 76 : [function(e, t, n) {
  13080. "use strict";
  13081. var r = t.exports = e(75);
  13082. r.plugin(function(e, t) {
  13083. t.prototype.children = function() {
  13084. for (var t = [], n = this.node.childNodes, r = 0, i = n.length; r < i; r++) t[r] = new e(n[r]);
  13085. return t
  13086. }
  13087. }),
  13088. r.plugin(function(e, t, n, r) {
  13089. function i(e) {
  13090. return e.split(/\s+/)
  13091. }
  13092. function o(e) {
  13093. return e.join(" ")
  13094. }
  13095. function a(e) {
  13096. return i(e.attr("class") || "")
  13097. }
  13098. function s(e, t) {
  13099. e.attr("class", o(t))
  13100. }
  13101. t.prototype.addClass = function(e) {
  13102. var t, n, r = a(this),
  13103. o = i(e);
  13104. for (t = 0, n; n = o[t]; t++) r.indexOf(n) === -1 && r.push(n);
  13105. return s(this, r),
  13106. this
  13107. },
  13108. t.prototype.hasClass = function(e) {
  13109. if (!e) throw new Error("[snapsvg] syntax: hasClass(clsStr)");
  13110. return a(this).indexOf(e) !== -1
  13111. },
  13112. t.prototype.removeClass = function(e) {
  13113. var t, n, r, o = a(this),
  13114. c = i(e);
  13115. for (t = 0, n; n = c[t]; t++) r = o.indexOf(n),
  13116. r !== -1 && o.splice(r, 1);
  13117. return s(this, o),
  13118. this
  13119. }
  13120. }),
  13121. r.plugin(function(e, t, n, r) {
  13122. t.prototype.translate = function(t, n) {
  13123. var r = new e.Matrix;
  13124. return r.translate(t, n),
  13125. this.transform(r)
  13126. }
  13127. }),
  13128. r.plugin(function(e) {
  13129. e.create = function(t, n) {
  13130. return e._.wrap(e._.$(t, n))
  13131. }
  13132. }),
  13133. r.plugin(function(e, t, n, r) {
  13134. e.createSnapAt = function(t, n, r) {
  13135. var i = document.createElementNS("http://www.w3.org/2000/svg", "svg");
  13136. return i.setAttribute("width", t),
  13137. i.setAttribute("height", n),
  13138. r || (r = document.body),
  13139. r.appendChild(i),
  13140. new e(i)
  13141. }
  13142. })
  13143. },
  13144. {
  13145. 75 : 75
  13146. }],
  13147. 77 : [function(e, t, n) {
  13148. "function" == typeof Object.create ? t.exports = function(e, t) {
  13149. e.super_ = t,
  13150. e.prototype = Object.create(t.prototype, {
  13151. constructor: {
  13152. value: e,
  13153. enumerable: !1,
  13154. writable: !0,
  13155. configurable: !0
  13156. }
  13157. })
  13158. }: t.exports = function(e, t) {
  13159. e.super_ = t;
  13160. var n = function() {};
  13161. n.prototype = t.prototype,
  13162. e.prototype = new n,
  13163. e.prototype.constructor = e
  13164. }
  13165. },
  13166. {}],
  13167. 78 : [function(e, t, n) {
  13168. function r(e) {
  13169. var t = e ? e.length: 0;
  13170. return t ? e[t - 1] : void 0
  13171. }
  13172. t.exports = r
  13173. },
  13174. {}],
  13175. 79 : [function(e, t, n) {
  13176. function r(e) {
  13177. if (c(e) && !s(e) && !(e instanceof i)) {
  13178. if (e instanceof o) return e;
  13179. if (p.call(e, "__chain__") && p.call(e, "__wrapped__")) return l(e)
  13180. }
  13181. return new o(e)
  13182. }
  13183. var i = e(94),
  13184. o = e(95),
  13185. a = e(126),
  13186. s = e(188),
  13187. c = e(173),
  13188. l = e(186),
  13189. u = Object.prototype,
  13190. p = u.hasOwnProperty;
  13191. r.prototype = a.prototype,
  13192. t.exports = r
  13193. },
  13194. {
  13195. 126 : 126,
  13196. 173 : 173,
  13197. 186 : 186,
  13198. 188 : 188,
  13199. 94 : 94,
  13200. 95 : 95
  13201. }],
  13202. 80 : [function(e, t, n) {
  13203. function r(e, t, n) {
  13204. var r = s(e) ? i: a;
  13205. return n && c(e, t, n) && (t = void 0),
  13206. "function" == typeof t && void 0 === n || (t = o(t, n, 3)),
  13207. r(e, t)
  13208. }
  13209. var i = e(99),
  13210. o = e(107),
  13211. a = e(113),
  13212. s = e(188),
  13213. c = e(169);
  13214. t.exports = r
  13215. },
  13216. {
  13217. 107 : 107,
  13218. 113 : 113,
  13219. 169 : 169,
  13220. 188 : 188,
  13221. 99 : 99
  13222. }],
  13223. 81 : [function(e, t, n) {
  13224. function r(e, t, n) {
  13225. var r = s(e) ? i: a;
  13226. return t = o(t, n, 3),
  13227. r(e, t)
  13228. }
  13229. var i = e(100),
  13230. o = e(107),
  13231. a = e(114),
  13232. s = e(188);
  13233. t.exports = r
  13234. },
  13235. {
  13236. 100 : 100,
  13237. 107 : 107,
  13238. 114 : 114,
  13239. 188 : 188
  13240. }],
  13241. 82 : [function(e, t, n) {
  13242. var r = e(112),
  13243. i = e(152),
  13244. o = i(r);
  13245. t.exports = o
  13246. },
  13247. {
  13248. 112 : 112,
  13249. 152 : 152
  13250. }],
  13251. 83 : [function(e, t, n) {
  13252. var r = e(98),
  13253. i = e(112),
  13254. o = e(153),
  13255. a = o(r, i);
  13256. t.exports = a
  13257. },
  13258. {
  13259. 112 : 112,
  13260. 153 : 153,
  13261. 98 : 98
  13262. }],
  13263. 84 : [function(e, t, n) {
  13264. var r = e(145),
  13265. i = Object.prototype,
  13266. o = i.hasOwnProperty,
  13267. a = r(function(e, t, n) {
  13268. o.call(e, n) ? e[n].push(t) : e[n] = [t]
  13269. });
  13270. t.exports = a
  13271. },
  13272. {
  13273. 145 : 145
  13274. }],
  13275. 85 : [function(e, t, n) {
  13276. function r(e, t, n, r) {
  13277. var f = e ? o(e) : 0;
  13278. return c(f) || (e = u(e), f = e.length),
  13279. n = "number" != typeof n || r && s(t, n, r) ? 0 : n < 0 ? p(f + n, 0) : n || 0,
  13280. "string" == typeof e || !a(e) && l(e) ? n <= f && e.indexOf(t, n) > -1 : !!f && i(e, t, n) > -1
  13281. }
  13282. var i = e(122),
  13283. o = e(163),
  13284. a = e(188),
  13285. s = e(169),
  13286. c = e(172),
  13287. l = e(194),
  13288. u = e(204),
  13289. p = Math.max;
  13290. t.exports = r
  13291. },
  13292. {
  13293. 122 : 122,
  13294. 163 : 163,
  13295. 169 : 169,
  13296. 172 : 172,
  13297. 188 : 188,
  13298. 194 : 194,
  13299. 204 : 204
  13300. }],
  13301. 86 : [function(e, t, n) {
  13302. function r(e, t, n) {
  13303. var r = s(e) ? i: a;
  13304. return t = o(t, n, 3),
  13305. r(e, t)
  13306. }
  13307. var i = e(101),
  13308. o = e(107),
  13309. a = e(127),
  13310. s = e(188);
  13311. t.exports = r
  13312. },
  13313. {
  13314. 101 : 101,
  13315. 107 : 107,
  13316. 127 : 127,
  13317. 188 : 188
  13318. }],
  13319. 87 : [function(e, t, n) {
  13320. var r = e(103),
  13321. i = e(112),
  13322. o = e(156),
  13323. a = o(r, i);
  13324. t.exports = a
  13325. },
  13326. {
  13327. 103 : 103,
  13328. 112 : 112,
  13329. 156 : 156
  13330. }],
  13331. 88 : [function(e, t, n) {
  13332. function r(e, t, n) {
  13333. var r = s(e) ? i: a;
  13334. return n && c(e, t, n) && (t = void 0),
  13335. "function" == typeof t && void 0 === n || (t = o(t, n, 3)),
  13336. r(e, t)
  13337. }
  13338. var i = e(104),
  13339. o = e(107),
  13340. a = e(137),
  13341. s = e(188),
  13342. c = e(169);
  13343. t.exports = r
  13344. },
  13345. {
  13346. 104 : 104,
  13347. 107 : 107,
  13348. 137 : 137,
  13349. 169 : 169,
  13350. 188 : 188
  13351. }],
  13352. 89 : [function(e, t, n) {
  13353. var r = e(165),
  13354. i = r(Date, "now"),
  13355. o = i ||
  13356. function() {
  13357. return (new Date).getTime()
  13358. };
  13359. t.exports = o
  13360. },
  13361. {
  13362. 165 : 165
  13363. }],
  13364. 90 : [function(e, t, n) {
  13365. var r = e(157),
  13366. i = e(181),
  13367. o = e(93),
  13368. a = 1,
  13369. s = 32,
  13370. c = o(function(e, t, n) {
  13371. var o = a;
  13372. if (n.length) {
  13373. var l = i(n, c.placeholder);
  13374. o |= s
  13375. }
  13376. return r(e, o, t, n, l)
  13377. });
  13378. c.placeholder = {},
  13379. t.exports = c
  13380. },
  13381. {
  13382. 157 : 157,
  13383. 181 : 181,
  13384. 93 : 93
  13385. }],
  13386. 91 : [function(e, t, n) {
  13387. function r(e, t, n) {
  13388. function r() {
  13389. g && clearTimeout(g),
  13390. h && clearTimeout(h),
  13391. x = 0,
  13392. h = g = v = void 0
  13393. }
  13394. function c(t, n) {
  13395. n && clearTimeout(n),
  13396. h = g = v = void 0,
  13397. t && (x = o(), d = e.apply(y, f), g || h || (f = y = void 0))
  13398. }
  13399. function l() {
  13400. var e = t - (o() - m);
  13401. e <= 0 || e > t ? c(v, h) : g = setTimeout(l, e)
  13402. }
  13403. function u() {
  13404. c(E, g)
  13405. }
  13406. function p() {
  13407. if (f = arguments, m = o(), y = this, v = E && (g || !w), b === !1) var n = w && !g;
  13408. else {
  13409. h || w || (x = m);
  13410. var r = b - (m - x),
  13411. i = r <= 0 || r > b;
  13412. i ? (h && (h = clearTimeout(h)), x = m, d = e.apply(y, f)) : h || (h = setTimeout(u, r))
  13413. }
  13414. return i && g ? g = clearTimeout(g) : g || t === b || (g = setTimeout(l, t)),
  13415. n && (i = !0, d = e.apply(y, f)),
  13416. !i || g || h || (f = y = void 0),
  13417. d
  13418. }
  13419. var f, h, d, m, y, g, v, x = 0,
  13420. b = !1,
  13421. E = !0;
  13422. if ("function" != typeof e) throw new TypeError(a);
  13423. if (t = t < 0 ? 0 : +t || 0, n === !0) {
  13424. var w = !0;
  13425. E = !1
  13426. } else i(n) && (w = !!n.leading, b = "maxWait" in n && s( + n.maxWait || 0, t), E = "trailing" in n ? !!n.trailing: E);
  13427. return p.cancel = r,
  13428. p
  13429. }
  13430. var i = e(192),
  13431. o = e(89),
  13432. a = "Expected a function",
  13433. s = Math.max;
  13434. t.exports = r
  13435. },
  13436. {
  13437. 192 : 192,
  13438. 89 : 89
  13439. }],
  13440. 92 : [function(e, t, n) {
  13441. var r = e(110),
  13442. i = e(93),
  13443. o = i(function(e, t) {
  13444. return r(e, 1, t)
  13445. });
  13446. t.exports = o
  13447. },
  13448. {
  13449. 110 : 110,
  13450. 93 : 93
  13451. }],
  13452. 93 : [function(e, t, n) {
  13453. function r(e, t) {
  13454. if ("function" != typeof e) throw new TypeError(i);
  13455. return t = o(void 0 === t ? e.length - 1 : +t || 0, 0),
  13456. function() {
  13457. for (var n = arguments,
  13458. r = -1,
  13459. i = o(n.length - t, 0), a = Array(i); ++r < i;) a[r] = n[t + r];
  13460. switch (t) {
  13461. case 0:
  13462. return e.call(this, a);
  13463. case 1:
  13464. return e.call(this, n[0], a);
  13465. case 2:
  13466. return e.call(this, n[0], n[1], a)
  13467. }
  13468. var s = Array(t + 1);
  13469. for (r = -1; ++r < t;) s[r] = n[r];
  13470. return s[t] = a,
  13471. e.apply(this, s)
  13472. }
  13473. }
  13474. var i = "Expected a function",
  13475. o = Math.max;
  13476. t.exports = r
  13477. },
  13478. {}],
  13479. 94 : [function(e, t, n) {
  13480. function r(e) {
  13481. this.__wrapped__ = e,
  13482. this.__actions__ = [],
  13483. this.__dir__ = 1,
  13484. this.__filtered__ = !1,
  13485. this.__iteratees__ = [],
  13486. this.__takeCount__ = a,
  13487. this.__views__ = []
  13488. }
  13489. var i = e(109),
  13490. o = e(126),
  13491. a = Number.POSITIVE_INFINITY;
  13492. r.prototype = i(o.prototype),
  13493. r.prototype.constructor = r,
  13494. t.exports = r
  13495. },
  13496. {
  13497. 109 : 109,
  13498. 126 : 126
  13499. }],
  13500. 95 : [function(e, t, n) {
  13501. function r(e, t, n) {
  13502. this.__wrapped__ = e,
  13503. this.__actions__ = n || [],
  13504. this.__chain__ = !!t
  13505. }
  13506. var i = e(109),
  13507. o = e(126);
  13508. r.prototype = i(o.prototype),
  13509. r.prototype.constructor = r,
  13510. t.exports = r
  13511. },
  13512. {
  13513. 109 : 109,
  13514. 126 : 126
  13515. }],
  13516. 96 : [function(e, t, n) { (function(n) {
  13517. function r(e) {
  13518. var t = e ? e.length: 0;
  13519. for (this.data = {
  13520. hash: s(null),
  13521. set: new a
  13522. }; t--;) this.push(e[t])
  13523. }
  13524. var i = e(142),
  13525. o = e(165),
  13526. a = o(n, "Set"),
  13527. s = o(Object, "create");
  13528. r.prototype.push = i,
  13529. t.exports = r
  13530. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  13531. },
  13532. {
  13533. 142 : 142,
  13534. 165 : 165
  13535. }],
  13536. 97 : [function(e, t, n) {
  13537. function r(e, t) {
  13538. var n = -1,
  13539. r = e.length;
  13540. for (t || (t = Array(r)); ++n < r;) t[n] = e[n];
  13541. return t
  13542. }
  13543. t.exports = r
  13544. },
  13545. {}],
  13546. 98 : [function(e, t, n) {
  13547. function r(e, t) {
  13548. for (var n = -1,
  13549. r = e.length; ++n < r && t(e[n], n, e) !== !1;);
  13550. return e
  13551. }
  13552. t.exports = r
  13553. },
  13554. {}],
  13555. 99 : [function(e, t, n) {
  13556. function r(e, t) {
  13557. for (var n = -1,
  13558. r = e.length; ++n < r;) if (!t(e[n], n, e)) return ! 1;
  13559. return ! 0
  13560. }
  13561. t.exports = r
  13562. },
  13563. {}],
  13564. 100 : [function(e, t, n) {
  13565. function r(e, t) {
  13566. for (var n = -1,
  13567. r = e.length,
  13568. i = -1,
  13569. o = []; ++n < r;) {
  13570. var a = e[n];
  13571. t(a, n, e) && (o[++i] = a)
  13572. }
  13573. return o
  13574. }
  13575. t.exports = r
  13576. },
  13577. {}],
  13578. 101 : [function(e, t, n) {
  13579. function r(e, t) {
  13580. for (var n = -1,
  13581. r = e.length,
  13582. i = Array(r); ++n < r;) i[n] = t(e[n], n, e);
  13583. return i
  13584. }
  13585. t.exports = r
  13586. },
  13587. {}],
  13588. 102 : [function(e, t, n) {
  13589. function r(e, t) {
  13590. for (var n = -1,
  13591. r = t.length,
  13592. i = e.length; ++n < r;) e[i + n] = t[n];
  13593. return e
  13594. }
  13595. t.exports = r
  13596. },
  13597. {}],
  13598. 103 : [function(e, t, n) {
  13599. function r(e, t, n, r) {
  13600. var i = -1,
  13601. o = e.length;
  13602. for (r && o && (n = e[++i]); ++i < o;) n = t(n, e[i], i, e);
  13603. return n
  13604. }
  13605. t.exports = r
  13606. },
  13607. {}],
  13608. 104 : [function(e, t, n) {
  13609. function r(e, t) {
  13610. for (var n = -1,
  13611. r = e.length; ++n < r;) if (t(e[n], n, e)) return ! 0;
  13612. return ! 1
  13613. }
  13614. t.exports = r
  13615. },
  13616. {}],
  13617. 105 : [function(e, t, n) {
  13618. function r(e, t, n) {
  13619. for (var r = -1,
  13620. o = i(t), a = o.length; ++r < a;) {
  13621. var s = o[r],
  13622. c = e[s],
  13623. l = n(c, t[s], s, e, t); (l === l ? l === c: c !== c) && (void 0 !== c || s in e) || (e[s] = l)
  13624. }
  13625. return e
  13626. }
  13627. var i = e(198);
  13628. t.exports = r
  13629. },
  13630. {
  13631. 198 : 198
  13632. }],
  13633. 106 : [function(e, t, n) {
  13634. function r(e, t) {
  13635. return null == t ? e: i(t, o(t), e)
  13636. }
  13637. var i = e(108),
  13638. o = e(198);
  13639. t.exports = r
  13640. },
  13641. {
  13642. 108 : 108,
  13643. 198 : 198
  13644. }],
  13645. 107 : [function(e, t, n) {
  13646. function r(e, t, n) {
  13647. var r = typeof e;
  13648. return "function" == r ? void 0 === t ? e: a(e, t, n) : null == e ? s: "object" == r ? i(e) : void 0 === t ? c(e) : o(e, t)
  13649. }
  13650. var i = e(128),
  13651. o = e(129),
  13652. a = e(140),
  13653. s = e(205),
  13654. c = e(207);
  13655. t.exports = r
  13656. },
  13657. {
  13658. 128 : 128,
  13659. 129 : 129,
  13660. 140 : 140,
  13661. 205 : 205,
  13662. 207 : 207
  13663. }],
  13664. 108 : [function(e, t, n) {
  13665. function r(e, t, n) {
  13666. n || (n = {});
  13667. for (var r = -1,
  13668. i = t.length; ++r < i;) {
  13669. var o = t[r];
  13670. n[o] = e[o]
  13671. }
  13672. return n
  13673. }
  13674. t.exports = r
  13675. },
  13676. {}],
  13677. 109 : [function(e, t, n) {
  13678. var r = e(192),
  13679. i = function() {
  13680. function e() {}
  13681. return function(t) {
  13682. if (r(t)) {
  13683. e.prototype = t;
  13684. var n = new e;
  13685. e.prototype = void 0
  13686. }
  13687. return n || {}
  13688. }
  13689. } ();
  13690. t.exports = i
  13691. },
  13692. {
  13693. 192 : 192
  13694. }],
  13695. 110 : [function(e, t, n) {
  13696. function r(e, t, n) {
  13697. if ("function" != typeof e) throw new TypeError(i);
  13698. return setTimeout(function() {
  13699. e.apply(void 0, n)
  13700. },
  13701. t)
  13702. }
  13703. var i = "Expected a function";
  13704. t.exports = r
  13705. },
  13706. {}],
  13707. 111 : [function(e, t, n) {
  13708. function r(e, t) {
  13709. var n = e ? e.length: 0,
  13710. r = [];
  13711. if (!n) return r;
  13712. var c = -1,
  13713. l = i,
  13714. u = !0,
  13715. p = u && t.length >= s ? a(t) : null,
  13716. f = t.length;
  13717. p && (l = o, u = !1, t = p);
  13718. e: for (; ++c < n;) {
  13719. var h = e[c];
  13720. if (u && h === h) {
  13721. for (var d = f; d--;) if (t[d] === h) continue e;
  13722. r.push(h)
  13723. } else l(t, h, 0) < 0 && r.push(h)
  13724. }
  13725. return r
  13726. }
  13727. var i = e(122),
  13728. o = e(141),
  13729. a = e(150),
  13730. s = 200;
  13731. t.exports = r
  13732. },
  13733. {
  13734. 122 : 122,
  13735. 141 : 141,
  13736. 150 : 150
  13737. }],
  13738. 112 : [function(e, t, n) {
  13739. var r = e(120),
  13740. i = e(147),
  13741. o = i(r);
  13742. t.exports = o
  13743. },
  13744. {
  13745. 120 : 120,
  13746. 147 : 147
  13747. }],
  13748. 113 : [function(e, t, n) {
  13749. function r(e, t) {
  13750. var n = !0;
  13751. return i(e,
  13752. function(e, r, i) {
  13753. return n = !!t(e, r, i)
  13754. }),
  13755. n
  13756. }
  13757. var i = e(112);
  13758. t.exports = r
  13759. },
  13760. {
  13761. 112 : 112
  13762. }],
  13763. 114 : [function(e, t, n) {
  13764. function r(e, t) {
  13765. var n = [];
  13766. return i(e,
  13767. function(e, r, i) {
  13768. t(e, r, i) && n.push(e)
  13769. }),
  13770. n
  13771. }
  13772. var i = e(112);
  13773. t.exports = r
  13774. },
  13775. {
  13776. 112 : 112
  13777. }],
  13778. 115 : [function(e, t, n) {
  13779. function r(e, t, n, r) {
  13780. var i;
  13781. return n(e,
  13782. function(e, n, o) {
  13783. if (t(e, n, o)) return i = r ? n: e,
  13784. !1
  13785. }),
  13786. i
  13787. }
  13788. t.exports = r
  13789. },
  13790. {}],
  13791. 116 : [function(e, t, n) {
  13792. function r(e, t, n) {
  13793. for (var r = e.length,
  13794. i = n ? r: -1; n ? i--:++i < r;) if (t(e[i], i, e)) return i;
  13795. return - 1
  13796. }
  13797. t.exports = r
  13798. },
  13799. {}],
  13800. 117 : [function(e, t, n) {
  13801. function r(e, t, n, l) {
  13802. l || (l = []);
  13803. for (var u = -1,
  13804. p = e.length; ++u < p;) {
  13805. var f = e[u];
  13806. c(f) && s(f) && (n || a(f) || o(f)) ? t ? r(f, t, n, l) : i(l, f) : n || (l[l.length] = f)
  13807. }
  13808. return l
  13809. }
  13810. var i = e(102),
  13811. o = e(187),
  13812. a = e(188),
  13813. s = e(167),
  13814. c = e(173);
  13815. t.exports = r
  13816. },
  13817. {
  13818. 102 : 102,
  13819. 167 : 167,
  13820. 173 : 173,
  13821. 187 : 187,
  13822. 188 : 188
  13823. }],
  13824. 118 : [function(e, t, n) {
  13825. var r = e(148),
  13826. i = r();
  13827. t.exports = i
  13828. },
  13829. {
  13830. 148 : 148
  13831. }],
  13832. 119 : [function(e, t, n) {
  13833. function r(e, t) {
  13834. return i(e, t, o)
  13835. }
  13836. var i = e(118),
  13837. o = e(199);
  13838. t.exports = r
  13839. },
  13840. {
  13841. 118 : 118,
  13842. 199 : 199
  13843. }],
  13844. 120 : [function(e, t, n) {
  13845. function r(e, t) {
  13846. return i(e, t, o)
  13847. }
  13848. var i = e(118),
  13849. o = e(198);
  13850. t.exports = r
  13851. },
  13852. {
  13853. 118 : 118,
  13854. 198 : 198
  13855. }],
  13856. 121 : [function(e, t, n) {
  13857. function r(e, t, n) {
  13858. if (null != e) {
  13859. void 0 !== n && n in i(e) && (t = [n]);
  13860. for (var r = 0,
  13861. o = t.length; null != e && r < o;) e = e[t[r++]];
  13862. return r && r == o ? e: void 0
  13863. }
  13864. }
  13865. var i = e(184);
  13866. t.exports = r
  13867. },
  13868. {
  13869. 184 : 184
  13870. }],
  13871. 122 : [function(e, t, n) {
  13872. function r(e, t, n) {
  13873. if (t !== t) return i(e, n);
  13874. for (var r = n - 1,
  13875. o = e.length; ++r < o;) if (e[r] === t) return r;
  13876. return - 1
  13877. }
  13878. var i = e(166);
  13879. t.exports = r
  13880. },
  13881. {
  13882. 166 : 166
  13883. }],
  13884. 123 : [function(e, t, n) {
  13885. function r(e, t, n, s, c, l) {
  13886. return e === t || (null == e || null == t || !o(e) && !a(t) ? e !== e && t !== t: i(e, t, r, n, s, c, l))
  13887. }
  13888. var i = e(124),
  13889. o = e(192),
  13890. a = e(173);
  13891. t.exports = r
  13892. },
  13893. {
  13894. 124 : 124,
  13895. 173 : 173,
  13896. 192 : 192
  13897. }],
  13898. 124 : [function(e, t, n) {
  13899. function r(e, t, n, r, f, m, y) {
  13900. var g = s(e),
  13901. v = s(t),
  13902. x = u,
  13903. b = u;
  13904. g || (x = d.call(e), x == l ? x = p: x != p && (g = c(e))),
  13905. v || (b = d.call(t), b == l ? b = p: b != p && (v = c(t)));
  13906. var E = x == p,
  13907. w = b == p,
  13908. A = x == b;
  13909. if (A && !g && !E) return o(e, t, x);
  13910. if (!f) {
  13911. var _ = E && h.call(e, "__wrapped__"),
  13912. S = w && h.call(t, "__wrapped__");
  13913. if (_ || S) return n(_ ? e.value() : e, S ? t.value() : t, r, f, m, y)
  13914. }
  13915. if (!A) return ! 1;
  13916. m || (m = []),
  13917. y || (y = []);
  13918. for (var T = m.length; T--;) if (m[T] == e) return y[T] == t;
  13919. m.push(e),
  13920. y.push(t);
  13921. var C = (g ? i: a)(e, t, n, r, f, m, y);
  13922. return m.pop(),
  13923. y.pop(),
  13924. C
  13925. }
  13926. var i = e(158),
  13927. o = e(159),
  13928. a = e(160),
  13929. s = e(188),
  13930. c = e(195),
  13931. l = "[object Arguments]",
  13932. u = "[object Array]",
  13933. p = "[object Object]",
  13934. f = Object.prototype,
  13935. h = f.hasOwnProperty,
  13936. d = f.toString;
  13937. t.exports = r
  13938. },
  13939. {
  13940. 158 : 158,
  13941. 159 : 159,
  13942. 160 : 160,
  13943. 188 : 188,
  13944. 195 : 195
  13945. }],
  13946. 125 : [function(e, t, n) {
  13947. function r(e, t, n) {
  13948. var r = t.length,
  13949. a = r,
  13950. s = !n;
  13951. if (null == e) return ! a;
  13952. for (e = o(e); r--;) {
  13953. var c = t[r];
  13954. if (s && c[2] ? c[1] !== e[c[0]] : !(c[0] in e)) return ! 1
  13955. }
  13956. for (; ++r < a;) {
  13957. c = t[r];
  13958. var l = c[0],
  13959. u = e[l],
  13960. p = c[1];
  13961. if (s && c[2]) {
  13962. if (void 0 === u && !(l in e)) return ! 1
  13963. } else {
  13964. var f = n ? n(u, p, l) : void 0;
  13965. if (! (void 0 === f ? i(p, u, n, !0) : f)) return ! 1
  13966. }
  13967. }
  13968. return ! 0
  13969. }
  13970. var i = e(123),
  13971. o = e(184);
  13972. t.exports = r
  13973. },
  13974. {
  13975. 123 : 123,
  13976. 184 : 184
  13977. }],
  13978. 126 : [function(e, t, n) {
  13979. function r() {}
  13980. t.exports = r
  13981. },
  13982. {}],
  13983. 127 : [function(e, t, n) {
  13984. function r(e, t) {
  13985. var n = -1,
  13986. r = o(e) ? Array(e.length) : [];
  13987. return i(e,
  13988. function(e, i, o) {
  13989. r[++n] = t(e, i, o)
  13990. }),
  13991. r
  13992. }
  13993. var i = e(112),
  13994. o = e(167);
  13995. t.exports = r
  13996. },
  13997. {
  13998. 112 : 112,
  13999. 167 : 167
  14000. }],
  14001. 128 : [function(e, t, n) {
  14002. function r(e) {
  14003. var t = o(e);
  14004. if (1 == t.length && t[0][2]) {
  14005. var n = t[0][0],
  14006. r = t[0][1];
  14007. return function(e) {
  14008. return null != e && (e[n] === r && (void 0 !== r || n in a(e)))
  14009. }
  14010. }
  14011. return function(e) {
  14012. return i(e, t)
  14013. }
  14014. }
  14015. var i = e(125),
  14016. o = e(164),
  14017. a = e(184);
  14018. t.exports = r
  14019. },
  14020. {
  14021. 125 : 125,
  14022. 164 : 164,
  14023. 184 : 184
  14024. }],
  14025. 129 : [function(e, t, n) {
  14026. function r(e, t) {
  14027. var n = s(e),
  14028. r = c(e) && l(t),
  14029. h = e + "";
  14030. return e = f(e),
  14031. function(s) {
  14032. if (null == s) return ! 1;
  14033. var c = h;
  14034. if (s = p(s), (n || !r) && !(c in s)) {
  14035. if (s = 1 == e.length ? s: i(s, a(e, 0, -1)), null == s) return ! 1;
  14036. c = u(e),
  14037. s = p(s)
  14038. }
  14039. return s[c] === t ? void 0 !== t || c in s: o(t, s[c], void 0, !0)
  14040. }
  14041. }
  14042. var i = e(121),
  14043. o = e(123),
  14044. a = e(136),
  14045. s = e(188),
  14046. c = e(170),
  14047. l = e(174),
  14048. u = e(78),
  14049. p = e(184),
  14050. f = e(185);
  14051. t.exports = r
  14052. },
  14053. {
  14054. 121 : 121,
  14055. 123 : 123,
  14056. 136 : 136,
  14057. 170 : 170,
  14058. 174 : 174,
  14059. 184 : 184,
  14060. 185 : 185,
  14061. 188 : 188,
  14062. 78 : 78
  14063. }],
  14064. 130 : [function(e, t, n) {
  14065. function r(e, t, n, f, h) {
  14066. if (!c(e)) return e;
  14067. var d = s(t) && (a(t) || u(t)),
  14068. m = d ? void 0 : p(t);
  14069. return i(m || t,
  14070. function(i, a) {
  14071. if (m && (a = i, i = t[a]), l(i)) f || (f = []),
  14072. h || (h = []),
  14073. o(e, t, a, r, n, f, h);
  14074. else {
  14075. var s = e[a],
  14076. c = n ? n(s, i, a, e, t) : void 0,
  14077. u = void 0 === c;
  14078. u && (c = i),
  14079. void 0 === c && (!d || a in e) || !u && (c === c ? c === s: s !== s) || (e[a] = c)
  14080. }
  14081. }),
  14082. e
  14083. }
  14084. var i = e(98),
  14085. o = e(131),
  14086. a = e(188),
  14087. s = e(167),
  14088. c = e(192),
  14089. l = e(173),
  14090. u = e(195),
  14091. p = e(198);
  14092. t.exports = r
  14093. },
  14094. {
  14095. 131 : 131,
  14096. 167 : 167,
  14097. 173 : 173,
  14098. 188 : 188,
  14099. 192 : 192,
  14100. 195 : 195,
  14101. 198 : 198,
  14102. 98 : 98
  14103. }],
  14104. 131 : [function(e, t, n) {
  14105. function r(e, t, n, r, p, f, h) {
  14106. for (var d = f.length,
  14107. m = t[n]; d--;) if (f[d] == m) return void(e[n] = h[d]);
  14108. var y = e[n],
  14109. g = p ? p(y, m, n, e, t) : void 0,
  14110. v = void 0 === g;
  14111. v && (g = m, s(m) && (a(m) || l(m)) ? g = a(y) ? y: s(y) ? i(y) : [] : c(m) || o(m) ? g = o(y) ? u(y) : c(y) ? y: {}: v = !1),
  14112. f.push(m),
  14113. h.push(g),
  14114. v ? e[n] = r(g, m, p, f, h) : (g === g ? g !== y: y === y) && (e[n] = g)
  14115. }
  14116. var i = e(97),
  14117. o = e(187),
  14118. a = e(188),
  14119. s = e(167),
  14120. c = e(193),
  14121. l = e(195),
  14122. u = e(196);
  14123. t.exports = r
  14124. },
  14125. {
  14126. 167 : 167,
  14127. 187 : 187,
  14128. 188 : 188,
  14129. 193 : 193,
  14130. 195 : 195,
  14131. 196 : 196,
  14132. 97 : 97
  14133. }],
  14134. 132 : [function(e, t, n) {
  14135. function r(e) {
  14136. return function(t) {
  14137. return null == t ? void 0 : t[e]
  14138. }
  14139. }
  14140. t.exports = r
  14141. },
  14142. {}],
  14143. 133 : [function(e, t, n) {
  14144. function r(e) {
  14145. var t = e + "";
  14146. return e = o(e),
  14147. function(n) {
  14148. return i(n, e, t)
  14149. }
  14150. }
  14151. var i = e(121),
  14152. o = e(185);
  14153. t.exports = r
  14154. },
  14155. {
  14156. 121 : 121,
  14157. 185 : 185
  14158. }],
  14159. 134 : [function(e, t, n) {
  14160. function r(e, t, n, r, i) {
  14161. return i(e,
  14162. function(e, i, o) {
  14163. n = r ? (r = !1, e) : t(n, e, i, o)
  14164. }),
  14165. n
  14166. }
  14167. t.exports = r
  14168. },
  14169. {}],
  14170. 135 : [function(e, t, n) {
  14171. var r = e(205),
  14172. i = e(176),
  14173. o = i ?
  14174. function(e, t) {
  14175. return i.set(e, t),
  14176. e
  14177. }: r;
  14178. t.exports = o
  14179. },
  14180. {
  14181. 176 : 176,
  14182. 205 : 205
  14183. }],
  14184. 136 : [function(e, t, n) {
  14185. function r(e, t, n) {
  14186. var r = -1,
  14187. i = e.length;
  14188. t = null == t ? 0 : +t || 0,
  14189. t < 0 && (t = -t > i ? 0 : i + t),
  14190. n = void 0 === n || n > i ? i: +n || 0,
  14191. n < 0 && (n += i),
  14192. i = t > n ? 0 : n - t >>> 0,
  14193. t >>>= 0;
  14194. for (var o = Array(i); ++r < i;) o[r] = e[r + t];
  14195. return o
  14196. }
  14197. t.exports = r
  14198. },
  14199. {}],
  14200. 137 : [function(e, t, n) {
  14201. function r(e, t) {
  14202. var n;
  14203. return i(e,
  14204. function(e, r, i) {
  14205. return n = t(e, r, i),
  14206. !n
  14207. }),
  14208. !!n
  14209. }
  14210. var i = e(112);
  14211. t.exports = r
  14212. },
  14213. {
  14214. 112 : 112
  14215. }],
  14216. 138 : [function(e, t, n) {
  14217. function r(e) {
  14218. return null == e ? "": e + ""
  14219. }
  14220. t.exports = r
  14221. },
  14222. {}],
  14223. 139 : [function(e, t, n) {
  14224. function r(e, t) {
  14225. for (var n = -1,
  14226. r = t.length,
  14227. i = Array(r); ++n < r;) i[n] = e[t[n]];
  14228. return i
  14229. }
  14230. t.exports = r
  14231. },
  14232. {}],
  14233. 140 : [function(e, t, n) {
  14234. function r(e, t, n) {
  14235. if ("function" != typeof e) return i;
  14236. if (void 0 === t) return e;
  14237. switch (n) {
  14238. case 1:
  14239. return function(n) {
  14240. return e.call(t, n)
  14241. };
  14242. case 3:
  14243. return function(n, r, i) {
  14244. return e.call(t, n, r, i)
  14245. };
  14246. case 4:
  14247. return function(n, r, i, o) {
  14248. return e.call(t, n, r, i, o)
  14249. };
  14250. case 5:
  14251. return function(n, r, i, o, a) {
  14252. return e.call(t, n, r, i, o, a)
  14253. }
  14254. }
  14255. return function() {
  14256. return e.apply(t, arguments)
  14257. }
  14258. }
  14259. var i = e(205);
  14260. t.exports = r
  14261. },
  14262. {
  14263. 205 : 205
  14264. }],
  14265. 141 : [function(e, t, n) {
  14266. function r(e, t) {
  14267. var n = e.data,
  14268. r = "string" == typeof t || i(t) ? n.set.has(t) : n.hash[t];
  14269. return r ? 0 : -1
  14270. }
  14271. var i = e(192);
  14272. t.exports = r
  14273. },
  14274. {
  14275. 192 : 192
  14276. }],
  14277. 142 : [function(e, t, n) {
  14278. function r(e) {
  14279. var t = this.data;
  14280. "string" == typeof e || i(e) ? t.set.add(e) : t.hash[e] = !0
  14281. }
  14282. var i = e(192);
  14283. t.exports = r
  14284. },
  14285. {
  14286. 192 : 192
  14287. }],
  14288. 143 : [function(e, t, n) {
  14289. function r(e, t, n) {
  14290. for (var r = n.length,
  14291. o = -1,
  14292. a = i(e.length - r, 0), s = -1, c = t.length, l = Array(c + a); ++s < c;) l[s] = t[s];
  14293. for (; ++o < r;) l[n[o]] = e[o];
  14294. for (; a--;) l[s++] = e[o++];
  14295. return l
  14296. }
  14297. var i = Math.max;
  14298. t.exports = r
  14299. },
  14300. {}],
  14301. 144 : [function(e, t, n) {
  14302. function r(e, t, n) {
  14303. for (var r = -1,
  14304. o = n.length,
  14305. a = -1,
  14306. s = i(e.length - o, 0), c = -1, l = t.length, u = Array(s + l); ++a < s;) u[a] = e[a];
  14307. for (var p = a; ++c < l;) u[p + c] = t[c];
  14308. for (; ++r < o;) u[p + n[r]] = e[a++];
  14309. return u
  14310. }
  14311. var i = Math.max;
  14312. t.exports = r
  14313. },
  14314. {}],
  14315. 145 : [function(e, t, n) {
  14316. function r(e, t) {
  14317. return function(n, r, s) {
  14318. var c = t ? t() : {};
  14319. if (r = i(r, s, 3), a(n)) for (var l = -1,
  14320. u = n.length; ++l < u;) {
  14321. var p = n[l];
  14322. e(c, p, r(p, l, n), n)
  14323. } else o(n,
  14324. function(t, n, i) {
  14325. e(c, t, r(t, n, i), i)
  14326. });
  14327. return c
  14328. }
  14329. }
  14330. var i = e(107),
  14331. o = e(112),
  14332. a = e(188);
  14333. t.exports = r
  14334. },
  14335. {
  14336. 107 : 107,
  14337. 112 : 112,
  14338. 188 : 188
  14339. }],
  14340. 146 : [function(e, t, n) {
  14341. function r(e) {
  14342. return a(function(t, n) {
  14343. var r = -1,
  14344. a = null == t ? 0 : n.length,
  14345. s = a > 2 ? n[a - 2] : void 0,
  14346. c = a > 2 ? n[2] : void 0,
  14347. l = a > 1 ? n[a - 1] : void 0;
  14348. for ("function" == typeof s ? (s = i(s, l, 5), a -= 2) : (s = "function" == typeof l ? l: void 0, a -= s ? 1 : 0), c && o(n[0], n[1], c) && (s = a < 3 ? void 0 : s, a = 1); ++r < a;) {
  14349. var u = n[r];
  14350. u && e(t, u, s)
  14351. }
  14352. return t
  14353. })
  14354. }
  14355. var i = e(140),
  14356. o = e(169),
  14357. a = e(93);
  14358. t.exports = r
  14359. },
  14360. {
  14361. 140 : 140,
  14362. 169 : 169,
  14363. 93 : 93
  14364. }],
  14365. 147 : [function(e, t, n) {
  14366. function r(e, t) {
  14367. return function(n, r) {
  14368. var s = n ? i(n) : 0;
  14369. if (!o(s)) return e(n, r);
  14370. for (var c = t ? s: -1, l = a(n); (t ? c--:++c < s) && r(l[c], c, l) !== !1;);
  14371. return n
  14372. }
  14373. }
  14374. var i = e(163),
  14375. o = e(172),
  14376. a = e(184);
  14377. t.exports = r
  14378. },
  14379. {
  14380. 163 : 163,
  14381. 172 : 172,
  14382. 184 : 184
  14383. }],
  14384. 148 : [function(e, t, n) {
  14385. function r(e) {
  14386. return function(t, n, r) {
  14387. for (var o = i(t), a = r(t), s = a.length, c = e ? s: -1; e ? c--:++c < s;) {
  14388. var l = a[c];
  14389. if (n(o[l], l, o) === !1) break
  14390. }
  14391. return t
  14392. }
  14393. }
  14394. var i = e(184);
  14395. t.exports = r
  14396. },
  14397. {
  14398. 184 : 184
  14399. }],
  14400. 149 : [function(e, t, n) { (function(n) {
  14401. function r(e, t) {
  14402. function r() {
  14403. var i = this && this !== n && this instanceof r ? o: e;
  14404. return i.apply(t, arguments)
  14405. }
  14406. var o = i(e);
  14407. return r
  14408. }
  14409. var i = e(151);
  14410. t.exports = r
  14411. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14412. },
  14413. {
  14414. 151 : 151
  14415. }],
  14416. 150 : [function(e, t, n) { (function(n) {
  14417. function r(e) {
  14418. return s && a ? new i(e) : null
  14419. }
  14420. var i = e(96),
  14421. o = e(165),
  14422. a = o(n, "Set"),
  14423. s = o(Object, "create");
  14424. t.exports = r
  14425. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14426. },
  14427. {
  14428. 165 : 165,
  14429. 96 : 96
  14430. }],
  14431. 151 : [function(e, t, n) {
  14432. function r(e) {
  14433. return function() {
  14434. var t = arguments;
  14435. switch (t.length) {
  14436. case 0:
  14437. return new e;
  14438. case 1:
  14439. return new e(t[0]);
  14440. case 2:
  14441. return new e(t[0], t[1]);
  14442. case 3:
  14443. return new e(t[0], t[1], t[2]);
  14444. case 4:
  14445. return new e(t[0], t[1], t[2], t[3]);
  14446. case 5:
  14447. return new e(t[0], t[1], t[2], t[3], t[4]);
  14448. case 6:
  14449. return new e(t[0], t[1], t[2], t[3], t[4], t[5]);
  14450. case 7:
  14451. return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6])
  14452. }
  14453. var n = i(e.prototype),
  14454. r = e.apply(n, t);
  14455. return o(r) ? r: n
  14456. }
  14457. }
  14458. var i = e(109),
  14459. o = e(192);
  14460. t.exports = r
  14461. },
  14462. {
  14463. 109 : 109,
  14464. 192 : 192
  14465. }],
  14466. 152 : [function(e, t, n) {
  14467. function r(e, t) {
  14468. return function(n, r, c) {
  14469. if (r = i(r, c, 3), s(n)) {
  14470. var l = a(n, r, t);
  14471. return l > -1 ? n[l] : void 0
  14472. }
  14473. return o(n, r, e)
  14474. }
  14475. }
  14476. var i = e(107),
  14477. o = e(115),
  14478. a = e(116),
  14479. s = e(188);
  14480. t.exports = r
  14481. },
  14482. {
  14483. 107 : 107,
  14484. 115 : 115,
  14485. 116 : 116,
  14486. 188 : 188
  14487. }],
  14488. 153 : [function(e, t, n) {
  14489. function r(e, t) {
  14490. return function(n, r, a) {
  14491. return "function" == typeof r && void 0 === a && o(n) ? e(n, r) : t(n, i(r, a, 3))
  14492. }
  14493. }
  14494. var i = e(140),
  14495. o = e(188);
  14496. t.exports = r
  14497. },
  14498. {
  14499. 140 : 140,
  14500. 188 : 188
  14501. }],
  14502. 154 : [function(e, t, n) { (function(n) {
  14503. function r(e, t, E, w, A, _, S, T, C, R) {
  14504. function N() {
  14505. for (var d = arguments.length,
  14506. m = d,
  14507. y = Array(d); m--;) y[m] = arguments[m];
  14508. if (w && (y = o(y, w, A)), _ && (y = a(y, _, S)), k || B) {
  14509. var x = N.placeholder,
  14510. L = u(y, x);
  14511. if (d -= L.length, d < R) {
  14512. var F = T ? i(T) : void 0,
  14513. j = b(R - d, 0),
  14514. V = k ? L: void 0,
  14515. G = k ? void 0 : L,
  14516. U = k ? y: void 0,
  14517. W = k ? void 0 : y;
  14518. t |= k ? g: v,
  14519. t &= ~ (k ? v: g),
  14520. O || (t &= ~ (f | h));
  14521. var z = [e, t, E, U, V, W, G, F, C, j],
  14522. q = r.apply(void 0, z);
  14523. return c(e) && p(q, z),
  14524. q.placeholder = x,
  14525. q
  14526. }
  14527. }
  14528. var H = P ? E: this,
  14529. Y = D ? H[e] : e;
  14530. return T && (y = l(y, T)),
  14531. M && C < y.length && (y.length = C),
  14532. this && this !== n && this instanceof N && (Y = I || s(e)),
  14533. Y.apply(H, y)
  14534. }
  14535. var M = t & x,
  14536. P = t & f,
  14537. D = t & h,
  14538. k = t & m,
  14539. O = t & d,
  14540. B = t & y,
  14541. I = D ? void 0 : s(e);
  14542. return N
  14543. }
  14544. var i = e(97),
  14545. o = e(143),
  14546. a = e(144),
  14547. s = e(151),
  14548. c = e(171),
  14549. l = e(180),
  14550. u = e(181),
  14551. p = e(182),
  14552. f = 1,
  14553. h = 2,
  14554. d = 4,
  14555. m = 8,
  14556. y = 16,
  14557. g = 32,
  14558. v = 64,
  14559. x = 128,
  14560. b = Math.max;
  14561. t.exports = r
  14562. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14563. },
  14564. {
  14565. 143 : 143,
  14566. 144 : 144,
  14567. 151 : 151,
  14568. 171 : 171,
  14569. 180 : 180,
  14570. 181 : 181,
  14571. 182 : 182,
  14572. 97 : 97
  14573. }],
  14574. 155 : [function(e, t, n) { (function(n) {
  14575. function r(e, t, r, a) {
  14576. function s() {
  14577. for (var t = -1,
  14578. i = arguments.length,
  14579. o = -1,
  14580. u = a.length,
  14581. p = Array(u + i); ++o < u;) p[o] = a[o];
  14582. for (; i--;) p[o++] = arguments[++t];
  14583. var f = this && this !== n && this instanceof s ? l: e;
  14584. return f.apply(c ? r: this, p)
  14585. }
  14586. var c = t & o,
  14587. l = i(e);
  14588. return s
  14589. }
  14590. var i = e(151),
  14591. o = 1;
  14592. t.exports = r
  14593. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14594. },
  14595. {
  14596. 151 : 151
  14597. }],
  14598. 156 : [function(e, t, n) {
  14599. function r(e, t) {
  14600. return function(n, r, s, c) {
  14601. var l = arguments.length < 3;
  14602. return "function" == typeof r && void 0 === c && a(n) ? e(n, r, s, l) : o(n, i(r, c, 4), s, l, t)
  14603. }
  14604. }
  14605. var i = e(107),
  14606. o = e(134),
  14607. a = e(188);
  14608. t.exports = r
  14609. },
  14610. {
  14611. 107 : 107,
  14612. 134 : 134,
  14613. 188 : 188
  14614. }],
  14615. 157 : [function(e, t, n) {
  14616. function r(e, t, n, r, g, v, x, b) {
  14617. var E = t & f;
  14618. if (!E && "function" != typeof e) throw new TypeError(m);
  14619. var w = r ? r.length: 0;
  14620. if (w || (t &= ~ (h | d), r = g = void 0), w -= g ? g.length: 0, t & d) {
  14621. var A = r,
  14622. _ = g;
  14623. r = g = void 0
  14624. }
  14625. var S = E ? void 0 : c(e),
  14626. T = [e, t, n, r, g, A, _, v, x, b];
  14627. if (S && (l(T, S), t = T[1], b = T[9]), T[9] = null == b ? E ? 0 : e.length: y(b - w, 0) || 0, t == p) var C = o(T[0], T[2]);
  14628. else C = t != h && t != (p | h) || T[4].length ? a.apply(void 0, T) : s.apply(void 0, T);
  14629. var R = S ? i: u;
  14630. return R(C, T)
  14631. }
  14632. var i = e(135),
  14633. o = e(149),
  14634. a = e(154),
  14635. s = e(155),
  14636. c = e(161),
  14637. l = e(175),
  14638. u = e(182),
  14639. p = 1,
  14640. f = 2,
  14641. h = 32,
  14642. d = 64,
  14643. m = "Expected a function",
  14644. y = Math.max;
  14645. t.exports = r
  14646. },
  14647. {
  14648. 135 : 135,
  14649. 149 : 149,
  14650. 154 : 154,
  14651. 155 : 155,
  14652. 161 : 161,
  14653. 175 : 175,
  14654. 182 : 182
  14655. }],
  14656. 158 : [function(e, t, n) {
  14657. function r(e, t, n, r, o, a, s) {
  14658. var c = -1,
  14659. l = e.length,
  14660. u = t.length;
  14661. if (l != u && !(o && u > l)) return ! 1;
  14662. for (; ++c < l;) {
  14663. var p = e[c],
  14664. f = t[c],
  14665. h = r ? r(o ? f: p, o ? p: f, c) : void 0;
  14666. if (void 0 !== h) {
  14667. if (h) continue;
  14668. return ! 1
  14669. }
  14670. if (o) {
  14671. if (!i(t,
  14672. function(e) {
  14673. return p === e || n(p, e, r, o, a, s)
  14674. })) return ! 1
  14675. } else if (p !== f && !n(p, f, r, o, a, s)) return ! 1
  14676. }
  14677. return ! 0
  14678. }
  14679. var i = e(104);
  14680. t.exports = r
  14681. },
  14682. {
  14683. 104 : 104
  14684. }],
  14685. 159 : [function(e, t, n) {
  14686. function r(e, t, n) {
  14687. switch (n) {
  14688. case i:
  14689. case o:
  14690. return + e == +t;
  14691. case a:
  14692. return e.name == t.name && e.message == t.message;
  14693. case s:
  14694. return e != +e ? t != +t: e == +t;
  14695. case c:
  14696. case l:
  14697. return e == t + ""
  14698. }
  14699. return ! 1
  14700. }
  14701. var i = "[object Boolean]",
  14702. o = "[object Date]",
  14703. a = "[object Error]",
  14704. s = "[object Number]",
  14705. c = "[object RegExp]",
  14706. l = "[object String]";
  14707. t.exports = r
  14708. },
  14709. {}],
  14710. 160 : [function(e, t, n) {
  14711. function r(e, t, n, r, o, s, c) {
  14712. var l = i(e),
  14713. u = l.length,
  14714. p = i(t),
  14715. f = p.length;
  14716. if (u != f && !o) return ! 1;
  14717. for (var h = u; h--;) {
  14718. var d = l[h];
  14719. if (! (o ? d in t: a.call(t, d))) return ! 1
  14720. }
  14721. for (var m = o; ++h < u;) {
  14722. d = l[h];
  14723. var y = e[d],
  14724. g = t[d],
  14725. v = r ? r(o ? g: y, o ? y: g, d) : void 0;
  14726. if (! (void 0 === v ? n(y, g, r, o, s, c) : v)) return ! 1;
  14727. m || (m = "constructor" == d)
  14728. }
  14729. if (!m) {
  14730. var x = e.constructor,
  14731. b = t.constructor;
  14732. if (x != b && "constructor" in e && "constructor" in t && !("function" == typeof x && x instanceof x && "function" == typeof b && b instanceof b)) return ! 1
  14733. }
  14734. return ! 0
  14735. }
  14736. var i = e(198),
  14737. o = Object.prototype,
  14738. a = o.hasOwnProperty;
  14739. t.exports = r
  14740. },
  14741. {
  14742. 198 : 198
  14743. }],
  14744. 161 : [function(e, t, n) {
  14745. var r = e(176),
  14746. i = e(206),
  14747. o = r ?
  14748. function(e) {
  14749. return r.get(e)
  14750. }: i;
  14751. t.exports = o
  14752. },
  14753. {
  14754. 176 : 176,
  14755. 206 : 206
  14756. }],
  14757. 162 : [function(e, t, n) {
  14758. function r(e) {
  14759. for (var t = e.name + "",
  14760. n = i[t], r = n ? n.length: 0; r--;) {
  14761. var o = n[r],
  14762. a = o.func;
  14763. if (null == a || a == e) return o.name
  14764. }
  14765. return t
  14766. }
  14767. var i = e(179);
  14768. t.exports = r
  14769. },
  14770. {
  14771. 179 : 179
  14772. }],
  14773. 163 : [function(e, t, n) {
  14774. var r = e(132),
  14775. i = r("length");
  14776. t.exports = i
  14777. },
  14778. {
  14779. 132 : 132
  14780. }],
  14781. 164 : [function(e, t, n) {
  14782. function r(e) {
  14783. for (var t = o(e), n = t.length; n--;) t[n][2] = i(t[n][1]);
  14784. return t
  14785. }
  14786. var i = e(174),
  14787. o = e(202);
  14788. t.exports = r
  14789. },
  14790. {
  14791. 174 : 174,
  14792. 202 : 202
  14793. }],
  14794. 165 : [function(e, t, n) {
  14795. function r(e, t) {
  14796. var n = null == e ? void 0 : e[t];
  14797. return i(n) ? n: void 0
  14798. }
  14799. var i = e(190);
  14800. t.exports = r
  14801. },
  14802. {
  14803. 190 : 190
  14804. }],
  14805. 166 : [function(e, t, n) {
  14806. function r(e, t, n) {
  14807. for (var r = e.length,
  14808. i = t + (n ? 0 : -1); n ? i--:++i < r;) {
  14809. var o = e[i];
  14810. if (o !== o) return i
  14811. }
  14812. return - 1
  14813. }
  14814. t.exports = r
  14815. },
  14816. {}],
  14817. 167 : [function(e, t, n) {
  14818. function r(e) {
  14819. return null != e && o(i(e))
  14820. }
  14821. var i = e(163),
  14822. o = e(172);
  14823. t.exports = r
  14824. },
  14825. {
  14826. 163 : 163,
  14827. 172 : 172
  14828. }],
  14829. 168 : [function(e, t, n) {
  14830. function r(e, t) {
  14831. return e = "number" == typeof e || i.test(e) ? +e: -1,
  14832. t = null == t ? o: t,
  14833. e > -1 && e % 1 == 0 && e < t
  14834. }
  14835. var i = /^\d+$/,
  14836. o = 9007199254740991;
  14837. t.exports = r
  14838. },
  14839. {}],
  14840. 169 : [function(e, t, n) {
  14841. function r(e, t, n) {
  14842. if (!a(n)) return ! 1;
  14843. var r = typeof t;
  14844. if ("number" == r ? i(n) && o(t, n.length) : "string" == r && t in n) {
  14845. var s = n[t];
  14846. return e === e ? e === s: s !== s
  14847. }
  14848. return ! 1
  14849. }
  14850. var i = e(167),
  14851. o = e(168),
  14852. a = e(192);
  14853. t.exports = r
  14854. },
  14855. {
  14856. 167 : 167,
  14857. 168 : 168,
  14858. 192 : 192
  14859. }],
  14860. 170 : [function(e, t, n) {
  14861. function r(e, t) {
  14862. var n = typeof e;
  14863. if ("string" == n && s.test(e) || "number" == n) return ! 0;
  14864. if (i(e)) return ! 1;
  14865. var r = !a.test(e);
  14866. return r || null != t && e in o(t)
  14867. }
  14868. var i = e(188),
  14869. o = e(184),
  14870. a = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,
  14871. s = /^\w*$/;
  14872. t.exports = r
  14873. },
  14874. {
  14875. 184 : 184,
  14876. 188 : 188
  14877. }],
  14878. 171 : [function(e, t, n) {
  14879. function r(e) {
  14880. var t = a(e),
  14881. n = s[t];
  14882. if ("function" != typeof n || !(t in i.prototype)) return ! 1;
  14883. if (e === n) return ! 0;
  14884. var r = o(n);
  14885. return !! r && e === r[0]
  14886. }
  14887. var i = e(94),
  14888. o = e(161),
  14889. a = e(162),
  14890. s = e(79);
  14891. t.exports = r
  14892. },
  14893. {
  14894. 161 : 161,
  14895. 162 : 162,
  14896. 79 : 79,
  14897. 94 : 94
  14898. }],
  14899. 172 : [function(e, t, n) {
  14900. function r(e) {
  14901. return "number" == typeof e && e > -1 && e % 1 == 0 && e <= i
  14902. }
  14903. var i = 9007199254740991;
  14904. t.exports = r
  14905. },
  14906. {}],
  14907. 173 : [function(e, t, n) {
  14908. function r(e) {
  14909. return !! e && "object" == typeof e
  14910. }
  14911. t.exports = r
  14912. },
  14913. {}],
  14914. 174 : [function(e, t, n) {
  14915. function r(e) {
  14916. return e === e && !i(e)
  14917. }
  14918. var i = e(192);
  14919. t.exports = r
  14920. },
  14921. {
  14922. 192 : 192
  14923. }],
  14924. 175 : [function(e, t, n) {
  14925. function r(e, t) {
  14926. var n = e[1],
  14927. r = t[1],
  14928. m = n | r,
  14929. y = m < p,
  14930. g = r == p && n == u || r == p && n == f && e[7].length <= t[8] || r == (p | f) && n == u;
  14931. if (!y && !g) return e;
  14932. r & c && (e[2] = t[2], m |= n & c ? 0 : l);
  14933. var v = t[3];
  14934. if (v) {
  14935. var x = e[3];
  14936. e[3] = x ? o(x, v, t[4]) : i(v),
  14937. e[4] = x ? s(e[3], h) : i(t[4])
  14938. }
  14939. return v = t[5],
  14940. v && (x = e[5], e[5] = x ? a(x, v, t[6]) : i(v), e[6] = x ? s(e[5], h) : i(t[6])),
  14941. v = t[7],
  14942. v && (e[7] = i(v)),
  14943. r & p && (e[8] = null == e[8] ? t[8] : d(e[8], t[8])),
  14944. null == e[9] && (e[9] = t[9]),
  14945. e[0] = t[0],
  14946. e[1] = m,
  14947. e
  14948. }
  14949. var i = e(97),
  14950. o = e(143),
  14951. a = e(144),
  14952. s = e(181),
  14953. c = 1,
  14954. l = 4,
  14955. u = 8,
  14956. p = 128,
  14957. f = 256,
  14958. h = "__lodash_placeholder__",
  14959. d = Math.min;
  14960. t.exports = r
  14961. },
  14962. {
  14963. 143 : 143,
  14964. 144 : 144,
  14965. 181 : 181,
  14966. 97 : 97
  14967. }],
  14968. 176 : [function(e, t, n) { (function(n) {
  14969. var r = e(165),
  14970. i = r(n, "WeakMap"),
  14971. o = i && new i;
  14972. t.exports = o
  14973. }).call(this, "undefined" != typeof global ? global: "undefined" != typeof self ? self: "undefined" != typeof window ? window: {})
  14974. },
  14975. {
  14976. 165 : 165
  14977. }],
  14978. 177 : [function(e, t, n) {
  14979. function r(e, t) {
  14980. e = i(e);
  14981. for (var n = -1,
  14982. r = t.length,
  14983. o = {}; ++n < r;) {
  14984. var a = t[n];
  14985. a in e && (o[a] = e[a])
  14986. }
  14987. return o
  14988. }
  14989. var i = e(184);
  14990. t.exports = r
  14991. },
  14992. {
  14993. 184 : 184
  14994. }],
  14995. 178 : [function(e, t, n) {
  14996. function r(e, t) {
  14997. var n = {};
  14998. return i(e,
  14999. function(e, r, i) {
  15000. t(e, r, i) && (n[r] = e)
  15001. }),
  15002. n
  15003. }
  15004. var i = e(119);
  15005. t.exports = r
  15006. },
  15007. {
  15008. 119 : 119
  15009. }],
  15010. 179 : [function(e, t, n) {
  15011. var r = {};
  15012. t.exports = r
  15013. },
  15014. {}],
  15015. 180 : [function(e, t, n) {
  15016. function r(e, t) {
  15017. for (var n = e.length,
  15018. r = a(t.length, n), s = i(e); r--;) {
  15019. var c = t[r];
  15020. e[r] = o(c, n) ? s[c] : void 0
  15021. }
  15022. return e
  15023. }
  15024. var i = e(97),
  15025. o = e(168),
  15026. a = Math.min;
  15027. t.exports = r
  15028. },
  15029. {
  15030. 168 : 168,
  15031. 97 : 97
  15032. }],
  15033. 181 : [function(e, t, n) {
  15034. function r(e, t) {
  15035. for (var n = -1,
  15036. r = e.length,
  15037. o = -1,
  15038. a = []; ++n < r;) e[n] === t && (e[n] = i, a[++o] = n);
  15039. return a
  15040. }
  15041. var i = "__lodash_placeholder__";
  15042. t.exports = r
  15043. },
  15044. {}],
  15045. 182 : [function(e, t, n) {
  15046. var r = e(135),
  15047. i = e(89),
  15048. o = 150,
  15049. a = 16,
  15050. s = function() {
  15051. var e = 0,
  15052. t = 0;
  15053. return function(n, s) {
  15054. var c = i(),
  15055. l = a - (c - t);
  15056. if (t = c, l > 0) {
  15057. if (++e >= o) return n
  15058. } else e = 0;
  15059. return r(n, s)
  15060. }
  15061. } ();
  15062. t.exports = s
  15063. },
  15064. {
  15065. 135 : 135,
  15066. 89 : 89
  15067. }],
  15068. 183 : [function(e, t, n) {
  15069. function r(e) {
  15070. for (var t = c(e), n = t.length, r = n && e.length, l = !!r && s(r) && (o(e) || i(e)), p = -1, f = []; ++p < n;) {
  15071. var h = t[p]; (l && a(h, r) || u.call(e, h)) && f.push(h)
  15072. }
  15073. return f
  15074. }
  15075. var i = e(187),
  15076. o = e(188),
  15077. a = e(168),
  15078. s = e(172),
  15079. c = e(199),
  15080. l = Object.prototype,
  15081. u = l.hasOwnProperty;
  15082. t.exports = r
  15083. },
  15084. {
  15085. 168 : 168,
  15086. 172 : 172,
  15087. 187 : 187,
  15088. 188 : 188,
  15089. 199 : 199
  15090. }],
  15091. 184 : [function(e, t, n) {
  15092. function r(e) {
  15093. return i(e) ? e: Object(e)
  15094. }
  15095. var i = e(192);
  15096. t.exports = r
  15097. },
  15098. {
  15099. 192 : 192
  15100. }],
  15101. 185 : [function(e, t, n) {
  15102. function r(e) {
  15103. if (o(e)) return e;
  15104. var t = [];
  15105. return i(e).replace(a,
  15106. function(e, n, r, i) {
  15107. t.push(r ? i.replace(s, "$1") : n || e)
  15108. }),
  15109. t
  15110. }
  15111. var i = e(138),
  15112. o = e(188),
  15113. a = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,
  15114. s = /\\(\\)?/g;
  15115. t.exports = r
  15116. },
  15117. {
  15118. 138 : 138,
  15119. 188 : 188
  15120. }],
  15121. 186 : [function(e, t, n) {
  15122. function r(e) {
  15123. return e instanceof i ? e.clone() : new o(e.__wrapped__, e.__chain__, a(e.__actions__))
  15124. }
  15125. var i = e(94),
  15126. o = e(95),
  15127. a = e(97);
  15128. t.exports = r
  15129. },
  15130. {
  15131. 94 : 94,
  15132. 95 : 95,
  15133. 97 : 97
  15134. }],
  15135. 187 : [function(e, t, n) {
  15136. function r(e) {
  15137. return o(e) && i(e) && s.call(e, "callee") && !c.call(e, "callee")
  15138. }
  15139. var i = e(167),
  15140. o = e(173),
  15141. a = Object.prototype,
  15142. s = a.hasOwnProperty,
  15143. c = a.propertyIsEnumerable;
  15144. t.exports = r
  15145. },
  15146. {
  15147. 167 : 167,
  15148. 173 : 173
  15149. }],
  15150. 188 : [function(e, t, n) {
  15151. var r = e(165),
  15152. i = e(172),
  15153. o = e(173),
  15154. a = "[object Array]",
  15155. s = Object.prototype,
  15156. c = s.toString,
  15157. l = r(Array, "isArray"),
  15158. u = l ||
  15159. function(e) {
  15160. return o(e) && i(e.length) && c.call(e) == a
  15161. };
  15162. t.exports = u
  15163. },
  15164. {
  15165. 165 : 165,
  15166. 172 : 172,
  15167. 173 : 173
  15168. }],
  15169. 189 : [function(e, t, n) {
  15170. function r(e) {
  15171. return i(e) && s.call(e) == o
  15172. }
  15173. var i = e(192),
  15174. o = "[object Function]",
  15175. a = Object.prototype,
  15176. s = a.toString;
  15177. t.exports = r
  15178. },
  15179. {
  15180. 192 : 192
  15181. }],
  15182. 190 : [function(e, t, n) {
  15183. function r(e) {
  15184. return null != e && (i(e) ? u.test(c.call(e)) : o(e) && a.test(e))
  15185. }
  15186. var i = e(189),
  15187. o = e(173),
  15188. a = /^\[object .+?Constructor\]$/,
  15189. s = Object.prototype,
  15190. c = Function.prototype.toString,
  15191. l = s.hasOwnProperty,
  15192. u = RegExp("^" + c.call(l).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
  15193. t.exports = r
  15194. },
  15195. {
  15196. 173 : 173,
  15197. 189 : 189
  15198. }],
  15199. 191 : [function(e, t, n) {
  15200. function r(e) {
  15201. return "number" == typeof e || i(e) && s.call(e) == o
  15202. }
  15203. var i = e(173),
  15204. o = "[object Number]",
  15205. a = Object.prototype,
  15206. s = a.toString;
  15207. t.exports = r
  15208. },
  15209. {
  15210. 173 : 173
  15211. }],
  15212. 192 : [function(e, t, n) {
  15213. function r(e) {
  15214. var t = typeof e;
  15215. return !! e && ("object" == t || "function" == t)
  15216. }
  15217. t.exports = r
  15218. },
  15219. {}],
  15220. 193 : [function(e, t, n) {
  15221. function r(e) {
  15222. var t;
  15223. if (!a(e) || u.call(e) != s || o(e) || !l.call(e, "constructor") && (t = e.constructor, "function" == typeof t && !(t instanceof t))) return ! 1;
  15224. var n;
  15225. return i(e,
  15226. function(e, t) {
  15227. n = t
  15228. }),
  15229. void 0 === n || l.call(e, n)
  15230. }
  15231. var i = e(119),
  15232. o = e(187),
  15233. a = e(173),
  15234. s = "[object Object]",
  15235. c = Object.prototype,
  15236. l = c.hasOwnProperty,
  15237. u = c.toString;
  15238. t.exports = r
  15239. },
  15240. {
  15241. 119 : 119,
  15242. 173 : 173,
  15243. 187 : 187
  15244. }],
  15245. 194 : [function(e, t, n) {
  15246. function r(e) {
  15247. return "string" == typeof e || i(e) && s.call(e) == o
  15248. }
  15249. var i = e(173),
  15250. o = "[object String]",
  15251. a = Object.prototype,
  15252. s = a.toString;
  15253. t.exports = r
  15254. },
  15255. {
  15256. 173 : 173
  15257. }],
  15258. 195 : [function(e, t, n) {
  15259. function r(e) {
  15260. return o(e) && i(e.length) && !!N[P.call(e)]
  15261. }
  15262. var i = e(172),
  15263. o = e(173),
  15264. a = "[object Arguments]",
  15265. s = "[object Array]",
  15266. c = "[object Boolean]",
  15267. l = "[object Date]",
  15268. u = "[object Error]",
  15269. p = "[object Function]",
  15270. f = "[object Map]",
  15271. h = "[object Number]",
  15272. d = "[object Object]",
  15273. m = "[object RegExp]",
  15274. y = "[object Set]",
  15275. g = "[object String]",
  15276. v = "[object WeakMap]",
  15277. x = "[object ArrayBuffer]",
  15278. b = "[object Float32Array]",
  15279. E = "[object Float64Array]",
  15280. w = "[object Int8Array]",
  15281. A = "[object Int16Array]",
  15282. _ = "[object Int32Array]",
  15283. S = "[object Uint8Array]",
  15284. T = "[object Uint8ClampedArray]",
  15285. C = "[object Uint16Array]",
  15286. R = "[object Uint32Array]",
  15287. N = {};
  15288. N[b] = N[E] = N[w] = N[A] = N[_] = N[S] = N[T] = N[C] = N[R] = !0,
  15289. N[a] = N[s] = N[x] = N[c] = N[l] = N[u] = N[p] = N[f] = N[h] = N[d] = N[m] = N[y] = N[g] = N[v] = !1;
  15290. var M = Object.prototype,
  15291. P = M.toString;
  15292. t.exports = r
  15293. },
  15294. {
  15295. 172 : 172,
  15296. 173 : 173
  15297. }],
  15298. 196 : [function(e, t, n) {
  15299. function r(e) {
  15300. return i(e, o(e))
  15301. }
  15302. var i = e(108),
  15303. o = e(199);
  15304. t.exports = r
  15305. },
  15306. {
  15307. 108 : 108,
  15308. 199 : 199
  15309. }],
  15310. 197 : [function(e, t, n) {
  15311. var r = e(105),
  15312. i = e(106),
  15313. o = e(146),
  15314. a = o(function(e, t, n) {
  15315. return n ? r(e, t, n) : i(e, t)
  15316. });
  15317. t.exports = a
  15318. },
  15319. {
  15320. 105 : 105,
  15321. 106 : 106,
  15322. 146 : 146
  15323. }],
  15324. 198 : [function(e, t, n) {
  15325. var r = e(165),
  15326. i = e(167),
  15327. o = e(192),
  15328. a = e(183),
  15329. s = r(Object, "keys"),
  15330. c = s ?
  15331. function(e) {
  15332. var t = null == e ? void 0 : e.constructor;
  15333. return "function" == typeof t && t.prototype === e || "function" != typeof e && i(e) ? a(e) : o(e) ? s(e) : []
  15334. }: a;
  15335. t.exports = c
  15336. },
  15337. {
  15338. 165 : 165,
  15339. 167 : 167,
  15340. 183 : 183,
  15341. 192 : 192
  15342. }],
  15343. 199 : [function(e, t, n) {
  15344. function r(e) {
  15345. if (null == e) return [];
  15346. c(e) || (e = Object(e));
  15347. var t = e.length;
  15348. t = t && s(t) && (o(e) || i(e)) && t || 0;
  15349. for (var n = e.constructor,
  15350. r = -1,
  15351. l = "function" == typeof n && n.prototype === e,
  15352. p = Array(t), f = t > 0; ++r < t;) p[r] = r + "";
  15353. for (var h in e) f && a(h, t) || "constructor" == h && (l || !u.call(e, h)) || p.push(h);
  15354. return p
  15355. }
  15356. var i = e(187),
  15357. o = e(188),
  15358. a = e(168),
  15359. s = e(172),
  15360. c = e(192),
  15361. l = Object.prototype,
  15362. u = l.hasOwnProperty;
  15363. t.exports = r
  15364. },
  15365. {
  15366. 168 : 168,
  15367. 172 : 172,
  15368. 187 : 187,
  15369. 188 : 188,
  15370. 192 : 192
  15371. }],
  15372. 200 : [function(e, t, n) {
  15373. var r = e(130),
  15374. i = e(146),
  15375. o = i(r);
  15376. t.exports = o
  15377. },
  15378. {
  15379. 130 : 130,
  15380. 146 : 146
  15381. }],
  15382. 201 : [function(e, t, n) {
  15383. var r = e(101),
  15384. i = e(111),
  15385. o = e(117),
  15386. a = e(140),
  15387. s = e(199),
  15388. c = e(177),
  15389. l = e(178),
  15390. u = e(93),
  15391. p = u(function(e, t) {
  15392. if (null == e) return {};
  15393. if ("function" != typeof t[0]) {
  15394. var t = r(o(t), String);
  15395. return c(e, i(s(e), t))
  15396. }
  15397. var n = a(t[0], t[1], 3);
  15398. return l(e,
  15399. function(e, t, r) {
  15400. return ! n(e, t, r)
  15401. })
  15402. });
  15403. t.exports = p
  15404. },
  15405. {
  15406. 101 : 101,
  15407. 111 : 111,
  15408. 117 : 117,
  15409. 140 : 140,
  15410. 177 : 177,
  15411. 178 : 178,
  15412. 199 : 199,
  15413. 93 : 93
  15414. }],
  15415. 202 : [function(e, t, n) {
  15416. function r(e) {
  15417. e = o(e);
  15418. for (var t = -1,
  15419. n = i(e), r = n.length, a = Array(r); ++t < r;) {
  15420. var s = n[t];
  15421. a[t] = [s, e[s]]
  15422. }
  15423. return a
  15424. }
  15425. var i = e(198),
  15426. o = e(184);
  15427. t.exports = r
  15428. },
  15429. {
  15430. 184 : 184,
  15431. 198 : 198
  15432. }],
  15433. 203 : [function(e, t, n) {
  15434. var r = e(117),
  15435. i = e(140),
  15436. o = e(177),
  15437. a = e(178),
  15438. s = e(93),
  15439. c = s(function(e, t) {
  15440. return null == e ? {}: "function" == typeof t[0] ? a(e, i(t[0], t[1], 3)) : o(e, r(t))
  15441. });
  15442. t.exports = c
  15443. },
  15444. {
  15445. 117 : 117,
  15446. 140 : 140,
  15447. 177 : 177,
  15448. 178 : 178,
  15449. 93 : 93
  15450. }],
  15451. 204 : [function(e, t, n) {
  15452. function r(e) {
  15453. return i(e, o(e))
  15454. }
  15455. var i = e(139),
  15456. o = e(198);
  15457. t.exports = r
  15458. },
  15459. {
  15460. 139 : 139,
  15461. 198 : 198
  15462. }],
  15463. 205 : [function(e, t, n) {
  15464. function r(e) {
  15465. return e
  15466. }
  15467. t.exports = r
  15468. },
  15469. {}],
  15470. 206 : [function(e, t, n) {
  15471. function r() {}
  15472. t.exports = r
  15473. },
  15474. {}],
  15475. 207 : [function(e, t, n) {
  15476. function r(e) {
  15477. return a(e) ? i(e) : o(e)
  15478. }
  15479. var i = e(132),
  15480. o = e(133),
  15481. a = e(170);
  15482. t.exports = r
  15483. },
  15484. {
  15485. 132 : 132,
  15486. 133 : 133,
  15487. 170 : 170
  15488. }],
  15489. 208 : [function(e, t, n) {
  15490. t.exports = function(e, t, n) {
  15491. return 2 == arguments.length ? e.getAttribute(t) : null === n ? e.removeAttribute(t) : (e.setAttribute(t, n), e)
  15492. }
  15493. },
  15494. {}],
  15495. 209 : [function(e, t, n) {
  15496. t.exports = e(216)
  15497. },
  15498. {
  15499. 216 : 216
  15500. }],
  15501. 210 : [function(e, t, n) {
  15502. t.exports = function(e) {
  15503. for (var t; e.childNodes.length;) t = e.childNodes[0],
  15504. e.removeChild(t);
  15505. return e
  15506. }
  15507. },
  15508. {}],
  15509. 211 : [function(e, t, n) {
  15510. t.exports = e(219)
  15511. },
  15512. {
  15513. 219 : 219
  15514. }],
  15515. 212 : [function(e, t, n) {
  15516. t.exports = e(223)
  15517. },
  15518. {
  15519. 223 : 223
  15520. }],
  15521. 213 : [function(e, t, n) {
  15522. t.exports = e(220)
  15523. },
  15524. {
  15525. 220 : 220
  15526. }],
  15527. 214 : [function(e, t, n) {
  15528. t.exports = e(222)
  15529. },
  15530. {
  15531. 222 : 222
  15532. }],
  15533. 215 : [function(e, t, n) {
  15534. t.exports = function(e) {
  15535. e.parentNode && e.parentNode.removeChild(e)
  15536. }
  15537. },
  15538. {}],
  15539. 216 : [function(e, t, n) {
  15540. function r(e) {
  15541. if (!e || !e.nodeType) throw new Error("A DOM element reference is required");
  15542. this.el = e,
  15543. this.list = e.classList
  15544. }
  15545. try {
  15546. var i = e(217)
  15547. } catch(t) {
  15548. var i = e(217)
  15549. }
  15550. var o = /\s+/,
  15551. a = Object.prototype.toString;
  15552. t.exports = function(e) {
  15553. return new r(e)
  15554. },
  15555. r.prototype.add = function(e) {
  15556. if (this.list) return this.list.add(e),
  15557. this;
  15558. var t = this.array(),
  15559. n = i(t, e);
  15560. return~n || t.push(e),
  15561. this.el.className = t.join(" "),
  15562. this
  15563. },
  15564. r.prototype.remove = function(e) {
  15565. if ("[object RegExp]" == a.call(e)) return this.removeMatching(e);
  15566. if (this.list) return this.list.remove(e),
  15567. this;
  15568. var t = this.array(),
  15569. n = i(t, e);
  15570. return~n && t.splice(n, 1),
  15571. this.el.className = t.join(" "),
  15572. this
  15573. },
  15574. r.prototype.removeMatching = function(e) {
  15575. for (var t = this.array(), n = 0; n < t.length; n++) e.test(t[n]) && this.remove(t[n]);
  15576. return this
  15577. },
  15578. r.prototype.toggle = function(e, t) {
  15579. return this.list ? ("undefined" != typeof t ? t !== this.list.toggle(e, t) && this.list.toggle(e) : this.list.toggle(e), this) : ("undefined" != typeof t ? t ? this.add(e) : this.remove(e) : this.has(e) ? this.remove(e) : this.add(e), this)
  15580. },
  15581. r.prototype.array = function() {
  15582. var e = this.el.getAttribute("class") || "",
  15583. t = e.replace(/^\s+|\s+$/g, ""),
  15584. n = t.split(o);
  15585. return "" === n[0] && n.shift(),
  15586. n
  15587. },
  15588. r.prototype.has = r.prototype.contains = function(e) {
  15589. return this.list ? this.list.contains(e) : !!~i(this.array(), e)
  15590. }
  15591. },
  15592. {
  15593. 217 : 217
  15594. }],
  15595. 217 : [function(e, t, n) {
  15596. t.exports = function(e, t) {
  15597. if (e.indexOf) return e.indexOf(t);
  15598. for (var n = 0; n < e.length; ++n) if (e[n] === t) return n;
  15599. return - 1
  15600. }
  15601. },
  15602. {}],
  15603. 218 : [function(e, t, n) {
  15604. var r = e(221);
  15605. t.exports = function(e, t, n, i) {
  15606. for (e = n ? {
  15607. parentNode: e
  15608. }: e, i = i || document; (e = e.parentNode) && e !== document;) {
  15609. if (r(e, t)) return e;
  15610. if (e === i) return
  15611. }
  15612. }
  15613. },
  15614. {
  15615. 221 : 221
  15616. }],
  15617. 219 : [function(e, t, n) {
  15618. try {
  15619. var r = e(218)
  15620. } catch(t) {
  15621. var r = e(218)
  15622. }
  15623. try {
  15624. var i = e(220)
  15625. } catch(t) {
  15626. var i = e(220)
  15627. }
  15628. n.bind = function(e, t, n, o, a) {
  15629. return i.bind(e, n,
  15630. function(n) {
  15631. var i = n.target || n.srcElement;
  15632. n.delegateTarget = r(i, t, !0, e),
  15633. n.delegateTarget && o.call(e, n)
  15634. },
  15635. a)
  15636. },
  15637. n.unbind = function(e, t, n, r) {
  15638. i.unbind(e, t, n, r)
  15639. }
  15640. },
  15641. {
  15642. 218 : 218,
  15643. 220 : 220
  15644. }],
  15645. 220 : [function(e, t, n) {
  15646. var r = window.addEventListener ? "addEventListener": "attachEvent",
  15647. i = window.removeEventListener ? "removeEventListener": "detachEvent",
  15648. o = "addEventListener" !== r ? "on": "";
  15649. n.bind = function(e, t, n, i) {
  15650. return e[r](o + t, n, i || !1),
  15651. n
  15652. },
  15653. n.unbind = function(e, t, n, r) {
  15654. return e[i](o + t, n, r || !1),
  15655. n
  15656. }
  15657. },
  15658. {}],
  15659. 221 : [function(e, t, n) {
  15660. function r(e, t) {
  15661. if (!e || 1 !== e.nodeType) return ! 1;
  15662. if (a) return a.call(e, t);
  15663. for (var n = i.all(t, e.parentNode), r = 0; r < n.length; ++r) if (n[r] == e) return ! 0;
  15664. return ! 1
  15665. }
  15666. try {
  15667. var i = e(222)
  15668. } catch(t) {
  15669. var i = e(222)
  15670. }
  15671. var o = Element.prototype,
  15672. a = o.matches || o.webkitMatchesSelector || o.mozMatchesSelector || o.msMatchesSelector || o.oMatchesSelector;
  15673. t.exports = r
  15674. },
  15675. {
  15676. 222 : 222
  15677. }],
  15678. 222 : [function(e, t, n) {
  15679. function r(e, t) {
  15680. return t.querySelector(e)
  15681. }
  15682. n = t.exports = function(e, t) {
  15683. return t = t || document,
  15684. r(e, t)
  15685. },
  15686. n.all = function(e, t) {
  15687. return t = t || document,
  15688. t.querySelectorAll(e)
  15689. },
  15690. n.engine = function(e) {
  15691. if (!e.one) throw new Error(".one callback required");
  15692. if (!e.all) throw new Error(".all callback required");
  15693. return r = e.one,
  15694. n.all = e.all,
  15695. n
  15696. }
  15697. },
  15698. {}],
  15699. 223 : [function(e, t, n) {
  15700. function r(e, t) {
  15701. if ("string" != typeof e) throw new TypeError("String expected");
  15702. t || (t = document);
  15703. var n = /<([\w:]+)/.exec(e);
  15704. if (!n) return t.createTextNode(e);
  15705. e = e.replace(/^\s+|\s+$/g, "");
  15706. var r = n[1];
  15707. if ("body" == r) {
  15708. var i = t.createElement("html");
  15709. return i.innerHTML = e,
  15710. i.removeChild(i.lastChild)
  15711. }
  15712. var o = a[r] || a._default,
  15713. s = o[0],
  15714. c = o[1],
  15715. l = o[2],
  15716. i = t.createElement("div");
  15717. for (i.innerHTML = c + e + l; s--;) i = i.lastChild;
  15718. if (i.firstChild == i.lastChild) return i.removeChild(i.firstChild);
  15719. for (var u = t.createDocumentFragment(); i.firstChild;) u.appendChild(i.removeChild(i.firstChild));
  15720. return u
  15721. }
  15722. t.exports = r;
  15723. var i, o = !1;
  15724. "undefined" != typeof document && (i = document.createElement("div"), i.innerHTML = ' <link/><table></table><a href="/a">a</a><input type="checkbox"/>', o = !i.getElementsByTagName("link").length, i = void 0);
  15725. var a = {
  15726. legend: [1, "<fieldset>", "</fieldset>"],
  15727. tr: [2, "<table><tbody>", "</tbody></table>"],
  15728. col: [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"],
  15729. _default: o ? [1, "X<div>", "</div>"] : [0, "", ""]
  15730. };
  15731. a.td = a.th = [3, "<table><tbody><tr>", "</tr></tbody></table>"],
  15732. a.option = a.optgroup = [1, '<select multiple="multiple">', "</select>"],
  15733. a.thead = a.tbody = a.colgroup = a.caption = a.tfoot = [1, "<table>", "</table>"],
  15734. a.polyline = a.ellipse = a.polygon = a.circle = a.text = a.line = a.path = a.rect = a.g = [1, '<svg xmlns="http://www.w3.org/2000/svg" version="1.1">', "</svg>"]
  15735. },
  15736. {}],
  15737. 224 : [function(e, t, n) {
  15738. t.exports = e(226),
  15739. t.exports.Collection = e(225)
  15740. },
  15741. {
  15742. 225 : 225,
  15743. 226 : 226
  15744. }],
  15745. 225 : [function(e, t, n) {
  15746. "use strict";
  15747. function r(e, t, n, r) {
  15748. var i = n.inverse;
  15749. return Object.defineProperty(e, "remove", {
  15750. value: function(e) {
  15751. var n = this.indexOf(e);
  15752. return n !== -1 && (this.splice(n, 1), t.unset(e, i, r)),
  15753. e
  15754. }
  15755. }),
  15756. Object.defineProperty(e, "contains", {
  15757. value: function(e) {
  15758. return this.indexOf(e) !== -1
  15759. }
  15760. }),
  15761. Object.defineProperty(e, "add", {
  15762. value: function(e) {
  15763. this.contains(e) || (this.push(e), t.set(e, i, r))
  15764. }
  15765. }),
  15766. Object.defineProperty(e, "__refs_collection", {
  15767. value: !0
  15768. }),
  15769. e
  15770. }
  15771. function i(e) {
  15772. return e.__refs_collection === !0
  15773. }
  15774. t.exports.extend = r,
  15775. t.exports.isExtended = i
  15776. },
  15777. {}],
  15778. 226 : [function(e, t, n) {
  15779. "use strict";
  15780. function r(e, t) {
  15781. return Object.prototype.hasOwnProperty.call(e, t.name || t)
  15782. }
  15783. function i(e, t, n) {
  15784. Object.defineProperty(n, t.name, {
  15785. enumerable: t.enumerable,
  15786. value: s.extend(n[t.name] || [], e, t, n)
  15787. })
  15788. }
  15789. function o(e, t, n) {
  15790. var r = t.inverse,
  15791. i = n[t.name];
  15792. Object.defineProperty(n, t.name, {
  15793. enumerable: t.enumerable,
  15794. get: function() {
  15795. return i
  15796. },
  15797. set: function(t) {
  15798. if (t !== i) {
  15799. var o = i;
  15800. i = null,
  15801. o && e.unset(o, r, n),
  15802. i = t,
  15803. e.set(i, r, n)
  15804. }
  15805. }
  15806. })
  15807. }
  15808. function a(e, t) {
  15809. return this instanceof a ? (e.inverse = t, t.inverse = e, this.props = {},
  15810. this.props[e.name] = e, void(this.props[t.name] = t)) : new a(e, t)
  15811. }
  15812. var s = e(225);
  15813. a.prototype.bind = function(e, t) {
  15814. if ("string" == typeof t) {
  15815. if (!this.props[t]) throw new Error("no property <" + t + "> in ref");
  15816. t = this.props[t]
  15817. }
  15818. t.collection ? i(this, t, e) : o(this, t, e)
  15819. },
  15820. a.prototype.ensureRefsCollection = function(e, t) {
  15821. var n = e[t.name];
  15822. return s.isExtended(n) || i(this, t, e),
  15823. n
  15824. },
  15825. a.prototype.ensureBound = function(e, t) {
  15826. r(e, t) || this.bind(e, t)
  15827. },
  15828. a.prototype.unset = function(e, t, n) {
  15829. e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).remove(n) : e[t.name] = void 0)
  15830. },
  15831. a.prototype.set = function(e, t, n) {
  15832. e && (this.ensureBound(e, t), t.collection ? this.ensureRefsCollection(e, t).add(n) : e[t.name] = n)
  15833. },
  15834. t.exports = a
  15835. },
  15836. {
  15837. 225 : 225
  15838. }]
  15839. },
  15840. {},
  15841. [1])(1)
  15842. });